Don't override --enable-multi-arch.
[glibc.git] / configure
blob999a448a05a425245fb54aa79a247a3161edaefb
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.66 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
39 as_nl='
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
94 # Find who we are. Look in the path if we contain no directory separator.
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 else
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and glibc about your
235 $0: system, including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='GNU C Library'
554 PACKAGE_TARNAME='c-library'
555 PACKAGE_VERSION='(see version.h)'
556 PACKAGE_STRING='GNU C Library (see version.h)'
557 PACKAGE_BUGREPORT='glibc'
558 PACKAGE_URL='http://www.gnu.org/software/c-library/'
560 ac_unique_file="include/features.h"
561 enable_option_checking=no
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 # include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 # include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
598 ac_subst_vars='LTLIBOBJS
599 LIBOBJS
600 RELEASE
601 VERSION
602 mach_interface_list
603 DEFINES
604 nopic_initfini
605 static_nss
606 bounded
607 omitfp
608 profile
609 libc_cv_pic_default
610 shared
611 static
612 xcoff
614 ldd_rewrite_script
615 use_ldconfig
616 libc_cv_as_i686
617 libc_cv_cc_avx
618 libc_cv_cc_sse4
619 libc_cv_cpp_asm_debuginfo
620 libc_cv_forced_unwind
621 libc_cv_rootsbindir
622 libc_cv_sysconfdir
623 libc_cv_localedir
624 libc_cv_slibdir
625 old_glibc_headers
626 libc_cv_gcc_unwind_find_fde
627 sizeof_long_double
628 EGREP
629 GREP
630 have_selinux
631 have_libcap
632 have_libaudit
633 LIBGD
634 libc_cv_cc_submachine
635 exceptions
636 no_whole_archive
637 libc_cv_have_initfini
638 gnu89_inline
639 libc_cv_ssp
640 fno_unit_at_a_time
641 libc_cv_hashstyle
642 libc_cv_fpie
643 libc_cv_z_execstack
644 libc_cv_z_combreloc
645 ASFLAGS_config
646 libc_cv_as_needed
647 libc_cv_libgcc_s_suffix
648 libc_cv_Bgroup
649 libc_cv_cc_with_libunwind
650 VERSIONING
651 BISON
652 INSTALL_INFO
653 PERL
655 libc_cv_have_ksh
657 libc_cv_have_bash2
658 BASH_SHELL
659 libc_cv_gcc_static_libgcc
660 CXX_SYSINCLUDES
661 SYSINCLUDES
662 AUTOCONF
664 MAKEINFO
665 MSGFMT
666 MAKE
667 PWD_P
671 RANLIB
672 OBJDUMP
674 LN_S
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 sysdeps_add_ons
679 sysnames
680 submachine
681 multi_arch
682 base_machine
683 add_on_subdirs
684 add_ons
685 libc_cv_nss_crypt
686 experimental_malloc
687 all_warnings
688 force_install
689 bindnow
690 oldest_abi
691 enable_check_abi
692 with_cvs
693 with_fp
694 ac_ct_CXX
695 CXXFLAGS
698 cross_compiling
699 BUILD_CC
700 OBJEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 subdirs
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 with_gd
757 with_gd_include
758 with_gd_lib
759 with_fp
760 with_binutils
761 with_elf
762 with_selinux
763 with_xcoff
764 with_cvs
765 with_headers
766 enable_sanity_checks
767 enable_check_abi
768 enable_shared
769 enable_profile
770 enable_omitfp
771 enable_bounded
772 enable_versioning
773 enable_oldest_abi
774 enable_stackguard_randomization
775 enable_add_ons
776 with_tls
777 with___thread
778 enable_hidden_plt
779 enable_bind_now
780 enable_static_nss
781 enable_force_install
782 enable_kernel
783 enable_all_warnings
784 enable_multi_arch
785 enable_experimental_malloc
786 enable_nss_crypt
787 with_cpu
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
799 CXXFLAGS
800 CCC'
801 ac_subdirs_all='
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
852 ac_prev=
853 ac_dashdash=
854 for ac_option
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
863 case $ac_option in
864 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *) ac_optarg=yes ;;
866 esac
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
872 ac_dashdash=yes ;;
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
891 --config-cache | -C)
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 esac
1209 done
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used" >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1295 /^X\(\/\/\)$/{
1296 s//\1/
1299 /^X\(\/\).*/{
1300 s//\1/
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1308 else
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1398 cat <<\_ACEOF
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1409 esac
1410 cat <<\_ACEOF
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --disable-sanity-checks really do not use threads (should not be used except
1417 in special situations) [default=yes]
1418 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1419 [default=no]
1420 --enable-shared build shared library [default=yes if GNU ld & ELF]
1421 --enable-profile build profiled library [default=no]
1422 --enable-omitfp build undebuggable optimized library [default=no]
1423 --enable-bounded build with runtime bounds checking [default=no]
1424 --disable-versioning do not include versioning information in the library
1425 objects [default=yes if supported]
1426 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1427 [default=glibc default]
1428 --enable-stackguard-randomization
1429 initialize __stack_chk_guard canary with a random
1430 number at program start
1431 --enable-add-ons[=DIRS...]
1432 configure and build add-ons in DIR1,DIR2,... search
1433 for add-ons if no parameter given
1434 --disable-hidden-plt do not hide internal function calls to avoid PLT
1435 --enable-bind-now disable lazy relocations in DSOs
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-kernel=VERSION compile for compatibility with kernel not older than
1440 VERSION
1441 --enable-all-warnings enable all useful warnings gcc can issue
1442 --enable-multi-arch enable single DSO with optimizations for multiple
1443 architectures
1444 --enable-experimental-malloc
1445 enable experimental malloc features
1446 --enable-nss-crypt enable libcrypt to use nss
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-gd=DIR find libgd include dir and library with prefix DIR
1452 --with-gd-include=DIR find libgd include files in DIR
1453 --with-gd-lib=DIR find libgd library files in DIR
1454 --with-fp if using floating-point hardware [default=yes]
1455 --with-binutils=PATH specify location of binutils (as and ld)
1456 --with-elf if using the ELF object format
1457 --with-selinux if building with SELinux support
1458 --with-xcoff if using the XCOFF object format
1459 --without-cvs if CVS should not be used
1460 --with-headers=PATH location of system headers to use (for example
1461 /usr/src/linux/include) [default=compiler default]
1462 --with-tls enable support for TLS
1463 --without-__thread do not use TLS features even when supporting them
1464 --with-cpu=CPU select code for CPU variant
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <glibc>.
1482 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
1483 General help using GNU software: <http://www.gnu.org/gethelp/>.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 GNU C Library configure (see version.h)
1547 generated by GNU Autoconf 2.66
1549 Copyright (C) 2010 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_cpp ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } >/dev/null && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_cpp
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_cxx_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_cxx_try_compile
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 $as_test_x conftest$ac_exeext
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=1
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_link
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=$ac_status
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_run
1761 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1762 # --------------------------------------------
1763 # Tries to find the compile-time value of EXPR in a program that includes
1764 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1765 # computed
1766 ac_fn_c_compute_int ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if test "$cross_compiling" = yes; then
1770 # Depending upon the size, compute the lo and hi bounds.
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1775 main ()
1777 static int test_array [1 - 2 * !(($2) >= 0)];
1778 test_array [0] = 0
1781 return 0;
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_lo=0 ac_mid=0
1786 while :; do
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1791 main ()
1793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1794 test_array [0] = 0
1797 return 0;
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_hi=$ac_mid; break
1802 else
1803 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1804 if test $ac_lo -le $ac_mid; then
1805 ac_lo= ac_hi=
1806 break
1808 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 done
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1817 main ()
1819 static int test_array [1 - 2 * !(($2) < 0)];
1820 test_array [0] = 0
1823 return 0;
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_hi=-1 ac_mid=-1
1828 while :; do
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1833 main ()
1835 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1836 test_array [0] = 0
1839 return 0;
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_lo=$ac_mid; break
1844 else
1845 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1846 if test $ac_mid -le $ac_hi; then
1847 ac_lo= ac_hi=
1848 break
1850 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 done
1854 else
1855 ac_lo= ac_hi=
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 # Binary search between lo and hi bounds.
1861 while test "x$ac_lo" != "x$ac_hi"; do
1862 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1867 main ()
1869 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1870 test_array [0] = 0
1873 return 0;
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_hi=$ac_mid
1878 else
1879 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 done
1883 case $ac_lo in #((
1884 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1885 '') ac_retval=1 ;;
1886 esac
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1891 static long int longval () { return $2; }
1892 static unsigned long int ulongval () { return $2; }
1893 #include <stdio.h>
1894 #include <stdlib.h>
1896 main ()
1899 FILE *f = fopen ("conftest.val", "w");
1900 if (! f)
1901 return 1;
1902 if (($2) < 0)
1904 long int i = longval ();
1905 if (i != ($2))
1906 return 1;
1907 fprintf (f, "%ld", i);
1909 else
1911 unsigned long int i = ulongval ();
1912 if (i != ($2))
1913 return 1;
1914 fprintf (f, "%lu", i);
1916 /* Do not output a trailing newline, as this causes \r\n confusion
1917 on some platforms. */
1918 return ferror (f) || fclose (f) != 0;
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_run "$LINENO"; then :
1925 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1926 else
1927 ac_retval=1
1929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1930 conftest.$ac_objext conftest.beam conftest.$ac_ext
1931 rm -f conftest.val
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_compute_int
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval "test \"\${$3+set}\"" = set; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 } # ac_fn_c_check_header_compile
1969 cat >config.log <<_ACEOF
1970 This file contains any messages produced by compilers while
1971 running configure, to aid debugging if configure makes a mistake.
1973 It was created by GNU C Library $as_me (see version.h), which was
1974 generated by GNU Autoconf 2.66. Invocation command line was
1976 $ $0 $@
1978 _ACEOF
1979 exec 5>>config.log
1981 cat <<_ASUNAME
1982 ## --------- ##
1983 ## Platform. ##
1984 ## --------- ##
1986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1993 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1996 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1998 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1999 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2000 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2001 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003 _ASUNAME
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 $as_echo "PATH: $as_dir"
2011 done
2012 IFS=$as_save_IFS
2014 } >&5
2016 cat >&5 <<_ACEOF
2019 ## ----------- ##
2020 ## Core tests. ##
2021 ## ----------- ##
2023 _ACEOF
2026 # Keep a trace of the command line.
2027 # Strip out --no-create and --no-recursion so they do not pile up.
2028 # Strip out --silent because we don't want to record it for future runs.
2029 # Also quote any args containing shell meta-characters.
2030 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_configure_args=
2032 ac_configure_args0=
2033 ac_configure_args1=
2034 ac_must_keep_next=false
2035 for ac_pass in 1 2
2037 for ac_arg
2039 case $ac_arg in
2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2042 | -silent | --silent | --silen | --sile | --sil)
2043 continue ;;
2044 *\'*)
2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 esac
2047 case $ac_pass in
2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 as_fn_append ac_configure_args1 " '$ac_arg'"
2051 if test $ac_must_keep_next = true; then
2052 ac_must_keep_next=false # Got value, back to normal.
2053 else
2054 case $ac_arg in
2055 *=* | --config-cache | -C | -disable-* | --disable-* \
2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2058 | -with-* | --with-* | -without-* | --without-* | --x)
2059 case "$ac_configure_args0 " in
2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061 esac
2063 -* ) ac_must_keep_next=true ;;
2064 esac
2066 as_fn_append ac_configure_args " '$ac_arg'"
2068 esac
2069 done
2070 done
2071 { ac_configure_args0=; unset ac_configure_args0;}
2072 { ac_configure_args1=; unset ac_configure_args1;}
2074 # When interrupted or exit'd, cleanup temporary files, and complete
2075 # config.log. We remove comments because anyway the quotes in there
2076 # would cause problems or look ugly.
2077 # WARNING: Use '\'' to represent an apostrophe within the trap.
2078 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2079 trap 'exit_status=$?
2080 # Save into config.log some information that might help in debugging.
2082 echo
2084 $as_echo "## ---------------- ##
2085 ## Cache variables. ##
2086 ## ---------------- ##"
2087 echo
2088 # The following way of writing the cache mishandles newlines in values,
2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in #(
2093 *${as_nl}*)
2094 case $ac_var in #(
2095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 esac
2098 case $ac_var in #(
2099 _ | IFS | as_nl) ;; #(
2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101 *) { eval $ac_var=; unset $ac_var;} ;;
2102 esac ;;
2103 esac
2104 done
2105 (set) 2>&1 |
2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107 *${as_nl}ac_space=\ *)
2108 sed -n \
2109 "s/'\''/'\''\\\\'\'''\''/g;
2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 ;; #(
2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 esac |
2116 sort
2118 echo
2120 $as_echo "## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##"
2123 echo
2124 for ac_var in $ac_subst_vars
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2134 if test -n "$ac_subst_files"; then
2135 $as_echo "## ------------------- ##
2136 ## File substitutions. ##
2137 ## ------------------- ##"
2138 echo
2139 for ac_var in $ac_subst_files
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2150 if test -s confdefs.h; then
2151 $as_echo "## ----------- ##
2152 ## confdefs.h. ##
2153 ## ----------- ##"
2154 echo
2155 cat confdefs.h
2156 echo
2158 test "$ac_signal" != 0 &&
2159 $as_echo "$as_me: caught signal $ac_signal"
2160 $as_echo "$as_me: exit $exit_status"
2161 } >&5
2162 rm -f core *.core core.conftest.* &&
2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 exit $exit_status
2166 for ac_signal in 1 2 13 15; do
2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 done
2169 ac_signal=0
2171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2172 rm -f -r conftest* confdefs.h
2174 $as_echo "/* confdefs.h */" > confdefs.h
2176 # Predefined preprocessor variables.
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_NAME "$PACKAGE_NAME"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2188 _ACEOF
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_STRING "$PACKAGE_STRING"
2192 _ACEOF
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196 _ACEOF
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_URL "$PACKAGE_URL"
2200 _ACEOF
2203 # Let the site file select an alternate cache file if it wants to.
2204 # Prefer an explicitly selected file to automatically selected ones.
2205 ac_site_file1=NONE
2206 ac_site_file2=NONE
2207 if test -n "$CONFIG_SITE"; then
2208 # We do not want a PATH search for config.site.
2209 case $CONFIG_SITE in #((
2210 -*) ac_site_file1=./$CONFIG_SITE;;
2211 */*) ac_site_file1=$CONFIG_SITE;;
2212 *) ac_site_file1=./$CONFIG_SITE;;
2213 esac
2214 elif test "x$prefix" != xNONE; then
2215 ac_site_file1=$prefix/share/config.site
2216 ac_site_file2=$prefix/etc/config.site
2217 else
2218 ac_site_file1=$ac_default_prefix/share/config.site
2219 ac_site_file2=$ac_default_prefix/etc/config.site
2221 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223 test "x$ac_site_file" = xNONE && continue
2224 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2226 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2227 sed 's/^/| /' "$ac_site_file" >&5
2228 . "$ac_site_file" \
2229 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2231 as_fn_error $? "failed to load site script $ac_site_file
2232 See \`config.log' for more details" "$LINENO" 5; }
2234 done
2236 if test -r "$cache_file"; then
2237 # Some versions of bash will fail to source /dev/null (special files
2238 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2239 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 case $cache_file in
2243 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244 *) . "./$cache_file";;
2245 esac
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 >$cache_file
2253 # Check that the precious variables saved in the cache have kept the same
2254 # value.
2255 ac_cache_corrupted=false
2256 for ac_var in $ac_precious_vars; do
2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258 eval ac_new_set=\$ac_env_${ac_var}_set
2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260 eval ac_new_val=\$ac_env_${ac_var}_value
2261 case $ac_old_set,$ac_new_set in
2262 set,)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,set)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,);;
2272 if test "x$ac_old_val" != "x$ac_new_val"; then
2273 # differences in whitespace do not lead to failure.
2274 ac_old_val_w=`echo x $ac_old_val`
2275 ac_new_val_w=`echo x $ac_new_val`
2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279 ac_cache_corrupted=:
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283 eval $ac_var=\$ac_old_val
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2286 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2288 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 fi;;
2290 esac
2291 # Pass precious variables to config.status.
2292 if test "$ac_new_set" = set; then
2293 case $ac_new_val in
2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 *) ac_arg=$ac_var=$ac_new_val ;;
2296 esac
2297 case " $ac_configure_args " in
2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 esac
2302 done
2303 if $ac_cache_corrupted; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310 ## -------------------- ##
2311 ## Main body of script. ##
2312 ## -------------------- ##
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 ac_config_headers="$ac_config_headers config.h"
2324 ac_aux_dir=
2325 for ac_dir in scripts "$srcdir"/scripts; do
2326 if test -f "$ac_dir/install-sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 break
2330 elif test -f "$ac_dir/install.sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 break
2334 elif test -f "$ac_dir/shtool"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 break
2339 done
2340 if test -z "$ac_aux_dir"; then
2341 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 subdirs="$subdirs "
2359 # Make sure we can run config.sub.
2360 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2361 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2364 $as_echo_n "checking build system type... " >&6; }
2365 if test "${ac_cv_build+set}" = set; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 ac_build_alias=$build_alias
2369 test "x$ac_build_alias" = x &&
2370 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2371 test "x$ac_build_alias" = x &&
2372 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2373 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2374 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2378 $as_echo "$ac_cv_build" >&6; }
2379 case $ac_cv_build in
2380 *-*-*) ;;
2381 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2382 esac
2383 build=$ac_cv_build
2384 ac_save_IFS=$IFS; IFS='-'
2385 set x $ac_cv_build
2386 shift
2387 build_cpu=$1
2388 build_vendor=$2
2389 shift; shift
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2392 build_os=$*
2393 IFS=$ac_save_IFS
2394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2398 $as_echo_n "checking host system type... " >&6; }
2399 if test "${ac_cv_host+set}" = set; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test "x$host_alias" = x; then
2403 ac_cv_host=$ac_cv_build
2404 else
2405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2411 $as_echo "$ac_cv_host" >&6; }
2412 case $ac_cv_host in
2413 *-*-*) ;;
2414 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2415 esac
2416 host=$ac_cv_host
2417 ac_save_IFS=$IFS; IFS='-'
2418 set x $ac_cv_host
2419 shift
2420 host_cpu=$1
2421 host_vendor=$2
2422 shift; shift
2423 # Remember, the first character of IFS is used to create $*,
2424 # except with old shells:
2425 host_os=$*
2426 IFS=$ac_save_IFS
2427 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2431 ac_ext=c
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 if test -n "$ac_tool_prefix"; then
2437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440 $as_echo_n "checking for $ac_word... " >&6; }
2441 if test "${ac_cv_prog_CC+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 CC=$ac_cv_prog_CC
2465 if test -n "$CC"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2467 $as_echo "$CC" >&6; }
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470 $as_echo "no" >&6; }
2475 if test -z "$ac_cv_prog_CC"; then
2476 ac_ct_CC=$CC
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478 set dummy gcc; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_ac_ct_CC="gcc"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2505 if test -n "$ac_ct_CC"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2507 $as_echo "$ac_ct_CC" >&6; }
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2513 if test "x$ac_ct_CC" = x; then
2514 CC=""
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522 CC=$ac_ct_CC
2524 else
2525 CC="$ac_cv_prog_CC"
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}cc; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}cc"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560 $as_echo "$CC" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2569 if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571 set dummy cc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 ac_prog_rejected=no
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2590 continue
2592 ac_cv_prog_CC="cc"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2596 done
2597 done
2598 IFS=$as_save_IFS
2600 if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2603 shift
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2608 shift
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617 $as_echo "$CC" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2625 if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in cl.exe
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2652 IFS=$as_save_IFS
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2666 test -n "$CC" && break
2667 done
2669 if test -z "$CC"; then
2670 ac_ct_CC=$CC
2671 for ac_prog in cl.exe
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2696 IFS=$as_save_IFS
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2703 $as_echo "$ac_ct_CC" >&6; }
2704 else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2710 test -n "$ac_ct_CC" && break
2711 done
2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717 yes:)
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722 CC=$ac_ct_CC
2729 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 as_fn_error $? "no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details" "$LINENO" 5; }
2734 # Provide some information about the compiler.
2735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2736 set X $ac_compile
2737 ac_compiler=$2
2738 for ac_option in --version -v -V -qversion; do
2739 { { ac_try="$ac_compiler $ac_option >&5"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745 $as_echo "$ac_try_echo"; } >&5
2746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2747 ac_status=$?
2748 if test -s conftest.err; then
2749 sed '10a\
2750 ... rest of stderr output deleted ...
2751 10q' conftest.err >conftest.er1
2752 cat conftest.er1 >&5
2754 rm -f conftest.er1 conftest.err
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; }
2757 done
2759 EXEEXT=
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2761 $as_echo_n "checking for suffix of object files... " >&6; }
2762 if test "${ac_cv_objext+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2769 main ()
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.o conftest.obj
2777 if { { ac_try="$ac_compile"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_compile") 2>&5
2785 ac_status=$?
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 for ac_file in conftest.o conftest.obj conftest.*; do
2789 test -f "$ac_file" || continue;
2790 case $ac_file in
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2793 break;;
2794 esac
2795 done
2796 else
2797 $as_echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 as_fn_error $? "cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details" "$LINENO" 5; }
2805 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2808 $as_echo "$ac_cv_objext" >&6; }
2809 OBJEXT=$ac_cv_objext
2810 ac_objext=$OBJEXT
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2812 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2813 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2820 main ()
2822 #ifndef __GNUC__
2823 choke me
2824 #endif
2827 return 0;
2829 _ACEOF
2830 if ac_fn_c_try_compile "$LINENO"; then :
2831 ac_compiler_gnu=yes
2832 else
2833 ac_compiler_gnu=no
2835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2840 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2841 if test $ac_compiler_gnu = yes; then
2842 GCC=yes
2843 else
2844 GCC=
2846 ac_test_CFLAGS=${CFLAGS+set}
2847 ac_save_CFLAGS=$CFLAGS
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2849 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2850 if test "${ac_cv_prog_cc_g+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 ac_save_c_werror_flag=$ac_c_werror_flag
2854 ac_c_werror_flag=yes
2855 ac_cv_prog_cc_g=no
2856 CFLAGS="-g"
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2861 main ()
2865 return 0;
2867 _ACEOF
2868 if ac_fn_c_try_compile "$LINENO"; then :
2869 ac_cv_prog_cc_g=yes
2870 else
2871 CFLAGS=""
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2876 main ()
2880 return 0;
2882 _ACEOF
2883 if ac_fn_c_try_compile "$LINENO"; then :
2885 else
2886 ac_c_werror_flag=$ac_save_c_werror_flag
2887 CFLAGS="-g"
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2892 main ()
2896 return 0;
2898 _ACEOF
2899 if ac_fn_c_try_compile "$LINENO"; then :
2900 ac_cv_prog_cc_g=yes
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_c_werror_flag=$ac_save_c_werror_flag
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2910 $as_echo "$ac_cv_prog_cc_g" >&6; }
2911 if test "$ac_test_CFLAGS" = set; then
2912 CFLAGS=$ac_save_CFLAGS
2913 elif test $ac_cv_prog_cc_g = yes; then
2914 if test "$GCC" = yes; then
2915 CFLAGS="-g -O2"
2916 else
2917 CFLAGS="-g"
2919 else
2920 if test "$GCC" = yes; then
2921 CFLAGS="-O2"
2922 else
2923 CFLAGS=
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2927 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2928 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 ac_cv_prog_cc_c89=no
2932 ac_save_CC=$CC
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2935 #include <stdarg.h>
2936 #include <stdio.h>
2937 #include <sys/types.h>
2938 #include <sys/stat.h>
2939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2940 struct buf { int x; };
2941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2942 static char *e (p, i)
2943 char **p;
2944 int i;
2946 return p[i];
2948 static char *f (char * (*g) (char **, int), char **p, ...)
2950 char *s;
2951 va_list v;
2952 va_start (v,p);
2953 s = g (p, va_arg (v,int));
2954 va_end (v);
2955 return s;
2958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2959 function prototypes and stuff, but not '\xHH' hex character constants.
2960 These don't provoke an error unfortunately, instead are silently treated
2961 as 'x'. The following induces an error, until -std is added to get
2962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2963 array size at least. It's necessary to write '\x00'==0 to get something
2964 that's true only with -std. */
2965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2968 inside strings and character constants. */
2969 #define FOO(x) 'x'
2970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2972 int test (int i, double x);
2973 struct s1 {int (*f) (int a);};
2974 struct s2 {int (*f) (double a);};
2975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2976 int argc;
2977 char **argv;
2979 main ()
2981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2983 return 0;
2985 _ACEOF
2986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2989 CC="$ac_save_CC $ac_arg"
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991 ac_cv_prog_cc_c89=$ac_arg
2993 rm -f core conftest.err conftest.$ac_objext
2994 test "x$ac_cv_prog_cc_c89" != "xno" && break
2995 done
2996 rm -f conftest.$ac_ext
2997 CC=$ac_save_CC
3000 # AC_CACHE_VAL
3001 case "x$ac_cv_prog_cc_c89" in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3004 $as_echo "none needed" >&6; } ;;
3005 xno)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3007 $as_echo "unsupported" >&6; } ;;
3009 CC="$CC $ac_cv_prog_cc_c89"
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3011 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3012 esac
3013 if test "x$ac_cv_prog_cc_c89" != xno; then :
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 if test $host != $build; then
3024 for ac_prog in gcc cc
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$BUILD_CC"; then
3034 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_BUILD_CC="$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3047 done
3048 done
3049 IFS=$as_save_IFS
3053 BUILD_CC=$ac_cv_prog_BUILD_CC
3054 if test -n "$BUILD_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3056 $as_echo "$BUILD_CC" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$BUILD_CC" && break
3064 done
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3075 # On Suns, sometimes $CPP names a directory.
3076 if test -n "$CPP" && test -d "$CPP"; then
3077 CPP=
3079 if test -z "$CPP"; then
3080 if test "${ac_cv_prog_CPP+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 # Double quotes because CPP needs to be expanded
3084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3086 ac_preproc_ok=false
3087 for ac_c_preproc_warn_flag in '' yes
3089 # Use a header file that comes with gcc, so configuring glibc
3090 # with a fresh cross-compiler works.
3091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3092 # <limits.h> exists even on freestanding compilers.
3093 # On the NeXT, cc -E runs the code through the compiler's parser,
3094 # not just through cpp. "Syntax error" is here to catch this case.
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3097 #ifdef __STDC__
3098 # include <limits.h>
3099 #else
3100 # include <assert.h>
3101 #endif
3102 Syntax error
3103 _ACEOF
3104 if ac_fn_c_try_cpp "$LINENO"; then :
3106 else
3107 # Broken: fails on valid input.
3108 continue
3110 rm -f conftest.err conftest.$ac_ext
3112 # OK, works on sane cases. Now check whether nonexistent headers
3113 # can be detected and how.
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if ac_fn_c_try_cpp "$LINENO"; then :
3119 # Broken: success on invalid input.
3120 continue
3121 else
3122 # Passes both tests.
3123 ac_preproc_ok=:
3124 break
3126 rm -f conftest.err conftest.$ac_ext
3128 done
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.$ac_ext
3131 if $ac_preproc_ok; then :
3132 break
3135 done
3136 ac_cv_prog_CPP=$CPP
3139 CPP=$ac_cv_prog_CPP
3140 else
3141 ac_cv_prog_CPP=$CPP
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3144 $as_echo "$CPP" >&6; }
3145 ac_preproc_ok=false
3146 for ac_c_preproc_warn_flag in '' yes
3148 # Use a header file that comes with gcc, so configuring glibc
3149 # with a fresh cross-compiler works.
3150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3151 # <limits.h> exists even on freestanding compilers.
3152 # On the NeXT, cc -E runs the code through the compiler's parser,
3153 # not just through cpp. "Syntax error" is here to catch this case.
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156 #ifdef __STDC__
3157 # include <limits.h>
3158 #else
3159 # include <assert.h>
3160 #endif
3161 Syntax error
3162 _ACEOF
3163 if ac_fn_c_try_cpp "$LINENO"; then :
3165 else
3166 # Broken: fails on valid input.
3167 continue
3169 rm -f conftest.err conftest.$ac_ext
3171 # OK, works on sane cases. Now check whether nonexistent headers
3172 # can be detected and how.
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <ac_nonexistent.h>
3176 _ACEOF
3177 if ac_fn_c_try_cpp "$LINENO"; then :
3178 # Broken: success on invalid input.
3179 continue
3180 else
3181 # Passes both tests.
3182 ac_preproc_ok=:
3183 break
3185 rm -f conftest.err conftest.$ac_ext
3187 done
3188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3189 rm -f conftest.err conftest.$ac_ext
3190 if $ac_preproc_ok; then :
3192 else
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3196 See \`config.log' for more details" "$LINENO" 5; }
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 # We need the C++ compiler only for testing.
3206 ac_ext=cpp
3207 ac_cpp='$CXXCPP $CPPFLAGS'
3208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3211 if test -z "$CXX"; then
3212 if test -n "$CCC"; then
3213 CXX=$CCC
3214 else
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CXX+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$CXX"; then
3226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3241 IFS=$as_save_IFS
3245 CXX=$ac_cv_prog_CXX
3246 if test -n "$CXX"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3248 $as_echo "$CXX" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$CXX" && break
3256 done
3258 if test -z "$CXX"; then
3259 ac_ct_CXX=$CXX
3260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$ac_ct_CXX"; then
3270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_ac_ct_CXX="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3285 IFS=$as_save_IFS
3289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3290 if test -n "$ac_ct_CXX"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3292 $as_echo "$ac_ct_CXX" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$ac_ct_CXX" && break
3300 done
3302 if test "x$ac_ct_CXX" = x; then
3303 CXX="g++"
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CXX=$ac_ct_CXX
3317 # Provide some information about the compiler.
3318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3319 set X $ac_compile
3320 ac_compiler=$2
3321 for ac_option in --version -v -V -qversion; do
3322 { { ac_try="$ac_compiler $ac_option >&5"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3330 ac_status=$?
3331 if test -s conftest.err; then
3332 sed '10a\
3333 ... rest of stderr output deleted ...
3334 10q' conftest.err >conftest.er1
3335 cat conftest.er1 >&5
3337 rm -f conftest.er1 conftest.err
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 done
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3343 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3344 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3353 #ifndef __GNUC__
3354 choke me
3355 #endif
3358 return 0;
3360 _ACEOF
3361 if ac_fn_cxx_try_compile "$LINENO"; then :
3362 ac_compiler_gnu=yes
3363 else
3364 ac_compiler_gnu=no
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3371 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3372 if test $ac_compiler_gnu = yes; then
3373 GXX=yes
3374 else
3375 GXX=
3377 ac_test_CXXFLAGS=${CXXFLAGS+set}
3378 ac_save_CXXFLAGS=$CXXFLAGS
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3380 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3381 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3385 ac_cxx_werror_flag=yes
3386 ac_cv_prog_cxx_g=no
3387 CXXFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3392 main ()
3396 return 0;
3398 _ACEOF
3399 if ac_fn_cxx_try_compile "$LINENO"; then :
3400 ac_cv_prog_cxx_g=yes
3401 else
3402 CXXFLAGS=""
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 if ac_fn_cxx_try_compile "$LINENO"; then :
3416 else
3417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3418 CXXFLAGS="-g"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 if ac_fn_cxx_try_compile "$LINENO"; then :
3431 ac_cv_prog_cxx_g=yes
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3441 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3442 if test "$ac_test_CXXFLAGS" = set; then
3443 CXXFLAGS=$ac_save_CXXFLAGS
3444 elif test $ac_cv_prog_cxx_g = yes; then
3445 if test "$GXX" = yes; then
3446 CXXFLAGS="-g -O2"
3447 else
3448 CXXFLAGS="-g"
3450 else
3451 if test "$GXX" = yes; then
3452 CXXFLAGS="-O2"
3453 else
3454 CXXFLAGS=
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3465 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3468 # This will get text that should go into config.make.
3469 config_vars=
3471 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3473 # Check whether --with-gd was given.
3474 if test "${with_gd+set}" = set; then :
3475 withval=$with_gd; case "$with_gd" in
3476 yes|''|no) ;;
3477 *) libgd_include="-I$withval/include"
3478 libgd_ldflags="-L$withval/lib" ;;
3479 esac
3484 # Check whether --with-gd-include was given.
3485 if test "${with_gd_include+set}" = set; then :
3486 withval=$with_gd_include; case "$with_gd_include" in
3487 ''|no) ;;
3488 *) libgd_include="-I$withval" ;;
3489 esac
3494 # Check whether --with-gd-lib was given.
3495 if test "${with_gd_lib+set}" = set; then :
3496 withval=$with_gd_lib; case "$with_gd_lib" in
3497 ''|no) ;;
3498 *) libgd_ldflags="-L$withval" ;;
3499 esac
3504 if test -n "$libgd_include"; then
3505 config_vars="$config_vars
3506 CFLAGS-memusagestat.c = $libgd_include"
3508 if test -n "$libgd_ldflags"; then
3509 config_vars="$config_vars
3510 libgd-LDFLAGS = $libgd_ldflags"
3514 # Check whether --with-fp was given.
3515 if test "${with_fp+set}" = set; then :
3516 withval=$with_fp; with_fp=$withval
3517 else
3518 with_fp=yes
3523 # Check whether --with-binutils was given.
3524 if test "${with_binutils+set}" = set; then :
3525 withval=$with_binutils; path_binutils=$withval
3526 else
3527 path_binutils=''
3531 # Check whether --with-elf was given.
3532 if test "${with_elf+set}" = set; then :
3533 withval=$with_elf; elf=$withval
3534 else
3535 elf=no
3539 # Check whether --with-selinux was given.
3540 if test "${with_selinux+set}" = set; then :
3541 withval=$with_selinux; with_selinux=$withval
3542 else
3543 with_selinux=auto
3547 # Check whether --with-xcoff was given.
3548 if test "${with_xcoff+set}" = set; then :
3549 withval=$with_xcoff; xcoff=$withval
3550 else
3551 xcoff=no
3555 # Check whether --with-cvs was given.
3556 if test "${with_cvs+set}" = set; then :
3557 withval=$with_cvs; with_cvs=$withval
3558 else
3559 with_cvs=yes
3562 if test "$with_cvs" = yes; then
3563 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3564 then
3565 with_cvs=no
3571 # Check whether --with-headers was given.
3572 if test "${with_headers+set}" = set; then :
3573 withval=$with_headers; sysheaders=$withval
3574 else
3575 sysheaders=''
3579 # Check whether --enable-sanity-checks was given.
3580 if test "${enable_sanity_checks+set}" = set; then :
3581 enableval=$enable_sanity_checks; enable_sanity=$enableval
3582 else
3583 enable_sanity=yes
3588 # Check whether --enable-check-abi was given.
3589 if test "${enable_check_abi+set}" = set; then :
3590 enableval=$enable_check_abi; enable_check_abi=$enableval
3591 else
3592 enable_check_abi=no
3596 static=yes
3597 # Check whether --enable-shared was given.
3598 if test "${enable_shared+set}" = set; then :
3599 enableval=$enable_shared; shared=$enableval
3600 else
3601 shared=default
3604 # Check whether --enable-profile was given.
3605 if test "${enable_profile+set}" = set; then :
3606 enableval=$enable_profile; profile=$enableval
3607 else
3608 profile=no
3611 # Check whether --enable-omitfp was given.
3612 if test "${enable_omitfp+set}" = set; then :
3613 enableval=$enable_omitfp; omitfp=$enableval
3614 else
3615 omitfp=no
3618 # Check whether --enable-bounded was given.
3619 if test "${enable_bounded+set}" = set; then :
3620 enableval=$enable_bounded; bounded=$enableval
3621 else
3622 bounded=no
3625 # Check whether --enable-versioning was given.
3626 if test "${enable_versioning+set}" = set; then :
3627 enableval=$enable_versioning; enable_versioning=$enableval
3628 else
3629 enable_versioning=yes
3633 # Check whether --enable-oldest-abi was given.
3634 if test "${enable_oldest_abi+set}" = set; then :
3635 enableval=$enable_oldest_abi; oldest_abi=$enableval
3636 else
3637 oldest_abi=no
3640 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3641 oldest_abi=default
3642 else
3643 cat >>confdefs.h <<_ACEOF
3644 #define GLIBC_OLDEST_ABI "$oldest_abi"
3645 _ACEOF
3650 # Check whether --enable-stackguard-randomization was given.
3651 if test "${enable_stackguard_randomization+set}" = set; then :
3652 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3653 else
3654 enable_stackguard_randomize=no
3657 if test "$enable_stackguard_randomize" = yes; then
3658 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3662 # Check whether --enable-add-ons was given.
3663 if test "${enable_add_ons+set}" = set; then :
3664 enableval=$enable_add_ons;
3665 else
3666 enable_add_ons=yes
3671 # Check whether --with-tls was given.
3672 if test "${with_tls+set}" = set; then :
3673 withval=$with_tls; usetls=$withval
3674 else
3675 usetls=yes
3680 # Check whether --with-__thread was given.
3681 if test "${with___thread+set}" = set; then :
3682 withval=$with___thread; use__thread=$withval
3683 else
3684 use__thread=yes
3688 # Check whether --enable-hidden-plt was given.
3689 if test "${enable_hidden_plt+set}" = set; then :
3690 enableval=$enable_hidden_plt; hidden=$enableval
3691 else
3692 hidden=yes
3695 if test "x$hidden" = xno; then
3696 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3700 # Check whether --enable-bind-now was given.
3701 if test "${enable_bind_now+set}" = set; then :
3702 enableval=$enable_bind_now; bindnow=$enableval
3703 else
3704 bindnow=no
3709 # Check whether --enable-static-nss was given.
3710 if test "${enable_static_nss+set}" = set; then :
3711 enableval=$enable_static_nss; static_nss=$enableval
3712 else
3713 static_nss=no
3716 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3717 static_nss=yes
3718 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3722 # Check whether --enable-force-install was given.
3723 if test "${enable_force_install+set}" = set; then :
3724 enableval=$enable_force_install; force_install=$enableval
3725 else
3726 force_install=yes
3731 # Check whether --enable-kernel was given.
3732 if test "${enable_kernel+set}" = set; then :
3733 enableval=$enable_kernel; minimum_kernel=$enableval
3736 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3737 # Better nothing than this.
3738 minimum_kernel=""
3739 else
3740 if test "$minimum_kernel" = current; then
3741 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3745 # Check whether --enable-all-warnings was given.
3746 if test "${enable_all_warnings+set}" = set; then :
3747 enableval=$enable_all_warnings; all_warnings=$enableval
3752 # Check whether --enable-multi-arch was given.
3753 if test "${enable_multi_arch+set}" = set; then :
3754 enableval=$enable_multi_arch; multi_arch=$enableval
3755 else
3756 multi_arch=default
3760 # Check whether --enable-experimental-malloc was given.
3761 if test "${enable_experimental_malloc+set}" = set; then :
3762 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3767 # Check whether --enable-nss-crypt was given.
3768 if test "${enable_nss_crypt+set}" = set; then :
3769 enableval=$enable_nss_crypt; nss_crypt=$enableval
3770 else
3771 nss_crypt=no
3774 if test x$nss_crypt = xyes; then
3775 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3776 if test $? -ne 0; then
3777 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3779 old_CFLAGS="$CFLAGS"
3780 CFLAGS="$CFLAGS $nss_includes"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 typedef int PRBool;
3785 #include <hasht.h>
3786 #include <nsslowhash.h>
3787 void f (void) { NSSLOW_Init (); }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 libc_cv_nss_crypt=yes
3791 else
3792 as_fn_error $? "
3793 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 old_LIBS="$LIBS"
3797 LIBS="$LIBS -lfreebl3"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 typedef int PRBool;
3801 #include <hasht.h>
3802 #include <nsslowhash.h>
3804 main ()
3806 NSSLOW_Init();
3808 return 0;
3810 _ACEOF
3811 if ac_fn_c_try_link "$LINENO"; then :
3812 libc_cv_nss_crypt=yes
3813 else
3814 as_fn_error $? "
3815 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3817 rm -f core conftest.err conftest.$ac_objext \
3818 conftest$ac_exeext conftest.$ac_ext
3819 CFLAGS="$old_CFLAGS"
3820 LIBS="$old_LIBS"
3821 else
3822 libc_cv_nss_crypt=no
3826 # The way shlib-versions is used to generate soversions.mk uses a
3827 # fairly simplistic model for name recognition that can't distinguish
3828 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3829 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3830 # tell. This doesn't get used much beyond that, so it's fairly safe.
3831 case "$host_os" in
3832 linux*)
3834 gnu*)
3835 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3837 esac
3839 # We keep the original values in `$config_*' and never modify them, so we
3840 # can write them unchanged into config.make. Everything else uses
3841 # $machine, $vendor, and $os, and changes them whenever convenient.
3842 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3844 # Don't allow vendor == "unknown"
3845 test "$config_vendor" = unknown && config_vendor=
3846 config_os="`echo $config_os | sed 's/^unknown-//'`"
3848 # Some configurations imply other options.
3849 case "$host_os" in
3850 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3851 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3853 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3854 # These systems (almost) always use the ELF format.
3855 elf=yes
3857 aix*)
3858 # These systems are always xcoff
3859 xcoff=yes
3860 elf=no
3862 esac
3864 # The configure fragment of an add-on port can modify these to supplement
3865 # or override the table in the case statement below. No fragment should
3866 # ever change the config_* variables, however.
3867 machine=$config_machine
3868 vendor=$config_vendor
3869 os=$config_os
3870 base_os=''
3872 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3873 # Unify this here.
3874 if test "$machine" = rs6000; then
3875 machine="powerpc"
3878 # Braindead PowerPC box with absolutely no FPU.
3879 case "$machine-$host_os" in
3880 powerpc*-*soft)
3881 with_fp=no
3883 esac
3885 submachine=
3887 # Check whether --with-cpu was given.
3888 if test "${with_cpu+set}" = set; then :
3889 withval=$with_cpu; case "$withval" in
3890 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3891 no) ;;
3892 *) submachine="$withval" ;;
3893 esac
3898 # An add-on can set this when it wants to disable the sanity check below.
3899 libc_config_ok=no
3901 subdirs="$subdirs "
3904 case "$enable_add_ons" in
3905 ''|no) add_ons= ;;
3906 yes|'*')
3907 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3908 sed 's@/[^/]*$@@' | sort | uniq`
3909 add_ons_automatic=yes
3911 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3912 add_ons_automatic=no ;;
3913 esac
3915 configured_add_ons=
3916 add_ons_sfx=
3917 add_ons_pfx=
3918 if test x"$add_ons" != x; then
3919 for f in $add_ons; do
3920 # Some sanity checks
3921 case "$f" in
3922 crypt)
3923 as_fn_error $? "
3924 *** It seems that you're using an old \`crypt' add-on. crypt is now
3925 *** part of glibc and using the old add-on will not work with this
3926 *** release. Start again with fresh sources and without the old
3927 *** \`crypt' add-on." "$LINENO" 5
3929 localedata)
3930 as_fn_error $? "
3931 *** It seems that you're using an old \`localedata' add-on. localedata
3932 *** is now part of glibc and using the old add-on will not work with
3933 *** this release. Start again with fresh sources and without the old
3934 *** \`localedata' add-on." "$LINENO" 5
3936 esac
3937 done
3939 # Now source each add-on's configure fragment.
3940 # The fragments can use $srcdir/$libc_add_on to find themselves,
3941 # and test $add_ons_automatic to see if they were explicitly requested.
3942 # A fragment can clear (or even change) $libc_add_on to affect
3943 # whether it goes into the list to be actually used in the build.
3944 use_add_ons=
3945 for libc_add_on in $add_ons; do
3946 # Test whether such a directory really exists.
3947 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3948 case "$libc_add_on" in
3950 libc_add_on_srcdir=$libc_add_on
3953 test -d "$srcdir/$libc_add_on" || {
3954 if test -d "$libc_add_on"; then
3955 libc_add_on="`pwd`/$libc_add_on"
3956 else
3957 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3960 libc_add_on_srcdir=$srcdir/$libc_add_on
3962 esac
3964 libc_add_on_frag=$libc_add_on_srcdir/configure
3965 libc_add_on_canonical=
3966 libc_add_on_config_subdirs=
3967 if test -r "$libc_add_on_frag"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3969 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3970 libc_add_on_canonical=unknown
3971 libc_add_on_subdirs=
3972 . "$libc_add_on_frag"
3973 test -z "$libc_add_on" || {
3974 configured_add_ons="$configured_add_ons $libc_add_on"
3975 if test "x$libc_add_on_canonical" = xunknown; then
3976 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3978 for d in $libc_add_on_subdirs; do
3979 case "$libc_add_on" in
3980 /*) subdir_srcdir="$libc_add_on" ;;
3981 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3982 esac
3983 case "$d" in
3985 d="${libc_add_on_canonical:-$libc_add_on}"
3988 subdir_srcdir="$d"
3991 subdir_srcdir="$subdir_srcdir/$d"
3993 esac
3994 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3995 add_on_subdirs="$add_on_subdirs $d"
3996 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3997 $d-srcdir = $subdir_srcdir"
3998 done
3999 for d in $libc_add_on_config_subdirs; do
4000 case "$d" in
4001 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4002 esac
4003 if test ! -d "$libc_add_on_srcdir/$d"; then
4004 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
4006 case "$libc_add_on" in
4007 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4008 esac
4009 subdirs="$subdirs $libc_add_on/$d"
4010 done
4013 if test -n "$libc_add_on"; then
4014 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4015 then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4017 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4018 for frag in $frags; do
4019 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4020 echo $ECHO_N "$name $ECHO_C" >&6
4021 . "$frag"
4022 done
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4024 $as_echo "" >&6; }
4026 use_add_ons="$use_add_ons $libc_add_on"
4027 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4028 test -z "$libc_add_on_canonical" ||
4029 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4031 done
4032 # Use echo to strip excess whitespace.
4033 add_ons="`echo $use_add_ons`"
4040 ### I put this here to prevent those annoying emails from people who cannot
4041 ### read and try to compile glibc on unsupported platforms. --drepper
4043 ### By using the undocumented --enable-hacker-mode option for configure
4044 ### one can skip this test to make the configuration not fail for unsupported
4045 ### platforms.
4047 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4048 case "$machine-$host_os" in
4049 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4052 echo "*** The GNU C library is currently not available for this platform."
4053 echo "*** So far nobody cared to port it and if there is no volunteer it"
4054 echo "*** might never happen. So, if you have interest to see glibc on"
4055 echo "*** this platform visit"
4056 echo "*** http://www.gnu.org/software/libc/porting.html"
4057 echo "*** and join the group of porters"
4058 exit 1
4060 esac
4063 # Expand the configuration machine name into a subdirectory by architecture
4064 # type and particular chip. If an add-on configure fragment already set
4065 # base_machine, we don't change it.
4066 test -n "$base_machine" || case "$machine" in
4067 a29k | am29000) base_machine=a29k machine=a29k ;;
4068 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4069 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4070 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4071 ia64) base_machine=ia64 machine=ia64 ;;
4072 m88???) base_machine=m88k machine=m88k/$machine ;;
4073 m88k) base_machine=m88k machine=m88k/m88100 ;;
4074 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4075 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4076 s390) base_machine=s390 machine=s390/s390-32 ;;
4077 s390x) base_machine=s390 machine=s390/s390-64 ;;
4078 sh3*) base_machine=sh machine=sh/sh3 ;;
4079 sh4*) base_machine=sh machine=sh/sh4 ;;
4080 sparc | sparcv[67])
4081 base_machine=sparc machine=sparc/sparc32 ;;
4082 sparcv8 | supersparc | hypersparc)
4083 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4084 sparcv8plus | sparcv8plusa | sparcv9)
4085 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4086 sparcv8plusb | sparcv9b)
4087 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4088 sparcv9v)
4089 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4090 sparcv9v2)
4091 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4092 sparc64)
4093 base_machine=sparc machine=sparc/sparc64 ;;
4094 sparc64b)
4095 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4096 sparc64v)
4097 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4098 sparc64v2)
4099 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4100 *) base_machine=$machine ;;
4101 esac
4104 if test "$base_machine" = "i386"; then
4105 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4109 # For the multi-arch option we need support in the assembler.
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4111 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4112 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat > conftest.s <<EOF
4116 .type foo,%gnu_indirect_function
4118 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4119 then
4120 libc_cv_asm_gnu_indirect_function=yes
4121 else
4122 libc_cv_asm_gnu_indirect_function=no
4124 rm -f conftest*
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4127 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4130 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4131 if test "${libc_cv_dot_text+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat > conftest.s <<EOF
4135 .text
4137 libc_cv_dot_text=
4138 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; }; then
4144 libc_cv_dot_text=.text
4146 rm -f conftest*
4149 if test -z "$libc_cv_dot_text"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154 $as_echo "yes" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4158 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4159 if test "${libc_cv_asm_global_directive+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 libc_cv_asm_global_directive=UNKNOWN
4163 for ac_globl in .globl .global .EXPORT; do
4164 cat > conftest.s <<EOF
4165 ${libc_cv_dot_text}
4166 ${ac_globl} foo
4167 foo:
4169 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4175 libc_cv_asm_global_directive=${ac_globl}
4177 rm -f conftest*
4178 test $libc_cv_asm_global_directive != UNKNOWN && break
4179 done
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4182 $as_echo "$libc_cv_asm_global_directive" >&6; }
4183 if test $libc_cv_asm_global_directive = UNKNOWN; then
4184 as_fn_error $? "cannot determine asm global directive" "$LINENO" 5
4185 else
4186 cat >>confdefs.h <<_ACEOF
4187 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4188 _ACEOF
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4193 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4194 if test "${libc_cv_asm_type_prefix+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 libc_cv_asm_type_prefix=no
4198 for ac_try_prefix in '@' '%' '#'; do
4199 cat > conftest.s <<EOF
4200 ${libc_cv_dot_text}
4201 ${libc_cv_asm_global_directive} foo
4202 .type foo, ${ac_try_prefix}object
4203 .size foo, 1
4204 foo:
4205 .byte 1
4207 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; }; then
4213 libc_cv_asm_type_prefix=${ac_try_prefix}
4215 rm -f conftest*
4216 test "x$libc_cv_asm_type_prefix" != xno && break
4217 done
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4220 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4221 if test "x$libc_cv_asm_type_prefix" != xno; then
4222 cat >>confdefs.h <<_ACEOF
4223 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4224 _ACEOF
4228 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4229 if test x"$multi_arch" = xyes; then
4230 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4231 else
4232 multi_arch=no
4235 if test x"$multi_arch" != xno; then
4236 multi_arch_d=/multiarch
4239 # Compute the list of sysdep directories for this configuration.
4240 # This can take a while to compute.
4241 sysdep_dir=$srcdir/sysdeps
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4243 $as_echo_n "checking sysdep dirs... " >&6; }
4244 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4245 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4247 test "x$base_os" != x || case "$os" in
4248 gnu*)
4249 base_os=mach/hurd ;;
4250 netbsd* | 386bsd* | freebsd* | bsdi*)
4251 base_os=unix/bsd/bsd4.4 ;;
4252 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4253 base_os=unix/bsd ;;
4254 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4255 base_os=unix/sysv ;;
4256 irix6*)
4257 base_os=unix/sysv/irix6/$os ;;
4258 solaris[2-9]*)
4259 base_os=unix/sysv/sysv4 ;;
4260 hpux*)
4261 base_os=unix/sysv/hpux/$os ;;
4262 aix4.3*)
4263 base_os=unix/sysv/aix/aix4.3 ;;
4264 none)
4265 base_os=standalone ;;
4266 esac
4268 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4269 tail=$os
4270 ostry=$os
4271 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4272 ostry="$ostry /$o"
4273 tail=$o
4274 done
4275 o=`echo $tail | sed 's/[0-9]*$//'`
4276 if test $o != $tail; then
4277 ostry="$ostry /$o"
4279 # For linux-gnu, try linux-gnu, then linux.
4280 o=`echo $tail | sed 's/-.*$//'`
4281 if test $o != $tail; then
4282 ostry="$ostry /$o"
4285 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4286 base=
4287 tail=$base_os
4288 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4289 set $b
4290 base="$base /$1"
4291 tail="$2"
4292 done
4294 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4295 mach=
4296 tail=$machine${submachine:+/$submachine}
4297 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4298 set $m
4299 # Prepend the machine's FPU directory unless --without-fp.
4300 if test "$with_fp" = yes; then
4301 mach="$mach /$1/fpu"
4302 else
4303 mach="$mach /$1/nofpu"
4305 mach="$mach /$1"
4306 tail="$2"
4307 done
4310 # Find what sysdep directories exist.
4311 sysnames_add_ons=
4312 sysnames=
4313 for b in $base ''; do
4314 for m0 in $mach ''; do
4315 for v in /$vendor ''; do
4316 test "$v" = / && continue
4317 for o in /$ostry ''; do
4318 test "$o" = / && continue
4319 for m in $multi_arch_d $mach ''; do
4320 for d in $add_ons_pfx ''; do
4321 for a in $add_ons_sfx ''; do
4322 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4323 try_srcdir="${srcdir}/"
4324 case "$d" in
4325 /*) try_srcdir= ;;
4326 esac
4327 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4328 test -n "$enable_debug_configure" &&
4329 echo "$0 DEBUG: try $try" >&2
4330 if test -d "$try_srcdir$try"; then
4331 sysnames="$sysnames $try"
4332 { test -n "$o" || test -n "$b"; } && os_used=t
4333 { test -n "$m" || test -n "$m0"; } && machine_used=t
4334 case x${m0:-$m} in
4335 x*/$submachine) submachine_used=t ;;
4336 esac
4337 if test -n "$d"; then
4338 case "$sysnames_add_ons" in
4339 *" $d "*) ;;
4340 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4341 esac
4345 done
4346 done
4347 done
4348 done
4349 done
4350 done
4351 done
4353 # If the assembler supports gnu_indirect_function symbol type and the
4354 # architecture supports multi-arch, we enable multi-arch by default.
4355 case $sysnames_add_ons$sysnames in
4356 *"$multi_arch_d"*)
4359 test x"$multi_arch" = xdefault && multi_arch=no
4361 esac
4362 if test x"$multi_arch" != xno; then
4363 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4368 if test -z "$os_used" && test "$os" != none; then
4369 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4371 if test -z "$machine_used" && test "$machine" != none; then
4372 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4374 if test -z "$submachine_used" && test -n "$submachine"; then
4375 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4379 # We have now validated the configuration.
4382 # If using ELF, look for an `elf' subdirectory of each machine directory.
4383 # We prepend these rather than inserting them whereever the machine appears
4384 # because things specified by the machine's ELF ABI should override
4385 # OS-specific things, and should always be the same for any OS on the
4386 # machine (otherwise what's the point of an ABI?).
4387 if test "$elf" = yes; then
4388 elf_dirs=
4389 for d in $add_ons_pfx ''; do
4390 for m in $mach; do
4391 if test -d $srcdir/${d}sysdeps$m/elf; then
4392 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4394 done
4395 done
4396 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4400 # Expand the list of system names into a full list of directories
4401 # from each element's parent name and Implies file (if present).
4402 set $sysnames
4403 names=
4404 while test $# -gt 0; do
4405 name=$1
4406 shift
4408 case " $names " in *" $name "*)
4409 # Already in the list.
4410 continue
4411 esac
4413 # Report each name as we discover it, so there is no long pause in output.
4414 echo $ECHO_N "$name $ECHO_C" >&6
4416 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4418 case $name in
4419 /*) xsrcdir= ;;
4420 *) xsrcdir=$srcdir/ ;;
4421 esac
4422 test -n "$enable_debug_configure" &&
4423 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4425 if test -f $xsrcdir$name/Implies; then
4426 # Collect more names from the `Implies' file (removing comments).
4427 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4428 implied=
4429 for x in $implied_candidate; do
4430 found=no
4431 if test -d $xsrcdir$name_base/$x; then
4432 implied="$implied $name_base/$x";
4433 found=yes
4435 for d in $add_ons_pfx ''; do
4436 try="${d}sysdeps/$x"
4437 case $d in
4438 /*) try_srcdir= ;;
4439 *) try_srcdir=$srcdir/ ;;
4440 esac
4441 test -n "$enable_debug_configure" &&
4442 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4443 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4444 then
4445 implied="$implied $try"
4446 found=yes
4447 case "$sysnames_add_ons" in
4448 *" $d "*) ;;
4449 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4450 esac
4452 done
4453 if test $found = no; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4455 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4457 done
4458 else
4459 implied=
4462 # Add NAME to the list of names.
4463 names="$names $name"
4465 # Find the parent of NAME, using the empty string if it has none.
4466 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4468 # Add the names implied by NAME, and NAME's parent (if it has one), to
4469 # the list of names to be processed (the argument list). We prepend the
4470 # implied names to the list and append the parent. We want implied
4471 # directories to come before further directories inferred from the
4472 # configuration components; this ensures that for sysv4, unix/common
4473 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4474 # after sysv4).
4475 sysnames="`echo $implied $* $parent`"
4476 test -n "$sysnames" && set $sysnames
4477 done
4479 # Add the default directories.
4480 default_sysnames=sysdeps/generic
4481 if test "$elf" = yes; then
4482 default_sysnames="sysdeps/generic/elf $default_sysnames"
4484 sysnames="$names $default_sysnames"
4486 # The other names were emitted during the scan.
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4488 $as_echo "$default_sysnames" >&6; }
4490 # Collect the list of add-ons that supply partial sysdeps trees.
4491 sysdeps_add_ons=
4492 for add_on in $add_ons; do
4493 case "$add_on" in
4494 /*) xsrcdir= ;;
4495 *) xsrcdir="$srcdir/" ;;
4496 esac
4498 test -d "$xsrcdir$add_on/sysdeps" || {
4499 case "$configured_add_ons " in
4500 *" $add_on "*) ;;
4501 *|'')
4502 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4504 esac
4505 continue
4508 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4509 case "$sysnames_add_ons" in
4510 *" $add_on/ "*) ;;
4511 *|'')
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4513 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4514 continue ;;
4515 esac
4517 found=no
4518 for d in $sysnames; do
4519 case "$d" in
4520 $add_on/sysdeps/*) ;;
4521 *) continue ;;
4522 esac
4523 (cd "$xsrcdir$d" && for f in *[!~]; do
4524 case "$f" in
4525 sys|bits)
4526 for ff in $f/*.h; do
4527 test -d "$ff" || { test -e "$ff" && exit 88; }
4528 done
4531 test -d "$f" || { test -e "$f" && exit 88; }
4533 esac
4534 done)
4535 if test $? -eq 88; then
4536 found=yes
4537 break
4539 done
4540 if test $found = no; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4542 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4544 done
4548 ### Locate tools.
4550 # Find a good install program. We prefer a C program (faster),
4551 # so one script is as good as another. But avoid the broken or
4552 # incompatible versions:
4553 # SysV /etc/install, /usr/sbin/install
4554 # SunOS /usr/etc/install
4555 # IRIX /sbin/install
4556 # AIX /bin/install
4557 # AmigaOS /C/install, which installs bootblocks on floppy discs
4558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4561 # OS/2's system install, which has a completely different semantic
4562 # ./install, which can be erroneously created by make from ./install.sh.
4563 # Reject install programs that cannot install multiple files.
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4565 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4566 if test -z "$INSTALL"; then
4567 if test "${ac_cv_path_install+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 # Account for people who put trailing slashes in PATH elements.
4576 case $as_dir/ in #((
4577 ./ | .// | /[cC]/* | \
4578 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4579 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4580 /usr/ucb/* ) ;;
4582 # OSF1 and SCO ODT 3.0 have their own names for install.
4583 # Don't use installbsd from OSF since it installs stuff as root
4584 # by default.
4585 for ac_prog in ginstall scoinst install; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4588 if test $ac_prog = install &&
4589 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4590 # AIX install. It has an incompatible calling convention.
4592 elif test $ac_prog = install &&
4593 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4594 # program-specific install script used by HP pwplus--don't use.
4596 else
4597 rm -rf conftest.one conftest.two conftest.dir
4598 echo one > conftest.one
4599 echo two > conftest.two
4600 mkdir conftest.dir
4601 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4602 test -s conftest.one && test -s conftest.two &&
4603 test -s conftest.dir/conftest.one &&
4604 test -s conftest.dir/conftest.two
4605 then
4606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4607 break 3
4611 done
4612 done
4614 esac
4616 done
4617 IFS=$as_save_IFS
4619 rm -rf conftest.one conftest.two conftest.dir
4622 if test "${ac_cv_path_install+set}" = set; then
4623 INSTALL=$ac_cv_path_install
4624 else
4625 # As a last resort, use the slow shell script. Don't cache a
4626 # value for INSTALL within a source directory, because that will
4627 # break other packages using the cache if that directory is
4628 # removed, or if the value is a relative name.
4629 INSTALL=$ac_install_sh
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4633 $as_echo "$INSTALL" >&6; }
4635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4636 # It thinks the first close brace ends the variable substitution.
4637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4643 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4644 # The makefiles need to use a different form to find it in $srcdir.
4645 INSTALL='\$(..)./scripts/install-sh -c'
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4648 $as_echo_n "checking whether ln -s works... " >&6; }
4649 LN_S=$as_ln_s
4650 if test "$LN_S" = "ln -s"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652 $as_echo "yes" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4655 $as_echo "no, using $LN_S" >&6; }
4659 # Was a --with-binutils option given?
4660 if test -n "$path_binutils"; then
4661 # Make absolute; ensure a single trailing slash.
4662 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4663 CC="$CC -B$path_binutils"
4665 AS=`$CC -print-prog-name=as`
4666 LD=`$CC -print-prog-name=ld`
4667 AR=`$CC -print-prog-name=ar`
4669 OBJDUMP=`$CC -print-prog-name=objdump`
4672 # ranlib has to be treated a bit differently since it might not exist at all.
4673 ac_ranlib=`$CC -print-prog-name=ranlib`
4674 if test "x$ac_ranlib" = xranlib; then
4675 # This extra check has to happen since gcc simply echos the parameter in
4676 # case it cannot find the value in its own directories.
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$RANLIB"; then
4686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4699 done
4700 done
4701 IFS=$as_save_IFS
4705 RANLIB=$ac_cv_prog_RANLIB
4706 if test -n "$RANLIB"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4708 $as_echo "$RANLIB" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 if test -z "$ac_cv_prog_RANLIB"; then
4717 ac_ct_RANLIB=$RANLIB
4718 # Extract the first word of "ranlib", so it can be a program name with args.
4719 set dummy ranlib; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_RANLIB"; then
4726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_ac_ct_RANLIB="ranlib"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4746 if test -n "$ac_ct_RANLIB"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4748 $as_echo "$ac_ct_RANLIB" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4754 if test "x$ac_ct_RANLIB" = x; then
4755 RANLIB=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 RANLIB=$ac_ct_RANLIB
4765 else
4766 RANLIB="$ac_cv_prog_RANLIB"
4769 else
4770 RANLIB=$ac_ranlib
4774 # Determine whether we are using GNU binutils.
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4776 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4777 if test "${libc_cv_prog_as_gnu+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 # Most GNU programs take a -v and spit out some text including
4781 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4782 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4783 libc_cv_prog_as_gnu=yes
4784 else
4785 libc_cv_prog_as_gnu=no
4787 rm -fr contest*
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4790 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4791 rm -f a.out
4792 gnu_as=$libc_cv_prog_as_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4795 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4796 if test "${libc_cv_prog_ld_gnu+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 # Most GNU programs take a -v and spit out some text including
4800 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4801 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4802 libc_cv_prog_ld_gnu=yes
4803 else
4804 libc_cv_prog_ld_gnu=no
4806 rm -fr contest*
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4809 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4810 gnu_ld=$libc_cv_prog_ld_gnu
4813 # Accept binutils 2.13 or newer.
4814 for ac_prog in $AS
4816 # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_AS+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$AS"; then
4824 ac_cv_prog_AS="$AS" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_AS="$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 AS=$ac_cv_prog_AS
4844 if test -n "$AS"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4846 $as_echo "$AS" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 test -n "$AS" && break
4854 done
4856 if test -z "$AS"; then
4857 ac_verc_fail=yes
4858 else
4859 # Found it, now check the version.
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4861 $as_echo_n "checking version of $AS... " >&6; }
4862 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4863 case $ac_prog_version in
4864 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4865 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4866 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4867 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4869 esac
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4871 $as_echo "$ac_prog_version" >&6; }
4873 if test $ac_verc_fail = yes; then
4874 AS=: critic_missing="$critic_missing as"
4877 for ac_prog in $LD
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_LD+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$LD"; then
4887 ac_cv_prog_LD="$LD" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_LD="$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 LD=$ac_cv_prog_LD
4907 if test -n "$LD"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4909 $as_echo "$LD" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4916 test -n "$LD" && break
4917 done
4919 if test -z "$LD"; then
4920 ac_verc_fail=yes
4921 else
4922 # Found it, now check the version.
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4924 $as_echo_n "checking version of $LD... " >&6; }
4925 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4926 case $ac_prog_version in
4927 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4928 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4929 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4930 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4932 esac
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4934 $as_echo "$ac_prog_version" >&6; }
4936 if test $ac_verc_fail = yes; then
4937 LD=: critic_missing="$critic_missing ld"
4941 # We need the physical current working directory. We cannot use the
4942 # "pwd -P" shell builtin since that's not portable. Instead we try to
4943 # find a pwd binary. Note that assigning to the PWD environment
4944 # variable might have some interesting side effects, so we don't do
4945 # that.
4946 # Extract the first word of "pwd", so it can be a program name with args.
4947 set dummy pwd; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_path_PWD_P+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 case $PWD_P in
4954 [\\/]* | ?:[\\/]*)
4955 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4973 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4975 esac
4977 PWD_P=$ac_cv_path_PWD_P
4978 if test -n "$PWD_P"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4980 $as_echo "$PWD_P" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 if test "$PWD_P" = no; then
4988 as_fn_error $? "*** A pwd binary could not be found." "$LINENO" 5
4991 # These programs are version sensitive.
4993 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_CC="$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 CC=$ac_cv_prog_CC
5023 if test -n "$CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5025 $as_echo "$CC" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 test -n "$CC" && break
5033 done
5035 if test -z "$CC"; then
5036 ac_verc_fail=yes
5037 else
5038 # Found it, now check the version.
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
5040 $as_echo_n "checking version of $CC... " >&6; }
5041 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5042 case $ac_prog_version in
5043 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5044 3.4* | 4.[0-9]* )
5045 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5046 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5048 esac
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5050 $as_echo "$ac_prog_version" >&6; }
5052 if test $ac_verc_fail = yes; then
5053 critic_missing="$critic_missing gcc"
5056 for ac_prog in gnumake gmake make
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_MAKE+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$MAKE"; then
5066 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_MAKE="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 MAKE=$ac_cv_prog_MAKE
5086 if test -n "$MAKE"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5088 $as_echo "$MAKE" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$MAKE" && break
5096 done
5098 if test -z "$MAKE"; then
5099 ac_verc_fail=yes
5100 else
5101 # Found it, now check the version.
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5103 $as_echo_n "checking version of $MAKE... " >&6; }
5104 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5105 case $ac_prog_version in
5106 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5107 3.79* | 3.[89]*)
5108 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5109 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5111 esac
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5113 $as_echo "$ac_prog_version" >&6; }
5115 if test $ac_verc_fail = yes; then
5116 critic_missing="$critic_missing make"
5120 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5122 # Extract the first word of "$ac_prog", so it can be a program name with args.
5123 set dummy $ac_prog; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_MSGFMT+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$MSGFMT"; then
5130 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_MSGFMT="$ac_prog"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 MSGFMT=$ac_cv_prog_MSGFMT
5150 if test -n "$MSGFMT"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5152 $as_echo "$MSGFMT" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 test -n "$MSGFMT" && break
5160 done
5162 if test -z "$MSGFMT"; then
5163 ac_verc_fail=yes
5164 else
5165 # Found it, now check the version.
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5167 $as_echo_n "checking version of $MSGFMT... " >&6; }
5168 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5169 case $ac_prog_version in
5170 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5171 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5172 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5173 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5175 esac
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5177 $as_echo "$ac_prog_version" >&6; }
5179 if test $ac_verc_fail = yes; then
5180 MSGFMT=: aux_missing="$aux_missing msgfmt"
5183 for ac_prog in makeinfo
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$MAKEINFO"; then
5193 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_MAKEINFO="$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5212 MAKEINFO=$ac_cv_prog_MAKEINFO
5213 if test -n "$MAKEINFO"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5215 $as_echo "$MAKEINFO" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 test -n "$MAKEINFO" && break
5223 done
5225 if test -z "$MAKEINFO"; then
5226 ac_verc_fail=yes
5227 else
5228 # Found it, now check the version.
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5230 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5231 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232 case $ac_prog_version in
5233 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5234 4.*)
5235 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5236 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5238 esac
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5240 $as_echo "$ac_prog_version" >&6; }
5242 if test $ac_verc_fail = yes; then
5243 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5246 for ac_prog in sed
5248 # Extract the first word of "$ac_prog", so it can be a program name with args.
5249 set dummy $ac_prog; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_SED+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$SED"; then
5256 ac_cv_prog_SED="$SED" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_SED="$ac_prog"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 SED=$ac_cv_prog_SED
5276 if test -n "$SED"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5278 $as_echo "$SED" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5285 test -n "$SED" && break
5286 done
5288 if test -z "$SED"; then
5289 ac_verc_fail=yes
5290 else
5291 # Found it, now check the version.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5293 $as_echo_n "checking version of $SED... " >&6; }
5294 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5295 case $ac_prog_version in
5296 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5297 3.0[2-9]*|3.[1-9]*|[4-9]*)
5298 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5299 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5301 esac
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5303 $as_echo "$ac_prog_version" >&6; }
5305 if test $ac_verc_fail = yes; then
5306 SED=: aux_missing="$aux_missing sed"
5310 for ac_prog in autoconf
5312 # Extract the first word of "$ac_prog", so it can be a program name with args.
5313 set dummy $ac_prog; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$AUTOCONF"; then
5320 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_AUTOCONF="$ac_prog"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5335 IFS=$as_save_IFS
5339 AUTOCONF=$ac_cv_prog_AUTOCONF
5340 if test -n "$AUTOCONF"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5342 $as_echo "$AUTOCONF" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 test -n "$AUTOCONF" && break
5350 done
5351 test -n "$AUTOCONF" || AUTOCONF="no"
5353 case "x$AUTOCONF" in
5354 xno|x|x:) AUTOCONF=no ;;
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5357 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5358 if test "${libc_cv_autoconf_works+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5362 libc_cv_autoconf_works=yes
5363 else
5364 libc_cv_autoconf_works=no
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5368 $as_echo "$libc_cv_autoconf_works" >&6; }
5369 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5371 esac
5372 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5373 # If --without-cvs they probably won't change configure.in, so no complaints.
5374 aux_missing="$aux_missing autoconf"
5377 test -n "$critic_missing" && as_fn_error $? "
5378 *** These critical programs are missing or too old:$critic_missing
5379 *** Check the INSTALL file for required versions." "$LINENO" 5
5381 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5382 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5383 *** some features will be disabled.
5384 *** Check the INSTALL file for required versions." >&5
5385 $as_echo "$as_me: WARNING:
5386 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5387 *** some features will be disabled.
5388 *** Check the INSTALL file for required versions." >&2;}
5390 # if using special system headers, find out the compiler's sekrit
5391 # header directory and add that to the list. NOTE: Only does the right
5392 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5393 if test -n "$sysheaders"; then
5394 SYSINCLUDES=-nostdinc
5395 for d in include include-fixed; do
5396 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5397 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5398 done
5399 SYSINCLUDES="$SYSINCLUDES \
5400 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5401 if test -n "$CXX"; then
5402 cxxversion=`$CXX -dumpversion 2>&5` &&
5403 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5404 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5405 CXX_SYSINCLUDES="-isystem $cxxheaders \
5406 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5412 # check if ranlib is necessary
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ranlib is necessary" >&5
5414 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5415 if test "${libc_cv_ranlib_necessary+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat > conftest.c <<EOF
5419 int a;
5420 char b;
5421 void c(void) {}
5423 $CC $CFLAGS $CPPFLAGS -c conftest.c
5424 $AR cr conftest.a conftest.o
5425 cp conftest.a conftest2.a
5426 $RANLIB conftest.a
5427 if cmp -s conftest.a conftest2.a; then
5428 libc_cv_ranlib_necessary=no
5429 else
5430 libc_cv_ranlib_necessary=yes
5432 rm -rf conftest*
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ranlib_necessary" >&5
5435 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5436 if test "$libc_cv_ranlib_necessary" = no; then
5437 RANLIB=:
5440 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5441 # since this would lead to problems installing/building glibc.
5442 # LD_LIBRARY_PATH contains the current directory if one of the following
5443 # is true:
5444 # - one of the terminals (":" and ";") is the first or last sign
5445 # - two terminals occur directly after each other
5446 # - the path contains an element with a dot in it
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5448 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5449 case ${LD_LIBRARY_PATH} in
5450 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5451 ld_library_path_setting="contains current directory"
5454 ld_library_path_setting="ok"
5456 esac
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5458 $as_echo "$ld_library_path_setting" >&6; }
5459 if test "$ld_library_path_setting" != "ok"; then
5460 as_fn_error $? "
5461 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5462 *** building glibc. Please change the environment variable
5463 *** and run configure again." "$LINENO" 5
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5467 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5468 if test "${libc_cv_gcc_static_libgcc+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5472 libc_cv_gcc_static_libgcc=
5473 else
5474 libc_cv_gcc_static_libgcc=-static-libgcc
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5478 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5481 # Extract the first word of "bash", so it can be a program name with args.
5482 set dummy bash; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_path_BASH_SHELL+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 case $BASH_SHELL in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5504 done
5505 done
5506 IFS=$as_save_IFS
5508 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5510 esac
5512 BASH_SHELL=$ac_cv_path_BASH_SHELL
5513 if test -n "$BASH_SHELL"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5515 $as_echo "$BASH_SHELL" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5522 if test "$BASH_SHELL" != no &&
5523 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5524 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5525 libc_cv_have_bash2=yes
5526 else
5527 libc_cv_have_bash2=no
5531 if test "$BASH_SHELL" = no; then
5532 # Extract the first word of "ksh", so it can be a program name with args.
5533 set dummy ksh; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if test "${ac_cv_path_KSH+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 case $KSH in
5540 [\\/]* | ?:[\\/]*)
5541 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5559 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5561 esac
5563 KSH=$ac_cv_path_KSH
5564 if test -n "$KSH"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5566 $as_echo "$KSH" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 if test "$KSH" = no; then
5574 libc_cv_have_ksh=no
5575 else
5576 libc_cv_have_ksh=yes
5578 else
5579 KSH="$BASH_SHELL"
5581 libc_cv_have_ksh=yes
5585 for ac_prog in gawk mawk nawk awk
5587 # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_AWK+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if test -n "$AWK"; then
5595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_AWK="$ac_prog"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5608 done
5609 done
5610 IFS=$as_save_IFS
5614 AWK=$ac_cv_prog_AWK
5615 if test -n "$AWK"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5617 $as_echo "$AWK" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5624 test -n "$AWK" && break
5625 done
5627 # Extract the first word of "perl", so it can be a program name with args.
5628 set dummy perl; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_path_PERL+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 case $PERL in
5635 [\\/]* | ?:[\\/]*)
5636 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5654 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5656 esac
5658 PERL=$ac_cv_path_PERL
5659 if test -n "$PERL"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5661 $as_echo "$PERL" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5668 if test "$PERL" != no &&
5669 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5670 PERL=no
5672 # Extract the first word of "install-info", so it can be a program name with args.
5673 set dummy install-info; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 case $INSTALL_INFO in
5680 [\\/]* | ?:[\\/]*)
5681 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5686 for as_dir in $as_dummy
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5700 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5702 esac
5704 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5705 if test -n "$INSTALL_INFO"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5707 $as_echo "$INSTALL_INFO" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5714 # Extract the first word of "bison", so it can be a program name with args.
5715 set dummy bison; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if test "${ac_cv_path_BISON+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 case $BISON in
5722 [\\/]* | ?:[\\/]*)
5723 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5728 for as_dir in $as_dummy
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5742 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5744 esac
5746 BISON=$ac_cv_path_BISON
5747 if test -n "$BISON"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5749 $as_echo "$BISON" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5758 $as_echo_n "checking for signed size_t type... " >&6; }
5759 if test "${libc_cv_signed_size_t+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 echo '#include <stddef.h>
5763 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5764 if eval "$ac_cpp conftest.c 2>/dev/null" \
5765 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5766 libc_cv_signed_size_t=no
5767 else
5768 libc_cv_signed_size_t=yes
5770 rm -f conftest*
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5773 $as_echo "$libc_cv_signed_size_t" >&6; }
5774 if test $libc_cv_signed_size_t = yes; then
5775 cat >> confdefs.h <<\EOF
5776 #undef __SIZE_TYPE__
5777 #define __SIZE_TYPE__ unsigned
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5782 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5783 if test "${libc_cv_friendly_stddef+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #define __need_size_t
5789 #define __need_wchar_t
5790 #include <stddef.h>
5791 #define __need_NULL
5792 #include <stddef.h>
5794 main ()
5796 size_t size; wchar_t wchar;
5797 #ifdef offsetof
5798 #error stddef.h ignored __need_*
5799 #endif
5800 if (&size == NULL || &wchar == NULL) abort ();
5802 return 0;
5804 _ACEOF
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 libc_cv_friendly_stddef=yes
5807 else
5808 libc_cv_friendly_stddef=no
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5813 $as_echo "$libc_cv_friendly_stddef" >&6; }
5814 if test $libc_cv_friendly_stddef = yes; then
5815 config_vars="$config_vars
5816 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5820 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5821 if test "${libc_cv_need_minus_P+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat > conftest.S <<EOF
5825 #include "confdefs.h"
5826 /* Nothing whatsoever. */
5828 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }; }; then
5834 libc_cv_need_minus_P=no
5835 else
5836 libc_cv_need_minus_P=yes
5838 rm -f conftest*
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5841 $as_echo "$libc_cv_need_minus_P" >&6; }
5842 if test $libc_cv_need_minus_P = yes; then
5843 config_vars="$config_vars
5844 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5848 $as_echo_n "checking for .set assembler directive... " >&6; }
5849 if test "${libc_cv_asm_set_directive+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat > conftest.s <<EOF
5853 ${libc_cv_dot_text}
5854 foo:
5855 .set glibc_conftest_frobozz,foo
5856 $libc_cv_asm_global_directive glibc_conftest_frobozz
5858 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5859 # (but it doesn't work), so we must do a linking check to be sure.
5860 cat > conftest1.c <<\EOF
5861 extern int glibc_conftest_frobozz;
5862 void _start() { glibc_conftest_frobozz = 1; }
5864 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5865 -nostartfiles -nostdlib \
5866 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5867 libc_cv_asm_set_directive=yes
5868 else
5869 libc_cv_asm_set_directive=no
5871 rm -f conftest*
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5874 $as_echo "$libc_cv_asm_set_directive" >&6; }
5875 if test $libc_cv_asm_set_directive = yes; then
5876 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5881 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5882 if test "${libc_cv_asm_unique_object+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 cat > conftest.s <<EOF
5886 ${libc_cv_dot_text}
5887 _sym:
5888 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5890 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5891 libc_cv_asm_unique_object=yes
5892 else
5893 libc_cv_asm_unique_object=no
5895 rm -f conftest*
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5898 $as_echo "$libc_cv_asm_unique_object" >&6; }
5899 if test $libc_cv_asm_unique_object = yes; then
5900 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5905 $as_echo_n "checking for .symver assembler directive... " >&6; }
5906 if test "${libc_cv_asm_symver_directive+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat > conftest.s <<EOF
5910 ${libc_cv_dot_text}
5911 _sym:
5912 .symver _sym,sym@VERS
5914 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5915 libc_cv_asm_symver_directive=yes
5916 else
5917 libc_cv_asm_symver_directive=no
5919 rm -f conftest*
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5922 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5924 $as_echo_n "checking for ld --version-script... " >&6; }
5925 if test "${libc_cv_ld_version_script_option+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test $libc_cv_asm_symver_directive = yes; then
5929 cat > conftest.s <<EOF
5930 ${libc_cv_dot_text}
5931 _sym:
5932 .symver _sym,sym@VERS
5934 cat > conftest.map <<EOF
5935 VERS_1 {
5936 global: sym;
5939 VERS_2 {
5940 global: sym;
5941 } VERS_1;
5943 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5944 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5945 -o conftest.so conftest.o
5946 -nostartfiles -nostdlib
5947 -Wl,--version-script,conftest.map
5948 1>&5'
5949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953 test $ac_status = 0; }; };
5954 then
5955 libc_cv_ld_version_script_option=yes
5956 else
5957 libc_cv_ld_version_script_option=no
5959 else
5960 libc_cv_ld_version_script_option=no
5962 else
5963 libc_cv_ld_version_script_option=no
5965 rm -f conftest*
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5968 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5969 if test $shared != no &&
5970 test $libc_cv_asm_symver_directive = yes &&
5971 test $libc_cv_ld_version_script_option = yes &&
5972 test $enable_versioning = yes; then
5973 VERSIONING=yes
5974 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5976 else
5977 VERSIONING=no
5981 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5982 echo "\
5983 *** WARNING: You should not compile GNU libc without versioning. Not using
5984 *** versioning will introduce incompatibilities so that old binaries
5985 *** will not run anymore.
5986 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5988 if test $elf = yes; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5990 $as_echo_n "checking for .previous assembler directive... " >&6; }
5991 if test "${libc_cv_asm_previous_directive+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 cat > conftest.s <<EOF
5995 .section foo_section
5996 .previous
5998 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; }; then
6004 libc_cv_asm_previous_directive=yes
6005 else
6006 libc_cv_asm_previous_directive=no
6008 rm -f conftest*
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
6011 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6012 if test $libc_cv_asm_previous_directive = yes; then
6013 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
6017 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6018 if test "${libc_cv_asm_popsection_directive+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat > conftest.s <<EOF
6022 .pushsection foo_section
6023 .popsection
6025 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030 test $ac_status = 0; }; }; then
6031 libc_cv_asm_popsection_directive=yes
6032 else
6033 libc_cv_asm_popsection_directive=no
6035 rm -f conftest*
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
6038 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6039 if test $libc_cv_asm_popsection_directive = yes; then
6040 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
6045 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6046 if test "${libc_cv_asm_protected_directive+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 cat > conftest.s <<EOF
6050 .protected foo
6051 foo:
6052 .hidden bar
6053 bar:
6055 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }; }; then
6061 libc_cv_asm_protected_directive=yes
6062 else
6063 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
6065 rm -f conftest*
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
6068 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6070 if test $libc_cv_asm_protected_directive = yes; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
6072 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6073 if test "${libc_cv_visibility_attribute+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 cat > conftest.c <<EOF
6077 int foo __attribute__ ((visibility ("hidden"))) = 1;
6078 int bar __attribute__ ((visibility ("protected"))) = 1;
6080 libc_cv_visibility_attribute=no
6081 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; }; }; then
6087 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6088 if grep '\.protected.*bar' conftest.s >/dev/null; then
6089 libc_cv_visibility_attribute=yes
6093 rm -f conftest.cs
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6097 $as_echo "$libc_cv_visibility_attribute" >&6; }
6098 if test $libc_cv_visibility_attribute != yes; then
6099 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
6103 if test $libc_cv_visibility_attribute = yes; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6105 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6106 if test "${libc_cv_broken_visibility_attribute+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 cat > conftest.c <<EOF
6110 int foo (int x);
6111 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6112 int bar (int x) { return x; }
6114 libc_cv_broken_visibility_attribute=yes
6115 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; }; then
6121 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6122 libc_cv_broken_visibility_attribute=no
6125 rm -f conftest.c conftest.s
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6129 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6130 if test $libc_cv_broken_visibility_attribute = yes; then
6131 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6136 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6137 if test "${libc_cv_broken_alias_attribute+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 cat > conftest.c <<EOF
6141 extern int foo (int x) __asm ("xyzzy");
6142 int bar (int x) { return x; }
6143 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6144 extern int dfoo;
6145 extern __typeof (dfoo) dfoo __asm ("abccb");
6146 int dfoo = 1;
6148 libc_cv_broken_alias_attribute=yes
6149 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; }; then
6155 if grep 'xyzzy' conftest.s >/dev/null &&
6156 grep 'abccb' conftest.s >/dev/null; then
6157 libc_cv_broken_alias_attribute=no
6160 rm -f conftest.c conftest.s
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6164 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6165 if test $libc_cv_broken_alias_attribute = yes; then
6166 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6169 if test $libc_cv_visibility_attribute = yes; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6171 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6172 if test "${libc_cv_have_sdata_section+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 echo "int i;" > conftest.c
6176 libc_cv_have_sdata_section=no
6177 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6178 | grep '\.sdata' >/dev/null; then
6179 libc_cv_have_sdata_section=yes
6181 rm -f conftest.c conftest.so
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6185 $as_echo "$libc_cv_have_sdata_section" >&6; }
6186 if test $libc_cv_have_sdata_section = yes; then
6187 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6193 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6194 if test "${libc_cv_initfini_array+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 cat > conftest.c <<EOF
6198 int _start (void) { return 0; }
6199 int __start (void) { return 0; }
6200 int foo (void) { return 1; }
6201 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6203 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6204 -static -nostartfiles -nostdlib 1>&5'
6205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; }; }
6210 then
6211 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6212 libc_cv_initfini_array=yes
6213 else
6214 libc_cv_initfini_array=no
6216 else
6217 libc_cv_initfini_array=no
6219 rm -f conftest*
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6222 $as_echo "$libc_cv_initfini_array" >&6; }
6223 if test $libc_cv_initfini_array != yes; then
6224 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6225 elif { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&5'
6226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; }; }; then
6231 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6236 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6237 if test "${libc_cv_cc_with_libunwind+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6241 cat > conftest.c <<EOF
6242 int main (void) { return 0; }
6244 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6245 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6246 libc_cv_cc_with_libunwind=yes
6247 else
6248 libc_cv_cc_with_libunwind=no
6250 rm -f conftest*
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6253 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6255 if test $libc_cv_cc_with_libunwind = yes; then
6256 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6261 $as_echo_n "checking for -z nodelete option... " >&6; }
6262 if test "${libc_cv_z_nodelete+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 cat > conftest.c <<EOF
6266 int _start (void) { return 42; }
6268 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6269 -fPIC -shared -o conftest.so conftest.c
6270 -nostartfiles -nostdlib
6271 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }; }
6277 then
6278 libc_cv_z_nodelete=yes
6279 else
6280 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6282 rm -f conftest*
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6285 $as_echo "$libc_cv_z_nodelete" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6288 $as_echo_n "checking for -z nodlopen option... " >&6; }
6289 if test "${libc_cv_z_nodlopen+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 cat > conftest.c <<EOF
6293 int _start (void) { return 42; }
6295 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6296 -fPIC -shared -o conftest.so conftest.c
6297 -nostartfiles -nostdlib
6298 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; }; }
6304 then
6305 libc_cv_z_nodlopen=yes
6306 else
6307 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6309 rm -f conftest*
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6312 $as_echo "$libc_cv_z_nodlopen" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6315 $as_echo_n "checking for -z initfirst option... " >&6; }
6316 if test "${libc_cv_z_initfirst+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 cat > conftest.c <<EOF
6320 int _start (void) { return 42; }
6322 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6323 -fPIC -shared -o conftest.so conftest.c
6324 -nostartfiles -nostdlib
6325 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330 test $ac_status = 0; }; }
6331 then
6332 libc_cv_z_initfirst=yes
6333 else
6334 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6336 rm -f conftest*
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6339 $as_echo "$libc_cv_z_initfirst" >&6; }
6341 case "$base_machine" in
6342 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6344 $as_echo_n "checking for -z relro option... " >&6; }
6345 if test "${libc_cv_z_relro+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 libc_cv_z_relro=no
6349 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; }
6355 then
6356 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; }
6362 then
6363 libc_cv_z_relro=yes
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6368 $as_echo "$libc_cv_z_relro" >&6; }
6369 if test "$libc_cv_z_relro" = no; then
6370 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6373 *) ;;
6374 esac
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6377 $as_echo_n "checking for -Bgroup option... " >&6; }
6378 if test "${libc_cv_Bgroup+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat > conftest.c <<EOF
6382 int _start (void) { return 42; }
6384 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6385 -fPIC -shared -o conftest.so conftest.c
6386 -Wl,-Bgroup -nostdlib 1>&5'
6387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; }
6392 then
6393 libc_cv_Bgroup=yes
6394 else
6395 libc_cv_Bgroup=no
6397 rm -f conftest*
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6400 $as_echo "$libc_cv_Bgroup" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6404 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6405 if test "${libc_cv_libgcc_s_suffix+set}" = set; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 cat > conftest.c <<EOF
6409 int main (void) { return 0; }
6411 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6412 -fPIC -shared -shared-libgcc -o conftest.so \
6413 conftest.c -v 2>&1 >/dev/null \
6414 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6415 rm -f conftest*
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6418 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6422 $as_echo_n "checking for --as-needed option... " >&6; }
6423 if test "${libc_cv_as_needed+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat > conftest.c <<EOF
6427 int main (void) { return 0; }
6429 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6430 -fPIC -shared -o conftest.so conftest.c
6431 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6432 -nostdlib 1>&5'
6433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437 test $ac_status = 0; }; }
6438 then
6439 libc_cv_as_needed=yes
6440 else
6441 libc_cv_as_needed=no
6443 rm -f conftest*
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6446 $as_echo "$libc_cv_as_needed" >&6; }
6449 ASFLAGS_config=
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6451 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6452 if test "${libc_cv_as_noexecstack+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 cat > conftest.c <<EOF
6456 void foo (void) { }
6458 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6459 -S -o conftest.s conftest.c 1>&5'
6460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; } \
6465 && grep -q .note.GNU-stack conftest.s \
6466 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6467 -c -o conftest.o conftest.s 1>&5'
6468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; }
6473 then
6474 libc_cv_as_noexecstack=yes
6475 else
6476 libc_cv_as_noexecstack=no
6478 rm -f conftest*
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6481 $as_echo "$libc_cv_as_noexecstack" >&6; }
6482 if test $libc_cv_as_noexecstack = yes; then
6483 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6488 $as_echo_n "checking for -z combreloc... " >&6; }
6489 if test "${libc_cv_z_combreloc+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 cat > conftest.c <<EOF
6493 extern int bar (int);
6494 extern int mumble;
6495 int foo (void) { return bar (mumble); }
6497 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6498 -fPIC -shared -o conftest.so conftest.c
6499 -nostdlib -nostartfiles
6500 -Wl,-z,combreloc 1>&5'
6501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; }
6506 then
6507 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6508 libc_cv_z_combreloc=yes
6509 else
6510 libc_cv_z_combreloc=no
6512 else
6513 libc_cv_z_combreloc=no
6515 rm -f conftest*
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6518 $as_echo "$libc_cv_z_combreloc" >&6; }
6519 if test "$libc_cv_z_combreloc" = yes; then
6520 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6526 $as_echo_n "checking for -z execstack... " >&6; }
6527 if test "${libc_cv_z_execstack+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 cat > conftest.c <<EOF
6531 int _start (void) { return 42; }
6533 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6534 -fPIC -shared -o conftest.so conftest.c
6535 -Wl,-z,execstack -nostdlib
6536 1>&5'
6537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; }
6542 then
6543 libc_cv_z_execstack=yes
6544 else
6545 libc_cv_z_execstack=no
6547 rm -f conftest*
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6550 $as_echo "$libc_cv_z_execstack" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6554 $as_echo_n "checking for -fpie... " >&6; }
6555 if test "${libc_cv_fpie+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat > conftest.c <<EOF
6559 int foo;
6560 main () { return 0;}
6562 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6563 -o conftest conftest.c 1>&5'
6564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568 test $ac_status = 0; }; }
6569 then
6570 libc_cv_fpie=yes
6571 else
6572 libc_cv_fpie=no
6574 rm -f conftest*
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6577 $as_echo "$libc_cv_fpie" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6582 $as_echo_n "checking for --hash-style option... " >&6; }
6583 if test "${libc_cv_hashstyle+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 cat > conftest.c <<EOF
6587 int _start (void) { return 42; }
6589 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6590 -fPIC -shared -o conftest.so conftest.c
6591 -Wl,--hash-style=both -nostdlib 1>&5'
6592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; }
6597 then
6598 libc_cv_hashstyle=yes
6599 else
6600 libc_cv_hashstyle=no
6602 rm -f conftest*
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6605 $as_echo "$libc_cv_hashstyle" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6610 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6611 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 cat > conftest.c <<EOF
6615 int foo;
6617 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6618 conftest.c 1>&5'
6619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623 test $ac_status = 0; }; }
6624 then
6625 libc_cv_fno_toplevel_reorder=yes
6626 else
6627 libc_cv_fno_toplevel_reorder=no
6629 rm -f conftest*
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6632 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6633 if test $libc_cv_fno_toplevel_reorder = yes; then
6634 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6635 else
6636 fno_unit_at_a_time=-fno-unit-at-a-time
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6641 $as_echo_n "checking for -fstack-protector... " >&6; }
6642 if test "${libc_cv_ssp+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 cat > conftest.c <<EOF
6646 int foo;
6647 main () { return 0;}
6649 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6650 -o conftest conftest.c 1>&5'
6651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; }; }
6656 then
6657 libc_cv_ssp=yes
6658 else
6659 libc_cv_ssp=no
6661 rm -f conftest*
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6664 $as_echo "$libc_cv_ssp" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6668 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6669 if test "${libc_cv_gnu89_inline+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat > conftest.c <<EOF
6673 int foo;
6674 #ifdef __GNUC_GNU_INLINE__
6675 main () { return 0;}
6676 #else
6677 #error
6678 #endif
6680 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6681 -o conftest.s conftest.c 1>&5'
6682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; }
6687 then
6688 libc_cv_gnu89_inline=yes
6689 else
6690 libc_cv_gnu89_inline=no
6692 rm -f conftest*
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6695 $as_echo "$libc_cv_gnu89_inline" >&6; }
6696 if test $libc_cv_gnu89_inline = yes; then
6697 gnu89_inline=-fgnu89-inline
6698 else
6699 gnu89_inline=
6703 if test $elf != yes; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6705 $as_echo_n "checking for .init and .fini sections... " >&6; }
6706 if test "${libc_cv_have_initfini+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6713 main ()
6715 asm (".section .init");
6716 asm (".section .fini");
6717 asm ("${libc_cv_dot_text}");
6719 return 0;
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723 libc_cv_have_initfini=yes
6724 else
6725 libc_cv_have_initfini=no
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6730 $as_echo "$libc_cv_have_initfini" >&6; }
6731 if test $libc_cv_have_initfini = yes; then
6732 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6737 if test $elf = yes; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6739 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6740 if test "${libc_cv_have_section_quotes+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 cat > conftest.c <<EOF
6744 static const int foo
6745 __attribute__ ((section ("bar"))) = 1;
6747 if ${CC-cc} -S conftest.c -o conftest.s; then
6748 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6749 libc_cv_have_section_quotes=yes
6750 else
6751 libc_cv_have_section_quotes=no
6753 else
6754 libc_cv_have_section_quotes=unknown
6756 rm -f conftest.cs
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6760 $as_echo "$libc_cv_have_section_quotes" >&6; }
6761 if test $libc_cv_have_section_quotes = yes; then
6762 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6769 if test $elf = yes; then
6770 libc_cv_asm_underscores=no
6771 else
6772 if test $ac_cv_prog_cc_works = yes; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6774 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6775 if test "${libc_cv_asm_underscores+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 asm ("_glibc_foobar:");
6782 main ()
6784 glibc_foobar ();
6786 return 0;
6788 _ACEOF
6789 if ac_fn_c_try_link "$LINENO"; then :
6790 libc_cv_asm_underscores=yes
6791 else
6792 libc_cv_asm_underscores=no
6794 rm -f core conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6798 $as_echo "$libc_cv_asm_underscores" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6801 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6802 if test "${libc_cv_asm_underscores+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 cat > conftest.$ac_ext <<EOF
6806 #line $LINENO "configure"
6807 #include "confdefs.h"
6808 void underscore_test(void) {
6809 return; }
6811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6812 (eval $ac_compile) 2>&5
6813 ac_status=$?
6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815 test $ac_status = 0; }; then
6816 if grep _underscore_test conftest* >/dev/null; then
6817 rm -f conftest*
6818 libc_cv_asm_underscores=yes
6819 else
6820 rm -f conftest*
6821 libc_cv_asm_underscores=no
6823 else
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 rm -f conftest*
6827 libc_cv_asm_underscores=no
6829 rm -f conftest*
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6832 $as_echo "$libc_cv_asm_underscores" >&6; }
6835 if test $libc_cv_asm_underscores = no; then
6836 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
6840 if test $elf = yes; then
6841 libc_cv_weak_symbols=yes
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6845 $as_echo_n "checking for assembler .weak directive... " >&6; }
6846 if test "${libc_cv_asm_weak_directive+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat > conftest.s <<EOF
6850 ${libc_cv_dot_text}
6851 ${libc_cv_asm_global_directive} foo
6852 foo:
6853 .weak foo
6854 .weak bar; bar = foo
6856 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; }; }; then
6862 libc_cv_asm_weak_directive=yes
6863 else
6864 libc_cv_asm_weak_directive=no
6866 rm -f conftest*
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6869 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6871 if test $libc_cv_asm_weak_directive = no; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6873 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6874 if test "${libc_cv_asm_weakext_directive+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat > conftest.s <<EOF
6878 ${libc_cv_dot_text}
6879 ${libc_cv_asm_global_directive} foo
6880 foo:
6881 .weakext bar foo
6882 .weakext baz
6883 ${libc_cv_asm_global_directive} baz
6884 baz:
6886 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; }; then
6892 libc_cv_asm_weakext_directive=yes
6893 else
6894 libc_cv_asm_weakext_directive=no
6896 rm -f conftest*
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6899 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6901 fi # no .weak
6903 if test $libc_cv_asm_weak_directive = yes; then
6904 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6906 elif test $libc_cv_asm_weakext_directive = yes; then
6907 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
6912 $as_echo_n "checking whether CFI directives are supported... " >&6; }
6913 if test "${libc_cv_asm_cfi_directives+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 case $machine in
6917 sparc/sparc64*) cfi_offset=2047;;
6918 *) cfi_offset=0;;
6919 esac
6920 cat > conftest.s <<EOF
6921 .text
6922 .type func,%function
6923 func:
6924 .cfi_startproc
6925 .cfi_remember_state
6926 .cfi_rel_offset 1, $cfi_offset
6927 .cfi_endproc
6929 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934 test $ac_status = 0; }; }; then
6935 libc_cv_asm_cfi_directives=yes
6936 else
6937 libc_cv_asm_cfi_directives=no
6939 rm -f conftest*
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
6942 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
6943 if test $libc_cv_asm_cfi_directives = yes; then
6944 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6949 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6950 if test "${libc_cv_ld_no_whole_archive+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 cat > conftest.c <<\EOF
6954 _start () {}
6955 int __eh_pc;
6956 __throw () {}
6958 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6959 -nostdlib -nostartfiles -Wl,--no-whole-archive
6960 -o conftest conftest.c 1>&5'
6961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965 test $ac_status = 0; }; }; then
6966 libc_cv_ld_no_whole_archive=yes
6967 else
6968 libc_cv_ld_no_whole_archive=no
6970 rm -f conftest*
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6973 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6974 if test $libc_cv_ld_no_whole_archive = yes; then
6975 no_whole_archive=-Wl,--no-whole-archive
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6979 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6980 if test "${libc_cv_gcc_exceptions+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 cat > conftest.c <<\EOF
6984 _start () {}
6985 int __eh_pc;
6986 __throw () {}
6988 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6989 -nostdlib -nostartfiles -fexceptions
6990 -o conftest conftest.c 1>&5'
6991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; }; }; then
6996 libc_cv_gcc_exceptions=yes
6997 else
6998 libc_cv_gcc_exceptions=no
7000 rm -f conftest*
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
7003 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7004 if test $libc_cv_gcc_exceptions = yes; then
7005 exceptions=-fexceptions
7008 if test "$host_cpu" = powerpc ; then
7009 # Check for a bug present in at least versions 2.8.x of GCC
7010 # and versions 1.0.x of EGCS.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7012 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7013 if test "${libc_cv_c_asmcr0_bug+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7020 main ()
7024 return 0;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 libc_cv_c_asmcr0_bug='no'
7029 else
7030 libc_cv_c_asmcr0_bug='yes'
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7035 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7036 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7037 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7043 $as_echo_n "checking for __builtin_expect... " >&6; }
7044 if test "${libc_cv_gcc_builtin_expect+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 cat > conftest.c <<EOF
7048 #line $LINENO "configure"
7049 int foo (int a)
7051 a = __builtin_expect (a, 10);
7052 return a == 10 ? 0 : 1;
7055 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7056 -o conftest conftest.c -lgcc >&5'
7057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; }; }; then
7062 libc_cv_gcc_builtin_expect=yes
7063 else
7064 libc_cv_gcc_builtin_expect=no
7066 rm -f conftest*
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7069 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7070 if test "$libc_cv_gcc_builtin_expect" = yes; then
7071 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7076 $as_echo_n "checking for __builtin_memset... " >&6; }
7077 if test "${libc_cv_gcc_builtin_memset+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 cat > conftest.c <<\EOF
7081 void zero (void *x)
7083 __builtin_memset (x, 0, 1000);
7086 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; };
7092 then
7093 libc_cv_gcc_builtin_memset=no
7094 else
7095 libc_cv_gcc_builtin_memset=yes
7097 rm -f conftest*
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7100 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7101 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7102 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7107 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7108 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 cat > conftest.c <<\EOF
7112 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7113 char *foo (const char *a, const char *b)
7115 return __builtin_strstr (a, b);
7118 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; };
7124 then
7125 libc_cv_gcc_builtin_redirection=yes
7126 else
7127 libc_cv_gcc_builtin_redirection=no
7129 rm -f conftest*
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7132 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7133 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7134 $as_echo "#define HAVE_BUILTIN_REDIRECTION 1" >>confdefs.h
7138 if test "x$use__thread" != xno; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7140 $as_echo_n "checking for __thread... " >&6; }
7141 if test "${libc_cv_gcc___thread+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 cat > conftest.c <<\EOF
7145 __thread int a = 42;
7147 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; }; }; then
7153 libc_cv_gcc___thread=yes
7154 else
7155 libc_cv_gcc___thread=no
7157 rm -f conftest*
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7160 $as_echo "$libc_cv_gcc___thread" >&6; }
7161 if test "$libc_cv_gcc___thread" = yes; then
7162 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
7165 else
7166 libc_cv_gcc___thread=no
7169 if test "$libc_cv_gcc___thread" = yes; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7171 $as_echo_n "checking for tls_model attribute... " >&6; }
7172 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat > conftest.c <<\EOF
7176 extern __thread int a __attribute__((tls_model ("initial-exec")));
7178 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; }; then
7184 libc_cv_gcc_tls_model_attr=yes
7185 else
7186 libc_cv_gcc_tls_model_attr=no
7188 rm -f conftest*
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7191 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7192 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7193 $as_echo "#define HAVE_TLS_MODEL_ATTRIBUTE 1" >>confdefs.h
7198 if test -n "$submachine"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7200 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7201 if test "${libc_cv_cc_submachine+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 libc_cv_cc_submachine=no
7205 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7206 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; }; }; then
7212 libc_cv_cc_submachine="$opt"
7213 break
7215 done
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7218 $as_echo "$libc_cv_cc_submachine" >&6; }
7219 if test "x$libc_cv_cc_submachine" = xno; then
7220 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7226 $as_echo_n "checking for libgd... " >&6; }
7227 if test "$with_gd" != "no"; then
7228 old_CFLAGS="$CFLAGS"
7229 CFLAGS="$CFLAGS $libgd_include"
7230 old_LDFLAGS="$LDFLAGS"
7231 LDFLAGS="$LDFLAGS $libgd_ldflags"
7232 old_LIBS="$LIBS"
7233 LIBS="$LIBS -lgd -lpng -lz -lm"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <gd.h>
7238 main ()
7240 gdImagePng (0, 0)
7242 return 0;
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 LIBGD=yes
7247 else
7248 LIBGD=no
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 CFLAGS="$old_CFLAGS"
7253 LDFLAGS="$old_LDFLAGS"
7254 LIBS="$old_LIBS"
7255 else
7256 LIBGD=no
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7259 $as_echo "$LIBGD" >&6; }
7262 # SELinux detection
7263 if test x$with_selinux = xno ; then
7264 have_selinux=no;
7265 else
7266 # See if we have the SELinux library
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7268 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7269 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 ac_check_lib_save_LIBS=$LIBS
7273 LIBS="-lselinux $LIBS"
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7277 /* Override any GCC internal prototype to avoid an error.
7278 Use char because int might match the return type of a GCC
7279 builtin and then its argument prototype would still apply. */
7280 #ifdef __cplusplus
7281 extern "C"
7282 #endif
7283 char is_selinux_enabled ();
7285 main ()
7287 return is_selinux_enabled ();
7289 return 0;
7291 _ACEOF
7292 if ac_fn_c_try_link "$LINENO"; then :
7293 ac_cv_lib_selinux_is_selinux_enabled=yes
7294 else
7295 ac_cv_lib_selinux_is_selinux_enabled=no
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299 LIBS=$ac_check_lib_save_LIBS
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7302 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7303 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
7304 have_selinux=yes
7305 else
7306 have_selinux=no
7309 # See if we have the SELinux header with the NSCD permissions in it.
7310 if test x$have_selinux = xyes ; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7312 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <selinux/av_permissions.h>
7317 main ()
7319 #ifdef NSCD__SHMEMHOST
7320 return 0;
7321 #else
7322 #error NSCD__SHMEMHOST not defined
7323 #endif
7325 return 0;
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 have_selinux=yes
7330 else
7331 have_selinux=no
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7335 $as_echo "$have_selinux" >&6; }
7338 if test x$with_selinux = xyes ; then
7339 if test x$have_selinux = xno ; then
7340 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7344 # Check if we're building with SELinux support.
7345 if test "x$have_selinux" = xyes; then
7347 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7350 # See if we have the libaudit library
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7352 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7353 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 ac_check_lib_save_LIBS=$LIBS
7357 LIBS="-laudit $LIBS"
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7361 /* Override any GCC internal prototype to avoid an error.
7362 Use char because int might match the return type of a GCC
7363 builtin and then its argument prototype would still apply. */
7364 #ifdef __cplusplus
7365 extern "C"
7366 #endif
7367 char audit_log_user_avc_message ();
7369 main ()
7371 return audit_log_user_avc_message ();
7373 return 0;
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 ac_cv_lib_audit_audit_log_user_avc_message=yes
7378 else
7379 ac_cv_lib_audit_audit_log_user_avc_message=no
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 LIBS=$ac_check_lib_save_LIBS
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7386 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7387 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then :
7388 have_libaudit=yes
7389 else
7390 have_libaudit=no
7393 if test "x$have_libaudit" = xyes; then
7395 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7400 # See if we have the libcap library
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7402 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7403 if test "${ac_cv_lib_cap_cap_init+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 ac_check_lib_save_LIBS=$LIBS
7407 LIBS="-lcap $LIBS"
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7411 /* Override any GCC internal prototype to avoid an error.
7412 Use char because int might match the return type of a GCC
7413 builtin and then its argument prototype would still apply. */
7414 #ifdef __cplusplus
7415 extern "C"
7416 #endif
7417 char cap_init ();
7419 main ()
7421 return cap_init ();
7423 return 0;
7425 _ACEOF
7426 if ac_fn_c_try_link "$LINENO"; then :
7427 ac_cv_lib_cap_cap_init=yes
7428 else
7429 ac_cv_lib_cap_cap_init=no
7431 rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433 LIBS=$ac_check_lib_save_LIBS
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7436 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7437 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then :
7438 have_libcap=yes
7439 else
7440 have_libcap=no
7443 if test "x$have_libcap" = xyes; then
7445 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7455 if test "${ac_cv_path_GREP+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -z "$GREP"; then
7459 ac_path_GREP_found=false
7460 # Loop through the user's path and test for each of PROGNAME-LIST
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_prog in grep ggrep; do
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7469 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7470 # Check for GNU ac_path_GREP and select it if it is found.
7471 # Check for GNU $ac_path_GREP
7472 case `"$ac_path_GREP" --version 2>&1` in
7473 *GNU*)
7474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7476 ac_count=0
7477 $as_echo_n 0123456789 >"conftest.in"
7478 while :
7480 cat "conftest.in" "conftest.in" >"conftest.tmp"
7481 mv "conftest.tmp" "conftest.in"
7482 cp "conftest.in" "conftest.nl"
7483 $as_echo 'GREP' >> "conftest.nl"
7484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7486 as_fn_arith $ac_count + 1 && ac_count=$as_val
7487 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7488 # Best one so far, save it but keep looking for a better one
7489 ac_cv_path_GREP="$ac_path_GREP"
7490 ac_path_GREP_max=$ac_count
7492 # 10*(2^10) chars as input seems more than enough
7493 test $ac_count -gt 10 && break
7494 done
7495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7496 esac
7498 $ac_path_GREP_found && break 3
7499 done
7500 done
7501 done
7502 IFS=$as_save_IFS
7503 if test -z "$ac_cv_path_GREP"; then
7504 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7506 else
7507 ac_cv_path_GREP=$GREP
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7512 $as_echo "$ac_cv_path_GREP" >&6; }
7513 GREP="$ac_cv_path_GREP"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7517 $as_echo_n "checking for egrep... " >&6; }
7518 if test "${ac_cv_path_EGREP+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7522 then ac_cv_path_EGREP="$GREP -E"
7523 else
7524 if test -z "$EGREP"; then
7525 ac_path_EGREP_found=false
7526 # Loop through the user's path and test for each of PROGNAME-LIST
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_prog in egrep; do
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7535 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7536 # Check for GNU ac_path_EGREP and select it if it is found.
7537 # Check for GNU $ac_path_EGREP
7538 case `"$ac_path_EGREP" --version 2>&1` in
7539 *GNU*)
7540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7542 ac_count=0
7543 $as_echo_n 0123456789 >"conftest.in"
7544 while :
7546 cat "conftest.in" "conftest.in" >"conftest.tmp"
7547 mv "conftest.tmp" "conftest.in"
7548 cp "conftest.in" "conftest.nl"
7549 $as_echo 'EGREP' >> "conftest.nl"
7550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7552 as_fn_arith $ac_count + 1 && ac_count=$as_val
7553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7554 # Best one so far, save it but keep looking for a better one
7555 ac_cv_path_EGREP="$ac_path_EGREP"
7556 ac_path_EGREP_max=$ac_count
7558 # 10*(2^10) chars as input seems more than enough
7559 test $ac_count -gt 10 && break
7560 done
7561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7562 esac
7564 $ac_path_EGREP_found && break 3
7565 done
7566 done
7567 done
7568 IFS=$as_save_IFS
7569 if test -z "$ac_cv_path_EGREP"; then
7570 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7572 else
7573 ac_cv_path_EGREP=$EGREP
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7579 $as_echo "$ac_cv_path_EGREP" >&6; }
7580 EGREP="$ac_cv_path_EGREP"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7584 $as_echo_n "checking for ANSI C header files... " >&6; }
7585 if test "${ac_cv_header_stdc+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 #include <stdlib.h>
7591 #include <stdarg.h>
7592 #include <string.h>
7593 #include <float.h>
7596 main ()
7600 return 0;
7602 _ACEOF
7603 if ac_fn_c_try_compile "$LINENO"; then :
7604 ac_cv_header_stdc=yes
7605 else
7606 ac_cv_header_stdc=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 if test $ac_cv_header_stdc = yes; then
7611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 #include <string.h>
7616 _ACEOF
7617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7618 $EGREP "memchr" >/dev/null 2>&1; then :
7620 else
7621 ac_cv_header_stdc=no
7623 rm -f conftest*
7627 if test $ac_cv_header_stdc = yes; then
7628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #include <stdlib.h>
7633 _ACEOF
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "free" >/dev/null 2>&1; then :
7637 else
7638 ac_cv_header_stdc=no
7640 rm -f conftest*
7644 if test $ac_cv_header_stdc = yes; then
7645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7646 if test "$cross_compiling" = yes; then :
7648 else
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 #include <ctype.h>
7652 #include <stdlib.h>
7653 #if ((' ' & 0x0FF) == 0x020)
7654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7656 #else
7657 # define ISLOWER(c) \
7658 (('a' <= (c) && (c) <= 'i') \
7659 || ('j' <= (c) && (c) <= 'r') \
7660 || ('s' <= (c) && (c) <= 'z'))
7661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7662 #endif
7664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7666 main ()
7668 int i;
7669 for (i = 0; i < 256; i++)
7670 if (XOR (islower (i), ISLOWER (i))
7671 || toupper (i) != TOUPPER (i))
7672 return 2;
7673 return 0;
7675 _ACEOF
7676 if ac_fn_c_try_run "$LINENO"; then :
7678 else
7679 ac_cv_header_stdc=no
7681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7682 conftest.$ac_objext conftest.beam conftest.$ac_ext
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7688 $as_echo "$ac_cv_header_stdc" >&6; }
7689 if test $ac_cv_header_stdc = yes; then
7691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7697 inttypes.h stdint.h unistd.h
7698 do :
7699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7700 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7703 cat >>confdefs.h <<_ACEOF
7704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 _ACEOF
7709 done
7712 # The cast to long int works around a bug in the HP C Compiler
7713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7715 # This bug is HP SR number 8606223364.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7717 $as_echo_n "checking size of long double... " >&6; }
7718 if test "${ac_cv_sizeof_long_double+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7723 else
7724 if test "$ac_cv_type_long_double" = yes; then
7725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7727 as_fn_error 77 "cannot compute sizeof (long double)
7728 See \`config.log' for more details" "$LINENO" 5; }
7729 else
7730 ac_cv_sizeof_long_double=0
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7736 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7740 cat >>confdefs.h <<_ACEOF
7741 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7742 _ACEOF
7745 sizeof_long_double=$ac_cv_sizeof_long_double
7748 ### End of automated tests.
7749 ### Now run sysdeps configure fragments.
7751 # They also can set these variables.
7752 use_ldconfig=no
7753 ldd_rewrite_script=no
7754 libc_cv_sysconfdir=$sysconfdir
7755 libc_cv_gcc_unwind_find_fde=no
7756 libc_cv_idn=no
7758 # Iterate over all the sysdep directories we will use, running their
7759 # configure fragments.
7760 for dir in $sysnames; do
7761 case $dir in
7762 /*) dest=$dir ;;
7763 *) dest=$srcdir/$dir ;;
7764 esac
7765 if test -r $dest/configure; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7767 $as_echo "running configure fragment for $dir" >&6; }
7768 . $dest/configure
7770 done
7772 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7773 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7778 $as_echo "#define USE_IN_LIBIO 1" >>confdefs.h
7781 # Test for old glibc 2.0.x headers so that they can be removed properly
7782 # Search only in includedir.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7784 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7785 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7786 then
7787 old_glibc_headers=yes
7788 else
7789 old_glibc_headers=no
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7792 $as_echo "$old_glibc_headers" >&6; }
7793 if test ${old_glibc_headers} = yes; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7795 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7797 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7816 if test $elf = yes; then
7817 $as_echo "#define HAVE_ELF 1" >>confdefs.h
7820 if test $xcoff = yes; then
7821 $as_echo "#define HAVE_XCOFF 1" >>confdefs.h
7827 if test $shared = default; then
7828 shared=$elf
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7832 $as_echo_n "checking whether -fPIC is default... " >&6; }
7833 if test "${libc_cv_pic_default+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 libc_cv_pic_default=yes
7837 cat > conftest.c <<EOF
7838 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7839 # error PIC is default.
7840 #endif
7842 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7843 libc_cv_pic_default=no
7845 rm -f conftest.*
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7848 $as_echo "$libc_cv_pic_default" >&6; }
7861 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7862 config_makefile=
7863 else
7864 config_makefile=Makefile
7867 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7868 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7872 ac_config_files="$ac_config_files config.make ${config_makefile}"
7874 ac_config_commands="$ac_config_commands default"
7876 cat >confcache <<\_ACEOF
7877 # This file is a shell script that caches the results of configure
7878 # tests run on this system so they can be shared between configure
7879 # scripts and configure runs, see configure's option --config-cache.
7880 # It is not useful on other systems. If it contains results you don't
7881 # want to keep, you may remove or edit it.
7883 # config.status only pays attention to the cache file if you give it
7884 # the --recheck option to rerun configure.
7886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7888 # following values.
7890 _ACEOF
7892 # The following way of writing the cache mishandles newlines in values,
7893 # but we know of no workaround that is simple, portable, and efficient.
7894 # So, we kill variables containing newlines.
7895 # Ultrix sh set writes to stderr and can't be redirected directly,
7896 # and sets the high bit in the cache file unless we assign to the vars.
7898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7899 eval ac_val=\$$ac_var
7900 case $ac_val in #(
7901 *${as_nl}*)
7902 case $ac_var in #(
7903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7905 esac
7906 case $ac_var in #(
7907 _ | IFS | as_nl) ;; #(
7908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7909 *) { eval $ac_var=; unset $ac_var;} ;;
7910 esac ;;
7911 esac
7912 done
7914 (set) 2>&1 |
7915 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7916 *${as_nl}ac_space=\ *)
7917 # `set' does not quote correctly, so add quotes: double-quote
7918 # substitution turns \\\\ into \\, and sed turns \\ into \.
7919 sed -n \
7920 "s/'/'\\\\''/g;
7921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7922 ;; #(
7924 # `set' quotes correctly as required by POSIX, so do not add quotes.
7925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7927 esac |
7928 sort
7930 sed '
7931 /^ac_cv_env_/b end
7932 t clear
7933 :clear
7934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7935 t end
7936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7937 :end' >>confcache
7938 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7939 if test -w "$cache_file"; then
7940 test "x$cache_file" != "x/dev/null" &&
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7942 $as_echo "$as_me: updating cache $cache_file" >&6;}
7943 cat confcache >$cache_file
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7949 rm -f confcache
7951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7952 # Let make expand exec_prefix.
7953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7955 DEFS=-DHAVE_CONFIG_H
7957 ac_libobjs=
7958 ac_ltlibobjs=
7960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7961 # 1. Remove the extension, and $U if already installed.
7962 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7963 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7965 # will be set to the directory where LIBOBJS objects are built.
7966 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7967 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7968 done
7969 LIBOBJS=$ac_libobjs
7971 LTLIBOBJS=$ac_ltlibobjs
7975 : ${CONFIG_STATUS=./config.status}
7976 ac_write_fail=0
7977 ac_clean_files_save=$ac_clean_files
7978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7980 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7981 as_write_fail=0
7982 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7983 #! $SHELL
7984 # Generated by $as_me.
7985 # Run this file to recreate the current configuration.
7986 # Compiler output produced by configure, useful for debugging
7987 # configure, is in config.log if it exists.
7989 debug=false
7990 ac_cs_recheck=false
7991 ac_cs_silent=false
7993 SHELL=\${CONFIG_SHELL-$SHELL}
7994 export SHELL
7995 _ASEOF
7996 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7997 ## -------------------- ##
7998 ## M4sh Initialization. ##
7999 ## -------------------- ##
8001 # Be more Bourne compatible
8002 DUALCASE=1; export DUALCASE # for MKS sh
8003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8004 emulate sh
8005 NULLCMD=:
8006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8007 # is contrary to our usage. Disable this feature.
8008 alias -g '${1+"$@"}'='"$@"'
8009 setopt NO_GLOB_SUBST
8010 else
8011 case `(set -o) 2>/dev/null` in #(
8012 *posix*) :
8013 set -o posix ;; #(
8014 *) :
8016 esac
8020 as_nl='
8022 export as_nl
8023 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8024 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8027 # Prefer a ksh shell builtin over an external printf program on Solaris,
8028 # but without wasting forks for bash or zsh.
8029 if test -z "$BASH_VERSION$ZSH_VERSION" \
8030 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8031 as_echo='print -r --'
8032 as_echo_n='print -rn --'
8033 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8034 as_echo='printf %s\n'
8035 as_echo_n='printf %s'
8036 else
8037 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8038 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8039 as_echo_n='/usr/ucb/echo -n'
8040 else
8041 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8042 as_echo_n_body='eval
8043 arg=$1;
8044 case $arg in #(
8045 *"$as_nl"*)
8046 expr "X$arg" : "X\\(.*\\)$as_nl";
8047 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8048 esac;
8049 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8051 export as_echo_n_body
8052 as_echo_n='sh -c $as_echo_n_body as_echo'
8054 export as_echo_body
8055 as_echo='sh -c $as_echo_body as_echo'
8058 # The user is always right.
8059 if test "${PATH_SEPARATOR+set}" != set; then
8060 PATH_SEPARATOR=:
8061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8063 PATH_SEPARATOR=';'
8068 # IFS
8069 # We need space, tab and new line, in precisely that order. Quoting is
8070 # there to prevent editors from complaining about space-tab.
8071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8072 # splitting by setting IFS to empty value.)
8073 IFS=" "" $as_nl"
8075 # Find who we are. Look in the path if we contain no directory separator.
8076 case $0 in #((
8077 *[\\/]* ) as_myself=$0 ;;
8078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8084 done
8085 IFS=$as_save_IFS
8088 esac
8089 # We did not find ourselves, most probably we were run as `sh COMMAND'
8090 # in which case we are not to be found in the path.
8091 if test "x$as_myself" = x; then
8092 as_myself=$0
8094 if test ! -f "$as_myself"; then
8095 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8096 exit 1
8099 # Unset variables that we do not need and which cause bugs (e.g. in
8100 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8101 # suppresses any "Segmentation fault" message there. '((' could
8102 # trigger a bug in pdksh 5.2.14.
8103 for as_var in BASH_ENV ENV MAIL MAILPATH
8104 do eval test x\${$as_var+set} = xset \
8105 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8106 done
8107 PS1='$ '
8108 PS2='> '
8109 PS4='+ '
8111 # NLS nuisances.
8112 LC_ALL=C
8113 export LC_ALL
8114 LANGUAGE=C
8115 export LANGUAGE
8117 # CDPATH.
8118 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8121 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8122 # ----------------------------------------
8123 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8124 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8125 # script with STATUS, using 1 if that was 0.
8126 as_fn_error ()
8128 as_status=$1; test $as_status -eq 0 && as_status=1
8129 if test "$4"; then
8130 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8131 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8133 $as_echo "$as_me: error: $2" >&2
8134 as_fn_exit $as_status
8135 } # as_fn_error
8138 # as_fn_set_status STATUS
8139 # -----------------------
8140 # Set $? to STATUS, without forking.
8141 as_fn_set_status ()
8143 return $1
8144 } # as_fn_set_status
8146 # as_fn_exit STATUS
8147 # -----------------
8148 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8149 as_fn_exit ()
8151 set +e
8152 as_fn_set_status $1
8153 exit $1
8154 } # as_fn_exit
8156 # as_fn_unset VAR
8157 # ---------------
8158 # Portably unset VAR.
8159 as_fn_unset ()
8161 { eval $1=; unset $1;}
8163 as_unset=as_fn_unset
8164 # as_fn_append VAR VALUE
8165 # ----------------------
8166 # Append the text in VALUE to the end of the definition contained in VAR. Take
8167 # advantage of any shell optimizations that allow amortized linear growth over
8168 # repeated appends, instead of the typical quadratic growth present in naive
8169 # implementations.
8170 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8171 eval 'as_fn_append ()
8173 eval $1+=\$2
8175 else
8176 as_fn_append ()
8178 eval $1=\$$1\$2
8180 fi # as_fn_append
8182 # as_fn_arith ARG...
8183 # ------------------
8184 # Perform arithmetic evaluation on the ARGs, and store the result in the
8185 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8186 # must be portable across $(()) and expr.
8187 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8188 eval 'as_fn_arith ()
8190 as_val=$(( $* ))
8192 else
8193 as_fn_arith ()
8195 as_val=`expr "$@" || test $? -eq 1`
8197 fi # as_fn_arith
8200 if expr a : '\(a\)' >/dev/null 2>&1 &&
8201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8202 as_expr=expr
8203 else
8204 as_expr=false
8207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8208 as_basename=basename
8209 else
8210 as_basename=false
8213 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8214 as_dirname=dirname
8215 else
8216 as_dirname=false
8219 as_me=`$as_basename -- "$0" ||
8220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8221 X"$0" : 'X\(//\)$' \| \
8222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8223 $as_echo X/"$0" |
8224 sed '/^.*\/\([^/][^/]*\)\/*$/{
8225 s//\1/
8228 /^X\/\(\/\/\)$/{
8229 s//\1/
8232 /^X\/\(\/\).*/{
8233 s//\1/
8236 s/.*/./; q'`
8238 # Avoid depending upon Character Ranges.
8239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8242 as_cr_digits='0123456789'
8243 as_cr_alnum=$as_cr_Letters$as_cr_digits
8245 ECHO_C= ECHO_N= ECHO_T=
8246 case `echo -n x` in #(((((
8247 -n*)
8248 case `echo 'xy\c'` in
8249 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8250 xy) ECHO_C='\c';;
8251 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8252 ECHO_T=' ';;
8253 esac;;
8255 ECHO_N='-n';;
8256 esac
8258 rm -f conf$$ conf$$.exe conf$$.file
8259 if test -d conf$$.dir; then
8260 rm -f conf$$.dir/conf$$.file
8261 else
8262 rm -f conf$$.dir
8263 mkdir conf$$.dir 2>/dev/null
8265 if (echo >conf$$.file) 2>/dev/null; then
8266 if ln -s conf$$.file conf$$ 2>/dev/null; then
8267 as_ln_s='ln -s'
8268 # ... but there are two gotchas:
8269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8271 # In both cases, we have to default to `cp -p'.
8272 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8273 as_ln_s='cp -p'
8274 elif ln conf$$.file conf$$ 2>/dev/null; then
8275 as_ln_s=ln
8276 else
8277 as_ln_s='cp -p'
8279 else
8280 as_ln_s='cp -p'
8282 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8283 rmdir conf$$.dir 2>/dev/null
8286 # as_fn_mkdir_p
8287 # -------------
8288 # Create "$as_dir" as a directory, including parents if necessary.
8289 as_fn_mkdir_p ()
8292 case $as_dir in #(
8293 -*) as_dir=./$as_dir;;
8294 esac
8295 test -d "$as_dir" || eval $as_mkdir_p || {
8296 as_dirs=
8297 while :; do
8298 case $as_dir in #(
8299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8300 *) as_qdir=$as_dir;;
8301 esac
8302 as_dirs="'$as_qdir' $as_dirs"
8303 as_dir=`$as_dirname -- "$as_dir" ||
8304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8305 X"$as_dir" : 'X\(//\)[^/]' \| \
8306 X"$as_dir" : 'X\(//\)$' \| \
8307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8308 $as_echo X"$as_dir" |
8309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8310 s//\1/
8313 /^X\(\/\/\)[^/].*/{
8314 s//\1/
8317 /^X\(\/\/\)$/{
8318 s//\1/
8321 /^X\(\/\).*/{
8322 s//\1/
8325 s/.*/./; q'`
8326 test -d "$as_dir" && break
8327 done
8328 test -z "$as_dirs" || eval "mkdir $as_dirs"
8329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8332 } # as_fn_mkdir_p
8333 if mkdir -p . 2>/dev/null; then
8334 as_mkdir_p='mkdir -p "$as_dir"'
8335 else
8336 test -d ./-p && rmdir ./-p
8337 as_mkdir_p=false
8340 if test -x / >/dev/null 2>&1; then
8341 as_test_x='test -x'
8342 else
8343 if ls -dL / >/dev/null 2>&1; then
8344 as_ls_L_option=L
8345 else
8346 as_ls_L_option=
8348 as_test_x='
8349 eval sh -c '\''
8350 if test -d "$1"; then
8351 test -d "$1/.";
8352 else
8353 case $1 in #(
8354 -*)set "./$1";;
8355 esac;
8356 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8357 ???[sx]*):;;*)false;;esac;fi
8358 '\'' sh
8361 as_executable_p=$as_test_x
8363 # Sed expression to map a string onto a valid CPP name.
8364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8366 # Sed expression to map a string onto a valid variable name.
8367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8370 exec 6>&1
8371 ## ----------------------------------- ##
8372 ## Main body of $CONFIG_STATUS script. ##
8373 ## ----------------------------------- ##
8374 _ASEOF
8375 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8378 # Save the log message, to keep $0 and so on meaningful, and to
8379 # report actual input values of CONFIG_FILES etc. instead of their
8380 # values after options handling.
8381 ac_log="
8382 This file was extended by GNU C Library $as_me (see version.h), which was
8383 generated by GNU Autoconf 2.66. Invocation command line was
8385 CONFIG_FILES = $CONFIG_FILES
8386 CONFIG_HEADERS = $CONFIG_HEADERS
8387 CONFIG_LINKS = $CONFIG_LINKS
8388 CONFIG_COMMANDS = $CONFIG_COMMANDS
8389 $ $0 $@
8391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8394 _ACEOF
8396 case $ac_config_files in *"
8397 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8398 esac
8400 case $ac_config_headers in *"
8401 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8402 esac
8405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8406 # Files that config.status was made for.
8407 config_files="$ac_config_files"
8408 config_headers="$ac_config_headers"
8409 config_commands="$ac_config_commands"
8411 _ACEOF
8413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414 ac_cs_usage="\
8415 \`$as_me' instantiates files and other configuration actions
8416 from templates according to the current configuration. Unless the files
8417 and actions are specified as TAGs, all are instantiated by default.
8419 Usage: $0 [OPTION]... [TAG]...
8421 -h, --help print this help, then exit
8422 -V, --version print version number and configuration settings, then exit
8423 --config print configuration, then exit
8424 -q, --quiet, --silent
8425 do not print progress messages
8426 -d, --debug don't remove temporary files
8427 --recheck update $as_me by reconfiguring in the same conditions
8428 --file=FILE[:TEMPLATE]
8429 instantiate the configuration file FILE
8430 --header=FILE[:TEMPLATE]
8431 instantiate the configuration header FILE
8433 Configuration files:
8434 $config_files
8436 Configuration headers:
8437 $config_headers
8439 Configuration commands:
8440 $config_commands
8442 Report bugs to <glibc>.
8443 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
8444 General help using GNU software: <http://www.gnu.org/gethelp/>."
8446 _ACEOF
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8449 ac_cs_version="\\
8450 GNU C Library config.status (see version.h)
8451 configured by $0, generated by GNU Autoconf 2.66,
8452 with options \\"\$ac_cs_config\\"
8454 Copyright (C) 2010 Free Software Foundation, Inc.
8455 This config.status script is free software; the Free Software Foundation
8456 gives unlimited permission to copy, distribute and modify it."
8458 ac_pwd='$ac_pwd'
8459 srcdir='$srcdir'
8460 INSTALL='$INSTALL'
8461 AWK='$AWK'
8462 test -n "\$AWK" || AWK=awk
8463 _ACEOF
8465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8466 # The default lists apply if the user does not specify any file.
8467 ac_need_defaults=:
8468 while test $# != 0
8470 case $1 in
8471 --*=*)
8472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8474 ac_shift=:
8477 ac_option=$1
8478 ac_optarg=$2
8479 ac_shift=shift
8481 esac
8483 case $ac_option in
8484 # Handling of the options.
8485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8486 ac_cs_recheck=: ;;
8487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8488 $as_echo "$ac_cs_version"; exit ;;
8489 --config | --confi | --conf | --con | --co | --c )
8490 $as_echo "$ac_cs_config"; exit ;;
8491 --debug | --debu | --deb | --de | --d | -d )
8492 debug=: ;;
8493 --file | --fil | --fi | --f )
8494 $ac_shift
8495 case $ac_optarg in
8496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8497 esac
8498 as_fn_append CONFIG_FILES " '$ac_optarg'"
8499 ac_need_defaults=false;;
8500 --header | --heade | --head | --hea )
8501 $ac_shift
8502 case $ac_optarg in
8503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8504 esac
8505 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8506 ac_need_defaults=false;;
8507 --he | --h)
8508 # Conflict between --help and --header
8509 as_fn_error $? "ambiguous option: \`$1'
8510 Try \`$0 --help' for more information.";;
8511 --help | --hel | -h )
8512 $as_echo "$ac_cs_usage"; exit ;;
8513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8515 ac_cs_silent=: ;;
8517 # This is an error.
8518 -*) as_fn_error $? "unrecognized option: \`$1'
8519 Try \`$0 --help' for more information." ;;
8521 *) as_fn_append ac_config_targets " $1"
8522 ac_need_defaults=false ;;
8524 esac
8525 shift
8526 done
8528 ac_configure_extra_args=
8530 if $ac_cs_silent; then
8531 exec 6>/dev/null
8532 ac_configure_extra_args="$ac_configure_extra_args --silent"
8535 _ACEOF
8536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8537 if \$ac_cs_recheck; then
8538 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8539 shift
8540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8541 CONFIG_SHELL='$SHELL'
8542 export CONFIG_SHELL
8543 exec "\$@"
8546 _ACEOF
8547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8548 exec 5>>config.log
8550 echo
8551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8552 ## Running $as_me. ##
8553 _ASBOX
8554 $as_echo "$ac_log"
8555 } >&5
8557 _ACEOF
8558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8560 # INIT-COMMANDS
8562 config_vars='$config_vars'
8564 _ACEOF
8566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8568 # Handling of arguments.
8569 for ac_config_target in $ac_config_targets
8571 case $ac_config_target in
8572 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8573 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8574 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8575 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8578 esac
8579 done
8582 # If the user did not use the arguments to specify the items to instantiate,
8583 # then the envvar interface is used. Set only those that are not.
8584 # We use the long form for the default assignment because of an extremely
8585 # bizarre bug on SunOS 4.1.3.
8586 if $ac_need_defaults; then
8587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8592 # Have a temporary directory for convenience. Make it in the build tree
8593 # simply because there is no reason against having it here, and in addition,
8594 # creating and moving files from /tmp can sometimes cause problems.
8595 # Hook for its removal unless debugging.
8596 # Note that there is a small window in which the directory will not be cleaned:
8597 # after its creation but before its name has been assigned to `$tmp'.
8598 $debug ||
8600 tmp=
8601 trap 'exit_status=$?
8602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8604 trap 'as_fn_exit 1' 1 2 13 15
8606 # Create a (secure) tmp directory for tmp files.
8609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8610 test -n "$tmp" && test -d "$tmp"
8611 } ||
8613 tmp=./conf$$-$RANDOM
8614 (umask 077 && mkdir "$tmp")
8615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8617 # Set up the scripts for CONFIG_FILES section.
8618 # No need to generate them if there are no CONFIG_FILES.
8619 # This happens for instance with `./config.status config.h'.
8620 if test -n "$CONFIG_FILES"; then
8623 ac_cr=`echo X | tr X '\015'`
8624 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8625 # But we know of no other shell where ac_cr would be empty at this
8626 # point, so we can use a bashism as a fallback.
8627 if test "x$ac_cr" = x; then
8628 eval ac_cr=\$\'\\r\'
8630 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8631 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8632 ac_cs_awk_cr='\\r'
8633 else
8634 ac_cs_awk_cr=$ac_cr
8637 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8638 _ACEOF
8642 echo "cat >conf$$subs.awk <<_ACEOF" &&
8643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8644 echo "_ACEOF"
8645 } >conf$$subs.sh ||
8646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8648 ac_delim='%!_!# '
8649 for ac_last_try in false false false false false :; do
8650 . ./conf$$subs.sh ||
8651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8653 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8654 if test $ac_delim_n = $ac_delim_num; then
8655 break
8656 elif $ac_last_try; then
8657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8658 else
8659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8661 done
8662 rm -f conf$$subs.sh
8664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8665 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8666 _ACEOF
8667 sed -n '
8669 s/^/S["/; s/!.*/"]=/
8672 s/^[^!]*!//
8673 :repl
8674 t repl
8675 s/'"$ac_delim"'$//
8676 t delim
8679 s/\(.\{148\}\)..*/\1/
8680 t more1
8681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8684 b repl
8685 :more1
8686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8689 s/.\{148\}//
8690 t nl
8691 :delim
8693 s/\(.\{148\}\)..*/\1/
8694 t more2
8695 s/["\\]/\\&/g; s/^/"/; s/$/"/
8698 :more2
8699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8702 s/.\{148\}//
8703 t delim
8704 ' <conf$$subs.awk | sed '
8705 /^[^""]/{
8707 s/\n//
8709 ' >>$CONFIG_STATUS || ac_write_fail=1
8710 rm -f conf$$subs.awk
8711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8712 _ACAWK
8713 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8714 for (key in S) S_is_set[key] = 1
8715 FS = "\a"
8719 line = $ 0
8720 nfields = split(line, field, "@")
8721 substed = 0
8722 len = length(field[1])
8723 for (i = 2; i < nfields; i++) {
8724 key = field[i]
8725 keylen = length(key)
8726 if (S_is_set[key]) {
8727 value = S[key]
8728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8729 len += length(value) + length(field[++i])
8730 substed = 1
8731 } else
8732 len += 1 + keylen
8735 print line
8738 _ACAWK
8739 _ACEOF
8740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8743 else
8745 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8746 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8747 _ACEOF
8749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8751 # trailing colons and then remove the whole line if VPATH becomes empty
8752 # (actually we leave an empty line to preserve line numbers).
8753 if test "x$srcdir" = x.; then
8754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8756 s///
8757 s/^/:/
8758 s/[ ]*$/:/
8759 s/:\$(srcdir):/:/g
8760 s/:\${srcdir}:/:/g
8761 s/:@srcdir@:/:/g
8762 s/^:*//
8763 s/:*$//
8765 s/\(=[ ]*\).*/\1/
8767 s/\n//
8768 s/^[^=]*=[ ]*$//
8772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8773 fi # test -n "$CONFIG_FILES"
8775 # Set up the scripts for CONFIG_HEADERS section.
8776 # No need to generate them if there are no CONFIG_HEADERS.
8777 # This happens for instance with `./config.status Makefile'.
8778 if test -n "$CONFIG_HEADERS"; then
8779 cat >"$tmp/defines.awk" <<\_ACAWK ||
8780 BEGIN {
8781 _ACEOF
8783 # Transform confdefs.h into an awk script `defines.awk', embedded as
8784 # here-document in config.status, that substitutes the proper values into
8785 # config.h.in to produce config.h.
8787 # Create a delimiter string that does not exist in confdefs.h, to ease
8788 # handling of long lines.
8789 ac_delim='%!_!# '
8790 for ac_last_try in false false :; do
8791 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8792 if test -z "$ac_t"; then
8793 break
8794 elif $ac_last_try; then
8795 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8796 else
8797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8799 done
8801 # For the awk script, D is an array of macro values keyed by name,
8802 # likewise P contains macro parameters if any. Preserve backslash
8803 # newline sequences.
8805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8806 sed -n '
8807 s/.\{148\}/&'"$ac_delim"'/g
8808 t rset
8809 :rset
8810 s/^[ ]*#[ ]*define[ ][ ]*/ /
8811 t def
8813 :def
8814 s/\\$//
8815 t bsnl
8816 s/["\\]/\\&/g
8817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8818 D["\1"]=" \3"/p
8819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8821 :bsnl
8822 s/["\\]/\\&/g
8823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8824 D["\1"]=" \3\\\\\\n"\\/p
8825 t cont
8826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8827 t cont
8829 :cont
8831 s/.\{148\}/&'"$ac_delim"'/g
8832 t clear
8833 :clear
8834 s/\\$//
8835 t bsnlc
8836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8838 :bsnlc
8839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8840 b cont
8841 ' <confdefs.h | sed '
8842 s/'"$ac_delim"'/"\\\
8843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8846 for (key in D) D_is_set[key] = 1
8847 FS = "\a"
8849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8850 line = \$ 0
8851 split(line, arg, " ")
8852 if (arg[1] == "#") {
8853 defundef = arg[2]
8854 mac1 = arg[3]
8855 } else {
8856 defundef = substr(arg[1], 2)
8857 mac1 = arg[2]
8859 split(mac1, mac2, "(") #)
8860 macro = mac2[1]
8861 prefix = substr(line, 1, index(line, defundef) - 1)
8862 if (D_is_set[macro]) {
8863 # Preserve the white space surrounding the "#".
8864 print prefix "define", macro P[macro] D[macro]
8865 next
8866 } else {
8867 # Replace #undef with comments. This is necessary, for example,
8868 # in the case of _POSIX_SOURCE, which is predefined and required
8869 # on some systems where configure will not decide to define it.
8870 if (defundef == "undef") {
8871 print "/*", prefix defundef, macro, "*/"
8872 next
8876 { print }
8877 _ACAWK
8878 _ACEOF
8879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8880 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8881 fi # test -n "$CONFIG_HEADERS"
8884 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8885 shift
8886 for ac_tag
8888 case $ac_tag in
8889 :[FHLC]) ac_mode=$ac_tag; continue;;
8890 esac
8891 case $ac_mode$ac_tag in
8892 :[FHL]*:*);;
8893 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8894 :[FH]-) ac_tag=-:-;;
8895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8896 esac
8897 ac_save_IFS=$IFS
8898 IFS=:
8899 set x $ac_tag
8900 IFS=$ac_save_IFS
8901 shift
8902 ac_file=$1
8903 shift
8905 case $ac_mode in
8906 :L) ac_source=$1;;
8907 :[FH])
8908 ac_file_inputs=
8909 for ac_f
8911 case $ac_f in
8912 -) ac_f="$tmp/stdin";;
8913 *) # Look for the file first in the build tree, then in the source tree
8914 # (if the path is not absolute). The absolute path cannot be DOS-style,
8915 # because $ac_f cannot contain `:'.
8916 test -f "$ac_f" ||
8917 case $ac_f in
8918 [\\/$]*) false;;
8919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8920 esac ||
8921 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8922 esac
8923 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8924 as_fn_append ac_file_inputs " '$ac_f'"
8925 done
8927 # Let's still pretend it is `configure' which instantiates (i.e., don't
8928 # use $as_me), people would be surprised to read:
8929 # /* config.h. Generated by config.status. */
8930 configure_input='Generated from '`
8931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8932 `' by configure.'
8933 if test x"$ac_file" != x-; then
8934 configure_input="$ac_file. $configure_input"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8936 $as_echo "$as_me: creating $ac_file" >&6;}
8938 # Neutralize special characters interpreted by sed in replacement strings.
8939 case $configure_input in #(
8940 *\&* | *\|* | *\\* )
8941 ac_sed_conf_input=`$as_echo "$configure_input" |
8942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8943 *) ac_sed_conf_input=$configure_input;;
8944 esac
8946 case $ac_tag in
8947 *:-:* | *:-) cat >"$tmp/stdin" \
8948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8949 esac
8951 esac
8953 ac_dir=`$as_dirname -- "$ac_file" ||
8954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8955 X"$ac_file" : 'X\(//\)[^/]' \| \
8956 X"$ac_file" : 'X\(//\)$' \| \
8957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8958 $as_echo X"$ac_file" |
8959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8960 s//\1/
8963 /^X\(\/\/\)[^/].*/{
8964 s//\1/
8967 /^X\(\/\/\)$/{
8968 s//\1/
8971 /^X\(\/\).*/{
8972 s//\1/
8975 s/.*/./; q'`
8976 as_dir="$ac_dir"; as_fn_mkdir_p
8977 ac_builddir=.
8979 case "$ac_dir" in
8980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8983 # A ".." for each directory in $ac_dir_suffix.
8984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8985 case $ac_top_builddir_sub in
8986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8988 esac ;;
8989 esac
8990 ac_abs_top_builddir=$ac_pwd
8991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8992 # for backward compatibility:
8993 ac_top_builddir=$ac_top_build_prefix
8995 case $srcdir in
8996 .) # We are building in place.
8997 ac_srcdir=.
8998 ac_top_srcdir=$ac_top_builddir_sub
8999 ac_abs_top_srcdir=$ac_pwd ;;
9000 [\\/]* | ?:[\\/]* ) # Absolute name.
9001 ac_srcdir=$srcdir$ac_dir_suffix;
9002 ac_top_srcdir=$srcdir
9003 ac_abs_top_srcdir=$srcdir ;;
9004 *) # Relative name.
9005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9006 ac_top_srcdir=$ac_top_build_prefix$srcdir
9007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9008 esac
9009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9012 case $ac_mode in
9015 # CONFIG_FILE
9018 case $INSTALL in
9019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9021 esac
9022 _ACEOF
9024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9025 # If the template does not know about datarootdir, expand it.
9026 # FIXME: This hack should be removed a few years after 2.60.
9027 ac_datarootdir_hack=; ac_datarootdir_seen=
9028 ac_sed_dataroot='
9029 /datarootdir/ {
9033 /@datadir@/p
9034 /@docdir@/p
9035 /@infodir@/p
9036 /@localedir@/p
9037 /@mandir@/p'
9038 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9039 *datarootdir*) ac_datarootdir_seen=yes;;
9040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9042 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9043 _ACEOF
9044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9045 ac_datarootdir_hack='
9046 s&@datadir@&$datadir&g
9047 s&@docdir@&$docdir&g
9048 s&@infodir@&$infodir&g
9049 s&@localedir@&$localedir&g
9050 s&@mandir@&$mandir&g
9051 s&\\\${datarootdir}&$datarootdir&g' ;;
9052 esac
9053 _ACEOF
9055 # Neutralize VPATH when `$srcdir' = `.'.
9056 # Shell code in configure.ac might set extrasub.
9057 # FIXME: do we really want to maintain this feature?
9058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9059 ac_sed_extra="$ac_vpsub
9060 $extrasub
9061 _ACEOF
9062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9065 s|@configure_input@|$ac_sed_conf_input|;t t
9066 s&@top_builddir@&$ac_top_builddir_sub&;t t
9067 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9068 s&@srcdir@&$ac_srcdir&;t t
9069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9070 s&@top_srcdir@&$ac_top_srcdir&;t t
9071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9072 s&@builddir@&$ac_builddir&;t t
9073 s&@abs_builddir@&$ac_abs_builddir&;t t
9074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9075 s&@INSTALL@&$ac_INSTALL&;t t
9076 $ac_datarootdir_hack
9078 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9085 which seems to be undefined. Please make sure it is defined" >&5
9086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9087 which seems to be undefined. Please make sure it is defined" >&2;}
9089 rm -f "$tmp/stdin"
9090 case $ac_file in
9091 -) cat "$tmp/out" && rm -f "$tmp/out";;
9092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9093 esac \
9094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9098 # CONFIG_HEADER
9100 if test x"$ac_file" != x-; then
9102 $as_echo "/* $configure_input */" \
9103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9104 } >"$tmp/config.h" \
9105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9106 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9109 else
9110 rm -f "$ac_file"
9111 mv "$tmp/config.h" "$ac_file" \
9112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9114 else
9115 $as_echo "/* $configure_input */" \
9116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9117 || as_fn_error $? "could not create -" "$LINENO" 5
9121 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9122 $as_echo "$as_me: executing $ac_file commands" >&6;}
9124 esac
9127 case $ac_file$ac_mode in
9128 "default":C)
9129 case $CONFIG_FILES in *config.make*)
9130 echo "$config_vars" >> config.make;;
9131 esac
9132 test -d bits || mkdir bits ;;
9134 esac
9135 done # for ac_tag
9138 as_fn_exit 0
9139 _ACEOF
9140 ac_clean_files=$ac_clean_files_save
9142 test $ac_write_fail = 0 ||
9143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9146 # configure is writing to config.log, and then calls config.status.
9147 # config.status does its own redirection, appending to config.log.
9148 # Unfortunately, on DOS this fails, as config.log is still kept open
9149 # by configure, so config.status won't be able to write to it; its
9150 # output is simply discarded. So we exec the FD to /dev/null,
9151 # effectively closing config.log, so it can be properly (re)opened and
9152 # appended to by config.status. When coming back to configure, we
9153 # need to make the FD available again.
9154 if test "$no_create" != yes; then
9155 ac_cs_success=:
9156 ac_config_status_args=
9157 test "$silent" = yes &&
9158 ac_config_status_args="$ac_config_status_args --quiet"
9159 exec 5>/dev/null
9160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9161 exec 5>>config.log
9162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9163 # would make configure fail if this is the last instruction.
9164 $ac_cs_success || as_fn_exit 1
9168 # CONFIG_SUBDIRS section.
9170 if test "$no_recursion" != yes; then
9172 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9173 # so they do not pile up.
9174 ac_sub_configure_args=
9175 ac_prev=
9176 eval "set x $ac_configure_args"
9177 shift
9178 for ac_arg
9180 if test -n "$ac_prev"; then
9181 ac_prev=
9182 continue
9184 case $ac_arg in
9185 -cache-file | --cache-file | --cache-fil | --cache-fi \
9186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9187 ac_prev=cache_file ;;
9188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9190 | --c=*)
9192 --config-cache | -C)
9194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9195 ac_prev=srcdir ;;
9196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9199 ac_prev=prefix ;;
9200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9202 --disable-option-checking)
9205 case $ac_arg in
9206 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9207 esac
9208 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9209 esac
9210 done
9212 # Always prepend --prefix to ensure using the same prefix
9213 # in subdir configurations.
9214 ac_arg="--prefix=$prefix"
9215 case $ac_arg in
9216 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9217 esac
9218 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9220 # Pass --silent
9221 if test "$silent" = yes; then
9222 ac_sub_configure_args="--silent $ac_sub_configure_args"
9225 # Always prepend --disable-option-checking to silence warnings, since
9226 # different subdirs can have different --enable and --with options.
9227 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9229 ac_popdir=`pwd`
9230 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9232 # Do not complain, so a configure script can configure whichever
9233 # parts of a large source tree are present.
9234 test -d "$srcdir/$ac_dir" || continue
9236 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9238 $as_echo "$ac_msg" >&6
9239 as_dir="$ac_dir"; as_fn_mkdir_p
9240 ac_builddir=.
9242 case "$ac_dir" in
9243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9245 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9246 # A ".." for each directory in $ac_dir_suffix.
9247 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9248 case $ac_top_builddir_sub in
9249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9251 esac ;;
9252 esac
9253 ac_abs_top_builddir=$ac_pwd
9254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9255 # for backward compatibility:
9256 ac_top_builddir=$ac_top_build_prefix
9258 case $srcdir in
9259 .) # We are building in place.
9260 ac_srcdir=.
9261 ac_top_srcdir=$ac_top_builddir_sub
9262 ac_abs_top_srcdir=$ac_pwd ;;
9263 [\\/]* | ?:[\\/]* ) # Absolute name.
9264 ac_srcdir=$srcdir$ac_dir_suffix;
9265 ac_top_srcdir=$srcdir
9266 ac_abs_top_srcdir=$srcdir ;;
9267 *) # Relative name.
9268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9269 ac_top_srcdir=$ac_top_build_prefix$srcdir
9270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9271 esac
9272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9275 cd "$ac_dir"
9277 # Check for guested configure; otherwise get Cygnus style configure.
9278 if test -f "$ac_srcdir/configure.gnu"; then
9279 ac_sub_configure=$ac_srcdir/configure.gnu
9280 elif test -f "$ac_srcdir/configure"; then
9281 ac_sub_configure=$ac_srcdir/configure
9282 elif test -f "$ac_srcdir/configure.in"; then
9283 # This should be Cygnus configure.
9284 ac_sub_configure=$ac_aux_dir/configure
9285 else
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9287 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9288 ac_sub_configure=
9291 # The recursion is here.
9292 if test -n "$ac_sub_configure"; then
9293 # Make the cache file name correct relative to the subdirectory.
9294 case $cache_file in
9295 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9296 *) # Relative name.
9297 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9298 esac
9300 { $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
9301 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9302 # The eval makes quoting arguments work.
9303 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9304 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9305 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9308 cd "$ac_popdir"
9309 done
9311 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9313 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}