Remove multiarch dirs when gnu indirect is not supported
[glibc.git] / configure
blob0b75ee7bdcb9539fe3de6f45ea90556ab322e0bf
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
11 # 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 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=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&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, 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 uname_version
627 uname_release
628 uname_sysname
629 libc_cv_gcc_unwind_find_fde
630 sizeof_long_double
631 EGREP
632 GREP
633 have_selinux
634 have_libcap
635 have_libaudit
636 LIBGD
637 libc_cv_cc_submachine
638 exceptions
639 no_whole_archive
640 libc_cv_have_initfini
641 gnu89_inline
642 libc_cv_ssp
643 fno_unit_at_a_time
644 libc_cv_hashstyle
645 libc_cv_fpie
646 libc_cv_z_execstack
647 libc_cv_z_combreloc
648 ASFLAGS_config
649 libc_cv_as_needed
650 libc_cv_libgcc_s_suffix
651 libc_cv_Bgroup
652 libc_cv_cc_with_libunwind
653 VERSIONING
654 BISON
655 INSTALL_INFO
656 PERL
658 libc_cv_have_ksh
660 libc_cv_have_bash2
661 BASH_SHELL
662 libc_cv_gcc_static_libgcc
663 CXX_SYSINCLUDES
664 SYSINCLUDES
665 AUTOCONF
667 MAKEINFO
668 MSGFMT
669 MAKE
670 PWD_P
674 RANLIB
675 OBJDUMP
677 LN_S
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 sysdeps_add_ons
682 sysnames
683 submachine
684 multi_arch
685 base_machine
686 add_on_subdirs
687 add_ons
688 libc_cv_nss_crypt
689 experimental_malloc
690 all_warnings
691 force_install
692 bindnow
693 oldest_abi
694 enable_check_abi
695 with_cvs
696 with_fp
697 ac_ct_CXX
698 CXXFLAGS
701 cross_compiling
702 BUILD_CC
703 OBJEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 subdirs
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 with_gd
760 with_gd_include
761 with_gd_lib
762 with_fp
763 with_binutils
764 with_elf
765 with_selinux
766 with_xcoff
767 with_cvs
768 with_headers
769 enable_sanity_checks
770 enable_check_abi
771 enable_shared
772 enable_profile
773 enable_omitfp
774 enable_bounded
775 enable_versioning
776 enable_oldest_abi
777 enable_stackguard_randomization
778 enable_add_ons
779 with_tls
780 with___thread
781 enable_hidden_plt
782 enable_bind_now
783 enable_static_nss
784 enable_force_install
785 enable_kernel
786 enable_all_warnings
787 enable_multi_arch
788 enable_experimental_malloc
789 enable_nss_crypt
790 with_cpu
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
802 CXXFLAGS
803 CCC'
804 ac_subdirs_all='
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
855 ac_prev=
856 ac_dashdash=
857 for ac_option
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
866 case $ac_option in
867 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *) ac_optarg=yes ;;
869 esac
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
875 ac_dashdash=yes ;;
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
894 --config-cache | -C)
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information."
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 esac
1212 done
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used." >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error "pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1298 /^X\(\/\/\)$/{
1299 s//\1/
1302 /^X\(\/\).*/{
1303 s//\1/
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1311 else
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1401 cat <<\_ACEOF
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1412 esac
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-sanity-checks really do not use threads (should not be used except
1420 in special situations) [default=yes]
1421 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1422 [default=no]
1423 --enable-shared build shared library [default=yes if GNU ld & ELF]
1424 --enable-profile build profiled library [default=no]
1425 --enable-omitfp build undebuggable optimized library [default=no]
1426 --enable-bounded build with runtime bounds checking [default=no]
1427 --disable-versioning do not include versioning information in the library
1428 objects [default=yes if supported]
1429 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1430 [default=glibc default]
1431 --enable-stackguard-randomization
1432 initialize __stack_chk_guard canary with a random
1433 number at program start
1434 --enable-add-ons[=DIRS...]
1435 configure and build add-ons in DIR1,DIR2,... search
1436 for add-ons if no parameter given
1437 --disable-hidden-plt do not hide internal function calls to avoid PLT
1438 --enable-bind-now disable lazy relocations in DSOs
1439 --enable-static-nss build static NSS modules [default=no]
1440 --disable-force-install don't force installation of files from this package,
1441 even if they are older than the installed files
1442 --enable-kernel=VERSION compile for compatibility with kernel not older than
1443 VERSION
1444 --enable-all-warnings enable all useful warnings gcc can issue
1445 --enable-multi-arch enable single DSO with optimizations for multiple
1446 architectures
1447 --enable-experimental-malloc
1448 enable experimental malloc features
1449 --enable-nss-crypt enable libcrypt to use nss
1451 Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-gd=DIR find libgd include dir and library with prefix DIR
1455 --with-gd-include=DIR find libgd include files in DIR
1456 --with-gd-lib=DIR find libgd library files in DIR
1457 --with-fp if using floating-point hardware [default=yes]
1458 --with-binutils=PATH specify location of binutils (as and ld)
1459 --with-elf if using the ELF object format
1460 --with-selinux if building with SELinux support
1461 --with-xcoff if using the XCOFF object format
1462 --without-cvs if CVS should not be used
1463 --with-headers=PATH location of system headers to use (for example
1464 /usr/src/linux/include) [default=compiler default]
1465 --with-tls enable support for TLS
1466 --without-__thread do not use TLS features even when supporting them
1467 --with-cpu=CPU select code for CPU variant
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CPP C preprocessor
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1484 Report bugs to <glibc>.
1485 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
1486 General help using GNU software: <http://www.gnu.org/gethelp/>.
1487 _ACEOF
1488 ac_status=$?
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 GNU C Library configure (see version.h)
1550 generated by GNU Autoconf 2.65
1552 Copyright (C) 2009 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1594 ac_retval=1
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 as_fn_set_status $ac_retval
1599 } # ac_fn_c_try_compile
1601 # ac_fn_c_try_cpp LINENO
1602 # ----------------------
1603 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_cpp ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } >/dev/null && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1631 ac_retval=1
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_cpp
1638 # ac_fn_cxx_try_compile LINENO
1639 # ----------------------------
1640 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_cxx_try_compile ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_cxx_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1669 ac_retval=1
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_cxx_try_compile
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 $as_test_x conftest$ac_exeext
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_c_try_link
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=$ac_status
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_run
1764 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1765 # --------------------------------------------
1766 # Tries to find the compile-time value of EXPR in a program that includes
1767 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1768 # computed
1769 ac_fn_c_compute_int ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if test "$cross_compiling" = yes; then
1773 # Depending upon the size, compute the lo and hi bounds.
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1778 main ()
1780 static int test_array [1 - 2 * !(($2) >= 0)];
1781 test_array [0] = 0
1784 return 0;
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_lo=0 ac_mid=0
1789 while :; do
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 main ()
1796 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1797 test_array [0] = 0
1800 return 0;
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_hi=$ac_mid; break
1805 else
1806 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1807 if test $ac_lo -le $ac_mid; then
1808 ac_lo= ac_hi=
1809 break
1811 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 done
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1820 main ()
1822 static int test_array [1 - 2 * !(($2) < 0)];
1823 test_array [0] = 0
1826 return 0;
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 ac_hi=-1 ac_mid=-1
1831 while :; do
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1836 main ()
1838 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1839 test_array [0] = 0
1842 return 0;
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 ac_lo=$ac_mid; break
1847 else
1848 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1849 if test $ac_mid -le $ac_hi; then
1850 ac_lo= ac_hi=
1851 break
1853 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 done
1857 else
1858 ac_lo= ac_hi=
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 # Binary search between lo and hi bounds.
1864 while test "x$ac_lo" != "x$ac_hi"; do
1865 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1870 main ()
1872 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1873 test_array [0] = 0
1876 return 0;
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 ac_hi=$ac_mid
1881 else
1882 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 done
1886 case $ac_lo in #((
1887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1888 '') ac_retval=1 ;;
1889 esac
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1894 static long int longval () { return $2; }
1895 static unsigned long int ulongval () { return $2; }
1896 #include <stdio.h>
1897 #include <stdlib.h>
1899 main ()
1902 FILE *f = fopen ("conftest.val", "w");
1903 if (! f)
1904 return 1;
1905 if (($2) < 0)
1907 long int i = longval ();
1908 if (i != ($2))
1909 return 1;
1910 fprintf (f, "%ld", i);
1912 else
1914 unsigned long int i = ulongval ();
1915 if (i != ($2))
1916 return 1;
1917 fprintf (f, "%lu", i);
1919 /* Do not output a trailing newline, as this causes \r\n confusion
1920 on some platforms. */
1921 return ferror (f) || fclose (f) != 0;
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_run "$LINENO"; then :
1928 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1929 else
1930 ac_retval=1
1932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1933 conftest.$ac_objext conftest.beam conftest.$ac_ext
1934 rm -f conftest.val
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_compute_int
1942 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists and can be compiled using the include files in
1945 # INCLUDES, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 } # ac_fn_c_check_header_compile
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by GNU C Library $as_me (see version.h), which was
1977 generated by GNU Autoconf 2.65. Invocation command line was
1979 $ $0 $@
1981 _ACEOF
1982 exec 5>>config.log
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006 _ASUNAME
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2017 } >&5
2019 cat >&5 <<_ACEOF
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2026 _ACEOF
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2040 for ac_arg
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2069 as_fn_append ac_configure_args " '$ac_arg'"
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2085 echo
2087 cat <<\_ASBOX
2088 ## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##
2091 _ASBOX
2092 echo
2093 # The following way of writing the cache mishandles newlines in values,
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in #(
2098 *${as_nl}*)
2099 case $ac_var in #(
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 esac
2103 case $ac_var in #(
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2107 esac ;;
2108 esac
2109 done
2110 (set) 2>&1 |
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2113 sed -n \
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 ;; #(
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 esac |
2121 sort
2123 echo
2125 cat <<\_ASBOX
2126 ## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##
2129 _ASBOX
2130 echo
2131 for ac_var in $ac_subst_vars
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2141 if test -n "$ac_subst_files"; then
2142 cat <<\_ASBOX
2143 ## ------------------- ##
2144 ## File substitutions. ##
2145 ## ------------------- ##
2146 _ASBOX
2147 echo
2148 for ac_var in $ac_subst_files
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2159 if test -s confdefs.h; then
2160 cat <<\_ASBOX
2161 ## ----------- ##
2162 ## confdefs.h. ##
2163 ## ----------- ##
2164 _ASBOX
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 ac_site_file1=$CONFIG_SITE
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file"
2236 done
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 ac_config_headers="$ac_config_headers config.h"
2326 ac_aux_dir=
2327 for ac_dir in scripts "$srcdir"/scripts; do
2328 for ac_t in install-sh install.sh shtool; do
2329 if test -f "$ac_dir/$ac_t"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/$ac_t -c"
2332 break 2
2334 done
2335 done
2336 if test -z "$ac_aux_dir"; then
2337 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2340 # These three variables are undocumented and unsupported,
2341 # and are intended to be withdrawn in a future Autoconf release.
2342 # They can cause serious problems if a builder's source tree is in a directory
2343 # whose full name contains unusual characters.
2344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352 subdirs="$subdirs "
2355 # Make sure we can run config.sub.
2356 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2357 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2360 $as_echo_n "checking build system type... " >&6; }
2361 if test "${ac_cv_build+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 ac_build_alias=$build_alias
2365 test "x$ac_build_alias" = x &&
2366 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2367 test "x$ac_build_alias" = x &&
2368 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2374 $as_echo "$ac_cv_build" >&6; }
2375 case $ac_cv_build in
2376 *-*-*) ;;
2377 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2378 esac
2379 build=$ac_cv_build
2380 ac_save_IFS=$IFS; IFS='-'
2381 set x $ac_cv_build
2382 shift
2383 build_cpu=$1
2384 build_vendor=$2
2385 shift; shift
2386 # Remember, the first character of IFS is used to create $*,
2387 # except with old shells:
2388 build_os=$*
2389 IFS=$ac_save_IFS
2390 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2394 $as_echo_n "checking host system type... " >&6; }
2395 if test "${ac_cv_host+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 if test "x$host_alias" = x; then
2399 ac_cv_host=$ac_cv_build
2400 else
2401 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2402 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2407 $as_echo "$ac_cv_host" >&6; }
2408 case $ac_cv_host in
2409 *-*-*) ;;
2410 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2411 esac
2412 host=$ac_cv_host
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_host
2415 shift
2416 host_cpu=$1
2417 host_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 host_os=$*
2422 IFS=$ac_save_IFS
2423 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if test "${ac_cv_prog_CC+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2454 done
2455 done
2456 IFS=$as_save_IFS
2460 CC=$ac_cv_prog_CC
2461 if test -n "$CC"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2463 $as_echo "$CC" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2471 if test -z "$ac_cv_prog_CC"; then
2472 ac_ct_CC=$CC
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474 set dummy gcc; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_ac_ct_CC="gcc"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2503 $as_echo "$ac_ct_CC" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518 CC=$ac_ct_CC
2520 else
2521 CC="$ac_cv_prog_CC"
2524 if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}cc; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2547 done
2548 done
2549 IFS=$as_save_IFS
2553 CC=$ac_cv_prog_CC
2554 if test -n "$CC"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2556 $as_echo "$CC" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2565 if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567 set dummy cc; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 ac_prog_rejected=no
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2586 continue
2588 ac_cv_prog_CC="cc"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2594 IFS=$as_save_IFS
2596 if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2599 shift
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2604 shift
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2613 $as_echo "$CC" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 for ac_prog in cl.exe
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2662 test -n "$CC" && break
2663 done
2665 if test -z "$CC"; then
2666 ac_ct_CC=$CC
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_ac_ct_CC="$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699 $as_echo "$ac_ct_CC" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2706 test -n "$ac_ct_CC" && break
2707 done
2709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2716 ac_tool_warned=yes ;;
2717 esac
2718 CC=$ac_ct_CC
2725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727 as_fn_error "no acceptable C compiler found in \$PATH
2728 See \`config.log' for more details." "$LINENO" 5; }
2730 # Provide some information about the compiler.
2731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2732 set X $ac_compile
2733 ac_compiler=$2
2734 for ac_option in --version -v -V -qversion; do
2735 { { ac_try="$ac_compiler $ac_option >&5"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741 $as_echo "$ac_try_echo"; } >&5
2742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2743 ac_status=$?
2744 if test -s conftest.err; then
2745 sed '10a\
2746 ... rest of stderr output deleted ...
2747 10q' conftest.err >conftest.er1
2748 cat conftest.er1 >&5
2750 rm -f conftest.er1 conftest.err
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; }
2753 done
2755 EXEEXT=
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2757 $as_echo_n "checking for suffix of object files... " >&6; }
2758 if test "${ac_cv_objext+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2765 main ()
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.o conftest.obj
2773 if { { ac_try="$ac_compile"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_compile") 2>&5
2781 ac_status=$?
2782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; }; then :
2784 for ac_file in conftest.o conftest.obj conftest.*; do
2785 test -f "$ac_file" || continue;
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2789 break;;
2790 esac
2791 done
2792 else
2793 $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 as_fn_error "cannot compute suffix of object files: cannot compile
2799 See \`config.log' for more details." "$LINENO" 5; }
2801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2804 $as_echo "$ac_cv_objext" >&6; }
2805 OBJEXT=$ac_cv_objext
2806 ac_objext=$OBJEXT
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2809 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2816 main ()
2818 #ifndef __GNUC__
2819 choke me
2820 #endif
2823 return 0;
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827 ac_compiler_gnu=yes
2828 else
2829 ac_compiler_gnu=no
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2837 if test $ac_compiler_gnu = yes; then
2838 GCC=yes
2839 else
2840 GCC=
2842 ac_test_CFLAGS=${CFLAGS+set}
2843 ac_save_CFLAGS=$CFLAGS
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2846 if test "${ac_cv_prog_cc_g+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 ac_save_c_werror_flag=$ac_c_werror_flag
2850 ac_c_werror_flag=yes
2851 ac_cv_prog_cc_g=no
2852 CFLAGS="-g"
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2857 main ()
2861 return 0;
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_cv_prog_cc_g=yes
2866 else
2867 CFLAGS=""
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 main ()
2876 return 0;
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2881 else
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2883 CFLAGS="-g"
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2888 main ()
2892 return 0;
2894 _ACEOF
2895 if ac_fn_c_try_compile "$LINENO"; then :
2896 ac_cv_prog_cc_g=yes
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 ac_c_werror_flag=$ac_save_c_werror_flag
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2906 $as_echo "$ac_cv_prog_cc_g" >&6; }
2907 if test "$ac_test_CFLAGS" = set; then
2908 CFLAGS=$ac_save_CFLAGS
2909 elif test $ac_cv_prog_cc_g = yes; then
2910 if test "$GCC" = yes; then
2911 CFLAGS="-g -O2"
2912 else
2913 CFLAGS="-g"
2915 else
2916 if test "$GCC" = yes; then
2917 CFLAGS="-O2"
2918 else
2919 CFLAGS=
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2924 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 ac_cv_prog_cc_c89=no
2928 ac_save_CC=$CC
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931 #include <stdarg.h>
2932 #include <stdio.h>
2933 #include <sys/types.h>
2934 #include <sys/stat.h>
2935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936 struct buf { int x; };
2937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938 static char *e (p, i)
2939 char **p;
2940 int i;
2942 return p[i];
2944 static char *f (char * (*g) (char **, int), char **p, ...)
2946 char *s;
2947 va_list v;
2948 va_start (v,p);
2949 s = g (p, va_arg (v,int));
2950 va_end (v);
2951 return s;
2954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955 function prototypes and stuff, but not '\xHH' hex character constants.
2956 These don't provoke an error unfortunately, instead are silently treated
2957 as 'x'. The following induces an error, until -std is added to get
2958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959 array size at least. It's necessary to write '\x00'==0 to get something
2960 that's true only with -std. */
2961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2964 inside strings and character constants. */
2965 #define FOO(x) 'x'
2966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2968 int test (int i, double x);
2969 struct s1 {int (*f) (int a);};
2970 struct s2 {int (*f) (double a);};
2971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972 int argc;
2973 char **argv;
2975 main ()
2977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2979 return 0;
2981 _ACEOF
2982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2985 CC="$ac_save_CC $ac_arg"
2986 if ac_fn_c_try_compile "$LINENO"; then :
2987 ac_cv_prog_cc_c89=$ac_arg
2989 rm -f core conftest.err conftest.$ac_objext
2990 test "x$ac_cv_prog_cc_c89" != "xno" && break
2991 done
2992 rm -f conftest.$ac_ext
2993 CC=$ac_save_CC
2996 # AC_CACHE_VAL
2997 case "x$ac_cv_prog_cc_c89" in
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3000 $as_echo "none needed" >&6; } ;;
3001 xno)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3003 $as_echo "unsupported" >&6; } ;;
3005 CC="$CC $ac_cv_prog_cc_c89"
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3008 esac
3009 if test "x$ac_cv_prog_cc_c89" != xno; then :
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 if test $host != $build; then
3020 for ac_prog in gcc cc
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$BUILD_CC"; then
3030 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_BUILD_CC="$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3045 IFS=$as_save_IFS
3049 BUILD_CC=$ac_cv_prog_BUILD_CC
3050 if test -n "$BUILD_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3052 $as_echo "$BUILD_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$BUILD_CC" && break
3060 done
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3071 # On Suns, sometimes $CPP names a directory.
3072 if test -n "$CPP" && test -d "$CPP"; then
3073 CPP=
3075 if test -z "$CPP"; then
3076 if test "${ac_cv_prog_CPP+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 # Double quotes because CPP needs to be expanded
3080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3082 ac_preproc_ok=false
3083 for ac_c_preproc_warn_flag in '' yes
3085 # Use a header file that comes with gcc, so configuring glibc
3086 # with a fresh cross-compiler works.
3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3088 # <limits.h> exists even on freestanding compilers.
3089 # On the NeXT, cc -E runs the code through the compiler's parser,
3090 # not just through cpp. "Syntax error" is here to catch this case.
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093 #ifdef __STDC__
3094 # include <limits.h>
3095 #else
3096 # include <assert.h>
3097 #endif
3098 Syntax error
3099 _ACEOF
3100 if ac_fn_c_try_cpp "$LINENO"; then :
3102 else
3103 # Broken: fails on valid input.
3104 continue
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether nonexistent headers
3109 # can be detected and how.
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3113 _ACEOF
3114 if ac_fn_c_try_cpp "$LINENO"; then :
3115 # Broken: success on invalid input.
3116 continue
3117 else
3118 # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3122 rm -f conftest.err conftest.$ac_ext
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then :
3128 break
3131 done
3132 ac_cv_prog_CPP=$CPP
3135 CPP=$ac_cv_prog_CPP
3136 else
3137 ac_cv_prog_CPP=$CPP
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3140 $as_echo "$CPP" >&6; }
3141 ac_preproc_ok=false
3142 for ac_c_preproc_warn_flag in '' yes
3144 # Use a header file that comes with gcc, so configuring glibc
3145 # with a fresh cross-compiler works.
3146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147 # <limits.h> exists even on freestanding compilers.
3148 # On the NeXT, cc -E runs the code through the compiler's parser,
3149 # not just through cpp. "Syntax error" is here to catch this case.
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152 #ifdef __STDC__
3153 # include <limits.h>
3154 #else
3155 # include <assert.h>
3156 #endif
3157 Syntax error
3158 _ACEOF
3159 if ac_fn_c_try_cpp "$LINENO"; then :
3161 else
3162 # Broken: fails on valid input.
3163 continue
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether nonexistent headers
3168 # can be detected and how.
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171 #include <ac_nonexistent.h>
3172 _ACEOF
3173 if ac_fn_c_try_cpp "$LINENO"; then :
3174 # Broken: success on invalid input.
3175 continue
3176 else
3177 # Passes both tests.
3178 ac_preproc_ok=:
3179 break
3181 rm -f conftest.err conftest.$ac_ext
3183 done
3184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3185 rm -f conftest.err conftest.$ac_ext
3186 if $ac_preproc_ok; then :
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3192 See \`config.log' for more details." "$LINENO" 5; }
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 # We need the C++ compiler only for testing.
3202 ac_ext=cpp
3203 ac_cpp='$CXXCPP $CPPFLAGS'
3204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207 if test -z "$CXX"; then
3208 if test -n "$CCC"; then
3209 CXX=$CCC
3210 else
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CXX+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CXX"; then
3222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3241 CXX=$ac_cv_prog_CXX
3242 if test -n "$CXX"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3244 $as_echo "$CXX" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$CXX" && break
3252 done
3254 if test -z "$CXX"; then
3255 ac_ct_CXX=$CXX
3256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$ac_ct_CXX"; then
3266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CXX="$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3279 done
3280 done
3281 IFS=$as_save_IFS
3285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3286 if test -n "$ac_ct_CXX"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3288 $as_echo "$ac_ct_CXX" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$ac_ct_CXX" && break
3296 done
3298 if test "x$ac_ct_CXX" = x; then
3299 CXX="g++"
3300 else
3301 case $cross_compiling:$ac_tool_warned in
3302 yes:)
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305 ac_tool_warned=yes ;;
3306 esac
3307 CXX=$ac_ct_CXX
3313 # Provide some information about the compiler.
3314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3315 set X $ac_compile
3316 ac_compiler=$2
3317 for ac_option in --version -v -V -qversion; do
3318 { { ac_try="$ac_compiler $ac_option >&5"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3326 ac_status=$?
3327 if test -s conftest.err; then
3328 sed '10a\
3329 ... rest of stderr output deleted ...
3330 10q' conftest.err >conftest.er1
3331 cat conftest.er1 >&5
3333 rm -f conftest.er1 conftest.err
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 done
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3340 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3347 main ()
3349 #ifndef __GNUC__
3350 choke me
3351 #endif
3354 return 0;
3356 _ACEOF
3357 if ac_fn_cxx_try_compile "$LINENO"; then :
3358 ac_compiler_gnu=yes
3359 else
3360 ac_compiler_gnu=no
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3367 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3369 GXX=yes
3370 else
3371 GXX=
3373 ac_test_CXXFLAGS=${CXXFLAGS+set}
3374 ac_save_CXXFLAGS=$CXXFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3376 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3377 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3381 ac_cxx_werror_flag=yes
3382 ac_cv_prog_cxx_g=no
3383 CXXFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 if ac_fn_cxx_try_compile "$LINENO"; then :
3396 ac_cv_prog_cxx_g=yes
3397 else
3398 CXXFLAGS=""
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_cxx_try_compile "$LINENO"; then :
3412 else
3413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3414 CXXFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 if ac_fn_cxx_try_compile "$LINENO"; then :
3427 ac_cv_prog_cxx_g=yes
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3437 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3438 if test "$ac_test_CXXFLAGS" = set; then
3439 CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441 if test "$GXX" = yes; then
3442 CXXFLAGS="-g -O2"
3443 else
3444 CXXFLAGS="-g"
3446 else
3447 if test "$GXX" = yes; then
3448 CXXFLAGS="-O2"
3449 else
3450 CXXFLAGS=
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3461 as_fn_error "you must configure in a separate build directory" "$LINENO" 5
3464 # This will get text that should go into config.make.
3465 config_vars=
3467 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3469 # Check whether --with-gd was given.
3470 if test "${with_gd+set}" = set; then :
3471 withval=$with_gd; case "$with_gd" in
3472 yes|''|no) ;;
3473 *) libgd_include="-I$withval/include"
3474 libgd_ldflags="-L$withval/lib" ;;
3475 esac
3480 # Check whether --with-gd-include was given.
3481 if test "${with_gd_include+set}" = set; then :
3482 withval=$with_gd_include; case "$with_gd_include" in
3483 ''|no) ;;
3484 *) libgd_include="-I$withval" ;;
3485 esac
3490 # Check whether --with-gd-lib was given.
3491 if test "${with_gd_lib+set}" = set; then :
3492 withval=$with_gd_lib; case "$with_gd_lib" in
3493 ''|no) ;;
3494 *) libgd_ldflags="-L$withval" ;;
3495 esac
3500 if test -n "$libgd_include"; then
3501 config_vars="$config_vars
3502 CFLAGS-memusagestat.c = $libgd_include"
3504 if test -n "$libgd_ldflags"; then
3505 config_vars="$config_vars
3506 libgd-LDFLAGS = $libgd_ldflags"
3510 # Check whether --with-fp was given.
3511 if test "${with_fp+set}" = set; then :
3512 withval=$with_fp; with_fp=$withval
3513 else
3514 with_fp=yes
3519 # Check whether --with-binutils was given.
3520 if test "${with_binutils+set}" = set; then :
3521 withval=$with_binutils; path_binutils=$withval
3522 else
3523 path_binutils=''
3527 # Check whether --with-elf was given.
3528 if test "${with_elf+set}" = set; then :
3529 withval=$with_elf; elf=$withval
3530 else
3531 elf=no
3535 # Check whether --with-selinux was given.
3536 if test "${with_selinux+set}" = set; then :
3537 withval=$with_selinux; with_selinux=$withval
3538 else
3539 with_selinux=auto
3543 # Check whether --with-xcoff was given.
3544 if test "${with_xcoff+set}" = set; then :
3545 withval=$with_xcoff; xcoff=$withval
3546 else
3547 xcoff=no
3551 # Check whether --with-cvs was given.
3552 if test "${with_cvs+set}" = set; then :
3553 withval=$with_cvs; with_cvs=$withval
3554 else
3555 with_cvs=yes
3558 if test "$with_cvs" = yes; then
3559 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3560 then
3561 with_cvs=no
3567 # Check whether --with-headers was given.
3568 if test "${with_headers+set}" = set; then :
3569 withval=$with_headers; sysheaders=$withval
3570 else
3571 sysheaders=''
3575 # Check whether --enable-sanity-checks was given.
3576 if test "${enable_sanity_checks+set}" = set; then :
3577 enableval=$enable_sanity_checks; enable_sanity=$enableval
3578 else
3579 enable_sanity=yes
3584 # Check whether --enable-check-abi was given.
3585 if test "${enable_check_abi+set}" = set; then :
3586 enableval=$enable_check_abi; enable_check_abi=$enableval
3587 else
3588 enable_check_abi=no
3592 static=yes
3593 # Check whether --enable-shared was given.
3594 if test "${enable_shared+set}" = set; then :
3595 enableval=$enable_shared; shared=$enableval
3596 else
3597 shared=default
3600 # Check whether --enable-profile was given.
3601 if test "${enable_profile+set}" = set; then :
3602 enableval=$enable_profile; profile=$enableval
3603 else
3604 profile=no
3607 # Check whether --enable-omitfp was given.
3608 if test "${enable_omitfp+set}" = set; then :
3609 enableval=$enable_omitfp; omitfp=$enableval
3610 else
3611 omitfp=no
3614 # Check whether --enable-bounded was given.
3615 if test "${enable_bounded+set}" = set; then :
3616 enableval=$enable_bounded; bounded=$enableval
3617 else
3618 bounded=no
3621 # Check whether --enable-versioning was given.
3622 if test "${enable_versioning+set}" = set; then :
3623 enableval=$enable_versioning; enable_versioning=$enableval
3624 else
3625 enable_versioning=yes
3629 # Check whether --enable-oldest-abi was given.
3630 if test "${enable_oldest_abi+set}" = set; then :
3631 enableval=$enable_oldest_abi; oldest_abi=$enableval
3632 else
3633 oldest_abi=no
3636 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3637 oldest_abi=default
3638 else
3639 cat >>confdefs.h <<_ACEOF
3640 #define GLIBC_OLDEST_ABI "$oldest_abi"
3641 _ACEOF
3646 # Check whether --enable-stackguard-randomization was given.
3647 if test "${enable_stackguard_randomization+set}" = set; then :
3648 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3649 else
3650 enable_stackguard_randomize=no
3653 if test "$enable_stackguard_randomize" = yes; then
3654 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3658 # Check whether --enable-add-ons was given.
3659 if test "${enable_add_ons+set}" = set; then :
3660 enableval=$enable_add_ons;
3661 else
3662 enable_add_ons=yes
3667 # Check whether --with-tls was given.
3668 if test "${with_tls+set}" = set; then :
3669 withval=$with_tls; usetls=$withval
3670 else
3671 usetls=yes
3676 # Check whether --with-__thread was given.
3677 if test "${with___thread+set}" = set; then :
3678 withval=$with___thread; use__thread=$withval
3679 else
3680 use__thread=yes
3684 # Check whether --enable-hidden-plt was given.
3685 if test "${enable_hidden_plt+set}" = set; then :
3686 enableval=$enable_hidden_plt; hidden=$enableval
3687 else
3688 hidden=yes
3691 if test "x$hidden" = xno; then
3692 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3696 # Check whether --enable-bind-now was given.
3697 if test "${enable_bind_now+set}" = set; then :
3698 enableval=$enable_bind_now; bindnow=$enableval
3699 else
3700 bindnow=no
3705 # Check whether --enable-static-nss was given.
3706 if test "${enable_static_nss+set}" = set; then :
3707 enableval=$enable_static_nss; static_nss=$enableval
3708 else
3709 static_nss=no
3712 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3713 static_nss=yes
3714 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3718 # Check whether --enable-force-install was given.
3719 if test "${enable_force_install+set}" = set; then :
3720 enableval=$enable_force_install; force_install=$enableval
3721 else
3722 force_install=yes
3727 # Check whether --enable-kernel was given.
3728 if test "${enable_kernel+set}" = set; then :
3729 enableval=$enable_kernel; minimum_kernel=$enableval
3732 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3733 # Better nothing than this.
3734 minimum_kernel=""
3735 else
3736 if test "$minimum_kernel" = current; then
3737 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3741 # Check whether --enable-all-warnings was given.
3742 if test "${enable_all_warnings+set}" = set; then :
3743 enableval=$enable_all_warnings; all_warnings=$enableval
3748 # Check whether --enable-multi-arch was given.
3749 if test "${enable_multi_arch+set}" = set; then :
3750 enableval=$enable_multi_arch; multi_arch=$enableval
3751 else
3752 multi_arch=default
3756 # Check whether --enable-experimental-malloc was given.
3757 if test "${enable_experimental_malloc+set}" = set; then :
3758 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3763 # Check whether --enable-nss-crypt was given.
3764 if test "${enable_nss_crypt+set}" = set; then :
3765 enableval=$enable_nss_crypt; nss_crypt=$enableval
3766 else
3767 nss_crypt=no
3770 if test x$nss_crypt = xyes; then
3771 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3772 if test $? -ne 0; then
3773 as_fn_error "cannot find include directory with nss-config" "$LINENO" 5
3775 old_CFLAGS="$CFLAGS"
3776 CFLAGS="$CFLAGS $nss_includes"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 typedef int PRBool;
3781 #include <hasht.h>
3782 #include <nsslowhash.h>
3783 void f (void) { NSSLOW_Init (); }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 libc_cv_nss_crypt=yes
3787 else
3788 as_fn_error "
3789 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 old_LIBS="$LIBS"
3793 LIBS="$LIBS -lfreebl3"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 typedef int PRBool;
3797 #include <hasht.h>
3798 #include <nsslowhash.h>
3800 main ()
3802 NSSLOW_Init();
3804 return 0;
3806 _ACEOF
3807 if ac_fn_c_try_link "$LINENO"; then :
3808 libc_cv_nss_crypt=yes
3809 else
3810 as_fn_error "
3811 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3813 rm -f core conftest.err conftest.$ac_objext \
3814 conftest$ac_exeext conftest.$ac_ext
3815 CFLAGS="$old_CFLAGS"
3816 LIBS="$old_LIBS"
3817 else
3818 libc_cv_nss_crypt=no
3822 # The way shlib-versions is used to generate soversions.mk uses a
3823 # fairly simplistic model for name recognition that can't distinguish
3824 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3825 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3826 # tell. This doesn't get used much beyond that, so it's fairly safe.
3827 case "$host_os" in
3828 linux*)
3830 gnu*)
3831 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3833 esac
3835 # We keep the original values in `$config_*' and never modify them, so we
3836 # can write them unchanged into config.make. Everything else uses
3837 # $machine, $vendor, and $os, and changes them whenever convenient.
3838 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3840 # Don't allow vendor == "unknown"
3841 test "$config_vendor" = unknown && config_vendor=
3842 config_os="`echo $config_os | sed 's/^unknown-//'`"
3844 # Some configurations imply other options.
3845 case "$host_os" in
3846 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3847 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3849 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3850 # These systems (almost) always use the ELF format.
3851 elf=yes
3853 aix*)
3854 # These systems are always xcoff
3855 xcoff=yes
3856 elf=no
3858 esac
3860 # The configure fragment of an add-on port can modify these to supplement
3861 # or override the table in the case statement below. No fragment should
3862 # ever change the config_* variables, however.
3863 machine=$config_machine
3864 vendor=$config_vendor
3865 os=$config_os
3866 base_os=''
3868 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3869 # Unify this here.
3870 if test "$machine" = rs6000; then
3871 machine="powerpc"
3874 # Braindead PowerPC box with absolutely no FPU.
3875 case "$machine-$host_os" in
3876 powerpc*-*soft)
3877 with_fp=no
3879 esac
3881 submachine=
3883 # Check whether --with-cpu was given.
3884 if test "${with_cpu+set}" = set; then :
3885 withval=$with_cpu; case "$withval" in
3886 yes|'') as_fn_error "--with-cpu requires an argument" "$LINENO" 5 ;;
3887 no) ;;
3888 *) submachine="$withval" ;;
3889 esac
3894 # An add-on can set this when it wants to disable the sanity check below.
3895 libc_config_ok=no
3897 subdirs="$subdirs "
3900 case "$enable_add_ons" in
3901 ''|no) add_ons= ;;
3902 yes|'*')
3903 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3904 sed 's@/[^/]*$@@' | sort | uniq`
3905 add_ons_automatic=yes
3907 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3908 add_ons_automatic=no ;;
3909 esac
3911 configured_add_ons=
3912 add_ons_sfx=
3913 add_ons_pfx=
3914 if test x"$add_ons" != x; then
3915 for f in $add_ons; do
3916 # Some sanity checks
3917 case "$f" in
3918 crypt)
3919 as_fn_error "
3920 *** It seems that you're using an old \`crypt' add-on. crypt is now
3921 *** part of glibc and using the old add-on will not work with this
3922 *** release. Start again with fresh sources and without the old
3923 *** \`crypt' add-on." "$LINENO" 5
3925 localedata)
3926 as_fn_error "
3927 *** It seems that you're using an old \`localedata' add-on. localedata
3928 *** is now part of glibc and using the old add-on will not work with
3929 *** this release. Start again with fresh sources and without the old
3930 *** \`localedata' add-on." "$LINENO" 5
3932 esac
3933 done
3935 # Now source each add-on's configure fragment.
3936 # The fragments can use $srcdir/$libc_add_on to find themselves,
3937 # and test $add_ons_automatic to see if they were explicitly requested.
3938 # A fragment can clear (or even change) $libc_add_on to affect
3939 # whether it goes into the list to be actually used in the build.
3940 use_add_ons=
3941 for libc_add_on in $add_ons; do
3942 # Test whether such a directory really exists.
3943 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3944 case "$libc_add_on" in
3946 libc_add_on_srcdir=$libc_add_on
3949 test -d "$srcdir/$libc_add_on" || {
3950 if test -d "$libc_add_on"; then
3951 libc_add_on="`pwd`/$libc_add_on"
3952 else
3953 as_fn_error "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3956 libc_add_on_srcdir=$srcdir/$libc_add_on
3958 esac
3960 libc_add_on_frag=$libc_add_on_srcdir/configure
3961 libc_add_on_canonical=
3962 libc_add_on_config_subdirs=
3963 if test -r "$libc_add_on_frag"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3965 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3966 libc_add_on_canonical=unknown
3967 libc_add_on_subdirs=
3968 . "$libc_add_on_frag"
3969 test -z "$libc_add_on" || {
3970 configured_add_ons="$configured_add_ons $libc_add_on"
3971 if test "x$libc_add_on_canonical" = xunknown; then
3972 as_fn_error "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3974 for d in $libc_add_on_subdirs; do
3975 case "$libc_add_on" in
3976 /*) subdir_srcdir="$libc_add_on" ;;
3977 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3978 esac
3979 case "$d" in
3981 d="${libc_add_on_canonical:-$libc_add_on}"
3984 subdir_srcdir="$d"
3987 subdir_srcdir="$subdir_srcdir/$d"
3989 esac
3990 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3991 add_on_subdirs="$add_on_subdirs $d"
3992 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3993 $d-srcdir = $subdir_srcdir"
3994 done
3995 for d in $libc_add_on_config_subdirs; do
3996 case "$d" in
3997 /*) as_fn_error "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3998 esac
3999 if test ! -d "$libc_add_on_srcdir/$d"; then
4000 as_fn_error "fragment wants to configure missing directory $d" "$LINENO" 5
4002 case "$libc_add_on" in
4003 /*) as_fn_error "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4004 esac
4005 subdirs="$subdirs $libc_add_on/$d"
4006 done
4009 if test -n "$libc_add_on"; then
4010 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4011 then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4013 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4014 for frag in $frags; do
4015 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4016 echo $ECHO_N "$name $ECHO_C" >&6
4017 . "$frag"
4018 done
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4020 $as_echo "" >&6; }
4022 use_add_ons="$use_add_ons $libc_add_on"
4023 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4024 test -z "$libc_add_on_canonical" ||
4025 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4027 done
4028 # Use echo to strip excess whitespace.
4029 add_ons="`echo $use_add_ons`"
4036 ### I put this here to prevent those annoying emails from people who cannot
4037 ### read and try to compile glibc on unsupported platforms. --drepper
4039 ### By using the undocumented --enable-hacker-mode option for configure
4040 ### one can skip this test to make the configuration not fail for unsupported
4041 ### platforms.
4043 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4044 case "$machine-$host_os" in
4045 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4048 echo "*** The GNU C library is currently not available for this platform."
4049 echo "*** So far nobody cared to port it and if there is no volunteer it"
4050 echo "*** might never happen. So, if you have interest to see glibc on"
4051 echo "*** this platform visit"
4052 echo "*** http://www.gnu.org/software/libc/porting.html"
4053 echo "*** and join the group of porters"
4054 exit 1
4056 esac
4059 # Expand the configuration machine name into a subdirectory by architecture
4060 # type and particular chip. If an add-on configure fragment already set
4061 # base_machine, we don't change it.
4062 test -n "$base_machine" || case "$machine" in
4063 a29k | am29000) base_machine=a29k machine=a29k ;;
4064 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4065 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4066 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4067 ia64) base_machine=ia64 machine=ia64 ;;
4068 m88???) base_machine=m88k machine=m88k/$machine ;;
4069 m88k) base_machine=m88k machine=m88k/m88100 ;;
4070 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4071 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4072 s390) base_machine=s390 machine=s390/s390-32 ;;
4073 s390x) base_machine=s390 machine=s390/s390-64 ;;
4074 sh3*) base_machine=sh machine=sh/sh3 ;;
4075 sh4*) base_machine=sh machine=sh/sh4 ;;
4076 sparc | sparcv[67])
4077 base_machine=sparc machine=sparc/sparc32 ;;
4078 sparcv8 | supersparc | hypersparc)
4079 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4080 sparcv8plus | sparcv8plusa | sparcv9)
4081 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4082 sparcv8plusb | sparcv9b)
4083 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4084 sparcv9v)
4085 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4086 sparcv9v2)
4087 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4088 sparc64)
4089 base_machine=sparc machine=sparc/sparc64 ;;
4090 sparc64b)
4091 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4092 sparc64v)
4093 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4094 sparc64v2)
4095 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4096 *) base_machine=$machine ;;
4097 esac
4100 if test "$base_machine" = "i386"; then
4101 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4105 # For the multi-arch option we need support in the assembler.
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4107 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4108 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 cat > conftest.s <<EOF
4112 .type foo,%gnu_indirect_function
4114 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4115 then
4116 libc_cv_asm_gnu_indirect_function=yes
4117 else
4118 libc_cv_asm_gnu_indirect_function=no
4120 rm -f conftest*
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4123 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4126 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4127 if test "${libc_cv_dot_text+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 cat > conftest.s <<EOF
4131 .text
4133 libc_cv_dot_text=
4134 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 libc_cv_dot_text=.text
4142 rm -f conftest*
4145 if test -z "$libc_cv_dot_text"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4154 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4155 if test "${libc_cv_asm_global_directive+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 libc_cv_asm_global_directive=UNKNOWN
4159 for ac_globl in .globl .global .EXPORT; do
4160 cat > conftest.s <<EOF
4161 ${libc_cv_dot_text}
4162 ${ac_globl} foo
4163 foo:
4165 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4170 test $ac_status = 0; }; }; then
4171 libc_cv_asm_global_directive=${ac_globl}
4173 rm -f conftest*
4174 test $libc_cv_asm_global_directive != UNKNOWN && break
4175 done
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4178 $as_echo "$libc_cv_asm_global_directive" >&6; }
4179 if test $libc_cv_asm_global_directive = UNKNOWN; then
4180 as_fn_error "cannot determine asm global directive" "$LINENO" 5
4181 else
4182 cat >>confdefs.h <<_ACEOF
4183 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4184 _ACEOF
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4189 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4190 if test "${libc_cv_asm_type_prefix+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 libc_cv_asm_type_prefix=no
4194 for ac_try_prefix in '@' '%' '#'; do
4195 cat > conftest.s <<EOF
4196 ${libc_cv_dot_text}
4197 ${libc_cv_asm_global_directive} foo
4198 .type foo, ${ac_try_prefix}object
4199 .size foo, 1
4200 foo:
4201 .byte 1
4203 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; }; then
4209 libc_cv_asm_type_prefix=${ac_try_prefix}
4211 rm -f conftest*
4212 test "x$libc_cv_asm_type_prefix" != xno && break
4213 done
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4216 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4217 if test "x$libc_cv_asm_type_prefix" != xno; then
4218 cat >>confdefs.h <<_ACEOF
4219 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4220 _ACEOF
4224 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4225 if test x"$multi_arch" = xyes; then
4226 as_fn_error "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4227 else
4228 multi_arch=no
4231 if test x"$multi_arch" != xno; then
4232 multi_arch_d=/multiarch
4235 # Compute the list of sysdep directories for this configuration.
4236 # This can take a while to compute.
4237 sysdep_dir=$srcdir/sysdeps
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4239 $as_echo_n "checking sysdep dirs... " >&6; }
4240 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4241 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4243 test "x$base_os" != x || case "$os" in
4244 gnu*)
4245 base_os=mach/hurd ;;
4246 netbsd* | 386bsd* | freebsd* | bsdi*)
4247 base_os=unix/bsd/bsd4.4 ;;
4248 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4249 base_os=unix/bsd ;;
4250 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4251 base_os=unix/sysv ;;
4252 irix6*)
4253 base_os=unix/sysv/irix6/$os ;;
4254 solaris[2-9]*)
4255 base_os=unix/sysv/sysv4 ;;
4256 hpux*)
4257 base_os=unix/sysv/hpux/$os ;;
4258 aix4.3*)
4259 base_os=unix/sysv/aix/aix4.3 ;;
4260 none)
4261 base_os=standalone ;;
4262 esac
4264 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4265 tail=$os
4266 ostry=$os
4267 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4268 ostry="$ostry /$o"
4269 tail=$o
4270 done
4271 o=`echo $tail | sed 's/[0-9]*$//'`
4272 if test $o != $tail; then
4273 ostry="$ostry /$o"
4275 # For linux-gnu, try linux-gnu, then linux.
4276 o=`echo $tail | sed 's/-.*$//'`
4277 if test $o != $tail; then
4278 ostry="$ostry /$o"
4281 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4282 base=
4283 tail=$base_os
4284 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4285 set $b
4286 base="$base /$1"
4287 tail="$2"
4288 done
4290 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4291 mach=
4292 tail=$machine${submachine:+/$submachine}
4293 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4294 set $m
4295 # Prepend the machine's FPU directory unless --without-fp.
4296 if test "$with_fp" = yes; then
4297 mach="$mach /$1/fpu"
4298 else
4299 mach="$mach /$1/nofpu"
4301 mach="$mach /$1"
4302 tail="$2"
4303 done
4306 # Find what sysdep directories exist.
4307 sysnames_add_ons=
4308 sysnames=
4309 for b in $base ''; do
4310 for m0 in $mach ''; do
4311 for v in /$vendor ''; do
4312 test "$v" = / && continue
4313 for o in /$ostry ''; do
4314 test "$o" = / && continue
4315 for m in $multi_arch_d $mach ''; do
4316 for d in $add_ons_pfx ''; do
4317 for a in $add_ons_sfx ''; do
4318 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4319 try_srcdir="${srcdir}/"
4320 case "$d" in
4321 /*) try_srcdir= ;;
4322 esac
4323 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4324 test -n "$enable_debug_configure" &&
4325 echo "$0 DEBUG: try $try" >&2
4326 if test -d "$try_srcdir$try"; then
4327 sysnames="$sysnames $try"
4328 { test -n "$o" || test -n "$b"; } && os_used=t
4329 { test -n "$m" || test -n "$m0"; } && machine_used=t
4330 case x${m0:-$m} in
4331 x*/$submachine) submachine_used=t ;;
4332 esac
4333 if test -n "$d"; then
4334 case "$sysnames_add_ons" in
4335 *" $d "*) ;;
4336 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4337 esac
4341 done
4342 done
4343 done
4344 done
4345 done
4346 done
4347 done
4349 # If the assembler supports gnu_indirect_function symbol type and the
4350 # architecture supports multi-arch, we enable multi-arch by default.
4351 case $sysnames_add_ons$sysnames in
4352 *"$multi_arch_d"*)
4355 multi_arch=no
4357 esac
4358 if test x"$multi_arch" != xno; then
4359 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4364 if test -z "$os_used" && test "$os" != none; then
4365 as_fn_error "Operating system $os is not supported." "$LINENO" 5
4367 if test -z "$machine_used" && test "$machine" != none; then
4368 as_fn_error "The $machine is not supported." "$LINENO" 5
4370 if test -z "$submachine_used" && test -n "$submachine"; then
4371 as_fn_error "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4375 # We have now validated the configuration.
4378 # If using ELF, look for an `elf' subdirectory of each machine directory.
4379 # We prepend these rather than inserting them whereever the machine appears
4380 # because things specified by the machine's ELF ABI should override
4381 # OS-specific things, and should always be the same for any OS on the
4382 # machine (otherwise what's the point of an ABI?).
4383 if test "$elf" = yes; then
4384 elf_dirs=
4385 for d in $add_ons_pfx ''; do
4386 for m in $mach; do
4387 if test -d $srcdir/${d}sysdeps$m/elf; then
4388 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4390 done
4391 done
4392 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4396 # Expand the list of system names into a full list of directories
4397 # from each element's parent name and Implies file (if present).
4398 set $sysnames
4399 names=
4400 while test $# -gt 0; do
4401 name=$1
4402 shift
4404 case " $names " in *" $name "*)
4405 # Already in the list.
4406 continue
4407 esac
4409 # Report each name as we discover it, so there is no long pause in output.
4410 echo $ECHO_N "$name $ECHO_C" >&6
4412 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4414 case $name in
4415 /*) xsrcdir= ;;
4416 *) xsrcdir=$srcdir/ ;;
4417 esac
4418 test -n "$enable_debug_configure" &&
4419 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4421 if test -f $xsrcdir$name/Implies; then
4422 # Collect more names from the `Implies' file (removing comments).
4423 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4424 implied=
4425 for x in $implied_candidate; do
4426 found=no
4427 if test -d $xsrcdir$name_base/$x; then
4428 implied="$implied $name_base/$x";
4429 found=yes
4431 for d in $add_ons_pfx ''; do
4432 try="${d}sysdeps/$x"
4433 case $d in
4434 /*) try_srcdir= ;;
4435 *) try_srcdir=$srcdir/ ;;
4436 esac
4437 test -n "$enable_debug_configure" &&
4438 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4439 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4440 then
4441 implied="$implied $try"
4442 found=yes
4443 case "$sysnames_add_ons" in
4444 *" $d "*) ;;
4445 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4446 esac
4448 done
4449 if test $found = no; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4451 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4453 done
4454 else
4455 implied=
4458 # Add NAME to the list of names.
4459 names="$names $name"
4461 # Find the parent of NAME, using the empty string if it has none.
4462 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4464 # Add the names implied by NAME, and NAME's parent (if it has one), to
4465 # the list of names to be processed (the argument list). We prepend the
4466 # implied names to the list and append the parent. We want implied
4467 # directories to come before further directories inferred from the
4468 # configuration components; this ensures that for sysv4, unix/common
4469 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4470 # after sysv4).
4471 sysnames="`echo $implied $* $parent`"
4472 test -n "$sysnames" && set $sysnames
4473 done
4475 # Add the default directories.
4476 default_sysnames=sysdeps/generic
4477 if test "$elf" = yes; then
4478 default_sysnames="sysdeps/generic/elf $default_sysnames"
4480 sysnames="$names $default_sysnames"
4482 # The other names were emitted during the scan.
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4484 $as_echo "$default_sysnames" >&6; }
4486 # Collect the list of add-ons that supply partial sysdeps trees.
4487 sysdeps_add_ons=
4488 for add_on in $add_ons; do
4489 case "$add_on" in
4490 /*) xsrcdir= ;;
4491 *) xsrcdir="$srcdir/" ;;
4492 esac
4494 test -d "$xsrcdir$add_on/sysdeps" || {
4495 case "$configured_add_ons " in
4496 *" $add_on "*) ;;
4497 *|'')
4498 as_fn_error "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4500 esac
4501 continue
4504 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4505 case "$sysnames_add_ons" in
4506 *" $add_on/ "*) ;;
4507 *|'')
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4509 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4510 continue ;;
4511 esac
4513 found=no
4514 for d in $sysnames; do
4515 case "$d" in
4516 $add_on/sysdeps/*) ;;
4517 *) continue ;;
4518 esac
4519 (cd "$xsrcdir$d" && for f in *[!~]; do
4520 case "$f" in
4521 sys|bits)
4522 for ff in $f/*.h; do
4523 test -d "$ff" || { test -e "$ff" && exit 88; }
4524 done
4527 test -d "$f" || { test -e "$f" && exit 88; }
4529 esac
4530 done)
4531 if test $? -eq 88; then
4532 found=yes
4533 break
4535 done
4536 if test $found = no; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4538 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4540 done
4544 ### Locate tools.
4546 # Find a good install program. We prefer a C program (faster),
4547 # so one script is as good as another. But avoid the broken or
4548 # incompatible versions:
4549 # SysV /etc/install, /usr/sbin/install
4550 # SunOS /usr/etc/install
4551 # IRIX /sbin/install
4552 # AIX /bin/install
4553 # AmigaOS /C/install, which installs bootblocks on floppy discs
4554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4557 # OS/2's system install, which has a completely different semantic
4558 # ./install, which can be erroneously created by make from ./install.sh.
4559 # Reject install programs that cannot install multiple files.
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4562 if test -z "$INSTALL"; then
4563 if test "${ac_cv_path_install+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 # Account for people who put trailing slashes in PATH elements.
4572 case $as_dir/ in #((
4573 ./ | .// | /[cC]/* | \
4574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4576 /usr/ucb/* ) ;;
4578 # OSF1 and SCO ODT 3.0 have their own names for install.
4579 # Don't use installbsd from OSF since it installs stuff as root
4580 # by default.
4581 for ac_prog in ginstall scoinst install; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4584 if test $ac_prog = install &&
4585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4586 # AIX install. It has an incompatible calling convention.
4588 elif test $ac_prog = install &&
4589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4590 # program-specific install script used by HP pwplus--don't use.
4592 else
4593 rm -rf conftest.one conftest.two conftest.dir
4594 echo one > conftest.one
4595 echo two > conftest.two
4596 mkdir conftest.dir
4597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4598 test -s conftest.one && test -s conftest.two &&
4599 test -s conftest.dir/conftest.one &&
4600 test -s conftest.dir/conftest.two
4601 then
4602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4603 break 3
4607 done
4608 done
4610 esac
4612 done
4613 IFS=$as_save_IFS
4615 rm -rf conftest.one conftest.two conftest.dir
4618 if test "${ac_cv_path_install+set}" = set; then
4619 INSTALL=$ac_cv_path_install
4620 else
4621 # As a last resort, use the slow shell script. Don't cache a
4622 # value for INSTALL within a source directory, because that will
4623 # break other packages using the cache if that directory is
4624 # removed, or if the value is a relative name.
4625 INSTALL=$ac_install_sh
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4629 $as_echo "$INSTALL" >&6; }
4631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4632 # It thinks the first close brace ends the variable substitution.
4633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4639 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4640 # The makefiles need to use a different form to find it in $srcdir.
4641 INSTALL='\$(..)./scripts/install-sh -c'
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4644 $as_echo_n "checking whether ln -s works... " >&6; }
4645 LN_S=$as_ln_s
4646 if test "$LN_S" = "ln -s"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4648 $as_echo "yes" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4651 $as_echo "no, using $LN_S" >&6; }
4655 # Was a --with-binutils option given?
4656 if test -n "$path_binutils"; then
4657 # Make absolute; ensure a single trailing slash.
4658 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4659 CC="$CC -B$path_binutils"
4661 AS=`$CC -print-prog-name=as`
4662 LD=`$CC -print-prog-name=ld`
4663 AR=`$CC -print-prog-name=ar`
4665 OBJDUMP=`$CC -print-prog-name=objdump`
4668 # ranlib has to be treated a bit differently since it might not exist at all.
4669 ac_ranlib=`$CC -print-prog-name=ranlib`
4670 if test "x$ac_ranlib" = xranlib; then
4671 # This extra check has to happen since gcc simply echos the parameter in
4672 # case it cannot find the value in its own directories.
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$RANLIB"; then
4682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 RANLIB=$ac_cv_prog_RANLIB
4702 if test -n "$RANLIB"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4704 $as_echo "$RANLIB" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4712 if test -z "$ac_cv_prog_RANLIB"; then
4713 ac_ct_RANLIB=$RANLIB
4714 # Extract the first word of "ranlib", so it can be a program name with args.
4715 set dummy ranlib; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$ac_ct_RANLIB"; then
4722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_RANLIB="ranlib"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4742 if test -n "$ac_ct_RANLIB"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4744 $as_echo "$ac_ct_RANLIB" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4750 if test "x$ac_ct_RANLIB" = x; then
4751 RANLIB=":"
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757 ac_tool_warned=yes ;;
4758 esac
4759 RANLIB=$ac_ct_RANLIB
4761 else
4762 RANLIB="$ac_cv_prog_RANLIB"
4765 else
4766 RANLIB=$ac_ranlib
4770 # Determine whether we are using GNU binutils.
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4772 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4773 if test "${libc_cv_prog_as_gnu+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 # Most GNU programs take a -v and spit out some text including
4777 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4778 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4779 libc_cv_prog_as_gnu=yes
4780 else
4781 libc_cv_prog_as_gnu=no
4783 rm -fr contest*
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4786 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4787 rm -f a.out
4788 gnu_as=$libc_cv_prog_as_gnu
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4791 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4792 if test "${libc_cv_prog_ld_gnu+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 # Most GNU programs take a -v and spit out some text including
4796 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4797 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4798 libc_cv_prog_ld_gnu=yes
4799 else
4800 libc_cv_prog_ld_gnu=no
4802 rm -fr contest*
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4805 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4806 gnu_ld=$libc_cv_prog_ld_gnu
4809 # Accept binutils 2.13 or newer.
4810 for ac_prog in $AS
4812 # Extract the first word of "$ac_prog", so it can be a program name with args.
4813 set dummy $ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_AS+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$AS"; then
4820 ac_cv_prog_AS="$AS" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_AS="$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 AS=$ac_cv_prog_AS
4840 if test -n "$AS"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4842 $as_echo "$AS" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$AS" && break
4850 done
4852 if test -z "$AS"; then
4853 ac_verc_fail=yes
4854 else
4855 # Found it, now check the version.
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4857 $as_echo_n "checking version of $AS... " >&6; }
4858 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4859 case $ac_prog_version in
4860 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4861 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4862 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4863 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4865 esac
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4867 $as_echo "$ac_prog_version" >&6; }
4869 if test $ac_verc_fail = yes; then
4870 AS=: critic_missing="$critic_missing as"
4873 for ac_prog in $LD
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_LD+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$LD"; then
4883 ac_cv_prog_LD="$LD" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_LD="$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 LD=$ac_cv_prog_LD
4903 if test -n "$LD"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4905 $as_echo "$LD" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$LD" && break
4913 done
4915 if test -z "$LD"; then
4916 ac_verc_fail=yes
4917 else
4918 # Found it, now check the version.
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4920 $as_echo_n "checking version of $LD... " >&6; }
4921 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4922 case $ac_prog_version in
4923 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4924 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4925 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4926 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4928 esac
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4930 $as_echo "$ac_prog_version" >&6; }
4932 if test $ac_verc_fail = yes; then
4933 LD=: critic_missing="$critic_missing ld"
4937 # We need the physical current working directory. We cannot use the
4938 # "pwd -P" shell builtin since that's not portable. Instead we try to
4939 # find a pwd binary. Note that assigning to the PWD environment
4940 # variable might have some interesting side effects, so we don't do
4941 # that.
4942 # Extract the first word of "pwd", so it can be a program name with args.
4943 set dummy pwd; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_path_PWD_P+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 case $PWD_P in
4950 [\\/]* | ?:[\\/]*)
4951 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4969 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4971 esac
4973 PWD_P=$ac_cv_path_PWD_P
4974 if test -n "$PWD_P"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4976 $as_echo "$PWD_P" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 if test "$PWD_P" = no; then
4984 as_fn_error "*** A pwd binary could not be found." "$LINENO" 5
4987 # These programs are version sensitive.
4989 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4991 # Extract the first word of "$ac_prog", so it can be a program name with args.
4992 set dummy $ac_prog; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_CC+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$CC"; then
4999 ac_cv_prog_CC="$CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_CC="$ac_prog"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 CC=$ac_cv_prog_CC
5019 if test -n "$CC"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5021 $as_echo "$CC" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 test -n "$CC" && break
5029 done
5031 if test -z "$CC"; then
5032 ac_verc_fail=yes
5033 else
5034 # Found it, now check the version.
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
5036 $as_echo_n "checking version of $CC... " >&6; }
5037 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5038 case $ac_prog_version in
5039 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5040 3.4* | 4.[0-9]* )
5041 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5042 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5044 esac
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5046 $as_echo "$ac_prog_version" >&6; }
5048 if test $ac_verc_fail = yes; then
5049 critic_missing="$critic_missing gcc"
5052 for ac_prog in gnumake gmake make
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_MAKE+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$MAKE"; then
5062 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_MAKE="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 MAKE=$ac_cv_prog_MAKE
5082 if test -n "$MAKE"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5084 $as_echo "$MAKE" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 test -n "$MAKE" && break
5092 done
5094 if test -z "$MAKE"; then
5095 ac_verc_fail=yes
5096 else
5097 # Found it, now check the version.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5099 $as_echo_n "checking version of $MAKE... " >&6; }
5100 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5101 case $ac_prog_version in
5102 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5103 3.79* | 3.[89]*)
5104 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5105 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5107 esac
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5109 $as_echo "$ac_prog_version" >&6; }
5111 if test $ac_verc_fail = yes; then
5112 critic_missing="$critic_missing make"
5116 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5118 # Extract the first word of "$ac_prog", so it can be a program name with args.
5119 set dummy $ac_prog; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_MSGFMT+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$MSGFMT"; then
5126 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_MSGFMT="$ac_prog"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 MSGFMT=$ac_cv_prog_MSGFMT
5146 if test -n "$MSGFMT"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5148 $as_echo "$MSGFMT" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5155 test -n "$MSGFMT" && break
5156 done
5158 if test -z "$MSGFMT"; then
5159 ac_verc_fail=yes
5160 else
5161 # Found it, now check the version.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5163 $as_echo_n "checking version of $MSGFMT... " >&6; }
5164 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5165 case $ac_prog_version in
5166 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5167 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5168 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5169 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5171 esac
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5173 $as_echo "$ac_prog_version" >&6; }
5175 if test $ac_verc_fail = yes; then
5176 MSGFMT=: aux_missing="$aux_missing msgfmt"
5179 for ac_prog in makeinfo
5181 # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$MAKEINFO"; then
5189 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_MAKEINFO="$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5202 done
5203 done
5204 IFS=$as_save_IFS
5208 MAKEINFO=$ac_cv_prog_MAKEINFO
5209 if test -n "$MAKEINFO"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5211 $as_echo "$MAKEINFO" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 test -n "$MAKEINFO" && break
5219 done
5221 if test -z "$MAKEINFO"; then
5222 ac_verc_fail=yes
5223 else
5224 # Found it, now check the version.
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5226 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5227 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5228 case $ac_prog_version in
5229 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5230 4.*)
5231 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5232 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5234 esac
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5236 $as_echo "$ac_prog_version" >&6; }
5238 if test $ac_verc_fail = yes; then
5239 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5242 for ac_prog in sed
5244 # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_SED+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$SED"; then
5252 ac_cv_prog_SED="$SED" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_SED="$ac_prog"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 SED=$ac_cv_prog_SED
5272 if test -n "$SED"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5274 $as_echo "$SED" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 test -n "$SED" && break
5282 done
5284 if test -z "$SED"; then
5285 ac_verc_fail=yes
5286 else
5287 # Found it, now check the version.
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5289 $as_echo_n "checking version of $SED... " >&6; }
5290 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5291 case $ac_prog_version in
5292 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5293 3.0[2-9]*|3.[1-9]*|[4-9]*)
5294 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5295 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5297 esac
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5299 $as_echo "$ac_prog_version" >&6; }
5301 if test $ac_verc_fail = yes; then
5302 SED=: aux_missing="$aux_missing sed"
5306 for ac_prog in autoconf
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$AUTOCONF"; then
5316 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_AUTOCONF="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 AUTOCONF=$ac_cv_prog_AUTOCONF
5336 if test -n "$AUTOCONF"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5338 $as_echo "$AUTOCONF" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5345 test -n "$AUTOCONF" && break
5346 done
5347 test -n "$AUTOCONF" || AUTOCONF="no"
5349 case "x$AUTOCONF" in
5350 xno|x|x:) AUTOCONF=no ;;
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5353 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5354 if test "${libc_cv_autoconf_works+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5358 libc_cv_autoconf_works=yes
5359 else
5360 libc_cv_autoconf_works=no
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5364 $as_echo "$libc_cv_autoconf_works" >&6; }
5365 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5367 esac
5368 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5369 # If --without-cvs they probably won't change configure.in, so no complaints.
5370 aux_missing="$aux_missing autoconf"
5373 test -n "$critic_missing" && as_fn_error "
5374 *** These critical programs are missing or too old:$critic_missing
5375 *** Check the INSTALL file for required versions." "$LINENO" 5
5377 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5378 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5379 *** some features will be disabled.
5380 *** Check the INSTALL file for required versions." >&5
5381 $as_echo "$as_me: 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." >&2;}
5386 # if using special system headers, find out the compiler's sekrit
5387 # header directory and add that to the list. NOTE: Only does the right
5388 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5389 if test -n "$sysheaders"; then
5390 SYSINCLUDES=-nostdinc
5391 for d in include include-fixed; do
5392 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5393 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5394 done
5395 SYSINCLUDES="$SYSINCLUDES \
5396 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5397 if test -n "$CXX"; then
5398 cxxversion=`$CXX -dumpversion 2>&5` &&
5399 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5400 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5401 CXX_SYSINCLUDES="-isystem $cxxheaders \
5402 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5408 # check if ranlib is necessary
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ranlib is necessary" >&5
5410 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5411 if test "${libc_cv_ranlib_necessary+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat > conftest.c <<EOF
5415 int a;
5416 char b;
5417 void c(void) {}
5419 $CC $CFLAGS $CPPFLAGS -c conftest.c
5420 $AR cr conftest.a conftest.o
5421 cp conftest.a conftest2.a
5422 $RANLIB conftest.a
5423 if cmp -s conftest.a conftest2.a; then
5424 libc_cv_ranlib_necessary=no
5425 else
5426 libc_cv_ranlib_necessary=yes
5428 rm -rf conftest*
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ranlib_necessary" >&5
5431 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5432 if test "$libc_cv_ranlib_necessary" = no; then
5433 RANLIB=:
5436 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5437 # since this would lead to problems installing/building glibc.
5438 # LD_LIBRARY_PATH contains the current directory if one of the following
5439 # is true:
5440 # - one of the terminals (":" and ";") is the first or last sign
5441 # - two terminals occur directly after each other
5442 # - the path contains an element with a dot in it
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5444 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5445 case ${LD_LIBRARY_PATH} in
5446 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5447 ld_library_path_setting="contains current directory"
5450 ld_library_path_setting="ok"
5452 esac
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5454 $as_echo "$ld_library_path_setting" >&6; }
5455 if test "$ld_library_path_setting" != "ok"; then
5456 as_fn_error "
5457 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5458 *** building glibc. Please change the environment variable
5459 *** and run configure again." "$LINENO" 5
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5463 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5464 if test "${libc_cv_gcc_static_libgcc+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5468 libc_cv_gcc_static_libgcc=
5469 else
5470 libc_cv_gcc_static_libgcc=-static-libgcc
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5474 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5477 # Extract the first word of "bash", so it can be a program name with args.
5478 set dummy bash; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_path_BASH_SHELL+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 case $BASH_SHELL in
5485 [\\/]* | ?:[\\/]*)
5486 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5502 IFS=$as_save_IFS
5504 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5506 esac
5508 BASH_SHELL=$ac_cv_path_BASH_SHELL
5509 if test -n "$BASH_SHELL"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5511 $as_echo "$BASH_SHELL" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$BASH_SHELL" != no &&
5519 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5520 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5521 libc_cv_have_bash2=yes
5522 else
5523 libc_cv_have_bash2=no
5527 if test "$BASH_SHELL" = no; then
5528 # Extract the first word of "ksh", so it can be a program name with args.
5529 set dummy ksh; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_path_KSH+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 case $KSH in
5536 [\\/]* | ?:[\\/]*)
5537 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5551 done
5552 done
5553 IFS=$as_save_IFS
5555 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5557 esac
5559 KSH=$ac_cv_path_KSH
5560 if test -n "$KSH"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5562 $as_echo "$KSH" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5569 if test "$KSH" = no; then
5570 libc_cv_have_ksh=no
5571 else
5572 libc_cv_have_ksh=yes
5574 else
5575 KSH="$BASH_SHELL"
5577 libc_cv_have_ksh=yes
5581 for ac_prog in gawk mawk nawk awk
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_AWK+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$AWK"; then
5591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_AWK="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 AWK=$ac_cv_prog_AWK
5611 if test -n "$AWK"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5613 $as_echo "$AWK" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 test -n "$AWK" && break
5621 done
5623 # Extract the first word of "perl", so it can be a program name with args.
5624 set dummy perl; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_path_PERL+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 case $PERL in
5631 [\\/]* | ?:[\\/]*)
5632 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5650 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5652 esac
5654 PERL=$ac_cv_path_PERL
5655 if test -n "$PERL"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5657 $as_echo "$PERL" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 if test "$PERL" != no &&
5665 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5666 PERL=no
5668 # Extract the first word of "install-info", so it can be a program name with args.
5669 set dummy install-info; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 case $INSTALL_INFO in
5676 [\\/]* | ?:[\\/]*)
5677 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5682 for as_dir in $as_dummy
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5696 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5698 esac
5700 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5701 if test -n "$INSTALL_INFO"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5703 $as_echo "$INSTALL_INFO" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5710 # Extract the first word of "bison", so it can be a program name with args.
5711 set dummy bison; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_path_BISON+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 case $BISON in
5718 [\\/]* | ?:[\\/]*)
5719 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5724 for as_dir in $as_dummy
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5734 done
5735 done
5736 IFS=$as_save_IFS
5738 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5740 esac
5742 BISON=$ac_cv_path_BISON
5743 if test -n "$BISON"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5745 $as_echo "$BISON" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5754 $as_echo_n "checking for signed size_t type... " >&6; }
5755 if test "${libc_cv_signed_size_t+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 echo '#include <stddef.h>
5759 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5760 if eval "$ac_cpp conftest.c 2>/dev/null" \
5761 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5762 libc_cv_signed_size_t=no
5763 else
5764 libc_cv_signed_size_t=yes
5766 rm -f conftest*
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5769 $as_echo "$libc_cv_signed_size_t" >&6; }
5770 if test $libc_cv_signed_size_t = yes; then
5771 cat >> confdefs.h <<\EOF
5772 #undef __SIZE_TYPE__
5773 #define __SIZE_TYPE__ unsigned
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5778 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5779 if test "${libc_cv_friendly_stddef+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #define __need_size_t
5785 #define __need_wchar_t
5786 #include <stddef.h>
5787 #define __need_NULL
5788 #include <stddef.h>
5790 main ()
5792 size_t size; wchar_t wchar;
5793 #ifdef offsetof
5794 #error stddef.h ignored __need_*
5795 #endif
5796 if (&size == NULL || &wchar == NULL) abort ();
5798 return 0;
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"; then :
5802 libc_cv_friendly_stddef=yes
5803 else
5804 libc_cv_friendly_stddef=no
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5809 $as_echo "$libc_cv_friendly_stddef" >&6; }
5810 if test $libc_cv_friendly_stddef = yes; then
5811 config_vars="$config_vars
5812 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5816 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5817 if test "${libc_cv_need_minus_P+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 cat > conftest.S <<EOF
5821 #include "confdefs.h"
5822 /* Nothing whatsoever. */
5824 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; }; then
5830 libc_cv_need_minus_P=no
5831 else
5832 libc_cv_need_minus_P=yes
5834 rm -f conftest*
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5837 $as_echo "$libc_cv_need_minus_P" >&6; }
5838 if test $libc_cv_need_minus_P = yes; then
5839 config_vars="$config_vars
5840 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5844 $as_echo_n "checking for .set assembler directive... " >&6; }
5845 if test "${libc_cv_asm_set_directive+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 cat > conftest.s <<EOF
5849 ${libc_cv_dot_text}
5850 foo:
5851 .set glibc_conftest_frobozz,foo
5852 $libc_cv_asm_global_directive glibc_conftest_frobozz
5854 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5855 # (but it doesn't work), so we must do a linking check to be sure.
5856 cat > conftest1.c <<\EOF
5857 extern int glibc_conftest_frobozz;
5858 void _start() { glibc_conftest_frobozz = 1; }
5860 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5861 -nostartfiles -nostdlib \
5862 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5863 libc_cv_asm_set_directive=yes
5864 else
5865 libc_cv_asm_set_directive=no
5867 rm -f conftest*
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5870 $as_echo "$libc_cv_asm_set_directive" >&6; }
5871 if test $libc_cv_asm_set_directive = yes; then
5872 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5877 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5878 if test "${libc_cv_asm_unique_object+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat > conftest.s <<EOF
5882 ${libc_cv_dot_text}
5883 _sym:
5884 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5886 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5887 libc_cv_asm_unique_object=yes
5888 else
5889 libc_cv_asm_unique_object=no
5891 rm -f conftest*
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5894 $as_echo "$libc_cv_asm_unique_object" >&6; }
5895 if test $libc_cv_asm_unique_object = yes; then
5896 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5901 $as_echo_n "checking for .symver assembler directive... " >&6; }
5902 if test "${libc_cv_asm_symver_directive+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat > conftest.s <<EOF
5906 ${libc_cv_dot_text}
5907 _sym:
5908 .symver _sym,sym@VERS
5910 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5911 libc_cv_asm_symver_directive=yes
5912 else
5913 libc_cv_asm_symver_directive=no
5915 rm -f conftest*
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5918 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5920 $as_echo_n "checking for ld --version-script... " >&6; }
5921 if test "${libc_cv_ld_version_script_option+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test $libc_cv_asm_symver_directive = yes; then
5925 cat > conftest.s <<EOF
5926 ${libc_cv_dot_text}
5927 _sym:
5928 .symver _sym,sym@VERS
5930 cat > conftest.map <<EOF
5931 VERS_1 {
5932 global: sym;
5935 VERS_2 {
5936 global: sym;
5937 } VERS_1;
5939 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5940 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5941 -o conftest.so conftest.o
5942 -nostartfiles -nostdlib
5943 -Wl,--version-script,conftest.map
5944 1>&5'
5945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; }; };
5950 then
5951 libc_cv_ld_version_script_option=yes
5952 else
5953 libc_cv_ld_version_script_option=no
5955 else
5956 libc_cv_ld_version_script_option=no
5958 else
5959 libc_cv_ld_version_script_option=no
5961 rm -f conftest*
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5964 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5965 if test $shared != no &&
5966 test $libc_cv_asm_symver_directive = yes &&
5967 test $libc_cv_ld_version_script_option = yes &&
5968 test $enable_versioning = yes; then
5969 VERSIONING=yes
5970 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5972 else
5973 VERSIONING=no
5977 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5978 echo "\
5979 *** WARNING: You should not compile GNU libc without versioning. Not using
5980 *** versioning will introduce incompatibilities so that old binaries
5981 *** will not run anymore.
5982 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5984 if test $elf = yes; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5986 $as_echo_n "checking for .previous assembler directive... " >&6; }
5987 if test "${libc_cv_asm_previous_directive+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat > conftest.s <<EOF
5991 .section foo_section
5992 .previous
5994 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; }; then
6000 libc_cv_asm_previous_directive=yes
6001 else
6002 libc_cv_asm_previous_directive=no
6004 rm -f conftest*
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
6007 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6008 if test $libc_cv_asm_previous_directive = yes; then
6009 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
6013 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6014 if test "${libc_cv_asm_popsection_directive+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat > conftest.s <<EOF
6018 .pushsection foo_section
6019 .popsection
6021 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }; }; then
6027 libc_cv_asm_popsection_directive=yes
6028 else
6029 libc_cv_asm_popsection_directive=no
6031 rm -f conftest*
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
6034 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6035 if test $libc_cv_asm_popsection_directive = yes; then
6036 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
6041 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6042 if test "${libc_cv_asm_protected_directive+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat > conftest.s <<EOF
6046 .protected foo
6047 foo:
6048 .hidden bar
6049 bar:
6051 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; }; then
6057 libc_cv_asm_protected_directive=yes
6058 else
6059 as_fn_error "assembler support for symbol visibility is required" "$LINENO" 5
6061 rm -f conftest*
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
6064 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6066 if test $libc_cv_asm_protected_directive = yes; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
6068 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6069 if test "${libc_cv_visibility_attribute+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat > conftest.c <<EOF
6073 int foo __attribute__ ((visibility ("hidden"))) = 1;
6074 int bar __attribute__ ((visibility ("protected"))) = 1;
6076 libc_cv_visibility_attribute=no
6077 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }; }; then
6083 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6084 if grep '\.protected.*bar' conftest.s >/dev/null; then
6085 libc_cv_visibility_attribute=yes
6089 rm -f conftest.cs
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6093 $as_echo "$libc_cv_visibility_attribute" >&6; }
6094 if test $libc_cv_visibility_attribute != yes; then
6095 as_fn_error "compiler support for visibility attribute is required" "$LINENO" 5
6099 if test $libc_cv_visibility_attribute = yes; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6101 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6102 if test "${libc_cv_broken_visibility_attribute+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 cat > conftest.c <<EOF
6106 int foo (int x);
6107 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6108 int bar (int x) { return x; }
6110 libc_cv_broken_visibility_attribute=yes
6111 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; }; then
6117 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6118 libc_cv_broken_visibility_attribute=no
6121 rm -f conftest.c conftest.s
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6125 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6126 if test $libc_cv_broken_visibility_attribute = yes; then
6127 as_fn_error "working compiler support for visibility attribute is required" "$LINENO" 5
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6132 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6133 if test "${libc_cv_broken_alias_attribute+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat > conftest.c <<EOF
6137 extern int foo (int x) __asm ("xyzzy");
6138 int bar (int x) { return x; }
6139 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6140 extern int dfoo;
6141 extern __typeof (dfoo) dfoo __asm ("abccb");
6142 int dfoo = 1;
6144 libc_cv_broken_alias_attribute=yes
6145 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }; }; then
6151 if grep 'xyzzy' conftest.s >/dev/null &&
6152 grep 'abccb' conftest.s >/dev/null; then
6153 libc_cv_broken_alias_attribute=no
6156 rm -f conftest.c conftest.s
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6160 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6161 if test $libc_cv_broken_alias_attribute = yes; then
6162 as_fn_error "working alias attribute support required" "$LINENO" 5
6165 if test $libc_cv_visibility_attribute = yes; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6167 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6168 if test "${libc_cv_have_sdata_section+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 echo "int i;" > conftest.c
6172 libc_cv_have_sdata_section=no
6173 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6174 | grep '\.sdata' >/dev/null; then
6175 libc_cv_have_sdata_section=yes
6177 rm -f conftest.c conftest.so
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6181 $as_echo "$libc_cv_have_sdata_section" >&6; }
6182 if test $libc_cv_have_sdata_section = yes; then
6183 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6189 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6190 if test "${libc_cv_initfini_array+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 cat > conftest.c <<EOF
6194 int _start (void) { return 0; }
6195 int __start (void) { return 0; }
6196 int foo (void) { return 1; }
6197 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6199 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6200 -static -nostartfiles -nostdlib 1>&5'
6201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }; }
6206 then
6207 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6208 libc_cv_initfini_array=yes
6209 else
6210 libc_cv_initfini_array=no
6212 else
6213 libc_cv_initfini_array=no
6215 rm -f conftest*
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6218 $as_echo "$libc_cv_initfini_array" >&6; }
6219 if test $libc_cv_initfini_array != yes; then
6220 as_fn_error "Need linker with .init_array/.fini_array support." "$LINENO" 5
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6224 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6225 if test "${libc_cv_cc_with_libunwind+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6229 cat > conftest.c <<EOF
6230 int main (void) { return 0; }
6232 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6233 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6234 libc_cv_cc_with_libunwind=yes
6235 else
6236 libc_cv_cc_with_libunwind=no
6238 rm -f conftest*
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6241 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6243 if test $libc_cv_cc_with_libunwind = yes; then
6244 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6249 $as_echo_n "checking for -z nodelete option... " >&6; }
6250 if test "${libc_cv_z_nodelete+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 cat > conftest.c <<EOF
6254 int _start (void) { return 42; }
6256 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6257 -fPIC -shared -o conftest.so conftest.c
6258 -nostartfiles -nostdlib
6259 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }; }
6265 then
6266 libc_cv_z_nodelete=yes
6267 else
6268 as_fn_error "linker with -z nodelete support required" "$LINENO" 5
6270 rm -f conftest*
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6273 $as_echo "$libc_cv_z_nodelete" >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6276 $as_echo_n "checking for -z nodlopen option... " >&6; }
6277 if test "${libc_cv_z_nodlopen+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 cat > conftest.c <<EOF
6281 int _start (void) { return 42; }
6283 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6284 -fPIC -shared -o conftest.so conftest.c
6285 -nostartfiles -nostdlib
6286 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; }; }
6292 then
6293 libc_cv_z_nodlopen=yes
6294 else
6295 as_fn_error "linker with -z nodlopen support required" "$LINENO" 5
6297 rm -f conftest*
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6300 $as_echo "$libc_cv_z_nodlopen" >&6; }
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6303 $as_echo_n "checking for -z initfirst option... " >&6; }
6304 if test "${libc_cv_z_initfirst+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat > conftest.c <<EOF
6308 int _start (void) { return 42; }
6310 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6311 -fPIC -shared -o conftest.so conftest.c
6312 -nostartfiles -nostdlib
6313 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; }
6319 then
6320 libc_cv_z_initfirst=yes
6321 else
6322 as_fn_error "linker with -z initfirst support required" "$LINENO" 5
6324 rm -f conftest*
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6327 $as_echo "$libc_cv_z_initfirst" >&6; }
6329 case "$base_machine" in
6330 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6332 $as_echo_n "checking for -z relro option... " >&6; }
6333 if test "${libc_cv_z_relro+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 libc_cv_z_relro=no
6337 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6339 (eval $ac_try) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; }
6343 then
6344 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349 test $ac_status = 0; }; }
6350 then
6351 libc_cv_z_relro=yes
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6356 $as_echo "$libc_cv_z_relro" >&6; }
6357 if test "$libc_cv_z_relro" = no; then
6358 as_fn_error "linker with -z relro support required" "$LINENO" 5
6361 *) ;;
6362 esac
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6365 $as_echo_n "checking for -Bgroup option... " >&6; }
6366 if test "${libc_cv_Bgroup+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 cat > conftest.c <<EOF
6370 int _start (void) { return 42; }
6372 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6373 -fPIC -shared -o conftest.so conftest.c
6374 -Wl,-Bgroup -nostdlib 1>&5'
6375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379 test $ac_status = 0; }; }
6380 then
6381 libc_cv_Bgroup=yes
6382 else
6383 libc_cv_Bgroup=no
6385 rm -f conftest*
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6388 $as_echo "$libc_cv_Bgroup" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6392 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6393 if test "${libc_cv_libgcc_s_suffix+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 cat > conftest.c <<EOF
6397 int main (void) { return 0; }
6399 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6400 -fPIC -shared -shared-libgcc -o conftest.so \
6401 conftest.c -v 2>&1 >/dev/null \
6402 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6403 rm -f conftest*
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6406 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6410 $as_echo_n "checking for --as-needed option... " >&6; }
6411 if test "${libc_cv_as_needed+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 cat > conftest.c <<EOF
6415 int main (void) { return 0; }
6417 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6418 -fPIC -shared -o conftest.so conftest.c
6419 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6420 -nostdlib 1>&5'
6421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425 test $ac_status = 0; }; }
6426 then
6427 libc_cv_as_needed=yes
6428 else
6429 libc_cv_as_needed=no
6431 rm -f conftest*
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6434 $as_echo "$libc_cv_as_needed" >&6; }
6437 ASFLAGS_config=
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6439 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6440 if test "${libc_cv_as_noexecstack+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat > conftest.c <<EOF
6444 void foo (void) { }
6446 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6447 -S -o conftest.s conftest.c 1>&5'
6448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; } \
6453 && grep -q .note.GNU-stack conftest.s \
6454 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6455 -c -o conftest.o conftest.s 1>&5'
6456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }; }
6461 then
6462 libc_cv_as_noexecstack=yes
6463 else
6464 libc_cv_as_noexecstack=no
6466 rm -f conftest*
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6469 $as_echo "$libc_cv_as_noexecstack" >&6; }
6470 if test $libc_cv_as_noexecstack = yes; then
6471 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6476 $as_echo_n "checking for -z combreloc... " >&6; }
6477 if test "${libc_cv_z_combreloc+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 cat > conftest.c <<EOF
6481 extern int bar (int);
6482 extern int mumble;
6483 int foo (void) { return bar (mumble); }
6485 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6486 -fPIC -shared -o conftest.so conftest.c
6487 -nostdlib -nostartfiles
6488 -Wl,-z,combreloc 1>&5'
6489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6493 test $ac_status = 0; }; }
6494 then
6495 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6496 libc_cv_z_combreloc=yes
6497 else
6498 libc_cv_z_combreloc=no
6500 else
6501 libc_cv_z_combreloc=no
6503 rm -f conftest*
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6506 $as_echo "$libc_cv_z_combreloc" >&6; }
6507 if test "$libc_cv_z_combreloc" = yes; then
6508 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6514 $as_echo_n "checking for -z execstack... " >&6; }
6515 if test "${libc_cv_z_execstack+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat > conftest.c <<EOF
6519 int _start (void) { return 42; }
6521 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6522 -fPIC -shared -o conftest.so conftest.c
6523 -Wl,-z,execstack -nostdlib
6524 1>&5'
6525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; }; }
6530 then
6531 libc_cv_z_execstack=yes
6532 else
6533 libc_cv_z_execstack=no
6535 rm -f conftest*
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6538 $as_echo "$libc_cv_z_execstack" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6542 $as_echo_n "checking for -fpie... " >&6; }
6543 if test "${libc_cv_fpie+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat > conftest.c <<EOF
6547 int foo;
6548 main () { return 0;}
6550 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6551 -o conftest conftest.c 1>&5'
6552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6556 test $ac_status = 0; }; }
6557 then
6558 libc_cv_fpie=yes
6559 else
6560 libc_cv_fpie=no
6562 rm -f conftest*
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6565 $as_echo "$libc_cv_fpie" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6570 $as_echo_n "checking for --hash-style option... " >&6; }
6571 if test "${libc_cv_hashstyle+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 cat > conftest.c <<EOF
6575 int _start (void) { return 42; }
6577 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6578 -fPIC -shared -o conftest.so conftest.c
6579 -Wl,--hash-style=both -nostdlib 1>&5'
6580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; }
6585 then
6586 libc_cv_hashstyle=yes
6587 else
6588 libc_cv_hashstyle=no
6590 rm -f conftest*
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6593 $as_echo "$libc_cv_hashstyle" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6598 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6599 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat > conftest.c <<EOF
6603 int foo;
6605 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6606 conftest.c 1>&5'
6607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; }
6612 then
6613 libc_cv_fno_toplevel_reorder=yes
6614 else
6615 libc_cv_fno_toplevel_reorder=no
6617 rm -f conftest*
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6620 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6621 if test $libc_cv_fno_toplevel_reorder = yes; then
6622 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6623 else
6624 fno_unit_at_a_time=-fno-unit-at-a-time
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6629 $as_echo_n "checking for -fstack-protector... " >&6; }
6630 if test "${libc_cv_ssp+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat > conftest.c <<EOF
6634 int foo;
6635 main () { return 0;}
6637 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6638 -o conftest conftest.c 1>&5'
6639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; }; }
6644 then
6645 libc_cv_ssp=yes
6646 else
6647 libc_cv_ssp=no
6649 rm -f conftest*
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6652 $as_echo "$libc_cv_ssp" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6656 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6657 if test "${libc_cv_gnu89_inline+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 cat > conftest.c <<EOF
6661 int foo;
6662 #ifdef __GNUC_GNU_INLINE__
6663 main () { return 0;}
6664 #else
6665 #error
6666 #endif
6668 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6669 -o conftest.s conftest.c 1>&5'
6670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }; }
6675 then
6676 libc_cv_gnu89_inline=yes
6677 else
6678 libc_cv_gnu89_inline=no
6680 rm -f conftest*
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6683 $as_echo "$libc_cv_gnu89_inline" >&6; }
6684 if test $libc_cv_gnu89_inline = yes; then
6685 gnu89_inline=-fgnu89-inline
6686 else
6687 gnu89_inline=
6691 if test $elf != yes; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6693 $as_echo_n "checking for .init and .fini sections... " >&6; }
6694 if test "${libc_cv_have_initfini+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6701 main ()
6703 asm (".section .init");
6704 asm (".section .fini");
6705 asm ("${libc_cv_dot_text}");
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 libc_cv_have_initfini=yes
6712 else
6713 libc_cv_have_initfini=no
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6718 $as_echo "$libc_cv_have_initfini" >&6; }
6719 if test $libc_cv_have_initfini = yes; then
6720 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6725 if test $elf = yes; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6727 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6728 if test "${libc_cv_have_section_quotes+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat > conftest.c <<EOF
6732 static const int foo
6733 __attribute__ ((section ("bar"))) = 1;
6735 if ${CC-cc} -S conftest.c -o conftest.s; then
6736 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6737 libc_cv_have_section_quotes=yes
6738 else
6739 libc_cv_have_section_quotes=no
6741 else
6742 libc_cv_have_section_quotes=unknown
6744 rm -f conftest.cs
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6748 $as_echo "$libc_cv_have_section_quotes" >&6; }
6749 if test $libc_cv_have_section_quotes = yes; then
6750 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6757 if test $elf = yes; then
6758 libc_cv_asm_underscores=no
6759 else
6760 if test $ac_cv_prog_cc_works = yes; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6762 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6763 if test "${libc_cv_asm_underscores+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 asm ("_glibc_foobar:");
6770 main ()
6772 glibc_foobar ();
6774 return 0;
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"; then :
6778 libc_cv_asm_underscores=yes
6779 else
6780 libc_cv_asm_underscores=no
6782 rm -f core conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6786 $as_echo "$libc_cv_asm_underscores" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6789 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6790 if test "${libc_cv_asm_underscores+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 cat > conftest.$ac_ext <<EOF
6794 #line $LINENO "configure"
6795 #include "confdefs.h"
6796 void underscore_test(void) {
6797 return; }
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 if grep _underscore_test conftest* >/dev/null; then
6805 rm -f conftest*
6806 libc_cv_asm_underscores=yes
6807 else
6808 rm -f conftest*
6809 libc_cv_asm_underscores=no
6811 else
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 rm -f conftest*
6815 libc_cv_asm_underscores=no
6817 rm -f conftest*
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6820 $as_echo "$libc_cv_asm_underscores" >&6; }
6823 if test $libc_cv_asm_underscores = no; then
6824 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
6828 if test $elf = yes; then
6829 libc_cv_weak_symbols=yes
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6833 $as_echo_n "checking for assembler .weak directive... " >&6; }
6834 if test "${libc_cv_asm_weak_directive+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 cat > conftest.s <<EOF
6838 ${libc_cv_dot_text}
6839 ${libc_cv_asm_global_directive} foo
6840 foo:
6841 .weak foo
6842 .weak bar; bar = foo
6844 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; }; }; then
6850 libc_cv_asm_weak_directive=yes
6851 else
6852 libc_cv_asm_weak_directive=no
6854 rm -f conftest*
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6857 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6859 if test $libc_cv_asm_weak_directive = no; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6861 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6862 if test "${libc_cv_asm_weakext_directive+set}" = set; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 cat > conftest.s <<EOF
6866 ${libc_cv_dot_text}
6867 ${libc_cv_asm_global_directive} foo
6868 foo:
6869 .weakext bar foo
6870 .weakext baz
6871 ${libc_cv_asm_global_directive} baz
6872 baz:
6874 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; }; then
6880 libc_cv_asm_weakext_directive=yes
6881 else
6882 libc_cv_asm_weakext_directive=no
6884 rm -f conftest*
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6887 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6889 fi # no .weak
6891 if test $libc_cv_asm_weak_directive = yes; then
6892 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6894 elif test $libc_cv_asm_weakext_directive = yes; then
6895 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
6900 $as_echo_n "checking whether CFI directives are supported... " >&6; }
6901 if test "${libc_cv_asm_cfi_directives+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 case $machine in
6905 sparc/sparc64*) cfi_offset=2047;;
6906 *) cfi_offset=0;;
6907 esac
6908 cat > conftest.s <<EOF
6909 .text
6910 .type func,%function
6911 func:
6912 .cfi_startproc
6913 .cfi_remember_state
6914 .cfi_rel_offset 1, $cfi_offset
6915 .cfi_endproc
6917 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; }; then
6923 libc_cv_asm_cfi_directives=yes
6924 else
6925 libc_cv_asm_cfi_directives=no
6927 rm -f conftest*
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
6930 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
6931 if test $libc_cv_asm_cfi_directives = yes; then
6932 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6937 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6938 if test "${libc_cv_ld_no_whole_archive+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 cat > conftest.c <<\EOF
6942 _start () {}
6943 int __eh_pc;
6944 __throw () {}
6946 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6947 -nostdlib -nostartfiles -Wl,--no-whole-archive
6948 -o conftest conftest.c 1>&5'
6949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; }; }; then
6954 libc_cv_ld_no_whole_archive=yes
6955 else
6956 libc_cv_ld_no_whole_archive=no
6958 rm -f conftest*
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6961 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6962 if test $libc_cv_ld_no_whole_archive = yes; then
6963 no_whole_archive=-Wl,--no-whole-archive
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6967 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6968 if test "${libc_cv_gcc_exceptions+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat > conftest.c <<\EOF
6972 _start () {}
6973 int __eh_pc;
6974 __throw () {}
6976 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6977 -nostdlib -nostartfiles -fexceptions
6978 -o conftest conftest.c 1>&5'
6979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; }; then
6984 libc_cv_gcc_exceptions=yes
6985 else
6986 libc_cv_gcc_exceptions=no
6988 rm -f conftest*
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6991 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6992 if test $libc_cv_gcc_exceptions = yes; then
6993 exceptions=-fexceptions
6996 if test "$host_cpu" = powerpc ; then
6997 # Check for a bug present in at least versions 2.8.x of GCC
6998 # and versions 1.0.x of EGCS.
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7000 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7001 if test "${libc_cv_c_asmcr0_bug+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7008 main ()
7012 return 0;
7014 _ACEOF
7015 if ac_fn_c_try_compile "$LINENO"; then :
7016 libc_cv_c_asmcr0_bug='no'
7017 else
7018 libc_cv_c_asmcr0_bug='yes'
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7023 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7024 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7025 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7031 $as_echo_n "checking for __builtin_expect... " >&6; }
7032 if test "${libc_cv_gcc_builtin_expect+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat > conftest.c <<EOF
7036 #line $LINENO "configure"
7037 int foo (int a)
7039 a = __builtin_expect (a, 10);
7040 return a == 10 ? 0 : 1;
7043 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7044 -o conftest conftest.c -lgcc >&5'
7045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; }; then
7050 libc_cv_gcc_builtin_expect=yes
7051 else
7052 libc_cv_gcc_builtin_expect=no
7054 rm -f conftest*
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7057 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7058 if test "$libc_cv_gcc_builtin_expect" = yes; then
7059 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7064 $as_echo_n "checking for __builtin_memset... " >&6; }
7065 if test "${libc_cv_gcc_builtin_memset+set}" = set; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat > conftest.c <<\EOF
7069 void zero (void *x)
7071 __builtin_memset (x, 0, 1000);
7074 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079 test $ac_status = 0; }; };
7080 then
7081 libc_cv_gcc_builtin_memset=no
7082 else
7083 libc_cv_gcc_builtin_memset=yes
7085 rm -f conftest*
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7088 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7089 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7090 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7095 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7096 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 cat > conftest.c <<\EOF
7100 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7101 char *foo (const char *a, const char *b)
7103 return __builtin_strstr (a, b);
7106 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; }; };
7112 then
7113 libc_cv_gcc_builtin_redirection=yes
7114 else
7115 libc_cv_gcc_builtin_redirection=no
7117 rm -f conftest*
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7120 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7121 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7122 $as_echo "#define HAVE_BUILTIN_REDIRECTION 1" >>confdefs.h
7126 if test "x$use__thread" != xno; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7128 $as_echo_n "checking for __thread... " >&6; }
7129 if test "${libc_cv_gcc___thread+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 cat > conftest.c <<\EOF
7133 __thread int a = 42;
7135 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140 test $ac_status = 0; }; }; then
7141 libc_cv_gcc___thread=yes
7142 else
7143 libc_cv_gcc___thread=no
7145 rm -f conftest*
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7148 $as_echo "$libc_cv_gcc___thread" >&6; }
7149 if test "$libc_cv_gcc___thread" = yes; then
7150 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
7153 else
7154 libc_cv_gcc___thread=no
7157 if test "$libc_cv_gcc___thread" = yes; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7159 $as_echo_n "checking for tls_model attribute... " >&6; }
7160 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 cat > conftest.c <<\EOF
7164 extern __thread int a __attribute__((tls_model ("initial-exec")));
7166 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171 test $ac_status = 0; }; }; then
7172 libc_cv_gcc_tls_model_attr=yes
7173 else
7174 libc_cv_gcc_tls_model_attr=no
7176 rm -f conftest*
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7179 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7180 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7181 $as_echo "#define HAVE_TLS_MODEL_ATTRIBUTE 1" >>confdefs.h
7186 if test -n "$submachine"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7188 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7189 if test "${libc_cv_cc_submachine+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 libc_cv_cc_submachine=no
7193 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7194 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; }; then
7200 libc_cv_cc_submachine="$opt"
7201 break
7203 done
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7206 $as_echo "$libc_cv_cc_submachine" >&6; }
7207 if test "x$libc_cv_cc_submachine" = xno; then
7208 as_fn_error "${CC-cc} does not support $submachine" "$LINENO" 5
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7214 $as_echo_n "checking for libgd... " >&6; }
7215 if test "$with_gd" != "no"; then
7216 old_CFLAGS="$CFLAGS"
7217 CFLAGS="$CFLAGS $libgd_include"
7218 old_LDFLAGS="$LDFLAGS"
7219 LDFLAGS="$LDFLAGS $libgd_ldflags"
7220 old_LIBS="$LIBS"
7221 LIBS="$LIBS -lgd -lpng -lz -lm"
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 #include <gd.h>
7226 main ()
7228 gdImagePng (0, 0)
7230 return 0;
7232 _ACEOF
7233 if ac_fn_c_try_link "$LINENO"; then :
7234 LIBGD=yes
7235 else
7236 LIBGD=no
7238 rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7240 CFLAGS="$old_CFLAGS"
7241 LDFLAGS="$old_LDFLAGS"
7242 LIBS="$old_LIBS"
7243 else
7244 LIBGD=no
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7247 $as_echo "$LIBGD" >&6; }
7250 # SELinux detection
7251 if test x$with_selinux = xno ; then
7252 have_selinux=no;
7253 else
7254 # See if we have the SELinux library
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7256 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7257 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 ac_check_lib_save_LIBS=$LIBS
7261 LIBS="-lselinux $LIBS"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7265 /* Override any GCC internal prototype to avoid an error.
7266 Use char because int might match the return type of a GCC
7267 builtin and then its argument prototype would still apply. */
7268 #ifdef __cplusplus
7269 extern "C"
7270 #endif
7271 char is_selinux_enabled ();
7273 main ()
7275 return is_selinux_enabled ();
7277 return 0;
7279 _ACEOF
7280 if ac_fn_c_try_link "$LINENO"; then :
7281 ac_cv_lib_selinux_is_selinux_enabled=yes
7282 else
7283 ac_cv_lib_selinux_is_selinux_enabled=no
7285 rm -f core conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7290 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7291 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
7292 have_selinux=yes
7293 else
7294 have_selinux=no
7297 # See if we have the SELinux header with the NSCD permissions in it.
7298 if test x$have_selinux = xyes ; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7300 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #include <selinux/av_permissions.h>
7305 main ()
7307 #ifdef NSCD__SHMEMHOST
7308 return 0;
7309 #else
7310 #error NSCD__SHMEMHOST not defined
7311 #endif
7313 return 0;
7315 _ACEOF
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317 have_selinux=yes
7318 else
7319 have_selinux=no
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7323 $as_echo "$have_selinux" >&6; }
7326 if test x$with_selinux = xyes ; then
7327 if test x$have_selinux = xno ; then
7328 as_fn_error "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7332 # Check if we're building with SELinux support.
7333 if test "x$have_selinux" = xyes; then
7335 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7338 # See if we have the libaudit library
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7340 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7341 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 ac_check_lib_save_LIBS=$LIBS
7345 LIBS="-laudit $LIBS"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7352 #ifdef __cplusplus
7353 extern "C"
7354 #endif
7355 char audit_log_user_avc_message ();
7357 main ()
7359 return audit_log_user_avc_message ();
7361 return 0;
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_lib_audit_audit_log_user_avc_message=yes
7366 else
7367 ac_cv_lib_audit_audit_log_user_avc_message=no
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 LIBS=$ac_check_lib_save_LIBS
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7374 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7375 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then :
7376 have_libaudit=yes
7377 else
7378 have_libaudit=no
7381 if test "x$have_libaudit" = xyes; then
7383 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7388 # See if we have the libcap library
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7390 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7391 if test "${ac_cv_lib_cap_cap_init+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 ac_check_lib_save_LIBS=$LIBS
7395 LIBS="-lcap $LIBS"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402 #ifdef __cplusplus
7403 extern "C"
7404 #endif
7405 char cap_init ();
7407 main ()
7409 return cap_init ();
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 ac_cv_lib_cap_cap_init=yes
7416 else
7417 ac_cv_lib_cap_cap_init=no
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LIBS=$ac_check_lib_save_LIBS
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7424 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7425 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then :
7426 have_libcap=yes
7427 else
7428 have_libcap=no
7431 if test "x$have_libcap" = xyes; then
7433 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7443 if test "${ac_cv_path_GREP+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -z "$GREP"; then
7447 ac_path_GREP_found=false
7448 # Loop through the user's path and test for each of PROGNAME-LIST
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_prog in grep ggrep; do
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7458 # Check for GNU ac_path_GREP and select it if it is found.
7459 # Check for GNU $ac_path_GREP
7460 case `"$ac_path_GREP" --version 2>&1` in
7461 *GNU*)
7462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7464 ac_count=0
7465 $as_echo_n 0123456789 >"conftest.in"
7466 while :
7468 cat "conftest.in" "conftest.in" >"conftest.tmp"
7469 mv "conftest.tmp" "conftest.in"
7470 cp "conftest.in" "conftest.nl"
7471 $as_echo 'GREP' >> "conftest.nl"
7472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7474 as_fn_arith $ac_count + 1 && ac_count=$as_val
7475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7476 # Best one so far, save it but keep looking for a better one
7477 ac_cv_path_GREP="$ac_path_GREP"
7478 ac_path_GREP_max=$ac_count
7480 # 10*(2^10) chars as input seems more than enough
7481 test $ac_count -gt 10 && break
7482 done
7483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7484 esac
7486 $ac_path_GREP_found && break 3
7487 done
7488 done
7489 done
7490 IFS=$as_save_IFS
7491 if test -z "$ac_cv_path_GREP"; then
7492 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7494 else
7495 ac_cv_path_GREP=$GREP
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7500 $as_echo "$ac_cv_path_GREP" >&6; }
7501 GREP="$ac_cv_path_GREP"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7505 $as_echo_n "checking for egrep... " >&6; }
7506 if test "${ac_cv_path_EGREP+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7510 then ac_cv_path_EGREP="$GREP -E"
7511 else
7512 if test -z "$EGREP"; then
7513 ac_path_EGREP_found=false
7514 # Loop through the user's path and test for each of PROGNAME-LIST
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_prog in egrep; do
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7523 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7524 # Check for GNU ac_path_EGREP and select it if it is found.
7525 # Check for GNU $ac_path_EGREP
7526 case `"$ac_path_EGREP" --version 2>&1` in
7527 *GNU*)
7528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7530 ac_count=0
7531 $as_echo_n 0123456789 >"conftest.in"
7532 while :
7534 cat "conftest.in" "conftest.in" >"conftest.tmp"
7535 mv "conftest.tmp" "conftest.in"
7536 cp "conftest.in" "conftest.nl"
7537 $as_echo 'EGREP' >> "conftest.nl"
7538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7540 as_fn_arith $ac_count + 1 && ac_count=$as_val
7541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7542 # Best one so far, save it but keep looking for a better one
7543 ac_cv_path_EGREP="$ac_path_EGREP"
7544 ac_path_EGREP_max=$ac_count
7546 # 10*(2^10) chars as input seems more than enough
7547 test $ac_count -gt 10 && break
7548 done
7549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7550 esac
7552 $ac_path_EGREP_found && break 3
7553 done
7554 done
7555 done
7556 IFS=$as_save_IFS
7557 if test -z "$ac_cv_path_EGREP"; then
7558 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7560 else
7561 ac_cv_path_EGREP=$EGREP
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7567 $as_echo "$ac_cv_path_EGREP" >&6; }
7568 EGREP="$ac_cv_path_EGREP"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7572 $as_echo_n "checking for ANSI C header files... " >&6; }
7573 if test "${ac_cv_header_stdc+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #include <stdlib.h>
7579 #include <stdarg.h>
7580 #include <string.h>
7581 #include <float.h>
7584 main ()
7588 return 0;
7590 _ACEOF
7591 if ac_fn_c_try_compile "$LINENO"; then :
7592 ac_cv_header_stdc=yes
7593 else
7594 ac_cv_header_stdc=no
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 if test $ac_cv_header_stdc = yes; then
7599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <string.h>
7604 _ACEOF
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "memchr" >/dev/null 2>&1; then :
7608 else
7609 ac_cv_header_stdc=no
7611 rm -f conftest*
7615 if test $ac_cv_header_stdc = yes; then
7616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 #include <stdlib.h>
7621 _ACEOF
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 $EGREP "free" >/dev/null 2>&1; then :
7625 else
7626 ac_cv_header_stdc=no
7628 rm -f conftest*
7632 if test $ac_cv_header_stdc = yes; then
7633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7634 if test "$cross_compiling" = yes; then :
7636 else
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <ctype.h>
7640 #include <stdlib.h>
7641 #if ((' ' & 0x0FF) == 0x020)
7642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7644 #else
7645 # define ISLOWER(c) \
7646 (('a' <= (c) && (c) <= 'i') \
7647 || ('j' <= (c) && (c) <= 'r') \
7648 || ('s' <= (c) && (c) <= 'z'))
7649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7650 #endif
7652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7654 main ()
7656 int i;
7657 for (i = 0; i < 256; i++)
7658 if (XOR (islower (i), ISLOWER (i))
7659 || toupper (i) != TOUPPER (i))
7660 return 2;
7661 return 0;
7663 _ACEOF
7664 if ac_fn_c_try_run "$LINENO"; then :
7666 else
7667 ac_cv_header_stdc=no
7669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7670 conftest.$ac_objext conftest.beam conftest.$ac_ext
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7676 $as_echo "$ac_cv_header_stdc" >&6; }
7677 if test $ac_cv_header_stdc = yes; then
7679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7684 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7685 inttypes.h stdint.h unistd.h
7686 do :
7687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7690 eval as_val=\$$as_ac_Header
7691 if test "x$as_val" = x""yes; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 _ACEOF
7698 done
7701 # The cast to long int works around a bug in the HP C Compiler
7702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7704 # This bug is HP SR number 8606223364.
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7706 $as_echo_n "checking size of long double... " >&6; }
7707 if test "${ac_cv_sizeof_long_double+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7712 else
7713 if test "$ac_cv_type_long_double" = yes; then
7714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7716 { as_fn_set_status 77
7717 as_fn_error "cannot compute sizeof (long double)
7718 See \`config.log' for more details." "$LINENO" 5; }; }
7719 else
7720 ac_cv_sizeof_long_double=0
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7726 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7730 cat >>confdefs.h <<_ACEOF
7731 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7732 _ACEOF
7735 sizeof_long_double=$ac_cv_sizeof_long_double
7738 ### End of automated tests.
7739 ### Now run sysdeps configure fragments.
7741 # They also can set these variables.
7742 use_ldconfig=no
7743 ldd_rewrite_script=no
7744 libc_cv_sysconfdir=$sysconfdir
7745 libc_cv_gcc_unwind_find_fde=no
7746 libc_cv_idn=no
7748 # Iterate over all the sysdep directories we will use, running their
7749 # configure fragments, and looking for a uname implementation.
7750 uname=
7751 for dir in $sysnames; do
7752 case $dir in
7753 /*) dest=$dir ;;
7754 *) dest=$srcdir/$dir ;;
7755 esac
7756 if test -r $dest/configure; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7758 $as_echo "running configure fragment for $dir" >&6; }
7759 . $dest/configure
7762 if test -z "$uname"; then
7763 if test -r $dest/uname.c ||
7764 test -r $dest/uname.S ||
7765 { test -r $dest/syscalls.list &&
7766 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7767 uname=$dir
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 # If we will use the generic uname implementation, we must figure out what
7779 # it will say by examining the system, and write the results in config-name.h.
7780 if test "$uname" = "sysdeps/generic"; then
7782 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7783 if test $uname_sysname != $config_os; then
7784 config_release=`echo $config_os | sed s/$uname_sysname//`
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS release for uname" >&5
7788 $as_echo_n "checking OS release for uname... " >&6; }
7789 if test "${libc_cv_uname_release+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -r /vmunix; then
7793 kernel_id=`strings /vmunix | grep UNIX`
7794 elif test -r /dynix; then
7795 kernel_id=`strings /dynix | grep DYNIX`
7796 else
7797 kernel_id=
7800 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
7801 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7802 != x$config_release; then
7803 # The configuration release is a substring of the kernel release.
7804 libc_cv_uname_release=$kernel_release
7805 elif test x$config_release != x; then
7806 libc_cv_uname_release=$config_release
7807 elif test x$kernel_release != x; then
7808 libc_cv_uname_release=$kernel_release
7809 else
7810 libc_cv_uname_release=unknown
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_uname_release" >&5
7814 $as_echo "$libc_cv_uname_release" >&6; }
7815 uname_release="$libc_cv_uname_release"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS version for uname" >&5
7818 $as_echo_n "checking OS version for uname... " >&6; }
7819 if test "${libc_cv_uname_version+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7821 else
7822 if test -r /vmunix; then
7823 kernel_id=`strings /vmunix | grep UNIX`
7824 elif test -r /dynix; then
7825 kernel_id=`strings /dynix | grep DYNIX`
7826 else
7827 kernel_id=
7830 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
7831 if test -n "$kernel_version"; then
7832 libc_cv_uname_version="$kernel_version"
7833 else
7834 libc_cv_uname_version=unknown
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_uname_version" >&5
7838 $as_echo "$libc_cv_uname_version" >&6; }
7839 uname_version="$libc_cv_uname_version"
7841 config_uname=config-name.h:config-name.in
7842 else
7843 # For non-generic uname, we don't need to create config-name.h at all.
7844 config_uname=
7847 $as_echo "#define USE_IN_LIBIO 1" >>confdefs.h
7850 # Test for old glibc 2.0.x headers so that they can be removed properly
7851 # Search only in includedir.
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7853 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7854 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7855 then
7856 old_glibc_headers=yes
7857 else
7858 old_glibc_headers=no
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7861 $as_echo "$old_glibc_headers" >&6; }
7862 if test ${old_glibc_headers} = yes; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7864 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7866 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7885 if test $elf = yes; then
7886 $as_echo "#define HAVE_ELF 1" >>confdefs.h
7889 if test $xcoff = yes; then
7890 $as_echo "#define HAVE_XCOFF 1" >>confdefs.h
7896 if test $shared = default; then
7897 shared=$elf
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7901 $as_echo_n "checking whether -fPIC is default... " >&6; }
7902 if test "${libc_cv_pic_default+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 libc_cv_pic_default=yes
7906 cat > conftest.c <<EOF
7907 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7908 # error PIC is default.
7909 #endif
7911 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7912 libc_cv_pic_default=no
7914 rm -f conftest.*
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7917 $as_echo "$libc_cv_pic_default" >&6; }
7930 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7931 config_makefile=
7932 else
7933 config_makefile=Makefile
7936 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7937 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7941 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
7943 ac_config_commands="$ac_config_commands default"
7945 cat >confcache <<\_ACEOF
7946 # This file is a shell script that caches the results of configure
7947 # tests run on this system so they can be shared between configure
7948 # scripts and configure runs, see configure's option --config-cache.
7949 # It is not useful on other systems. If it contains results you don't
7950 # want to keep, you may remove or edit it.
7952 # config.status only pays attention to the cache file if you give it
7953 # the --recheck option to rerun configure.
7955 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7957 # following values.
7959 _ACEOF
7961 # The following way of writing the cache mishandles newlines in values,
7962 # but we know of no workaround that is simple, portable, and efficient.
7963 # So, we kill variables containing newlines.
7964 # Ultrix sh set writes to stderr and can't be redirected directly,
7965 # and sets the high bit in the cache file unless we assign to the vars.
7967 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7968 eval ac_val=\$$ac_var
7969 case $ac_val in #(
7970 *${as_nl}*)
7971 case $ac_var in #(
7972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7974 esac
7975 case $ac_var in #(
7976 _ | IFS | as_nl) ;; #(
7977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7978 *) { eval $ac_var=; unset $ac_var;} ;;
7979 esac ;;
7980 esac
7981 done
7983 (set) 2>&1 |
7984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7985 *${as_nl}ac_space=\ *)
7986 # `set' does not quote correctly, so add quotes: double-quote
7987 # substitution turns \\\\ into \\, and sed turns \\ into \.
7988 sed -n \
7989 "s/'/'\\\\''/g;
7990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7991 ;; #(
7993 # `set' quotes correctly as required by POSIX, so do not add quotes.
7994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7996 esac |
7997 sort
7999 sed '
8000 /^ac_cv_env_/b end
8001 t clear
8002 :clear
8003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8004 t end
8005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8006 :end' >>confcache
8007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8008 if test -w "$cache_file"; then
8009 test "x$cache_file" != "x/dev/null" &&
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8011 $as_echo "$as_me: updating cache $cache_file" >&6;}
8012 cat confcache >$cache_file
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8015 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8018 rm -f confcache
8020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8021 # Let make expand exec_prefix.
8022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8024 DEFS=-DHAVE_CONFIG_H
8026 ac_libobjs=
8027 ac_ltlibobjs=
8028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8029 # 1. Remove the extension, and $U if already installed.
8030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8031 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8033 # will be set to the directory where LIBOBJS objects are built.
8034 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8035 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8036 done
8037 LIBOBJS=$ac_libobjs
8039 LTLIBOBJS=$ac_ltlibobjs
8043 : ${CONFIG_STATUS=./config.status}
8044 ac_write_fail=0
8045 ac_clean_files_save=$ac_clean_files
8046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8048 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8049 as_write_fail=0
8050 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8051 #! $SHELL
8052 # Generated by $as_me.
8053 # Run this file to recreate the current configuration.
8054 # Compiler output produced by configure, useful for debugging
8055 # configure, is in config.log if it exists.
8057 debug=false
8058 ac_cs_recheck=false
8059 ac_cs_silent=false
8061 SHELL=\${CONFIG_SHELL-$SHELL}
8062 export SHELL
8063 _ASEOF
8064 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8065 ## -------------------- ##
8066 ## M4sh Initialization. ##
8067 ## -------------------- ##
8069 # Be more Bourne compatible
8070 DUALCASE=1; export DUALCASE # for MKS sh
8071 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8072 emulate sh
8073 NULLCMD=:
8074 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8075 # is contrary to our usage. Disable this feature.
8076 alias -g '${1+"$@"}'='"$@"'
8077 setopt NO_GLOB_SUBST
8078 else
8079 case `(set -o) 2>/dev/null` in #(
8080 *posix*) :
8081 set -o posix ;; #(
8082 *) :
8084 esac
8088 as_nl='
8090 export as_nl
8091 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8092 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8095 # Prefer a ksh shell builtin over an external printf program on Solaris,
8096 # but without wasting forks for bash or zsh.
8097 if test -z "$BASH_VERSION$ZSH_VERSION" \
8098 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8099 as_echo='print -r --'
8100 as_echo_n='print -rn --'
8101 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8102 as_echo='printf %s\n'
8103 as_echo_n='printf %s'
8104 else
8105 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8106 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8107 as_echo_n='/usr/ucb/echo -n'
8108 else
8109 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8110 as_echo_n_body='eval
8111 arg=$1;
8112 case $arg in #(
8113 *"$as_nl"*)
8114 expr "X$arg" : "X\\(.*\\)$as_nl";
8115 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8116 esac;
8117 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8119 export as_echo_n_body
8120 as_echo_n='sh -c $as_echo_n_body as_echo'
8122 export as_echo_body
8123 as_echo='sh -c $as_echo_body as_echo'
8126 # The user is always right.
8127 if test "${PATH_SEPARATOR+set}" != set; then
8128 PATH_SEPARATOR=:
8129 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8130 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8131 PATH_SEPARATOR=';'
8136 # IFS
8137 # We need space, tab and new line, in precisely that order. Quoting is
8138 # there to prevent editors from complaining about space-tab.
8139 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8140 # splitting by setting IFS to empty value.)
8141 IFS=" "" $as_nl"
8143 # Find who we are. Look in the path if we contain no directory separator.
8144 case $0 in #((
8145 *[\\/]* ) as_myself=$0 ;;
8146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8152 done
8153 IFS=$as_save_IFS
8156 esac
8157 # We did not find ourselves, most probably we were run as `sh COMMAND'
8158 # in which case we are not to be found in the path.
8159 if test "x$as_myself" = x; then
8160 as_myself=$0
8162 if test ! -f "$as_myself"; then
8163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8164 exit 1
8167 # Unset variables that we do not need and which cause bugs (e.g. in
8168 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8169 # suppresses any "Segmentation fault" message there. '((' could
8170 # trigger a bug in pdksh 5.2.14.
8171 for as_var in BASH_ENV ENV MAIL MAILPATH
8172 do eval test x\${$as_var+set} = xset \
8173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8174 done
8175 PS1='$ '
8176 PS2='> '
8177 PS4='+ '
8179 # NLS nuisances.
8180 LC_ALL=C
8181 export LC_ALL
8182 LANGUAGE=C
8183 export LANGUAGE
8185 # CDPATH.
8186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8189 # as_fn_error ERROR [LINENO LOG_FD]
8190 # ---------------------------------
8191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8193 # script with status $?, using 1 if that was 0.
8194 as_fn_error ()
8196 as_status=$?; test $as_status -eq 0 && as_status=1
8197 if test "$3"; then
8198 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8201 $as_echo "$as_me: error: $1" >&2
8202 as_fn_exit $as_status
8203 } # as_fn_error
8206 # as_fn_set_status STATUS
8207 # -----------------------
8208 # Set $? to STATUS, without forking.
8209 as_fn_set_status ()
8211 return $1
8212 } # as_fn_set_status
8214 # as_fn_exit STATUS
8215 # -----------------
8216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8217 as_fn_exit ()
8219 set +e
8220 as_fn_set_status $1
8221 exit $1
8222 } # as_fn_exit
8224 # as_fn_unset VAR
8225 # ---------------
8226 # Portably unset VAR.
8227 as_fn_unset ()
8229 { eval $1=; unset $1;}
8231 as_unset=as_fn_unset
8232 # as_fn_append VAR VALUE
8233 # ----------------------
8234 # Append the text in VALUE to the end of the definition contained in VAR. Take
8235 # advantage of any shell optimizations that allow amortized linear growth over
8236 # repeated appends, instead of the typical quadratic growth present in naive
8237 # implementations.
8238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8239 eval 'as_fn_append ()
8241 eval $1+=\$2
8243 else
8244 as_fn_append ()
8246 eval $1=\$$1\$2
8248 fi # as_fn_append
8250 # as_fn_arith ARG...
8251 # ------------------
8252 # Perform arithmetic evaluation on the ARGs, and store the result in the
8253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8254 # must be portable across $(()) and expr.
8255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8256 eval 'as_fn_arith ()
8258 as_val=$(( $* ))
8260 else
8261 as_fn_arith ()
8263 as_val=`expr "$@" || test $? -eq 1`
8265 fi # as_fn_arith
8268 if expr a : '\(a\)' >/dev/null 2>&1 &&
8269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8270 as_expr=expr
8271 else
8272 as_expr=false
8275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8276 as_basename=basename
8277 else
8278 as_basename=false
8281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8282 as_dirname=dirname
8283 else
8284 as_dirname=false
8287 as_me=`$as_basename -- "$0" ||
8288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8289 X"$0" : 'X\(//\)$' \| \
8290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8291 $as_echo X/"$0" |
8292 sed '/^.*\/\([^/][^/]*\)\/*$/{
8293 s//\1/
8296 /^X\/\(\/\/\)$/{
8297 s//\1/
8300 /^X\/\(\/\).*/{
8301 s//\1/
8304 s/.*/./; q'`
8306 # Avoid depending upon Character Ranges.
8307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8310 as_cr_digits='0123456789'
8311 as_cr_alnum=$as_cr_Letters$as_cr_digits
8313 ECHO_C= ECHO_N= ECHO_T=
8314 case `echo -n x` in #(((((
8315 -n*)
8316 case `echo 'xy\c'` in
8317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8318 xy) ECHO_C='\c';;
8319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8320 ECHO_T=' ';;
8321 esac;;
8323 ECHO_N='-n';;
8324 esac
8326 rm -f conf$$ conf$$.exe conf$$.file
8327 if test -d conf$$.dir; then
8328 rm -f conf$$.dir/conf$$.file
8329 else
8330 rm -f conf$$.dir
8331 mkdir conf$$.dir 2>/dev/null
8333 if (echo >conf$$.file) 2>/dev/null; then
8334 if ln -s conf$$.file conf$$ 2>/dev/null; then
8335 as_ln_s='ln -s'
8336 # ... but there are two gotchas:
8337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8339 # In both cases, we have to default to `cp -p'.
8340 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8341 as_ln_s='cp -p'
8342 elif ln conf$$.file conf$$ 2>/dev/null; then
8343 as_ln_s=ln
8344 else
8345 as_ln_s='cp -p'
8347 else
8348 as_ln_s='cp -p'
8350 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8351 rmdir conf$$.dir 2>/dev/null
8354 # as_fn_mkdir_p
8355 # -------------
8356 # Create "$as_dir" as a directory, including parents if necessary.
8357 as_fn_mkdir_p ()
8360 case $as_dir in #(
8361 -*) as_dir=./$as_dir;;
8362 esac
8363 test -d "$as_dir" || eval $as_mkdir_p || {
8364 as_dirs=
8365 while :; do
8366 case $as_dir in #(
8367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8368 *) as_qdir=$as_dir;;
8369 esac
8370 as_dirs="'$as_qdir' $as_dirs"
8371 as_dir=`$as_dirname -- "$as_dir" ||
8372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8373 X"$as_dir" : 'X\(//\)[^/]' \| \
8374 X"$as_dir" : 'X\(//\)$' \| \
8375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8376 $as_echo X"$as_dir" |
8377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8378 s//\1/
8381 /^X\(\/\/\)[^/].*/{
8382 s//\1/
8385 /^X\(\/\/\)$/{
8386 s//\1/
8389 /^X\(\/\).*/{
8390 s//\1/
8393 s/.*/./; q'`
8394 test -d "$as_dir" && break
8395 done
8396 test -z "$as_dirs" || eval "mkdir $as_dirs"
8397 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8400 } # as_fn_mkdir_p
8401 if mkdir -p . 2>/dev/null; then
8402 as_mkdir_p='mkdir -p "$as_dir"'
8403 else
8404 test -d ./-p && rmdir ./-p
8405 as_mkdir_p=false
8408 if test -x / >/dev/null 2>&1; then
8409 as_test_x='test -x'
8410 else
8411 if ls -dL / >/dev/null 2>&1; then
8412 as_ls_L_option=L
8413 else
8414 as_ls_L_option=
8416 as_test_x='
8417 eval sh -c '\''
8418 if test -d "$1"; then
8419 test -d "$1/.";
8420 else
8421 case $1 in #(
8422 -*)set "./$1";;
8423 esac;
8424 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8425 ???[sx]*):;;*)false;;esac;fi
8426 '\'' sh
8429 as_executable_p=$as_test_x
8431 # Sed expression to map a string onto a valid CPP name.
8432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8434 # Sed expression to map a string onto a valid variable name.
8435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8438 exec 6>&1
8439 ## ----------------------------------- ##
8440 ## Main body of $CONFIG_STATUS script. ##
8441 ## ----------------------------------- ##
8442 _ASEOF
8443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8446 # Save the log message, to keep $0 and so on meaningful, and to
8447 # report actual input values of CONFIG_FILES etc. instead of their
8448 # values after options handling.
8449 ac_log="
8450 This file was extended by GNU C Library $as_me (see version.h), which was
8451 generated by GNU Autoconf 2.65. Invocation command line was
8453 CONFIG_FILES = $CONFIG_FILES
8454 CONFIG_HEADERS = $CONFIG_HEADERS
8455 CONFIG_LINKS = $CONFIG_LINKS
8456 CONFIG_COMMANDS = $CONFIG_COMMANDS
8457 $ $0 $@
8459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8462 _ACEOF
8464 case $ac_config_files in *"
8465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8466 esac
8468 case $ac_config_headers in *"
8469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8470 esac
8473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8474 # Files that config.status was made for.
8475 config_files="$ac_config_files"
8476 config_headers="$ac_config_headers"
8477 config_commands="$ac_config_commands"
8479 _ACEOF
8481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8482 ac_cs_usage="\
8483 \`$as_me' instantiates files and other configuration actions
8484 from templates according to the current configuration. Unless the files
8485 and actions are specified as TAGs, all are instantiated by default.
8487 Usage: $0 [OPTION]... [TAG]...
8489 -h, --help print this help, then exit
8490 -V, --version print version number and configuration settings, then exit
8491 --config print configuration, then exit
8492 -q, --quiet, --silent
8493 do not print progress messages
8494 -d, --debug don't remove temporary files
8495 --recheck update $as_me by reconfiguring in the same conditions
8496 --file=FILE[:TEMPLATE]
8497 instantiate the configuration file FILE
8498 --header=FILE[:TEMPLATE]
8499 instantiate the configuration header FILE
8501 Configuration files:
8502 $config_files
8504 Configuration headers:
8505 $config_headers
8507 Configuration commands:
8508 $config_commands
8510 Report bugs to <glibc>.
8511 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
8512 General help using GNU software: <http://www.gnu.org/gethelp/>."
8514 _ACEOF
8515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8516 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8517 ac_cs_version="\\
8518 GNU C Library config.status (see version.h)
8519 configured by $0, generated by GNU Autoconf 2.65,
8520 with options \\"\$ac_cs_config\\"
8522 Copyright (C) 2009 Free Software Foundation, Inc.
8523 This config.status script is free software; the Free Software Foundation
8524 gives unlimited permission to copy, distribute and modify it."
8526 ac_pwd='$ac_pwd'
8527 srcdir='$srcdir'
8528 INSTALL='$INSTALL'
8529 AWK='$AWK'
8530 test -n "\$AWK" || AWK=awk
8531 _ACEOF
8533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8534 # The default lists apply if the user does not specify any file.
8535 ac_need_defaults=:
8536 while test $# != 0
8538 case $1 in
8539 --*=*)
8540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8542 ac_shift=:
8545 ac_option=$1
8546 ac_optarg=$2
8547 ac_shift=shift
8549 esac
8551 case $ac_option in
8552 # Handling of the options.
8553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8554 ac_cs_recheck=: ;;
8555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8556 $as_echo "$ac_cs_version"; exit ;;
8557 --config | --confi | --conf | --con | --co | --c )
8558 $as_echo "$ac_cs_config"; exit ;;
8559 --debug | --debu | --deb | --de | --d | -d )
8560 debug=: ;;
8561 --file | --fil | --fi | --f )
8562 $ac_shift
8563 case $ac_optarg in
8564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8565 esac
8566 as_fn_append CONFIG_FILES " '$ac_optarg'"
8567 ac_need_defaults=false;;
8568 --header | --heade | --head | --hea )
8569 $ac_shift
8570 case $ac_optarg in
8571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8572 esac
8573 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8574 ac_need_defaults=false;;
8575 --he | --h)
8576 # Conflict between --help and --header
8577 as_fn_error "ambiguous option: \`$1'
8578 Try \`$0 --help' for more information.";;
8579 --help | --hel | -h )
8580 $as_echo "$ac_cs_usage"; exit ;;
8581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8583 ac_cs_silent=: ;;
8585 # This is an error.
8586 -*) as_fn_error "unrecognized option: \`$1'
8587 Try \`$0 --help' for more information." ;;
8589 *) as_fn_append ac_config_targets " $1"
8590 ac_need_defaults=false ;;
8592 esac
8593 shift
8594 done
8596 ac_configure_extra_args=
8598 if $ac_cs_silent; then
8599 exec 6>/dev/null
8600 ac_configure_extra_args="$ac_configure_extra_args --silent"
8603 _ACEOF
8604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8605 if \$ac_cs_recheck; then
8606 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8607 shift
8608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8609 CONFIG_SHELL='$SHELL'
8610 export CONFIG_SHELL
8611 exec "\$@"
8614 _ACEOF
8615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8616 exec 5>>config.log
8618 echo
8619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8620 ## Running $as_me. ##
8621 _ASBOX
8622 $as_echo "$ac_log"
8623 } >&5
8625 _ACEOF
8626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8628 # INIT-COMMANDS
8630 config_vars='$config_vars'
8632 _ACEOF
8634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636 # Handling of arguments.
8637 for ac_config_target in $ac_config_targets
8639 case $ac_config_target in
8640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8641 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8642 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8643 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
8644 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8646 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8647 esac
8648 done
8651 # If the user did not use the arguments to specify the items to instantiate,
8652 # then the envvar interface is used. Set only those that are not.
8653 # We use the long form for the default assignment because of an extremely
8654 # bizarre bug on SunOS 4.1.3.
8655 if $ac_need_defaults; then
8656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8661 # Have a temporary directory for convenience. Make it in the build tree
8662 # simply because there is no reason against having it here, and in addition,
8663 # creating and moving files from /tmp can sometimes cause problems.
8664 # Hook for its removal unless debugging.
8665 # Note that there is a small window in which the directory will not be cleaned:
8666 # after its creation but before its name has been assigned to `$tmp'.
8667 $debug ||
8669 tmp=
8670 trap 'exit_status=$?
8671 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8673 trap 'as_fn_exit 1' 1 2 13 15
8675 # Create a (secure) tmp directory for tmp files.
8678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8679 test -n "$tmp" && test -d "$tmp"
8680 } ||
8682 tmp=./conf$$-$RANDOM
8683 (umask 077 && mkdir "$tmp")
8684 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8686 # Set up the scripts for CONFIG_FILES section.
8687 # No need to generate them if there are no CONFIG_FILES.
8688 # This happens for instance with `./config.status config.h'.
8689 if test -n "$CONFIG_FILES"; then
8692 ac_cr=`echo X | tr X '\015'`
8693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8694 # But we know of no other shell where ac_cr would be empty at this
8695 # point, so we can use a bashism as a fallback.
8696 if test "x$ac_cr" = x; then
8697 eval ac_cr=\$\'\\r\'
8699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8701 ac_cs_awk_cr='\r'
8702 else
8703 ac_cs_awk_cr=$ac_cr
8706 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8707 _ACEOF
8711 echo "cat >conf$$subs.awk <<_ACEOF" &&
8712 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8713 echo "_ACEOF"
8714 } >conf$$subs.sh ||
8715 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8717 ac_delim='%!_!# '
8718 for ac_last_try in false false false false false :; do
8719 . ./conf$$subs.sh ||
8720 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8722 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8723 if test $ac_delim_n = $ac_delim_num; then
8724 break
8725 elif $ac_last_try; then
8726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8727 else
8728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8730 done
8731 rm -f conf$$subs.sh
8733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8734 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8735 _ACEOF
8736 sed -n '
8738 s/^/S["/; s/!.*/"]=/
8741 s/^[^!]*!//
8742 :repl
8743 t repl
8744 s/'"$ac_delim"'$//
8745 t delim
8748 s/\(.\{148\}\)..*/\1/
8749 t more1
8750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8753 b repl
8754 :more1
8755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8758 s/.\{148\}//
8759 t nl
8760 :delim
8762 s/\(.\{148\}\)..*/\1/
8763 t more2
8764 s/["\\]/\\&/g; s/^/"/; s/$/"/
8767 :more2
8768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8771 s/.\{148\}//
8772 t delim
8773 ' <conf$$subs.awk | sed '
8774 /^[^""]/{
8776 s/\n//
8778 ' >>$CONFIG_STATUS || ac_write_fail=1
8779 rm -f conf$$subs.awk
8780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8781 _ACAWK
8782 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8783 for (key in S) S_is_set[key] = 1
8784 FS = "\a"
8788 line = $ 0
8789 nfields = split(line, field, "@")
8790 substed = 0
8791 len = length(field[1])
8792 for (i = 2; i < nfields; i++) {
8793 key = field[i]
8794 keylen = length(key)
8795 if (S_is_set[key]) {
8796 value = S[key]
8797 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8798 len += length(value) + length(field[++i])
8799 substed = 1
8800 } else
8801 len += 1 + keylen
8804 print line
8807 _ACAWK
8808 _ACEOF
8809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8812 else
8814 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8815 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8816 _ACEOF
8818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8820 # trailing colons and then remove the whole line if VPATH becomes empty
8821 # (actually we leave an empty line to preserve line numbers).
8822 if test "x$srcdir" = x.; then
8823 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8824 s/:*\$(srcdir):*/:/
8825 s/:*\${srcdir}:*/:/
8826 s/:*@srcdir@:*/:/
8827 s/^\([^=]*=[ ]*\):*/\1/
8828 s/:*$//
8829 s/^[^=]*=[ ]*$//
8833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8834 fi # test -n "$CONFIG_FILES"
8836 # Set up the scripts for CONFIG_HEADERS section.
8837 # No need to generate them if there are no CONFIG_HEADERS.
8838 # This happens for instance with `./config.status Makefile'.
8839 if test -n "$CONFIG_HEADERS"; then
8840 cat >"$tmp/defines.awk" <<\_ACAWK ||
8841 BEGIN {
8842 _ACEOF
8844 # Transform confdefs.h into an awk script `defines.awk', embedded as
8845 # here-document in config.status, that substitutes the proper values into
8846 # config.h.in to produce config.h.
8848 # Create a delimiter string that does not exist in confdefs.h, to ease
8849 # handling of long lines.
8850 ac_delim='%!_!# '
8851 for ac_last_try in false false :; do
8852 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8853 if test -z "$ac_t"; then
8854 break
8855 elif $ac_last_try; then
8856 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8857 else
8858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8860 done
8862 # For the awk script, D is an array of macro values keyed by name,
8863 # likewise P contains macro parameters if any. Preserve backslash
8864 # newline sequences.
8866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8867 sed -n '
8868 s/.\{148\}/&'"$ac_delim"'/g
8869 t rset
8870 :rset
8871 s/^[ ]*#[ ]*define[ ][ ]*/ /
8872 t def
8874 :def
8875 s/\\$//
8876 t bsnl
8877 s/["\\]/\\&/g
8878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8879 D["\1"]=" \3"/p
8880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8882 :bsnl
8883 s/["\\]/\\&/g
8884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8885 D["\1"]=" \3\\\\\\n"\\/p
8886 t cont
8887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8888 t cont
8890 :cont
8892 s/.\{148\}/&'"$ac_delim"'/g
8893 t clear
8894 :clear
8895 s/\\$//
8896 t bsnlc
8897 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8899 :bsnlc
8900 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8901 b cont
8902 ' <confdefs.h | sed '
8903 s/'"$ac_delim"'/"\\\
8904 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8907 for (key in D) D_is_set[key] = 1
8908 FS = "\a"
8910 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8911 line = \$ 0
8912 split(line, arg, " ")
8913 if (arg[1] == "#") {
8914 defundef = arg[2]
8915 mac1 = arg[3]
8916 } else {
8917 defundef = substr(arg[1], 2)
8918 mac1 = arg[2]
8920 split(mac1, mac2, "(") #)
8921 macro = mac2[1]
8922 prefix = substr(line, 1, index(line, defundef) - 1)
8923 if (D_is_set[macro]) {
8924 # Preserve the white space surrounding the "#".
8925 print prefix "define", macro P[macro] D[macro]
8926 next
8927 } else {
8928 # Replace #undef with comments. This is necessary, for example,
8929 # in the case of _POSIX_SOURCE, which is predefined and required
8930 # on some systems where configure will not decide to define it.
8931 if (defundef == "undef") {
8932 print "/*", prefix defundef, macro, "*/"
8933 next
8937 { print }
8938 _ACAWK
8939 _ACEOF
8940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8941 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8942 fi # test -n "$CONFIG_HEADERS"
8945 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8946 shift
8947 for ac_tag
8949 case $ac_tag in
8950 :[FHLC]) ac_mode=$ac_tag; continue;;
8951 esac
8952 case $ac_mode$ac_tag in
8953 :[FHL]*:*);;
8954 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8955 :[FH]-) ac_tag=-:-;;
8956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8957 esac
8958 ac_save_IFS=$IFS
8959 IFS=:
8960 set x $ac_tag
8961 IFS=$ac_save_IFS
8962 shift
8963 ac_file=$1
8964 shift
8966 case $ac_mode in
8967 :L) ac_source=$1;;
8968 :[FH])
8969 ac_file_inputs=
8970 for ac_f
8972 case $ac_f in
8973 -) ac_f="$tmp/stdin";;
8974 *) # Look for the file first in the build tree, then in the source tree
8975 # (if the path is not absolute). The absolute path cannot be DOS-style,
8976 # because $ac_f cannot contain `:'.
8977 test -f "$ac_f" ||
8978 case $ac_f in
8979 [\\/$]*) false;;
8980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8981 esac ||
8982 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8983 esac
8984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8985 as_fn_append ac_file_inputs " '$ac_f'"
8986 done
8988 # Let's still pretend it is `configure' which instantiates (i.e., don't
8989 # use $as_me), people would be surprised to read:
8990 # /* config.h. Generated by config.status. */
8991 configure_input='Generated from '`
8992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8993 `' by configure.'
8994 if test x"$ac_file" != x-; then
8995 configure_input="$ac_file. $configure_input"
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8997 $as_echo "$as_me: creating $ac_file" >&6;}
8999 # Neutralize special characters interpreted by sed in replacement strings.
9000 case $configure_input in #(
9001 *\&* | *\|* | *\\* )
9002 ac_sed_conf_input=`$as_echo "$configure_input" |
9003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9004 *) ac_sed_conf_input=$configure_input;;
9005 esac
9007 case $ac_tag in
9008 *:-:* | *:-) cat >"$tmp/stdin" \
9009 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9010 esac
9012 esac
9014 ac_dir=`$as_dirname -- "$ac_file" ||
9015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9016 X"$ac_file" : 'X\(//\)[^/]' \| \
9017 X"$ac_file" : 'X\(//\)$' \| \
9018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9019 $as_echo X"$ac_file" |
9020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9021 s//\1/
9024 /^X\(\/\/\)[^/].*/{
9025 s//\1/
9028 /^X\(\/\/\)$/{
9029 s//\1/
9032 /^X\(\/\).*/{
9033 s//\1/
9036 s/.*/./; q'`
9037 as_dir="$ac_dir"; as_fn_mkdir_p
9038 ac_builddir=.
9040 case "$ac_dir" in
9041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9044 # A ".." for each directory in $ac_dir_suffix.
9045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9046 case $ac_top_builddir_sub in
9047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9049 esac ;;
9050 esac
9051 ac_abs_top_builddir=$ac_pwd
9052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9053 # for backward compatibility:
9054 ac_top_builddir=$ac_top_build_prefix
9056 case $srcdir in
9057 .) # We are building in place.
9058 ac_srcdir=.
9059 ac_top_srcdir=$ac_top_builddir_sub
9060 ac_abs_top_srcdir=$ac_pwd ;;
9061 [\\/]* | ?:[\\/]* ) # Absolute name.
9062 ac_srcdir=$srcdir$ac_dir_suffix;
9063 ac_top_srcdir=$srcdir
9064 ac_abs_top_srcdir=$srcdir ;;
9065 *) # Relative name.
9066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9067 ac_top_srcdir=$ac_top_build_prefix$srcdir
9068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9069 esac
9070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9073 case $ac_mode in
9076 # CONFIG_FILE
9079 case $INSTALL in
9080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9082 esac
9083 _ACEOF
9085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9086 # If the template does not know about datarootdir, expand it.
9087 # FIXME: This hack should be removed a few years after 2.60.
9088 ac_datarootdir_hack=; ac_datarootdir_seen=
9089 ac_sed_dataroot='
9090 /datarootdir/ {
9094 /@datadir@/p
9095 /@docdir@/p
9096 /@infodir@/p
9097 /@localedir@/p
9098 /@mandir@/p'
9099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9100 *datarootdir*) ac_datarootdir_seen=yes;;
9101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9104 _ACEOF
9105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9106 ac_datarootdir_hack='
9107 s&@datadir@&$datadir&g
9108 s&@docdir@&$docdir&g
9109 s&@infodir@&$infodir&g
9110 s&@localedir@&$localedir&g
9111 s&@mandir@&$mandir&g
9112 s&\\\${datarootdir}&$datarootdir&g' ;;
9113 esac
9114 _ACEOF
9116 # Neutralize VPATH when `$srcdir' = `.'.
9117 # Shell code in configure.ac might set extrasub.
9118 # FIXME: do we really want to maintain this feature?
9119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9120 ac_sed_extra="$ac_vpsub
9121 $extrasub
9122 _ACEOF
9123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9126 s|@configure_input@|$ac_sed_conf_input|;t t
9127 s&@top_builddir@&$ac_top_builddir_sub&;t t
9128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9129 s&@srcdir@&$ac_srcdir&;t t
9130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9131 s&@top_srcdir@&$ac_top_srcdir&;t t
9132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9133 s&@builddir@&$ac_builddir&;t t
9134 s&@abs_builddir@&$ac_abs_builddir&;t t
9135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9136 s&@INSTALL@&$ac_INSTALL&;t t
9137 $ac_datarootdir_hack
9139 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9140 || as_fn_error "could not create $ac_file" "$LINENO" 5
9142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9143 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9146 which seems to be undefined. Please make sure it is defined." >&5
9147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9148 which seems to be undefined. Please make sure it is defined." >&2;}
9150 rm -f "$tmp/stdin"
9151 case $ac_file in
9152 -) cat "$tmp/out" && rm -f "$tmp/out";;
9153 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9154 esac \
9155 || as_fn_error "could not create $ac_file" "$LINENO" 5
9159 # CONFIG_HEADER
9161 if test x"$ac_file" != x-; then
9163 $as_echo "/* $configure_input */" \
9164 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9165 } >"$tmp/config.h" \
9166 || as_fn_error "could not create $ac_file" "$LINENO" 5
9167 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9170 else
9171 rm -f "$ac_file"
9172 mv "$tmp/config.h" "$ac_file" \
9173 || as_fn_error "could not create $ac_file" "$LINENO" 5
9175 else
9176 $as_echo "/* $configure_input */" \
9177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9178 || as_fn_error "could not create -" "$LINENO" 5
9182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9183 $as_echo "$as_me: executing $ac_file commands" >&6;}
9185 esac
9188 case $ac_file$ac_mode in
9189 "default":C)
9190 case $CONFIG_FILES in *config.make*)
9191 echo "$config_vars" >> config.make;;
9192 esac
9193 test -d bits || mkdir bits ;;
9195 esac
9196 done # for ac_tag
9199 as_fn_exit 0
9200 _ACEOF
9201 ac_clean_files=$ac_clean_files_save
9203 test $ac_write_fail = 0 ||
9204 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9207 # configure is writing to config.log, and then calls config.status.
9208 # config.status does its own redirection, appending to config.log.
9209 # Unfortunately, on DOS this fails, as config.log is still kept open
9210 # by configure, so config.status won't be able to write to it; its
9211 # output is simply discarded. So we exec the FD to /dev/null,
9212 # effectively closing config.log, so it can be properly (re)opened and
9213 # appended to by config.status. When coming back to configure, we
9214 # need to make the FD available again.
9215 if test "$no_create" != yes; then
9216 ac_cs_success=:
9217 ac_config_status_args=
9218 test "$silent" = yes &&
9219 ac_config_status_args="$ac_config_status_args --quiet"
9220 exec 5>/dev/null
9221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9222 exec 5>>config.log
9223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9224 # would make configure fail if this is the last instruction.
9225 $ac_cs_success || as_fn_exit $?
9229 # CONFIG_SUBDIRS section.
9231 if test "$no_recursion" != yes; then
9233 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9234 # so they do not pile up.
9235 ac_sub_configure_args=
9236 ac_prev=
9237 eval "set x $ac_configure_args"
9238 shift
9239 for ac_arg
9241 if test -n "$ac_prev"; then
9242 ac_prev=
9243 continue
9245 case $ac_arg in
9246 -cache-file | --cache-file | --cache-fil | --cache-fi \
9247 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9248 ac_prev=cache_file ;;
9249 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9250 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9251 | --c=*)
9253 --config-cache | -C)
9255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9256 ac_prev=srcdir ;;
9257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9260 ac_prev=prefix ;;
9261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9263 --disable-option-checking)
9266 case $ac_arg in
9267 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9268 esac
9269 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9270 esac
9271 done
9273 # Always prepend --prefix to ensure using the same prefix
9274 # in subdir configurations.
9275 ac_arg="--prefix=$prefix"
9276 case $ac_arg in
9277 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9278 esac
9279 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9281 # Pass --silent
9282 if test "$silent" = yes; then
9283 ac_sub_configure_args="--silent $ac_sub_configure_args"
9286 # Always prepend --disable-option-checking to silence warnings, since
9287 # different subdirs can have different --enable and --with options.
9288 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9290 ac_popdir=`pwd`
9291 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9293 # Do not complain, so a configure script can configure whichever
9294 # parts of a large source tree are present.
9295 test -d "$srcdir/$ac_dir" || continue
9297 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9299 $as_echo "$ac_msg" >&6
9300 as_dir="$ac_dir"; as_fn_mkdir_p
9301 ac_builddir=.
9303 case "$ac_dir" in
9304 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9306 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9307 # A ".." for each directory in $ac_dir_suffix.
9308 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9309 case $ac_top_builddir_sub in
9310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9312 esac ;;
9313 esac
9314 ac_abs_top_builddir=$ac_pwd
9315 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9316 # for backward compatibility:
9317 ac_top_builddir=$ac_top_build_prefix
9319 case $srcdir in
9320 .) # We are building in place.
9321 ac_srcdir=.
9322 ac_top_srcdir=$ac_top_builddir_sub
9323 ac_abs_top_srcdir=$ac_pwd ;;
9324 [\\/]* | ?:[\\/]* ) # Absolute name.
9325 ac_srcdir=$srcdir$ac_dir_suffix;
9326 ac_top_srcdir=$srcdir
9327 ac_abs_top_srcdir=$srcdir ;;
9328 *) # Relative name.
9329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9330 ac_top_srcdir=$ac_top_build_prefix$srcdir
9331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9332 esac
9333 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9336 cd "$ac_dir"
9338 # Check for guested configure; otherwise get Cygnus style configure.
9339 if test -f "$ac_srcdir/configure.gnu"; then
9340 ac_sub_configure=$ac_srcdir/configure.gnu
9341 elif test -f "$ac_srcdir/configure"; then
9342 ac_sub_configure=$ac_srcdir/configure
9343 elif test -f "$ac_srcdir/configure.in"; then
9344 # This should be Cygnus configure.
9345 ac_sub_configure=$ac_aux_dir/configure
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9348 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9349 ac_sub_configure=
9352 # The recursion is here.
9353 if test -n "$ac_sub_configure"; then
9354 # Make the cache file name correct relative to the subdirectory.
9355 case $cache_file in
9356 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9357 *) # Relative name.
9358 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9359 esac
9361 { $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
9362 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9363 # The eval makes quoting arguments work.
9364 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9365 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9366 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9369 cd "$ac_popdir"
9370 done
9372 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9374 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}