Avoid warning from shifting
[glibc.git] / configure
blob55cb0083540c7cb61a510e33c3935944e676e7a3
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h).
6 # Report bugs to <http://sourceware.org/bugzilla/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
39 as_nl='
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
154 esac
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 else
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181 else
182 as_have_required=no
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
206 done;;
207 esac
208 as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://sourceware.org/bugzilla/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
248 exit 1
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
266 { eval $1=; unset $1;}
268 as_unset=as_fn_unset
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
275 return $1
276 } # as_fn_set_status
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
319 /^X\(\/\/\)$/{
320 s//\1/
323 /^X\(\/\).*/{
324 s//\1/
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
344 eval $1+=\$2
346 else
347 as_fn_append ()
349 eval $1=\$$1\$2
351 fi # as_fn_append
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
361 as_val=$(( $* ))
363 else
364 as_fn_arith ()
366 as_val=`expr "$@" || test $? -eq 1`
368 fi # as_fn_arith
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
415 /^X\/\(\/\/\)$/{
416 s//\1/
419 /^X\/\(\/\).*/{
420 s//\1/
423 s/.*/./; q'`
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
474 ECHO_N='-n';;
475 esac
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
498 else
499 as_ln_s='cp -p'
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 # Initializations.
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
561 # Identity of this package.
562 PACKAGE_NAME='GNU C Library'
563 PACKAGE_TARNAME='glibc'
564 PACKAGE_VERSION='(see version.h)'
565 PACKAGE_STRING='GNU C Library (see version.h)'
566 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
567 PACKAGE_URL='http://www.gnu.org/software/glibc/'
569 ac_unique_file="include/features.h"
570 enable_option_checking=no
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 # include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 # include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
607 ac_subst_vars='LTLIBOBJS
608 LIBOBJS
609 RELEASE
610 VERSION
611 mach_interface_list
612 DEFINES
613 nopic_initfini
614 static_nss
615 bounded
616 omitfp
617 profile
618 libc_cv_pic_default
619 shared
620 static
621 xcoff
623 ldd_rewrite_script
624 use_ldconfig
625 libc_cv_as_i686
626 libc_cv_cc_fma4
627 libc_cv_cc_novzeroupper
628 libc_cv_cc_avx
629 libc_cv_cc_sse4
630 libc_cv_cpp_asm_debuginfo
631 libc_cv_forced_unwind
632 libc_cv_rootsbindir
633 libc_cv_sysconfdir
634 libc_cv_localedir
635 libc_cv_slibdir
636 old_glibc_headers
637 libc_cv_gcc_unwind_find_fde
638 sizeof_long_double
639 EGREP
640 GREP
641 have_selinux
642 have_libcap
643 have_libaudit
644 LIBGD
645 libc_cv_cc_submachine
646 exceptions
647 libc_cv_have_initfini
648 gnu89_inline
649 libc_cv_ssp
650 fno_unit_at_a_time
651 libc_cv_output_format
652 libc_cv_hashstyle
653 libc_cv_fpie
654 libc_cv_z_execstack
655 libc_cv_z_combreloc
656 ASFLAGS_config
657 libc_cv_as_needed
658 libc_cv_libgcc_s_suffix
659 libc_cv_Bgroup
660 libc_cv_cc_with_libunwind
661 VERSIONING
662 BISON
663 INSTALL_INFO
664 PERL
666 libc_cv_have_ksh
668 libc_cv_have_bash2
669 BASH_SHELL
670 libc_cv_gcc_static_libgcc
671 CXX_SYSINCLUDES
672 SYSINCLUDES
673 AUTOCONF
674 READELF
676 MAKEINFO
677 MSGFMT
678 MAKE
679 PWD_P
683 OBJCOPY
684 OBJDUMP
686 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 sysdeps_add_ons
691 sysnames
692 submachine
693 multi_arch
694 base_machine
695 add_on_subdirs
696 add_ons
697 libc_cv_nss_crypt
698 all_warnings
699 force_install
700 bindnow
701 oldest_abi
702 enable_check_abi
703 use_default_link
704 with_fp
705 ac_ct_CXX
706 CXXFLAGS
709 cross_compiling
710 BUILD_CC
711 OBJEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 subdirs
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 with_gd
768 with_gd_include
769 with_gd_lib
770 with_fp
771 with_binutils
772 with_elf
773 with_selinux
774 with_xcoff
775 with_headers
776 with_default_link
777 enable_sanity_checks
778 enable_check_abi
779 enable_shared
780 enable_profile
781 enable_omitfp
782 enable_bounded
783 enable_versioning
784 enable_oldest_abi
785 enable_stackguard_randomization
786 enable_add_ons
787 enable_hidden_plt
788 enable_bind_now
789 enable_static_nss
790 enable_force_install
791 enable_kernel
792 enable_all_warnings
793 enable_multi_arch
794 enable_nss_crypt
795 with_cpu
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
807 CXXFLAGS
808 CCC'
809 ac_subdirs_all='
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 esac
1218 done
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used" >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1304 /^X\(\/\/\)$/{
1305 s//\1/
1308 /^X\(\/\).*/{
1309 s//\1/
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1317 else
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1407 cat <<\_ACEOF
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1418 esac
1419 cat <<\_ACEOF
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --disable-sanity-checks really do not use threads (should not be used except
1426 in special situations) [default=yes]
1427 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1428 [default=no]
1429 --enable-shared build shared library [default=yes if GNU ld & ELF]
1430 --enable-profile build profiled library [default=no]
1431 --enable-omitfp build undebuggable optimized library [default=no]
1432 --enable-bounded build with runtime bounds checking [default=no]
1433 --disable-versioning do not include versioning information in the library
1434 objects [default=yes if supported]
1435 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1436 [default=glibc default]
1437 --enable-stackguard-randomization
1438 initialize __stack_chk_guard canary with a random
1439 number at program start
1440 --enable-add-ons[=DIRS...]
1441 configure and build add-ons in DIR1,DIR2,... search
1442 for add-ons if no parameter given
1443 --disable-hidden-plt do not hide internal function calls to avoid PLT
1444 --enable-bind-now disable lazy relocations in DSOs
1445 --enable-static-nss build static NSS modules [default=no]
1446 --disable-force-install don't force installation of files from this package,
1447 even if they are older than the installed files
1448 --enable-kernel=VERSION compile for compatibility with kernel not older than
1449 VERSION
1450 --enable-all-warnings enable all useful warnings gcc can issue
1451 --enable-multi-arch enable single DSO with optimizations for multiple
1452 architectures
1453 --enable-nss-crypt enable libcrypt to use nss
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gd=DIR find libgd include dir and library with prefix DIR
1459 --with-gd-include=DIR find libgd include files in DIR
1460 --with-gd-lib=DIR find libgd library files in DIR
1461 --with-fp if using floating-point hardware [default=yes]
1462 --with-binutils=PATH specify location of binutils (as and ld)
1463 --with-elf if using the ELF object format
1464 --with-selinux if building with SELinux support
1465 --with-xcoff if using the XCOFF object format
1466 --with-headers=PATH location of system headers to use (for example
1467 /usr/src/linux/include) [default=compiler default]
1468 --with-default-link do not use explicit linker scripts
1469 --with-cpu=CPU select code for CPU variant
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to <http://sourceware.org/bugzilla/>.
1487 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1488 General help using GNU software: <http://www.gnu.org/gethelp/>.
1489 _ACEOF
1490 ac_status=$?
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 GNU C Library configure (see version.h)
1552 generated by GNU Autoconf 2.68
1554 Copyright (C) 2010 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558 exit
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1596 ac_retval=1
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1601 } # ac_fn_c_try_compile
1603 # ac_fn_c_try_cpp LINENO
1604 # ----------------------
1605 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_cpp ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } > conftest.i && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 }; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=1
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_cpp
1640 # ac_fn_cxx_try_compile LINENO
1641 # ----------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_cxx_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_retval=1
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_cxx_try_compile
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=1
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_run
1766 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1767 # --------------------------------------------
1768 # Tries to find the compile-time value of EXPR in a program that includes
1769 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1770 # computed
1771 ac_fn_c_compute_int ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if test "$cross_compiling" = yes; then
1775 # Depending upon the size, compute the lo and hi bounds.
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1780 main ()
1782 static int test_array [1 - 2 * !(($2) >= 0)];
1783 test_array [0] = 0
1786 return 0;
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_lo=0 ac_mid=0
1791 while :; do
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 main ()
1798 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799 test_array [0] = 0
1802 return 0;
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_hi=$ac_mid; break
1807 else
1808 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1809 if test $ac_lo -le $ac_mid; then
1810 ac_lo= ac_hi=
1811 break
1813 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 done
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1822 main ()
1824 static int test_array [1 - 2 * !(($2) < 0)];
1825 test_array [0] = 0
1828 return 0;
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_hi=-1 ac_mid=-1
1833 while :; do
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1838 main ()
1840 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1841 test_array [0] = 0
1844 return 0;
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_lo=$ac_mid; break
1849 else
1850 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1851 if test $ac_mid -le $ac_hi; then
1852 ac_lo= ac_hi=
1853 break
1855 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 done
1859 else
1860 ac_lo= ac_hi=
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 # Binary search between lo and hi bounds.
1866 while test "x$ac_lo" != "x$ac_hi"; do
1867 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1872 main ()
1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1875 test_array [0] = 0
1878 return 0;
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 ac_hi=$ac_mid
1883 else
1884 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 done
1888 case $ac_lo in #((
1889 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1890 '') ac_retval=1 ;;
1891 esac
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 static long int longval () { return $2; }
1897 static unsigned long int ulongval () { return $2; }
1898 #include <stdio.h>
1899 #include <stdlib.h>
1901 main ()
1904 FILE *f = fopen ("conftest.val", "w");
1905 if (! f)
1906 return 1;
1907 if (($2) < 0)
1909 long int i = longval ();
1910 if (i != ($2))
1911 return 1;
1912 fprintf (f, "%ld", i);
1914 else
1916 unsigned long int i = ulongval ();
1917 if (i != ($2))
1918 return 1;
1919 fprintf (f, "%lu", i);
1921 /* Do not output a trailing newline, as this causes \r\n confusion
1922 on some platforms. */
1923 return ferror (f) || fclose (f) != 0;
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_run "$LINENO"; then :
1930 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1931 else
1932 ac_retval=1
1934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1935 conftest.$ac_objext conftest.beam conftest.$ac_ext
1936 rm -f conftest.val
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_c_compute_int
1944 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists and can be compiled using the include files in
1947 # INCLUDES, setting the cache variable VAR accordingly.
1948 ac_fn_c_check_header_compile ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_header_compile
1974 cat >config.log <<_ACEOF
1975 This file contains any messages produced by compilers while
1976 running configure, to aid debugging if configure makes a mistake.
1978 It was created by GNU C Library $as_me (see version.h), which was
1979 generated by GNU Autoconf 2.68. Invocation command line was
1981 $ $0 $@
1983 _ACEOF
1984 exec 5>>config.log
1986 cat <<_ASUNAME
1987 ## --------- ##
1988 ## Platform. ##
1989 ## --------- ##
1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 _ASUNAME
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 $as_echo "PATH: $as_dir"
2016 done
2017 IFS=$as_save_IFS
2019 } >&5
2021 cat >&5 <<_ACEOF
2024 ## ----------- ##
2025 ## Core tests. ##
2026 ## ----------- ##
2028 _ACEOF
2031 # Keep a trace of the command line.
2032 # Strip out --no-create and --no-recursion so they do not pile up.
2033 # Strip out --silent because we don't want to record it for future runs.
2034 # Also quote any args containing shell meta-characters.
2035 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_configure_args=
2037 ac_configure_args0=
2038 ac_configure_args1=
2039 ac_must_keep_next=false
2040 for ac_pass in 1 2
2042 for ac_arg
2044 case $ac_arg in
2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2047 | -silent | --silent | --silen | --sile | --sil)
2048 continue ;;
2049 *\'*)
2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 esac
2052 case $ac_pass in
2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 as_fn_append ac_configure_args1 " '$ac_arg'"
2056 if test $ac_must_keep_next = true; then
2057 ac_must_keep_next=false # Got value, back to normal.
2058 else
2059 case $ac_arg in
2060 *=* | --config-cache | -C | -disable-* | --disable-* \
2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2063 | -with-* | --with-* | -without-* | --without-* | --x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 esac
2068 -* ) ac_must_keep_next=true ;;
2069 esac
2071 as_fn_append ac_configure_args " '$ac_arg'"
2073 esac
2074 done
2075 done
2076 { ac_configure_args0=; unset ac_configure_args0;}
2077 { ac_configure_args1=; unset ac_configure_args1;}
2079 # When interrupted or exit'd, cleanup temporary files, and complete
2080 # config.log. We remove comments because anyway the quotes in there
2081 # would cause problems or look ugly.
2082 # WARNING: Use '\'' to represent an apostrophe within the trap.
2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2084 trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2087 echo
2089 $as_echo "## ---------------- ##
2090 ## Cache variables. ##
2091 ## ---------------- ##"
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 $as_echo "## ----------------- ##
2126 ## Output variables. ##
2127 ## ----------------- ##"
2128 echo
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2139 if test -n "$ac_subst_files"; then
2140 $as_echo "## ------------------- ##
2141 ## File substitutions. ##
2142 ## ------------------- ##"
2143 echo
2144 for ac_var in $ac_subst_files
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 $as_echo "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2155 if test -s confdefs.h; then
2156 $as_echo "## ----------- ##
2157 ## confdefs.h. ##
2158 ## ----------- ##"
2159 echo
2160 cat confdefs.h
2161 echo
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2166 } >&5
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 exit $exit_status
2171 for ac_signal in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 done
2174 ac_signal=0
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2179 $as_echo "/* confdefs.h */" > confdefs.h
2181 # Predefined preprocessor variables.
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2205 _ACEOF
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2210 ac_site_file1=NONE
2211 ac_site_file2=NONE
2212 if test -n "$CONFIG_SITE"; then
2213 # We do not want a PATH search for config.site.
2214 case $CONFIG_SITE in #((
2215 -*) ac_site_file1=./$CONFIG_SITE;;
2216 */*) ac_site_file1=$CONFIG_SITE;;
2217 *) ac_site_file1=./$CONFIG_SITE;;
2218 esac
2219 elif test "x$prefix" != xNONE; then
2220 ac_site_file1=$prefix/share/config.site
2221 ac_site_file2=$prefix/etc/config.site
2222 else
2223 ac_site_file1=$ac_default_prefix/share/config.site
2224 ac_site_file2=$ac_default_prefix/etc/config.site
2226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 test "x$ac_site_file" = xNONE && continue
2229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2233 . "$ac_site_file" \
2234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $? "failed to load site script $ac_site_file
2237 See \`config.log' for more details" "$LINENO" 5; }
2239 done
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2258 # Check that the precious variables saved in the cache have kept the same
2259 # value.
2260 ac_cache_corrupted=false
2261 for ac_var in $ac_precious_vars; do
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2267 set,)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,set)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,);;
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x $ac_old_val`
2280 ac_new_val_w=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted=:
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 fi;;
2295 esac
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2298 case $ac_new_val in
2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2301 esac
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305 esac
2307 done
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 ac_config_headers="$ac_config_headers config.h"
2329 ac_aux_dir=
2330 for ac_dir in scripts "$srcdir"/scripts; do
2331 if test -f "$ac_dir/install-sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install-sh -c"
2334 break
2335 elif test -f "$ac_dir/install.sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install.sh -c"
2338 break
2339 elif test -f "$ac_dir/shtool"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/shtool install -c"
2342 break
2344 done
2345 if test -z "$ac_aux_dir"; then
2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2349 # These three variables are undocumented and unsupported,
2350 # and are intended to be withdrawn in a future Autoconf release.
2351 # They can cause serious problems if a builder's source tree is in a directory
2352 # whose full name contains unusual characters.
2353 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2354 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2355 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2361 subdirs="$subdirs "
2364 # Make sure we can run config.sub.
2365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2366 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2369 $as_echo_n "checking build system type... " >&6; }
2370 if ${ac_cv_build+:} false; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 ac_build_alias=$build_alias
2374 test "x$ac_build_alias" = x &&
2375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2376 test "x$ac_build_alias" = x &&
2377 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2383 $as_echo "$ac_cv_build" >&6; }
2384 case $ac_cv_build in
2385 *-*-*) ;;
2386 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2387 esac
2388 build=$ac_cv_build
2389 ac_save_IFS=$IFS; IFS='-'
2390 set x $ac_cv_build
2391 shift
2392 build_cpu=$1
2393 build_vendor=$2
2394 shift; shift
2395 # Remember, the first character of IFS is used to create $*,
2396 # except with old shells:
2397 build_os=$*
2398 IFS=$ac_save_IFS
2399 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2403 $as_echo_n "checking host system type... " >&6; }
2404 if ${ac_cv_host+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 if test "x$host_alias" = x; then
2408 ac_cv_host=$ac_cv_build
2409 else
2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2416 $as_echo "$ac_cv_host" >&6; }
2417 case $ac_cv_host in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2420 esac
2421 host=$ac_cv_host
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_host
2424 shift
2425 host_cpu=$1
2426 host_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 host_os=$*
2431 IFS=$ac_save_IFS
2432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_CC+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2472 $as_echo "$CC" >&6; }
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2480 if test -z "$ac_cv_prog_CC"; then
2481 ac_ct_CC=$CC
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483 set dummy gcc; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="gcc"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2505 IFS=$as_save_IFS
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2512 $as_echo "$ac_ct_CC" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2518 if test "x$ac_ct_CC" = x; then
2519 CC=""
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522 yes:)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527 CC=$ac_ct_CC
2529 else
2530 CC="$ac_cv_prog_CC"
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}cc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_CC+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}cc"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565 $as_echo "$CC" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2574 if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_CC+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 ac_prog_rejected=no
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2595 continue
2597 ac_cv_prog_CC="cc"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2605 if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2608 shift
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2613 shift
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 for ac_prog in cl.exe
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_CC+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2671 test -n "$CC" && break
2672 done
2674 if test -z "$CC"; then
2675 ac_ct_CC=$CC
2676 for ac_prog in cl.exe
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="$ac_prog"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2715 test -n "$ac_ct_CC" && break
2716 done
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned=yes ;;
2726 esac
2727 CC=$ac_ct_CC
2734 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 as_fn_error $? "no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details" "$LINENO" 5; }
2739 # Provide some information about the compiler.
2740 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2741 set X $ac_compile
2742 ac_compiler=$2
2743 for ac_option in --version -v -V -qversion; do
2744 { { ac_try="$ac_compiler $ac_option >&5"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750 $as_echo "$ac_try_echo"; } >&5
2751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2752 ac_status=$?
2753 if test -s conftest.err; then
2754 sed '10a\
2755 ... rest of stderr output deleted ...
2756 10q' conftest.err >conftest.er1
2757 cat conftest.er1 >&5
2759 rm -f conftest.er1 conftest.err
2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761 test $ac_status = 0; }
2762 done
2764 EXEEXT=
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2766 $as_echo_n "checking for suffix of object files... " >&6; }
2767 if ${ac_cv_objext+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.o conftest.obj
2782 if { { ac_try="$ac_compile"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_compile") 2>&5
2790 ac_status=$?
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }; then :
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2795 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798 break;;
2799 esac
2800 done
2801 else
2802 $as_echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 as_fn_error $? "cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details" "$LINENO" 5; }
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2813 $as_echo "$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2815 ac_objext=$OBJEXT
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2817 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818 if ${ac_cv_c_compiler_gnu+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2825 main ()
2827 #ifndef __GNUC__
2828 choke me
2829 #endif
2832 return 0;
2834 _ACEOF
2835 if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_compiler_gnu=yes
2837 else
2838 ac_compiler_gnu=no
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2845 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846 if test $ac_compiler_gnu = yes; then
2847 GCC=yes
2848 else
2849 GCC=
2851 ac_test_CFLAGS=${CFLAGS+set}
2852 ac_save_CFLAGS=$CFLAGS
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2854 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2855 if ${ac_cv_prog_cc_g+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 ac_save_c_werror_flag=$ac_c_werror_flag
2859 ac_c_werror_flag=yes
2860 ac_cv_prog_cc_g=no
2861 CFLAGS="-g"
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_cv_prog_cc_g=yes
2875 else
2876 CFLAGS=""
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2881 main ()
2885 return 0;
2887 _ACEOF
2888 if ac_fn_c_try_compile "$LINENO"; then :
2890 else
2891 ac_c_werror_flag=$ac_save_c_werror_flag
2892 CFLAGS="-g"
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2897 main ()
2901 return 0;
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905 ac_cv_prog_cc_g=yes
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2915 $as_echo "$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917 CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2920 CFLAGS="-g -O2"
2921 else
2922 CFLAGS="-g"
2924 else
2925 if test "$GCC" = yes; then
2926 CFLAGS="-O2"
2927 else
2928 CFLAGS=
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2933 if ${ac_cv_prog_cc_c89+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 ac_cv_prog_cc_c89=no
2937 ac_save_CC=$CC
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2940 #include <stdarg.h>
2941 #include <stdio.h>
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2948 char **p;
2949 int i;
2951 return p[i];
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2955 char *s;
2956 va_list v;
2957 va_start (v,p);
2958 s = g (p, va_arg (v,int));
2959 va_end (v);
2960 return s;
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2964 function prototypes and stuff, but not '\xHH' hex character constants.
2965 These don't provoke an error unfortunately, instead are silently treated
2966 as 'x'. The following induces an error, until -std is added to get
2967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2968 array size at least. It's necessary to write '\x00'==0 to get something
2969 that's true only with -std. */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973 inside strings and character constants. */
2974 #define FOO(x) 'x'
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981 int argc;
2982 char **argv;
2984 main ()
2986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2988 return 0;
2990 _ACEOF
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 CC="$ac_save_CC $ac_arg"
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_cv_prog_cc_c89=$ac_arg
2998 rm -f core conftest.err conftest.$ac_objext
2999 test "x$ac_cv_prog_cc_c89" != "xno" && break
3000 done
3001 rm -f conftest.$ac_ext
3002 CC=$ac_save_CC
3005 # AC_CACHE_VAL
3006 case "x$ac_cv_prog_cc_c89" in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3009 $as_echo "none needed" >&6; } ;;
3010 xno)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3012 $as_echo "unsupported" >&6; } ;;
3014 CC="$CC $ac_cv_prog_cc_c89"
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3016 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3017 esac
3018 if test "x$ac_cv_prog_cc_c89" != xno; then :
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 if test $host != $build; then
3029 for ac_prog in gcc cc
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_BUILD_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$BUILD_CC"; then
3039 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_BUILD_CC="$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3052 done
3053 done
3054 IFS=$as_save_IFS
3058 BUILD_CC=$ac_cv_prog_BUILD_CC
3059 if test -n "$BUILD_CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3061 $as_echo "$BUILD_CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$BUILD_CC" && break
3069 done
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3079 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3080 # On Suns, sometimes $CPP names a directory.
3081 if test -n "$CPP" && test -d "$CPP"; then
3082 CPP=
3084 if test -z "$CPP"; then
3085 if ${ac_cv_prog_CPP+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 # Double quotes because CPP needs to be expanded
3089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3091 ac_preproc_ok=false
3092 for ac_c_preproc_warn_flag in '' yes
3094 # Use a header file that comes with gcc, so configuring glibc
3095 # with a fresh cross-compiler works.
3096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3097 # <limits.h> exists even on freestanding compilers.
3098 # On the NeXT, cc -E runs the code through the compiler's parser,
3099 # not just through cpp. "Syntax error" is here to catch this case.
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102 #ifdef __STDC__
3103 # include <limits.h>
3104 #else
3105 # include <assert.h>
3106 #endif
3107 Syntax error
3108 _ACEOF
3109 if ac_fn_c_try_cpp "$LINENO"; then :
3111 else
3112 # Broken: fails on valid input.
3113 continue
3115 rm -f conftest.err conftest.i conftest.$ac_ext
3117 # OK, works on sane cases. Now check whether nonexistent headers
3118 # can be detected and how.
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3122 _ACEOF
3123 if ac_fn_c_try_cpp "$LINENO"; then :
3124 # Broken: success on invalid input.
3125 continue
3126 else
3127 # Passes both tests.
3128 ac_preproc_ok=:
3129 break
3131 rm -f conftest.err conftest.i conftest.$ac_ext
3133 done
3134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3135 rm -f conftest.i conftest.err conftest.$ac_ext
3136 if $ac_preproc_ok; then :
3137 break
3140 done
3141 ac_cv_prog_CPP=$CPP
3144 CPP=$ac_cv_prog_CPP
3145 else
3146 ac_cv_prog_CPP=$CPP
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3149 $as_echo "$CPP" >&6; }
3150 ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166 Syntax error
3167 _ACEOF
3168 if ac_fn_c_try_cpp "$LINENO"; then :
3170 else
3171 # Broken: fails on valid input.
3172 continue
3174 rm -f conftest.err conftest.i conftest.$ac_ext
3176 # OK, works on sane cases. Now check whether nonexistent headers
3177 # can be detected and how.
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180 #include <ac_nonexistent.h>
3181 _ACEOF
3182 if ac_fn_c_try_cpp "$LINENO"; then :
3183 # Broken: success on invalid input.
3184 continue
3185 else
3186 # Passes both tests.
3187 ac_preproc_ok=:
3188 break
3190 rm -f conftest.err conftest.i conftest.$ac_ext
3192 done
3193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194 rm -f conftest.i conftest.err conftest.$ac_ext
3195 if $ac_preproc_ok; then :
3197 else
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3201 See \`config.log' for more details" "$LINENO" 5; }
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 # We need the C++ compiler only for testing.
3211 ac_ext=cpp
3212 ac_cpp='$CXXCPP $CPPFLAGS'
3213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 if test -z "$CXX"; then
3217 if test -n "$CCC"; then
3218 CXX=$CCC
3219 else
3220 if test -n "$ac_tool_prefix"; then
3221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CXX+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$CXX"; then
3231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3244 done
3245 done
3246 IFS=$as_save_IFS
3250 CXX=$ac_cv_prog_CXX
3251 if test -n "$CXX"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3253 $as_echo "$CXX" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3260 test -n "$CXX" && break
3261 done
3263 if test -z "$CXX"; then
3264 ac_ct_CXX=$CXX
3265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$ac_ct_CXX"; then
3275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_ac_ct_CXX="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3288 done
3289 done
3290 IFS=$as_save_IFS
3294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3295 if test -n "$ac_ct_CXX"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3297 $as_echo "$ac_ct_CXX" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 test -n "$ac_ct_CXX" && break
3305 done
3307 if test "x$ac_ct_CXX" = x; then
3308 CXX="g++"
3309 else
3310 case $cross_compiling:$ac_tool_warned in
3311 yes:)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3315 esac
3316 CXX=$ac_ct_CXX
3322 # Provide some information about the compiler.
3323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3324 set X $ac_compile
3325 ac_compiler=$2
3326 for ac_option in --version -v -V -qversion; do
3327 { { ac_try="$ac_compiler $ac_option >&5"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335 ac_status=$?
3336 if test -s conftest.err; then
3337 sed '10a\
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err >conftest.er1
3340 cat conftest.er1 >&5
3342 rm -f conftest.er1 conftest.err
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3345 done
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3348 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3349 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3356 main ()
3358 #ifndef __GNUC__
3359 choke me
3360 #endif
3363 return 0;
3365 _ACEOF
3366 if ac_fn_cxx_try_compile "$LINENO"; then :
3367 ac_compiler_gnu=yes
3368 else
3369 ac_compiler_gnu=no
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3376 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3377 if test $ac_compiler_gnu = yes; then
3378 GXX=yes
3379 else
3380 GXX=
3382 ac_test_CXXFLAGS=${CXXFLAGS+set}
3383 ac_save_CXXFLAGS=$CXXFLAGS
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3385 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3386 if ${ac_cv_prog_cxx_g+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3390 ac_cxx_werror_flag=yes
3391 ac_cv_prog_cxx_g=no
3392 CXXFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 if ac_fn_cxx_try_compile "$LINENO"; then :
3405 ac_cv_prog_cxx_g=yes
3406 else
3407 CXXFLAGS=""
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3412 main ()
3416 return 0;
3418 _ACEOF
3419 if ac_fn_cxx_try_compile "$LINENO"; then :
3421 else
3422 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3423 CXXFLAGS="-g"
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 if ac_fn_cxx_try_compile "$LINENO"; then :
3436 ac_cv_prog_cxx_g=yes
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3446 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3447 if test "$ac_test_CXXFLAGS" = set; then
3448 CXXFLAGS=$ac_save_CXXFLAGS
3449 elif test $ac_cv_prog_cxx_g = yes; then
3450 if test "$GXX" = yes; then
3451 CXXFLAGS="-g -O2"
3452 else
3453 CXXFLAGS="-g"
3455 else
3456 if test "$GXX" = yes; then
3457 CXXFLAGS="-O2"
3458 else
3459 CXXFLAGS=
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3470 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3473 # This will get text that should go into config.make.
3474 config_vars=
3476 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3478 # Check whether --with-gd was given.
3479 if test "${with_gd+set}" = set; then :
3480 withval=$with_gd; case "$with_gd" in
3481 yes|''|no) ;;
3482 *) libgd_include="-I$withval/include"
3483 libgd_ldflags="-L$withval/lib" ;;
3484 esac
3489 # Check whether --with-gd-include was given.
3490 if test "${with_gd_include+set}" = set; then :
3491 withval=$with_gd_include; case "$with_gd_include" in
3492 ''|no) ;;
3493 *) libgd_include="-I$withval" ;;
3494 esac
3499 # Check whether --with-gd-lib was given.
3500 if test "${with_gd_lib+set}" = set; then :
3501 withval=$with_gd_lib; case "$with_gd_lib" in
3502 ''|no) ;;
3503 *) libgd_ldflags="-L$withval" ;;
3504 esac
3509 if test -n "$libgd_include"; then
3510 config_vars="$config_vars
3511 CFLAGS-memusagestat.c = $libgd_include"
3513 if test -n "$libgd_ldflags"; then
3514 config_vars="$config_vars
3515 libgd-LDFLAGS = $libgd_ldflags"
3519 # Check whether --with-fp was given.
3520 if test "${with_fp+set}" = set; then :
3521 withval=$with_fp; with_fp=$withval
3522 else
3523 with_fp=yes
3528 # Check whether --with-binutils was given.
3529 if test "${with_binutils+set}" = set; then :
3530 withval=$with_binutils; path_binutils=$withval
3531 else
3532 path_binutils=''
3536 # Check whether --with-elf was given.
3537 if test "${with_elf+set}" = set; then :
3538 withval=$with_elf; elf=$withval
3539 else
3540 elf=no
3544 # Check whether --with-selinux was given.
3545 if test "${with_selinux+set}" = set; then :
3546 withval=$with_selinux; with_selinux=$withval
3547 else
3548 with_selinux=auto
3552 # Check whether --with-xcoff was given.
3553 if test "${with_xcoff+set}" = set; then :
3554 withval=$with_xcoff; xcoff=$withval
3555 else
3556 xcoff=no
3561 # Check whether --with-headers was given.
3562 if test "${with_headers+set}" = set; then :
3563 withval=$with_headers; sysheaders=$withval
3564 else
3565 sysheaders=''
3571 # Check whether --with-default-link was given.
3572 if test "${with_default_link+set}" = set; then :
3573 withval=$with_default_link; use_default_link=$withval
3574 else
3575 use_default_link=default
3579 # Check whether --enable-sanity-checks was given.
3580 if test "${enable_sanity_checks+set}" = set; then :
3581 enableval=$enable_sanity_checks; enable_sanity=$enableval
3582 else
3583 enable_sanity=yes
3588 # Check whether --enable-check-abi was given.
3589 if test "${enable_check_abi+set}" = set; then :
3590 enableval=$enable_check_abi; enable_check_abi=$enableval
3591 else
3592 enable_check_abi=no
3596 static=yes
3597 # Check whether --enable-shared was given.
3598 if test "${enable_shared+set}" = set; then :
3599 enableval=$enable_shared; shared=$enableval
3600 else
3601 shared=default
3604 # Check whether --enable-profile was given.
3605 if test "${enable_profile+set}" = set; then :
3606 enableval=$enable_profile; profile=$enableval
3607 else
3608 profile=no
3611 # Check whether --enable-omitfp was given.
3612 if test "${enable_omitfp+set}" = set; then :
3613 enableval=$enable_omitfp; omitfp=$enableval
3614 else
3615 omitfp=no
3618 # Check whether --enable-bounded was given.
3619 if test "${enable_bounded+set}" = set; then :
3620 enableval=$enable_bounded; bounded=$enableval
3621 else
3622 bounded=no
3625 # Check whether --enable-versioning was given.
3626 if test "${enable_versioning+set}" = set; then :
3627 enableval=$enable_versioning; enable_versioning=$enableval
3628 else
3629 enable_versioning=yes
3633 # Check whether --enable-oldest-abi was given.
3634 if test "${enable_oldest_abi+set}" = set; then :
3635 enableval=$enable_oldest_abi; oldest_abi=$enableval
3636 else
3637 oldest_abi=no
3640 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3641 oldest_abi=default
3642 else
3643 cat >>confdefs.h <<_ACEOF
3644 #define GLIBC_OLDEST_ABI "$oldest_abi"
3645 _ACEOF
3650 # Check whether --enable-stackguard-randomization was given.
3651 if test "${enable_stackguard_randomization+set}" = set; then :
3652 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3653 else
3654 enable_stackguard_randomize=no
3657 if test "$enable_stackguard_randomize" = yes; then
3658 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3662 # Check whether --enable-add-ons was given.
3663 if test "${enable_add_ons+set}" = set; then :
3664 enableval=$enable_add_ons;
3665 else
3666 enable_add_ons=yes
3670 # Check whether --enable-hidden-plt was given.
3671 if test "${enable_hidden_plt+set}" = set; then :
3672 enableval=$enable_hidden_plt; hidden=$enableval
3673 else
3674 hidden=yes
3677 if test "x$hidden" = xno; then
3678 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3682 # Check whether --enable-bind-now was given.
3683 if test "${enable_bind_now+set}" = set; then :
3684 enableval=$enable_bind_now; bindnow=$enableval
3685 else
3686 bindnow=no
3691 # Check whether --enable-static-nss was given.
3692 if test "${enable_static_nss+set}" = set; then :
3693 enableval=$enable_static_nss; static_nss=$enableval
3694 else
3695 static_nss=no
3698 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3699 static_nss=yes
3700 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3704 # Check whether --enable-force-install was given.
3705 if test "${enable_force_install+set}" = set; then :
3706 enableval=$enable_force_install; force_install=$enableval
3707 else
3708 force_install=yes
3713 # Check whether --enable-kernel was given.
3714 if test "${enable_kernel+set}" = set; then :
3715 enableval=$enable_kernel; minimum_kernel=$enableval
3718 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3719 # Better nothing than this.
3720 minimum_kernel=""
3721 else
3722 if test "$minimum_kernel" = current; then
3723 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3727 # Check whether --enable-all-warnings was given.
3728 if test "${enable_all_warnings+set}" = set; then :
3729 enableval=$enable_all_warnings; all_warnings=$enableval
3734 # Check whether --enable-multi-arch was given.
3735 if test "${enable_multi_arch+set}" = set; then :
3736 enableval=$enable_multi_arch; multi_arch=$enableval
3737 else
3738 multi_arch=default
3742 # Check whether --enable-nss-crypt was given.
3743 if test "${enable_nss_crypt+set}" = set; then :
3744 enableval=$enable_nss_crypt; nss_crypt=$enableval
3745 else
3746 nss_crypt=no
3749 if test x$nss_crypt = xyes; then
3750 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3751 if test $? -ne 0; then
3752 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3754 old_CFLAGS="$CFLAGS"
3755 CFLAGS="$CFLAGS $nss_includes"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 typedef int PRBool;
3760 #include <hasht.h>
3761 #include <nsslowhash.h>
3762 void f (void) { NSSLOW_Init (); }
3764 main ()
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 libc_cv_nss_crypt=yes
3773 else
3774 as_fn_error $? "
3775 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 old_LIBS="$LIBS"
3779 LIBS="$LIBS -lfreebl3"
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782 typedef int PRBool;
3783 #include <hasht.h>
3784 #include <nsslowhash.h>
3786 main ()
3788 NSSLOW_Init();
3790 return 0;
3792 _ACEOF
3793 if ac_fn_c_try_link "$LINENO"; then :
3794 libc_cv_nss_crypt=yes
3795 else
3796 as_fn_error $? "
3797 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3799 rm -f core conftest.err conftest.$ac_objext \
3800 conftest$ac_exeext conftest.$ac_ext
3801 CFLAGS="$old_CFLAGS"
3802 LIBS="$old_LIBS"
3803 else
3804 libc_cv_nss_crypt=no
3808 # The way shlib-versions is used to generate soversions.mk uses a
3809 # fairly simplistic model for name recognition that can't distinguish
3810 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3811 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3812 # tell. This doesn't get used much beyond that, so it's fairly safe.
3813 case "$host_os" in
3814 linux*)
3816 gnu*)
3817 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3819 esac
3821 # We keep the original values in `$config_*' and never modify them, so we
3822 # can write them unchanged into config.make. Everything else uses
3823 # $machine, $vendor, and $os, and changes them whenever convenient.
3824 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3826 # Don't allow vendor == "unknown"
3827 test "$config_vendor" = unknown && config_vendor=
3828 config_os="`echo $config_os | sed 's/^unknown-//'`"
3830 # Some configurations imply other options.
3831 case "$host_os" in
3832 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3833 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3835 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3836 # These systems (almost) always use the ELF format.
3837 elf=yes
3839 aix*)
3840 # These systems are always xcoff
3841 xcoff=yes
3842 elf=no
3844 esac
3846 # The configure fragment of an add-on port can modify these to supplement
3847 # or override the table in the case statement below. No fragment should
3848 # ever change the config_* variables, however.
3849 machine=$config_machine
3850 vendor=$config_vendor
3851 os=$config_os
3852 base_os=''
3854 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3855 # Unify this here.
3856 if test "$machine" = rs6000; then
3857 machine="powerpc"
3860 # Braindead PowerPC box with absolutely no FPU.
3861 case "$machine-$host_os" in
3862 powerpc*-*soft)
3863 with_fp=no
3865 esac
3867 submachine=
3869 # Check whether --with-cpu was given.
3870 if test "${with_cpu+set}" = set; then :
3871 withval=$with_cpu; case "$withval" in
3872 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3873 no) ;;
3874 *) submachine="$withval" ;;
3875 esac
3880 # An add-on can set this when it wants to disable the sanity check below.
3881 libc_config_ok=no
3883 subdirs="$subdirs "
3886 case "$enable_add_ons" in
3887 ''|no) add_ons= ;;
3888 yes|'*')
3889 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3890 sed 's@/[^/]*$@@' | sort | uniq`
3891 add_ons_automatic=yes
3893 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3894 add_ons_automatic=no ;;
3895 esac
3897 configured_add_ons=
3898 add_ons_sfx=
3899 add_ons_pfx=
3900 if test x"$add_ons" != x; then
3901 for f in $add_ons; do
3902 # Some sanity checks
3903 case "$f" in
3904 crypt)
3905 as_fn_error $? "
3906 *** It seems that you're using an old \`crypt' add-on. crypt is now
3907 *** part of glibc and using the old add-on will not work with this
3908 *** release. Start again with fresh sources and without the old
3909 *** \`crypt' add-on." "$LINENO" 5
3911 localedata)
3912 as_fn_error $? "
3913 *** It seems that you're using an old \`localedata' add-on. localedata
3914 *** is now part of glibc and using the old add-on will not work with
3915 *** this release. Start again with fresh sources and without the old
3916 *** \`localedata' add-on." "$LINENO" 5
3918 esac
3919 done
3921 # Now source each add-on's configure fragment.
3922 # The fragments can use $srcdir/$libc_add_on to find themselves,
3923 # and test $add_ons_automatic to see if they were explicitly requested.
3924 # A fragment can clear (or even change) $libc_add_on to affect
3925 # whether it goes into the list to be actually used in the build.
3926 use_add_ons=
3927 for libc_add_on in $add_ons; do
3928 # Test whether such a directory really exists.
3929 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3930 case "$libc_add_on" in
3932 libc_add_on_srcdir=$libc_add_on
3935 test -d "$srcdir/$libc_add_on" || {
3936 if test -d "$libc_add_on"; then
3937 libc_add_on="`pwd`/$libc_add_on"
3938 else
3939 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3942 libc_add_on_srcdir=$srcdir/$libc_add_on
3944 esac
3946 libc_add_on_frag=$libc_add_on_srcdir/configure
3947 libc_add_on_canonical=
3948 libc_add_on_config_subdirs=
3949 if test -r "$libc_add_on_frag"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3951 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3952 libc_add_on_canonical=unknown
3953 libc_add_on_subdirs=
3954 . "$libc_add_on_frag"
3955 test -z "$libc_add_on" || {
3956 configured_add_ons="$configured_add_ons $libc_add_on"
3957 if test "x$libc_add_on_canonical" = xunknown; then
3958 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3960 for d in $libc_add_on_subdirs; do
3961 case "$libc_add_on" in
3962 /*) subdir_srcdir="$libc_add_on" ;;
3963 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3964 esac
3965 case "$d" in
3967 d="${libc_add_on_canonical:-$libc_add_on}"
3970 subdir_srcdir="$d"
3973 subdir_srcdir="$subdir_srcdir/$d"
3975 esac
3976 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3977 add_on_subdirs="$add_on_subdirs $d"
3978 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3979 $d-srcdir = $subdir_srcdir"
3980 done
3981 for d in $libc_add_on_config_subdirs; do
3982 case "$d" in
3983 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3984 esac
3985 if test ! -d "$libc_add_on_srcdir/$d"; then
3986 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3988 case "$libc_add_on" in
3989 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3990 esac
3991 subdirs="$subdirs $libc_add_on/$d"
3992 done
3995 if test -n "$libc_add_on"; then
3996 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3997 then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
3999 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4000 for frag in $frags; do
4001 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4002 echo $ECHO_N "$name $ECHO_C" >&6
4003 . "$frag"
4004 done
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4006 $as_echo "" >&6; }
4008 use_add_ons="$use_add_ons $libc_add_on"
4009 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4010 test -z "$libc_add_on_canonical" ||
4011 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4013 done
4014 # Use echo to strip excess whitespace.
4015 add_ons="`echo $use_add_ons`"
4022 ### I put this here to prevent those annoying emails from people who cannot
4023 ### read and try to compile glibc on unsupported platforms. --drepper
4025 ### By using the undocumented --enable-hacker-mode option for configure
4026 ### one can skip this test to make the configuration not fail for unsupported
4027 ### platforms.
4029 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4030 case "$machine-$host_os" in
4031 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4034 echo "*** The GNU C library is currently not available for this platform."
4035 echo "*** So far nobody cared to port it and if there is no volunteer it"
4036 echo "*** might never happen. So, if you have interest to see glibc on"
4037 echo "*** this platform visit"
4038 echo "*** http://www.gnu.org/software/libc/porting.html"
4039 echo "*** and join the group of porters"
4040 exit 1
4042 esac
4045 # Expand the configuration machine name into a subdirectory by architecture
4046 # type and particular chip. If an add-on configure fragment already set
4047 # base_machine, we don't change it.
4048 test -n "$base_machine" || case "$machine" in
4049 a29k | am29000) base_machine=a29k machine=a29k ;;
4050 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4051 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4052 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4053 ia64) base_machine=ia64 machine=ia64 ;;
4054 m88???) base_machine=m88k machine=m88k/$machine ;;
4055 m88k) base_machine=m88k machine=m88k/m88100 ;;
4056 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4057 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4058 s390) base_machine=s390 machine=s390/s390-32 ;;
4059 s390x) base_machine=s390 machine=s390/s390-64 ;;
4060 sh3*) base_machine=sh machine=sh/sh3 ;;
4061 sh4*) base_machine=sh machine=sh/sh4 ;;
4062 sparc | sparcv[67])
4063 base_machine=sparc machine=sparc/sparc32 ;;
4064 sparcv8 | supersparc | hypersparc)
4065 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4066 sparcv8plus | sparcv8plusa | sparcv9)
4067 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4068 sparcv8plusb | sparcv9b)
4069 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4070 sparcv9v)
4071 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4072 sparcv9v2)
4073 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4074 sparc64)
4075 base_machine=sparc machine=sparc/sparc64 ;;
4076 sparc64b)
4077 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4078 sparc64v)
4079 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4080 sparc64v2)
4081 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4082 *) base_machine=$machine ;;
4083 esac
4086 if test "$base_machine" = "i386"; then
4087 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4091 # For the multi-arch option we need support in the assembler.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4093 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4094 if ${libc_cv_asm_gnu_indirect_function+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 cat > conftest.s <<EOF
4098 .type foo,%gnu_indirect_function
4100 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4101 then
4102 libc_cv_asm_gnu_indirect_function=yes
4103 else
4104 libc_cv_asm_gnu_indirect_function=no
4106 rm -f conftest*
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4109 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4112 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4113 if ${libc_cv_dot_text+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat > conftest.s <<EOF
4117 .text
4119 libc_cv_dot_text=
4120 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; }; then
4126 libc_cv_dot_text=.text
4128 rm -f conftest*
4131 if test -z "$libc_cv_dot_text"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136 $as_echo "yes" >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4140 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4141 if ${libc_cv_asm_global_directive+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 libc_cv_asm_global_directive=UNKNOWN
4145 for ac_globl in .globl .global .EXPORT; do
4146 cat > conftest.s <<EOF
4147 ${libc_cv_dot_text}
4148 ${ac_globl} foo
4149 foo:
4151 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; }; then
4157 libc_cv_asm_global_directive=${ac_globl}
4159 rm -f conftest*
4160 test $libc_cv_asm_global_directive != UNKNOWN && break
4161 done
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4164 $as_echo "$libc_cv_asm_global_directive" >&6; }
4165 if test $libc_cv_asm_global_directive = UNKNOWN; then
4166 as_fn_error $? "cannot determine asm global directive" "$LINENO" 5
4167 else
4168 cat >>confdefs.h <<_ACEOF
4169 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4170 _ACEOF
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4175 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4176 if ${libc_cv_asm_type_prefix+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 libc_cv_asm_type_prefix=no
4180 for ac_try_prefix in '@' '%' '#'; do
4181 cat > conftest.s <<EOF
4182 ${libc_cv_dot_text}
4183 ${libc_cv_asm_global_directive} foo
4184 .type foo, ${ac_try_prefix}object
4185 .size foo, 1
4186 foo:
4187 .byte 1
4189 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }; }; then
4195 libc_cv_asm_type_prefix=${ac_try_prefix}
4197 rm -f conftest*
4198 test "x$libc_cv_asm_type_prefix" != xno && break
4199 done
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4202 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4203 if test "x$libc_cv_asm_type_prefix" != xno; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4206 _ACEOF
4210 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4211 if test x"$multi_arch" = xyes; then
4212 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4213 else
4214 multi_arch=no
4217 if test x"$multi_arch" != xno; then
4218 multi_arch_d=/multiarch
4221 # Compute the list of sysdep directories for this configuration.
4222 # This can take a while to compute.
4223 sysdep_dir=$srcdir/sysdeps
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4225 $as_echo_n "checking sysdep dirs... " >&6; }
4226 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4227 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4229 test "x$base_os" != x || case "$os" in
4230 gnu*)
4231 base_os=mach/hurd ;;
4232 netbsd* | 386bsd* | freebsd* | bsdi*)
4233 base_os=unix/bsd/bsd4.4 ;;
4234 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4235 base_os=unix/bsd ;;
4236 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4237 base_os=unix/sysv ;;
4238 irix6*)
4239 base_os=unix/sysv/irix6/$os ;;
4240 solaris[2-9]*)
4241 base_os=unix/sysv/sysv4 ;;
4242 hpux*)
4243 base_os=unix/sysv/hpux/$os ;;
4244 aix4.3*)
4245 base_os=unix/sysv/aix/aix4.3 ;;
4246 none)
4247 base_os=standalone ;;
4248 esac
4250 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4251 tail=$os
4252 ostry=$os
4253 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4254 ostry="$ostry /$o"
4255 tail=$o
4256 done
4257 o=`echo $tail | sed 's/[0-9]*$//'`
4258 if test $o != $tail; then
4259 ostry="$ostry /$o"
4261 # For linux-gnu, try linux-gnu, then linux.
4262 o=`echo $tail | sed 's/-.*$//'`
4263 if test $o != $tail; then
4264 ostry="$ostry /$o"
4267 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4268 base=
4269 tail=$base_os
4270 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4271 set $b
4272 base="$base /$1"
4273 tail="$2"
4274 done
4276 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4277 mach=
4278 tail=$machine${submachine:+/$submachine}
4279 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4280 set $m
4281 # Prepend the machine's FPU directory unless --without-fp.
4282 if test "$with_fp" = yes; then
4283 mach="$mach /$1/fpu"
4284 else
4285 mach="$mach /$1/nofpu"
4287 mach="$mach /$1"
4288 tail="$2"
4289 done
4292 # Find what sysdep directories exist.
4293 sysnames_add_ons=
4294 sysnames=
4295 for b in $base ''; do
4296 for m0 in $mach ''; do
4297 for v in /$vendor ''; do
4298 test "$v" = / && continue
4299 for o in /$ostry ''; do
4300 test "$o" = / && continue
4301 for m in $multi_arch_d $mach ''; do
4302 for d in $add_ons_pfx ''; do
4303 for a in $add_ons_sfx ''; do
4304 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4305 try_srcdir="${srcdir}/"
4306 case "$d" in
4307 /*) try_srcdir= ;;
4308 esac
4309 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4310 test -n "$enable_debug_configure" &&
4311 echo "$0 DEBUG: try $try" >&2
4312 if test -d "$try_srcdir$try"; then
4313 sysnames="$sysnames $try"
4314 { test -n "$o" || test -n "$b"; } && os_used=t
4315 { test -n "$m" || test -n "$m0"; } && machine_used=t
4316 case x${m0:-$m} in
4317 x*/$submachine) submachine_used=t ;;
4318 esac
4319 if test -n "$d"; then
4320 case "$sysnames_add_ons" in
4321 *" $d "*) ;;
4322 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4323 esac
4327 done
4328 done
4329 done
4330 done
4331 done
4332 done
4333 done
4335 # If the assembler supports gnu_indirect_function symbol type and the
4336 # architecture supports multi-arch, we enable multi-arch by default.
4337 case $sysnames_add_ons$sysnames in
4338 *"$multi_arch_d"*)
4341 test x"$multi_arch" = xdefault && multi_arch=no
4343 esac
4344 if test x"$multi_arch" != xno; then
4345 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4350 if test -z "$os_used" && test "$os" != none; then
4351 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4353 if test -z "$machine_used" && test "$machine" != none; then
4354 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4356 if test -z "$submachine_used" && test -n "$submachine"; then
4357 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4361 # We have now validated the configuration.
4364 # If using ELF, look for an `elf' subdirectory of each machine directory.
4365 # We prepend these rather than inserting them whereever the machine appears
4366 # because things specified by the machine's ELF ABI should override
4367 # OS-specific things, and should always be the same for any OS on the
4368 # machine (otherwise what's the point of an ABI?).
4369 if test "$elf" = yes; then
4370 elf_dirs=
4371 for d in $add_ons_pfx ''; do
4372 for m in $mach; do
4373 if test -d $srcdir/${d}sysdeps$m/elf; then
4374 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4376 done
4377 done
4378 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4382 # Expand the list of system names into a full list of directories
4383 # from each element's parent name and Implies file (if present).
4384 set $sysnames
4385 names=
4386 while test $# -gt 0; do
4387 name=$1
4388 shift
4390 case " $names " in *" $name "*)
4391 # Already in the list.
4392 continue
4393 esac
4395 # Report each name as we discover it, so there is no long pause in output.
4396 echo $ECHO_N "$name $ECHO_C" >&6
4398 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4400 case $name in
4401 /*) xsrcdir= ;;
4402 *) xsrcdir=$srcdir/ ;;
4403 esac
4404 test -n "$enable_debug_configure" &&
4405 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4407 if test -f $xsrcdir$name/Implies; then
4408 # Collect more names from the `Implies' file (removing comments).
4409 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4410 implied=
4411 for x in $implied_candidate; do
4412 found=no
4413 if test -d $xsrcdir$name_base/$x; then
4414 implied="$implied $name_base/$x";
4415 found=yes
4417 for d in $add_ons_pfx ''; do
4418 try="${d}sysdeps/$x"
4419 case $d in
4420 /*) try_srcdir= ;;
4421 *) try_srcdir=$srcdir/ ;;
4422 esac
4423 test -n "$enable_debug_configure" &&
4424 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4425 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4426 then
4427 implied="$implied $try"
4428 found=yes
4429 case "$sysnames_add_ons" in
4430 *" $d "*) ;;
4431 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4432 esac
4434 done
4435 if test $found = no; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4437 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4439 done
4440 else
4441 implied=
4444 # Add NAME to the list of names.
4445 names="$names $name"
4447 # Find the parent of NAME, using the empty string if it has none.
4448 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4450 # Add the names implied by NAME, and NAME's parent (if it has one), to
4451 # the list of names to be processed (the argument list). We prepend the
4452 # implied names to the list and append the parent. We want implied
4453 # directories to come before further directories inferred from the
4454 # configuration components; this ensures that for sysv4, unix/common
4455 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4456 # after sysv4).
4457 sysnames="`echo $implied $* $parent`"
4458 test -n "$sysnames" && set $sysnames
4459 done
4461 # Add the default directories.
4462 default_sysnames=sysdeps/generic
4463 if test "$elf" = yes; then
4464 default_sysnames="sysdeps/generic/elf $default_sysnames"
4466 sysnames="$names $default_sysnames"
4468 # The other names were emitted during the scan.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4470 $as_echo "$default_sysnames" >&6; }
4472 # Collect the list of add-ons that supply partial sysdeps trees.
4473 sysdeps_add_ons=
4474 for add_on in $add_ons; do
4475 case "$add_on" in
4476 /*) xsrcdir= ;;
4477 *) xsrcdir="$srcdir/" ;;
4478 esac
4480 test -d "$xsrcdir$add_on/sysdeps" || {
4481 case "$configured_add_ons " in
4482 *" $add_on "*) ;;
4483 *|'')
4484 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4486 esac
4487 continue
4490 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4491 case "$sysnames_add_ons" in
4492 *" $add_on/ "*) ;;
4493 *|'')
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4495 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4496 continue ;;
4497 esac
4499 found=no
4500 for d in $sysnames; do
4501 case "$d" in
4502 $add_on/sysdeps/*) ;;
4503 *) continue ;;
4504 esac
4505 (cd "$xsrcdir$d" && for f in *[!~]; do
4506 case "$f" in
4507 sys|bits)
4508 for ff in $f/*.h; do
4509 test -d "$ff" || { test -e "$ff" && exit 88; }
4510 done
4513 test -d "$f" || { test -e "$f" && exit 88; }
4515 esac
4516 done)
4517 if test $? -eq 88; then
4518 found=yes
4519 break
4521 done
4522 if test $found = no; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4524 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4526 done
4530 ### Locate tools.
4532 # Find a good install program. We prefer a C program (faster),
4533 # so one script is as good as another. But avoid the broken or
4534 # incompatible versions:
4535 # SysV /etc/install, /usr/sbin/install
4536 # SunOS /usr/etc/install
4537 # IRIX /sbin/install
4538 # AIX /bin/install
4539 # AmigaOS /C/install, which installs bootblocks on floppy discs
4540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4543 # OS/2's system install, which has a completely different semantic
4544 # ./install, which can be erroneously created by make from ./install.sh.
4545 # Reject install programs that cannot install multiple files.
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4548 if test -z "$INSTALL"; then
4549 if ${ac_cv_path_install+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 # Account for people who put trailing slashes in PATH elements.
4558 case $as_dir/ in #((
4559 ./ | .// | /[cC]/* | \
4560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4562 /usr/ucb/* ) ;;
4564 # OSF1 and SCO ODT 3.0 have their own names for install.
4565 # Don't use installbsd from OSF since it installs stuff as root
4566 # by default.
4567 for ac_prog in ginstall scoinst install; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4570 if test $ac_prog = install &&
4571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4572 # AIX install. It has an incompatible calling convention.
4574 elif test $ac_prog = install &&
4575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4576 # program-specific install script used by HP pwplus--don't use.
4578 else
4579 rm -rf conftest.one conftest.two conftest.dir
4580 echo one > conftest.one
4581 echo two > conftest.two
4582 mkdir conftest.dir
4583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4584 test -s conftest.one && test -s conftest.two &&
4585 test -s conftest.dir/conftest.one &&
4586 test -s conftest.dir/conftest.two
4587 then
4588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4589 break 3
4593 done
4594 done
4596 esac
4598 done
4599 IFS=$as_save_IFS
4601 rm -rf conftest.one conftest.two conftest.dir
4604 if test "${ac_cv_path_install+set}" = set; then
4605 INSTALL=$ac_cv_path_install
4606 else
4607 # As a last resort, use the slow shell script. Don't cache a
4608 # value for INSTALL within a source directory, because that will
4609 # break other packages using the cache if that directory is
4610 # removed, or if the value is a relative name.
4611 INSTALL=$ac_install_sh
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4615 $as_echo "$INSTALL" >&6; }
4617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4618 # It thinks the first close brace ends the variable substitution.
4619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4625 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4626 # The makefiles need to use a different form to find it in $srcdir.
4627 INSTALL='\$(..)./scripts/install-sh -c'
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4630 $as_echo_n "checking whether ln -s works... " >&6; }
4631 LN_S=$as_ln_s
4632 if test "$LN_S" = "ln -s"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 $as_echo "yes" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4637 $as_echo "no, using $LN_S" >&6; }
4641 # Was a --with-binutils option given?
4642 if test -n "$path_binutils"; then
4643 # Make absolute; ensure a single trailing slash.
4644 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4645 CC="$CC -B$path_binutils"
4647 AS=`$CC -print-prog-name=as`
4648 LD=`$CC -print-prog-name=ld`
4649 AR=`$CC -print-prog-name=ar`
4651 OBJDUMP=`$CC -print-prog-name=objdump`
4653 OBJCOPY=`$CC -print-prog-name=objcopy`
4656 # Determine whether we are using GNU binutils.
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4658 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4659 if ${libc_cv_prog_as_gnu+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 # Most GNU programs take a -v and spit out some text including
4663 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4664 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4665 libc_cv_prog_as_gnu=yes
4666 else
4667 libc_cv_prog_as_gnu=no
4669 rm -fr contest*
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4672 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4673 rm -f a.out
4674 gnu_as=$libc_cv_prog_as_gnu
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4677 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4678 if ${libc_cv_prog_ld_gnu+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 # Most GNU programs take a -v and spit out some text including
4682 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4683 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4684 libc_cv_prog_ld_gnu=yes
4685 else
4686 libc_cv_prog_ld_gnu=no
4688 rm -fr contest*
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4691 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4692 gnu_ld=$libc_cv_prog_ld_gnu
4695 # Accept binutils 2.13 or newer.
4696 for ac_prog in $AS
4698 # Extract the first word of "$ac_prog", so it can be a program name with args.
4699 set dummy $ac_prog; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_prog_AS+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 if test -n "$AS"; then
4706 ac_cv_prog_AS="$AS" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_AS="$ac_prog"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4725 AS=$ac_cv_prog_AS
4726 if test -n "$AS"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4728 $as_echo "$AS" >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4735 test -n "$AS" && break
4736 done
4738 if test -z "$AS"; then
4739 ac_verc_fail=yes
4740 else
4741 # Found it, now check the version.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4743 $as_echo_n "checking version of $AS... " >&6; }
4744 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4745 case $ac_prog_version in
4746 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4747 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4748 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4749 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4751 esac
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4753 $as_echo "$ac_prog_version" >&6; }
4755 if test $ac_verc_fail = yes; then
4756 AS=: critic_missing="$critic_missing as"
4759 for ac_prog in $LD
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy $ac_prog; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_LD+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$LD"; then
4769 ac_cv_prog_LD="$LD" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_LD="$ac_prog"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 LD=$ac_cv_prog_LD
4789 if test -n "$LD"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4791 $as_echo "$LD" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 test -n "$LD" && break
4799 done
4801 if test -z "$LD"; then
4802 ac_verc_fail=yes
4803 else
4804 # Found it, now check the version.
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4806 $as_echo_n "checking version of $LD... " >&6; }
4807 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4808 case $ac_prog_version in
4809 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4810 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4811 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4812 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4814 esac
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4816 $as_echo "$ac_prog_version" >&6; }
4818 if test $ac_verc_fail = yes; then
4819 LD=: critic_missing="$critic_missing ld"
4823 # We need the physical current working directory. We cannot use the
4824 # "pwd -P" shell builtin since that's not portable. Instead we try to
4825 # find a pwd binary. Note that assigning to the PWD environment
4826 # variable might have some interesting side effects, so we don't do
4827 # that.
4828 # Extract the first word of "pwd", so it can be a program name with args.
4829 set dummy pwd; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_path_PWD_P+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 case $PWD_P in
4836 [\\/]* | ?:[\\/]*)
4837 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4855 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4857 esac
4859 PWD_P=$ac_cv_path_PWD_P
4860 if test -n "$PWD_P"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4862 $as_echo "$PWD_P" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4869 if test "$PWD_P" = no; then
4870 as_fn_error $? "*** A pwd binary could not be found." "$LINENO" 5
4873 # These programs are version sensitive.
4875 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_CC+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$CC"; then
4885 ac_cv_prog_CC="$CC" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_CC="$ac_prog"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 CC=$ac_cv_prog_CC
4905 if test -n "$CC"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4907 $as_echo "$CC" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4914 test -n "$CC" && break
4915 done
4917 if test -z "$CC"; then
4918 ac_verc_fail=yes
4919 else
4920 # Found it, now check the version.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
4922 $as_echo_n "checking version of $CC... " >&6; }
4923 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4924 case $ac_prog_version in
4925 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4926 3.4* | 4.[0-9]* )
4927 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4928 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4930 esac
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4932 $as_echo "$ac_prog_version" >&6; }
4934 if test $ac_verc_fail = yes; then
4935 critic_missing="$critic_missing gcc"
4938 for ac_prog in gnumake gmake make
4940 # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_MAKE+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$MAKE"; then
4948 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_MAKE="$ac_prog"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 MAKE=$ac_cv_prog_MAKE
4968 if test -n "$MAKE"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4970 $as_echo "$MAKE" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 test -n "$MAKE" && break
4978 done
4980 if test -z "$MAKE"; then
4981 ac_verc_fail=yes
4982 else
4983 # Found it, now check the version.
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4985 $as_echo_n "checking version of $MAKE... " >&6; }
4986 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4987 case $ac_prog_version in
4988 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4989 3.79* | 3.[89]*)
4990 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4991 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4993 esac
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4995 $as_echo "$ac_prog_version" >&6; }
4997 if test $ac_verc_fail = yes; then
4998 critic_missing="$critic_missing make"
5002 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_MSGFMT+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$MSGFMT"; then
5012 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_MSGFMT="$ac_prog"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 MSGFMT=$ac_cv_prog_MSGFMT
5032 if test -n "$MSGFMT"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5034 $as_echo "$MSGFMT" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 test -n "$MSGFMT" && break
5042 done
5044 if test -z "$MSGFMT"; then
5045 ac_verc_fail=yes
5046 else
5047 # Found it, now check the version.
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5049 $as_echo_n "checking version of $MSGFMT... " >&6; }
5050 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5051 case $ac_prog_version in
5052 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5053 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5054 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5055 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5057 esac
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5059 $as_echo "$ac_prog_version" >&6; }
5061 if test $ac_verc_fail = yes; then
5062 MSGFMT=: aux_missing="$aux_missing msgfmt"
5065 for ac_prog in makeinfo
5067 # Extract the first word of "$ac_prog", so it can be a program name with args.
5068 set dummy $ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_MAKEINFO+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$MAKEINFO"; then
5075 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_MAKEINFO="$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5090 IFS=$as_save_IFS
5094 MAKEINFO=$ac_cv_prog_MAKEINFO
5095 if test -n "$MAKEINFO"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5097 $as_echo "$MAKEINFO" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5104 test -n "$MAKEINFO" && break
5105 done
5107 if test -z "$MAKEINFO"; then
5108 ac_verc_fail=yes
5109 else
5110 # Found it, now check the version.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5112 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5113 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5114 case $ac_prog_version in
5115 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5116 4.*)
5117 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5118 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5120 esac
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5122 $as_echo "$ac_prog_version" >&6; }
5124 if test $ac_verc_fail = yes; then
5125 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5128 for ac_prog in sed
5130 # Extract the first word of "$ac_prog", so it can be a program name with args.
5131 set dummy $ac_prog; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_SED+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$SED"; then
5138 ac_cv_prog_SED="$SED" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_SED="$ac_prog"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5151 done
5152 done
5153 IFS=$as_save_IFS
5157 SED=$ac_cv_prog_SED
5158 if test -n "$SED"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5160 $as_echo "$SED" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5167 test -n "$SED" && break
5168 done
5170 if test -z "$SED"; then
5171 ac_verc_fail=yes
5172 else
5173 # Found it, now check the version.
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5175 $as_echo_n "checking version of $SED... " >&6; }
5176 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5177 case $ac_prog_version in
5178 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5179 3.0[2-9]*|3.[1-9]*|[4-9]*)
5180 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5181 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5183 esac
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5185 $as_echo "$ac_prog_version" >&6; }
5187 if test $ac_verc_fail = yes; then
5188 SED=: aux_missing="$aux_missing sed"
5192 if test -n "$ac_tool_prefix"; then
5193 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5194 set dummy ${ac_tool_prefix}readelf; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_READELF+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$READELF"; then
5201 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5216 IFS=$as_save_IFS
5220 READELF=$ac_cv_prog_READELF
5221 if test -n "$READELF"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5223 $as_echo "$READELF" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5231 if test -z "$ac_cv_prog_READELF"; then
5232 ac_ct_READELF=$READELF
5233 # Extract the first word of "readelf", so it can be a program name with args.
5234 set dummy readelf; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$ac_ct_READELF"; then
5241 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_prog_ac_ct_READELF="readelf"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5254 done
5255 done
5256 IFS=$as_save_IFS
5260 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5261 if test -n "$ac_ct_READELF"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5263 $as_echo "$ac_ct_READELF" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5269 if test "x$ac_ct_READELF" = x; then
5270 READELF="false"
5271 else
5272 case $cross_compiling:$ac_tool_warned in
5273 yes:)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278 READELF=$ac_ct_READELF
5280 else
5281 READELF="$ac_cv_prog_READELF"
5285 for ac_prog in autoconf
5287 # Extract the first word of "$ac_prog", so it can be a program name with args.
5288 set dummy $ac_prog; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_AUTOCONF+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$AUTOCONF"; then
5295 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_AUTOCONF="$ac_prog"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 AUTOCONF=$ac_cv_prog_AUTOCONF
5315 if test -n "$AUTOCONF"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5317 $as_echo "$AUTOCONF" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 test -n "$AUTOCONF" && break
5325 done
5326 test -n "$AUTOCONF" || AUTOCONF="no"
5328 case "x$AUTOCONF" in
5329 xno|x|x:) AUTOCONF=no ;;
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5332 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5333 if ${libc_cv_autoconf_works+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5337 libc_cv_autoconf_works=yes
5338 else
5339 libc_cv_autoconf_works=no
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5343 $as_echo "$libc_cv_autoconf_works" >&6; }
5344 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5346 esac
5347 if test "x$AUTOCONF" = xno; then
5348 aux_missing="$aux_missing autoconf"
5351 test -n "$critic_missing" && as_fn_error $? "
5352 *** These critical programs are missing or too old:$critic_missing
5353 *** Check the INSTALL file for required versions." "$LINENO" 5
5355 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5356 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5357 *** some features will be disabled.
5358 *** Check the INSTALL file for required versions." >&5
5359 $as_echo "$as_me: WARNING:
5360 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5361 *** some features will be disabled.
5362 *** Check the INSTALL file for required versions." >&2;}
5364 # if using special system headers, find out the compiler's sekrit
5365 # header directory and add that to the list. NOTE: Only does the right
5366 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5367 if test -n "$sysheaders"; then
5368 SYSINCLUDES=-nostdinc
5369 for d in include include-fixed; do
5370 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5371 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5372 done
5373 SYSINCLUDES="$SYSINCLUDES \
5374 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5375 if test -n "$CXX"; then
5376 CXX_SYSINCLUDES=
5377 cxxversion=`$CXX -dumpversion 2>&5` &&
5378 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5379 for d in include "$cxxmachine/include"; do
5380 i=../../../../$d/c++/$cxxversion
5381 cxxheaders=`$CXX -print-file-name="$i"` &&
5382 test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
5383 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
5384 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5385 done
5391 # ranlib is never necessary on Linux and Hurd systems
5392 RANLIB=:
5394 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5395 # since this would lead to problems installing/building glibc.
5396 # LD_LIBRARY_PATH contains the current directory if one of the following
5397 # is true:
5398 # - one of the terminals (":" and ";") is the first or last sign
5399 # - two terminals occur directly after each other
5400 # - the path contains an element with a dot in it
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5402 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5403 case ${LD_LIBRARY_PATH} in
5404 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5405 ld_library_path_setting="contains current directory"
5408 ld_library_path_setting="ok"
5410 esac
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5412 $as_echo "$ld_library_path_setting" >&6; }
5413 if test "$ld_library_path_setting" != "ok"; then
5414 as_fn_error $? "
5415 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5416 *** building glibc. Please change the environment variable
5417 *** and run configure again." "$LINENO" 5
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5421 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5422 if ${libc_cv_gcc_static_libgcc+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5426 libc_cv_gcc_static_libgcc=
5427 else
5428 libc_cv_gcc_static_libgcc=-static-libgcc
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5432 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5435 # Extract the first word of "bash", so it can be a program name with args.
5436 set dummy bash; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_BASH_SHELL+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 case $BASH_SHELL in
5443 [\\/]* | ?:[\\/]*)
5444 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5460 IFS=$as_save_IFS
5462 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5464 esac
5466 BASH_SHELL=$ac_cv_path_BASH_SHELL
5467 if test -n "$BASH_SHELL"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5469 $as_echo "$BASH_SHELL" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5476 if test "$BASH_SHELL" != no &&
5477 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5478 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5479 libc_cv_have_bash2=yes
5480 else
5481 libc_cv_have_bash2=no
5485 if test "$BASH_SHELL" = no; then
5486 # Extract the first word of "ksh", so it can be a program name with args.
5487 set dummy ksh; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_path_KSH+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 case $KSH in
5494 [\\/]* | ?:[\\/]*)
5495 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5513 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5515 esac
5517 KSH=$ac_cv_path_KSH
5518 if test -n "$KSH"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5520 $as_echo "$KSH" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 if test "$KSH" = no; then
5528 libc_cv_have_ksh=no
5529 else
5530 libc_cv_have_ksh=yes
5532 else
5533 KSH="$BASH_SHELL"
5535 libc_cv_have_ksh=yes
5539 for ac_prog in gawk mawk nawk awk
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_AWK+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$AWK"; then
5549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_AWK="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5562 done
5563 done
5564 IFS=$as_save_IFS
5568 AWK=$ac_cv_prog_AWK
5569 if test -n "$AWK"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5571 $as_echo "$AWK" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5578 test -n "$AWK" && break
5579 done
5581 # Extract the first word of "perl", so it can be a program name with args.
5582 set dummy perl; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_path_PERL+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 case $PERL in
5589 [\\/]* | ?:[\\/]*)
5590 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
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_path_PERL="$as_dir/$ac_word$ac_exec_ext"
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
5608 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5610 esac
5612 PERL=$ac_cv_path_PERL
5613 if test -n "$PERL"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5615 $as_echo "$PERL" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 if test "$PERL" != no &&
5623 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5624 PERL=no
5626 # Extract the first word of "install-info", so it can be a program name with args.
5627 set dummy install-info; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 case $INSTALL_INFO in
5634 [\\/]* | ?:[\\/]*)
5635 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5640 for as_dir in $as_dummy
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5654 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5656 esac
5658 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5659 if test -n "$INSTALL_INFO"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5661 $as_echo "$INSTALL_INFO" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5668 # Extract the first word of "bison", so it can be a program name with args.
5669 set dummy bison; 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 ${ac_cv_path_BISON+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 case $BISON in
5676 [\\/]* | ?:[\\/]*)
5677 ac_cv_path_BISON="$BISON" # 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/bin:/bin"
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_BISON="$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_BISON" && ac_cv_path_BISON="no"
5698 esac
5700 BISON=$ac_cv_path_BISON
5701 if test -n "$BISON"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5703 $as_echo "$BISON" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5712 $as_echo_n "checking for signed size_t type... " >&6; }
5713 if ${libc_cv_signed_size_t+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 echo '#include <stddef.h>
5717 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5718 if eval "$ac_cpp conftest.c 2>/dev/null" \
5719 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5720 libc_cv_signed_size_t=no
5721 else
5722 libc_cv_signed_size_t=yes
5724 rm -f conftest*
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5727 $as_echo "$libc_cv_signed_size_t" >&6; }
5728 if test $libc_cv_signed_size_t = yes; then
5729 cat >> confdefs.h <<\EOF
5730 #undef __SIZE_TYPE__
5731 #define __SIZE_TYPE__ unsigned
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5736 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5737 if ${libc_cv_friendly_stddef+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #define __need_size_t
5743 #define __need_wchar_t
5744 #include <stddef.h>
5745 #define __need_NULL
5746 #include <stddef.h>
5748 main ()
5750 size_t size; wchar_t wchar;
5751 #ifdef offsetof
5752 #error stddef.h ignored __need_*
5753 #endif
5754 if (&size == NULL || &wchar == NULL) abort ();
5756 return 0;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 libc_cv_friendly_stddef=yes
5761 else
5762 libc_cv_friendly_stddef=no
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5767 $as_echo "$libc_cv_friendly_stddef" >&6; }
5768 if test $libc_cv_friendly_stddef = yes; then
5769 config_vars="$config_vars
5770 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5774 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5775 if ${libc_cv_need_minus_P+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 cat > conftest.S <<EOF
5779 #include "confdefs.h"
5780 /* Nothing whatsoever. */
5782 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787 test $ac_status = 0; }; }; then
5788 libc_cv_need_minus_P=no
5789 else
5790 libc_cv_need_minus_P=yes
5792 rm -f conftest*
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5795 $as_echo "$libc_cv_need_minus_P" >&6; }
5796 if test $libc_cv_need_minus_P = yes; then
5797 config_vars="$config_vars
5798 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5802 $as_echo_n "checking for .set assembler directive... " >&6; }
5803 if ${libc_cv_asm_set_directive+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 cat > conftest.s <<EOF
5807 ${libc_cv_dot_text}
5808 foo:
5809 .set glibc_conftest_frobozz,foo
5810 $libc_cv_asm_global_directive glibc_conftest_frobozz
5812 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5813 # (but it doesn't work), so we must do a linking check to be sure.
5814 cat > conftest1.c <<\EOF
5815 extern int glibc_conftest_frobozz;
5816 void _start() { glibc_conftest_frobozz = 1; }
5818 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5819 -nostartfiles -nostdlib \
5820 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5821 libc_cv_asm_set_directive=yes
5822 else
5823 libc_cv_asm_set_directive=no
5825 rm -f conftest*
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5828 $as_echo "$libc_cv_asm_set_directive" >&6; }
5829 if test $libc_cv_asm_set_directive = yes; then
5830 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5835 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5836 if ${libc_cv_asm_unique_object+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat > conftest.s <<EOF
5840 ${libc_cv_dot_text}
5841 _sym:
5842 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5844 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5845 libc_cv_asm_unique_object=yes
5846 else
5847 libc_cv_asm_unique_object=no
5849 rm -f conftest*
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5852 $as_echo "$libc_cv_asm_unique_object" >&6; }
5853 if test $libc_cv_asm_unique_object = yes; then
5854 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5859 $as_echo_n "checking for .symver assembler directive... " >&6; }
5860 if ${libc_cv_asm_symver_directive+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 cat > conftest.s <<EOF
5864 ${libc_cv_dot_text}
5865 _sym:
5866 .symver _sym,sym@VERS
5868 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5869 libc_cv_asm_symver_directive=yes
5870 else
5871 libc_cv_asm_symver_directive=no
5873 rm -f conftest*
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5876 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5878 $as_echo_n "checking for ld --version-script... " >&6; }
5879 if ${libc_cv_ld_version_script_option+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test $libc_cv_asm_symver_directive = yes; then
5883 cat > conftest.s <<EOF
5884 ${libc_cv_dot_text}
5885 _sym:
5886 .symver _sym,sym@VERS
5888 cat > conftest.map <<EOF
5889 VERS_1 {
5890 global: sym;
5893 VERS_2 {
5894 global: sym;
5895 } VERS_1;
5897 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5898 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5899 -o conftest.so conftest.o
5900 -nostartfiles -nostdlib
5901 -Wl,--version-script,conftest.map
5902 1>&5'
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }; };
5908 then
5909 libc_cv_ld_version_script_option=yes
5910 else
5911 libc_cv_ld_version_script_option=no
5913 else
5914 libc_cv_ld_version_script_option=no
5916 else
5917 libc_cv_ld_version_script_option=no
5919 rm -f conftest*
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5922 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5923 if test $shared != no &&
5924 test $libc_cv_asm_symver_directive = yes &&
5925 test $libc_cv_ld_version_script_option = yes &&
5926 test $enable_versioning = yes; then
5927 VERSIONING=yes
5928 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5930 else
5931 VERSIONING=no
5935 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5936 echo "\
5937 *** WARNING: You should not compile GNU libc without versioning. Not using
5938 *** versioning will introduce incompatibilities so that old binaries
5939 *** will not run anymore.
5940 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5942 if test $elf = yes; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5944 $as_echo_n "checking for .previous assembler directive... " >&6; }
5945 if ${libc_cv_asm_previous_directive+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat > conftest.s <<EOF
5949 .section foo_section
5950 .previous
5952 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }; }; then
5958 libc_cv_asm_previous_directive=yes
5959 else
5960 libc_cv_asm_previous_directive=no
5962 rm -f conftest*
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5965 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5966 if test $libc_cv_asm_previous_directive = yes; then
5967 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5971 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5972 if ${libc_cv_asm_popsection_directive+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 cat > conftest.s <<EOF
5976 .pushsection foo_section
5977 .popsection
5979 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }; }; then
5985 libc_cv_asm_popsection_directive=yes
5986 else
5987 libc_cv_asm_popsection_directive=no
5989 rm -f conftest*
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5992 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5993 if test $libc_cv_asm_popsection_directive = yes; then
5994 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5999 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6000 if ${libc_cv_asm_protected_directive+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat > conftest.s <<EOF
6004 .protected foo
6005 foo:
6006 .hidden bar
6007 bar:
6009 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014 test $ac_status = 0; }; }; then
6015 libc_cv_asm_protected_directive=yes
6016 else
6017 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
6019 rm -f conftest*
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
6022 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6024 if test $libc_cv_asm_protected_directive = yes; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
6026 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6027 if ${libc_cv_visibility_attribute+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 cat > conftest.c <<EOF
6031 int foo __attribute__ ((visibility ("hidden"))) = 1;
6032 int bar __attribute__ ((visibility ("protected"))) = 1;
6034 libc_cv_visibility_attribute=no
6035 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }; }; then
6041 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6042 if grep '\.protected.*bar' conftest.s >/dev/null; then
6043 libc_cv_visibility_attribute=yes
6047 rm -f conftest.{c,s}
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6051 $as_echo "$libc_cv_visibility_attribute" >&6; }
6052 if test $libc_cv_visibility_attribute != yes; then
6053 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
6057 if test $libc_cv_visibility_attribute = yes; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6059 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6060 if ${libc_cv_broken_visibility_attribute+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat > conftest.c <<EOF
6064 int foo (int x);
6065 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6066 int bar (int x) { return x; }
6068 libc_cv_broken_visibility_attribute=yes
6069 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; }; then
6075 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6076 libc_cv_broken_visibility_attribute=no
6079 rm -f conftest.c conftest.s
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6083 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6084 if test $libc_cv_broken_visibility_attribute = yes; then
6085 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6090 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6091 if ${libc_cv_broken_alias_attribute+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat > conftest.c <<EOF
6095 extern int foo (int x) __asm ("xyzzy");
6096 int bar (int x) { return x; }
6097 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6098 extern int dfoo;
6099 extern __typeof (dfoo) dfoo __asm ("abccb");
6100 int dfoo = 1;
6102 libc_cv_broken_alias_attribute=yes
6103 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; }; then
6109 if grep 'xyzzy' conftest.s >/dev/null &&
6110 grep 'abccb' conftest.s >/dev/null; then
6111 libc_cv_broken_alias_attribute=no
6114 rm -f conftest.c conftest.s
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6118 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6119 if test $libc_cv_broken_alias_attribute = yes; then
6120 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6123 if test $libc_cv_visibility_attribute = yes; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6125 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6126 if ${libc_cv_have_sdata_section+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 echo "int i;" > conftest.c
6130 libc_cv_have_sdata_section=no
6131 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6132 | grep '\.sdata' >/dev/null; then
6133 libc_cv_have_sdata_section=yes
6135 rm -f conftest.c conftest.so
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6139 $as_echo "$libc_cv_have_sdata_section" >&6; }
6140 if test $libc_cv_have_sdata_section = yes; then
6141 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6147 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6148 if ${libc_cv_initfini_array+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat > conftest.c <<EOF
6152 int _start (void) { return 0; }
6153 int __start (void) { return 0; }
6154 int foo (void) { return 1; }
6155 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6157 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6158 -static -nostartfiles -nostdlib 1>&5'
6159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }; }
6164 then
6165 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
6166 libc_cv_initfini_array=yes
6167 else
6168 libc_cv_initfini_array=no
6170 else
6171 libc_cv_initfini_array=no
6173 rm -f conftest*
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6176 $as_echo "$libc_cv_initfini_array" >&6; }
6177 if test $libc_cv_initfini_array != yes; then
6178 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
6182 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
6183 if ${libc_cv_ctors_header+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 libc_cv_ctors_header=yes
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6191 main ()
6194 __attribute__ ((constructor)) void ctor (void) { puts("ctor"); }
6195 __attribute__ ((destructor)) void dtor (void) { puts("dtor"); }
6198 return 0;
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"; then :
6202 if $READELF -WS conftest$ac_exeext | $AWK '
6203 { gsub(/\[ */, "[") }
6204 $2 == ".ctors" || $2 == ".dtors" {
6205 size = strtonum("0x" $6)
6206 align = strtonum("0x" $NF)
6207 seen[$2] = 1
6208 stub[$2] = size == align * 2
6210 END {
6211 ctors_ok = !seen[".ctors"] || stub[".ctors"]
6212 dtors_ok = !seen[".dtors"] || stub[".dtors"]
6213 exit ((ctors_ok && dtors_ok) ? 0 : 1)
6215 '; then :
6216 libc_cv_ctors_header=no
6219 else
6220 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
6223 rm -f core conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
6228 $as_echo "$libc_cv_ctors_header" >&6; }
6229 if test $libc_cv_ctors_header = no; then
6230 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6235 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6236 if ${libc_cv_cc_with_libunwind+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6240 cat > conftest.c <<EOF
6241 int main (void) { return 0; }
6243 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6244 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6245 libc_cv_cc_with_libunwind=yes
6246 else
6247 libc_cv_cc_with_libunwind=no
6249 rm -f conftest*
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6252 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6254 if test $libc_cv_cc_with_libunwind = yes; then
6255 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6260 $as_echo_n "checking for -z nodelete option... " >&6; }
6261 if ${libc_cv_z_nodelete+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 cat > conftest.c <<EOF
6265 int _start (void) { return 42; }
6267 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6268 -fPIC -shared -o conftest.so conftest.c
6269 -nostartfiles -nostdlib
6270 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; }
6276 then
6277 libc_cv_z_nodelete=yes
6278 else
6279 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6281 rm -f conftest*
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6284 $as_echo "$libc_cv_z_nodelete" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6287 $as_echo_n "checking for -z nodlopen option... " >&6; }
6288 if ${libc_cv_z_nodlopen+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat > conftest.c <<EOF
6292 int _start (void) { return 42; }
6294 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6295 -fPIC -shared -o conftest.so conftest.c
6296 -nostartfiles -nostdlib
6297 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }; }
6303 then
6304 libc_cv_z_nodlopen=yes
6305 else
6306 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6308 rm -f conftest*
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6311 $as_echo "$libc_cv_z_nodlopen" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6314 $as_echo_n "checking for -z initfirst option... " >&6; }
6315 if ${libc_cv_z_initfirst+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat > conftest.c <<EOF
6319 int _start (void) { return 42; }
6321 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6322 -fPIC -shared -o conftest.so conftest.c
6323 -nostartfiles -nostdlib
6324 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }; }
6330 then
6331 libc_cv_z_initfirst=yes
6332 else
6333 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6335 rm -f conftest*
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6338 $as_echo "$libc_cv_z_initfirst" >&6; }
6340 # Add-on fragments can set these for other machines.
6341 libc_commonpagesize=${libc_commonpagesize:-no}
6342 libc_relro_required=${libc_relro_required:-no}
6343 case "$base_machine" in
6344 i[34567]86 | x86_64 | powerpc* | s390*)
6345 libc_commonpagesize=0x1000
6346 libc_relro_required=yes
6348 sparc*)
6349 libc_commonpagesize=0x2000
6350 libc_relro_required=yes
6352 ia64*)
6353 libc_commonpagesize=0x4000
6355 alpha*)
6356 libc_commonpagesize=0x10000
6357 libc_relro_required=yes
6359 esac
6361 if test $libc_commonpagesize != no; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6363 $as_echo_n "checking for -z relro option... " >&6; }
6364 if ${libc_cv_z_relro+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 libc_cv_z_relro=no
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6371 int _start (void) { return 42; }
6372 extern void _exit (int);
6373 /* Since these pointers are const, they should go in rodata.
6374 Since they refer to functions that have to be resolved by
6375 dynamic linking, they should instead go in RELRO data. */
6376 const void *const relro[] = { &_start, &_exit, 0 };
6377 /* GNU ld fails to produce RELRO data when it's very small and there is no
6378 normal writable data following it, or if only uninitialized (.bss) data
6379 follows it, or only very small writable data. */
6380 int data[0x10000] = { 1, };
6382 _ACEOF
6383 cat > conftest.awk <<\EOF
6384 BEGIN {
6385 result = "no"
6386 commonpagesize = strtonum(commonpagesize)
6388 { print "LINE:", $0 > "/dev/stderr" }
6389 $1 == "GNU_RELRO" {
6390 vaddr = strtonum($3)
6391 memsz = strtonum($6)
6392 end = vaddr + memsz
6393 printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \
6394 vaddr, memsz, end, commonpagesize > "/dev/stderr"
6395 result = (end % commonpagesize == 0) ? "yes" : "broken"
6397 END { print result }
6399 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6400 -fPIC -shared -o conftest.so conftest.c
6401 -nostartfiles -nostdlib
6402 -Wl,-z,relro 1>&5'
6403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; } &&
6408 { ac_try='$READELF -Wl conftest.so > conftest.ph'
6409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }; } &&
6414 { ac_try='
6415 $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk
6416 conftest.ph > conftest.cps
6418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; } &&
6423 libc_cv_z_relro=`cat conftest.cps 2>&5`
6424 rm -f conftest*
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6427 $as_echo "$libc_cv_z_relro" >&6; }
6428 if { test "x$libc_relro_required" = xyes &&
6429 test "x$libc_cv_z_relro" != xyes
6431 then
6432 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5
6436 $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;}
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6440 $as_echo_n "checking for -Bgroup option... " >&6; }
6441 if ${libc_cv_Bgroup+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat > conftest.c <<EOF
6445 int _start (void) { return 42; }
6447 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6448 -fPIC -shared -o conftest.so conftest.c
6449 -Wl,-Bgroup -nostdlib 1>&5'
6450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; }
6455 then
6456 libc_cv_Bgroup=yes
6457 else
6458 libc_cv_Bgroup=no
6460 rm -f conftest*
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6463 $as_echo "$libc_cv_Bgroup" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6467 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6468 if ${libc_cv_libgcc_s_suffix+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 cat > conftest.c <<EOF
6472 int main (void) { return 0; }
6474 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6475 -fPIC -shared -shared-libgcc -o conftest.so \
6476 conftest.c -v 2>&1 >/dev/null \
6477 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6478 rm -f conftest*
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6481 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6485 $as_echo_n "checking for --as-needed option... " >&6; }
6486 if ${libc_cv_as_needed+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 cat > conftest.c <<EOF
6490 int main (void) { return 0; }
6492 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6493 -fPIC -shared -o conftest.so conftest.c
6494 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6495 -nostdlib 1>&5'
6496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; }
6501 then
6502 libc_cv_as_needed=yes
6503 else
6504 libc_cv_as_needed=no
6506 rm -f conftest*
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6509 $as_echo "$libc_cv_as_needed" >&6; }
6512 ASFLAGS_config=
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6514 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6515 if ${libc_cv_as_noexecstack+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat > conftest.c <<EOF
6519 void foo (void) { }
6521 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6522 -S -o conftest.s conftest.c 1>&5'
6523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; } \
6528 && grep -q .note.GNU-stack conftest.s \
6529 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6530 -c -o conftest.o conftest.s 1>&5'
6531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; }
6536 then
6537 libc_cv_as_noexecstack=yes
6538 else
6539 libc_cv_as_noexecstack=no
6541 rm -f conftest*
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6544 $as_echo "$libc_cv_as_noexecstack" >&6; }
6545 if test $libc_cv_as_noexecstack = yes; then
6546 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6551 $as_echo_n "checking for -z combreloc... " >&6; }
6552 if ${libc_cv_z_combreloc+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 cat > conftest.c <<EOF
6556 extern int bar (int);
6557 extern int mumble;
6558 int foo (void) { return bar (mumble); }
6560 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6561 -fPIC -shared -o conftest.so conftest.c
6562 -nostdlib -nostartfiles
6563 -Wl,-z,combreloc 1>&5'
6564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568 test $ac_status = 0; }; }
6569 then
6570 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6571 libc_cv_z_combreloc=yes
6572 else
6573 libc_cv_z_combreloc=no
6575 else
6576 libc_cv_z_combreloc=no
6578 rm -f conftest*
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6581 $as_echo "$libc_cv_z_combreloc" >&6; }
6582 if test "$libc_cv_z_combreloc" = yes; then
6583 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6589 $as_echo_n "checking for -z execstack... " >&6; }
6590 if ${libc_cv_z_execstack+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat > conftest.c <<EOF
6594 int _start (void) { return 42; }
6596 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6597 -fPIC -shared -o conftest.so conftest.c
6598 -Wl,-z,execstack -nostdlib
6599 1>&5'
6600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6604 test $ac_status = 0; }; }
6605 then
6606 libc_cv_z_execstack=yes
6607 else
6608 libc_cv_z_execstack=no
6610 rm -f conftest*
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6613 $as_echo "$libc_cv_z_execstack" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6617 $as_echo_n "checking for -fpie... " >&6; }
6618 if ${libc_cv_fpie+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat > conftest.c <<EOF
6622 int foo;
6623 main () { return 0;}
6625 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6626 -o conftest conftest.c 1>&5'
6627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; }; }
6632 then
6633 libc_cv_fpie=yes
6634 else
6635 libc_cv_fpie=no
6637 rm -f conftest*
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6640 $as_echo "$libc_cv_fpie" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6645 $as_echo_n "checking for --hash-style option... " >&6; }
6646 if ${libc_cv_hashstyle+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat > conftest.c <<EOF
6650 int _start (void) { return 42; }
6652 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6653 -fPIC -shared -o conftest.so conftest.c
6654 -Wl,--hash-style=both -nostdlib 1>&5'
6655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }; }
6660 then
6661 libc_cv_hashstyle=yes
6662 else
6663 libc_cv_hashstyle=no
6665 rm -f conftest*
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6668 $as_echo "$libc_cv_hashstyle" >&6; }
6671 # The linker's default -shared behavior is good enough if it
6672 # does these things that our custom linker scripts ensure that
6673 # all allocated NOTE sections come first.
6674 if test "$use_default_link" = default; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6676 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6677 if ${libc_cv_use_default_link+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 libc_cv_use_default_link=no
6681 cat > conftest.s <<\EOF
6682 .section .note.a,"a",%note
6683 .balign 4
6684 .long 4,4,9
6685 .string "GNU"
6686 .string "foo"
6687 .section .note.b,"a",%note
6688 .balign 4
6689 .long 4,4,9
6690 .string "GNU"
6691 .string "bar"
6693 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; }; } &&
6699 ac_try=`$READELF -S conftest.so | sed -n \
6700 '${x;p;}
6701 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6706 then
6707 libc_seen_a=no libc_seen_b=no
6708 set -- $ac_try
6709 while test $# -ge 2 -a "$1" = NOTE; do
6710 case "$2" in
6711 .note.a) libc_seen_a=yes ;;
6712 .note.b) libc_seen_b=yes ;;
6713 esac
6714 shift 2
6715 done
6716 case "$libc_seen_a$libc_seen_b" in
6717 yesyes)
6718 libc_cv_use_default_link=yes
6721 echo >&5 "\
6722 $libc_seen_a$libc_seen_b from:
6723 $ac_try"
6725 esac
6727 rm -f conftest*
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6730 $as_echo "$libc_cv_use_default_link" >&6; }
6731 use_default_link=$libc_cv_use_default_link
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6736 $as_echo_n "checking linker output format... " >&6; }
6737 if ${libc_cv_output_format+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if libc_cv_output_format=`
6741 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6742 then
6744 else
6745 libc_cv_output_format=
6747 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6750 $as_echo "$libc_cv_output_format" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6754 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6755 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat > conftest.c <<EOF
6759 int foo;
6761 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6762 conftest.c 1>&5'
6763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; }
6768 then
6769 libc_cv_fno_toplevel_reorder=yes
6770 else
6771 libc_cv_fno_toplevel_reorder=no
6773 rm -f conftest*
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6776 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6777 if test $libc_cv_fno_toplevel_reorder = yes; then
6778 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6779 else
6780 fno_unit_at_a_time=-fno-unit-at-a-time
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6785 $as_echo_n "checking for -fstack-protector... " >&6; }
6786 if ${libc_cv_ssp+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 cat > conftest.c <<EOF
6790 int foo;
6791 main () { return 0;}
6793 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6794 -o conftest conftest.c 1>&5'
6795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799 test $ac_status = 0; }; }
6800 then
6801 libc_cv_ssp=yes
6802 else
6803 libc_cv_ssp=no
6805 rm -f conftest*
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6808 $as_echo "$libc_cv_ssp" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6812 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6813 if ${libc_cv_gnu89_inline+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat > conftest.c <<EOF
6817 int foo;
6818 #ifdef __GNUC_GNU_INLINE__
6819 main () { return 0;}
6820 #else
6821 #error
6822 #endif
6824 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6825 -o conftest.s conftest.c 1>&5'
6826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; }; }
6831 then
6832 libc_cv_gnu89_inline=yes
6833 else
6834 libc_cv_gnu89_inline=no
6836 rm -f conftest*
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6839 $as_echo "$libc_cv_gnu89_inline" >&6; }
6840 if test $libc_cv_gnu89_inline = yes; then
6841 gnu89_inline=-fgnu89-inline
6842 else
6843 gnu89_inline=
6847 if test $elf != yes; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6849 $as_echo_n "checking for .init and .fini sections... " >&6; }
6850 if ${libc_cv_have_initfini+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6857 main ()
6859 asm (".section .init");
6860 asm (".section .fini");
6861 asm ("${libc_cv_dot_text}");
6863 return 0;
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 libc_cv_have_initfini=yes
6868 else
6869 libc_cv_have_initfini=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6874 $as_echo "$libc_cv_have_initfini" >&6; }
6875 if test $libc_cv_have_initfini = yes; then
6876 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6881 if test $elf = yes; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6883 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6884 if ${libc_cv_have_section_quotes+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat > conftest.c <<EOF
6888 static const int foo
6889 __attribute__ ((section ("bar"))) = 1;
6891 if ${CC-cc} -S conftest.c -o conftest.s; then
6892 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6893 libc_cv_have_section_quotes=yes
6894 else
6895 libc_cv_have_section_quotes=no
6897 else
6898 libc_cv_have_section_quotes=unknown
6900 rm -f conftest.{c,s}
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6904 $as_echo "$libc_cv_have_section_quotes" >&6; }
6905 if test $libc_cv_have_section_quotes = yes; then
6906 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6913 if test $elf = yes; then
6914 libc_cv_asm_underscores=no
6915 else
6916 if test $ac_cv_prog_cc_works = yes; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6918 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6919 if ${libc_cv_asm_underscores+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 asm ("_glibc_foobar:");
6926 main ()
6928 glibc_foobar ();
6930 return 0;
6932 _ACEOF
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 libc_cv_asm_underscores=yes
6935 else
6936 libc_cv_asm_underscores=no
6938 rm -f core conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6942 $as_echo "$libc_cv_asm_underscores" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6945 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6946 if ${libc_cv_asm_underscores+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 cat > conftest.$ac_ext <<EOF
6950 #line $LINENO "configure"
6951 #include "confdefs.h"
6952 void underscore_test(void) {
6953 return; }
6955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956 (eval $ac_compile) 2>&5
6957 ac_status=$?
6958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959 test $ac_status = 0; }; then
6960 if grep _underscore_test conftest* >/dev/null; then
6961 rm -f conftest*
6962 libc_cv_asm_underscores=yes
6963 else
6964 rm -f conftest*
6965 libc_cv_asm_underscores=no
6967 else
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 rm -f conftest*
6971 libc_cv_asm_underscores=no
6973 rm -f conftest*
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6976 $as_echo "$libc_cv_asm_underscores" >&6; }
6979 if test $libc_cv_asm_underscores = no; then
6980 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
6984 if test $elf = yes; then
6985 libc_cv_weak_symbols=yes
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6989 $as_echo_n "checking for assembler .weak directive... " >&6; }
6990 if ${libc_cv_asm_weak_directive+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 cat > conftest.s <<EOF
6994 ${libc_cv_dot_text}
6995 ${libc_cv_asm_global_directive} foo
6996 foo:
6997 .weak foo
6998 .weak bar; bar = foo
7000 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; }; then
7006 libc_cv_asm_weak_directive=yes
7007 else
7008 libc_cv_asm_weak_directive=no
7010 rm -f conftest*
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
7013 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7015 if test $libc_cv_asm_weak_directive = no; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
7017 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7018 if ${libc_cv_asm_weakext_directive+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat > conftest.s <<EOF
7022 ${libc_cv_dot_text}
7023 ${libc_cv_asm_global_directive} foo
7024 foo:
7025 .weakext bar foo
7026 .weakext baz
7027 ${libc_cv_asm_global_directive} baz
7028 baz:
7030 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }; }; then
7036 libc_cv_asm_weakext_directive=yes
7037 else
7038 libc_cv_asm_weakext_directive=no
7040 rm -f conftest*
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
7043 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7045 fi # no .weak
7047 if test $libc_cv_asm_weak_directive = yes; then
7048 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
7050 elif test $libc_cv_asm_weakext_directive = yes; then
7051 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
7056 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7057 if ${libc_cv_asm_cfi_directives+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 case $machine in
7061 sparc/sparc64*) cfi_offset=2047;;
7062 *) cfi_offset=0;;
7063 esac
7064 cat > conftest.s <<EOF
7065 .text
7066 .type func,%function
7067 func:
7068 .cfi_startproc
7069 .cfi_remember_state
7070 .cfi_rel_offset 1, $cfi_offset
7071 .cfi_endproc
7073 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }; }; then
7079 libc_cv_asm_cfi_directives=yes
7080 else
7081 libc_cv_asm_cfi_directives=no
7083 rm -f conftest*
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
7086 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7087 if test $libc_cv_asm_cfi_directives = yes; then
7088 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
7093 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7094 if ${libc_cv_ld_no_whole_archive+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat > conftest.c <<\EOF
7098 _start () {}
7099 int __eh_pc;
7100 __throw () {}
7102 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7103 -nostdlib -nostartfiles -Wl,--no-whole-archive
7104 -o conftest conftest.c 1>&5'
7105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 test $ac_status = 0; }; }; then
7110 libc_cv_ld_no_whole_archive=yes
7111 else
7112 libc_cv_ld_no_whole_archive=no
7114 rm -f conftest*
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
7117 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7118 if test $libc_cv_ld_no_whole_archive = no; then
7119 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
7123 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7124 if ${libc_cv_gcc_exceptions+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 cat > conftest.c <<\EOF
7128 _start () {}
7129 int __eh_pc;
7130 __throw () {}
7132 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7133 -nostdlib -nostartfiles -fexceptions
7134 -o conftest conftest.c 1>&5'
7135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139 test $ac_status = 0; }; }; then
7140 libc_cv_gcc_exceptions=yes
7141 else
7142 libc_cv_gcc_exceptions=no
7144 rm -f conftest*
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
7147 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7148 if test $libc_cv_gcc_exceptions = yes; then
7149 exceptions=-fexceptions
7152 if test "$host_cpu" = powerpc ; then
7153 # Check for a bug present in at least versions 2.8.x of GCC
7154 # and versions 1.0.x of EGCS.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7156 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7157 if ${libc_cv_c_asmcr0_bug+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7164 main ()
7168 return 0;
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 libc_cv_c_asmcr0_bug='no'
7173 else
7174 libc_cv_c_asmcr0_bug='yes'
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7179 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7180 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7181 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7187 $as_echo_n "checking for __builtin_expect... " >&6; }
7188 if ${libc_cv_gcc_builtin_expect+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 cat > conftest.c <<EOF
7192 #line $LINENO "configure"
7193 int foo (int a)
7195 a = __builtin_expect (a, 10);
7196 return a == 10 ? 0 : 1;
7199 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7200 -o conftest conftest.c -lgcc >&5'
7201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; }; then
7206 libc_cv_gcc_builtin_expect=yes
7207 else
7208 libc_cv_gcc_builtin_expect=no
7210 rm -f conftest*
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7213 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7214 if test "$libc_cv_gcc_builtin_expect" = no; then
7215 as_fn_error $? "support for __builtin_expect needed" "$LINENO" 5
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7219 $as_echo_n "checking for __builtin_memset... " >&6; }
7220 if ${libc_cv_gcc_builtin_memset+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 cat > conftest.c <<\EOF
7224 void zero (void *x)
7226 __builtin_memset (x, 0, 1000);
7229 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; };
7235 then
7236 libc_cv_gcc_builtin_memset=no
7237 else
7238 libc_cv_gcc_builtin_memset=yes
7240 rm -f conftest*
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7243 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7244 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7245 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7250 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7251 if ${libc_cv_gcc_builtin_redirection+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat > conftest.c <<\EOF
7255 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7256 char *foo (const char *a, const char *b)
7258 return __builtin_strstr (a, b);
7261 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7266 test $ac_status = 0; }; };
7267 then
7268 libc_cv_gcc_builtin_redirection=yes
7269 else
7270 libc_cv_gcc_builtin_redirection=no
7272 rm -f conftest*
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7275 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7276 if test "$libc_cv_gcc_builtin_redirection" = no; then
7277 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7281 $as_echo_n "checking for __thread... " >&6; }
7282 if ${libc_cv_gcc___thread+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat > conftest.c <<\EOF
7286 __thread int a = 42;
7288 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; }; then
7294 libc_cv_gcc___thread=yes
7295 else
7296 libc_cv_gcc___thread=no
7298 rm -f conftest*
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7301 $as_echo "$libc_cv_gcc___thread" >&6; }
7302 if test "$libc_cv_gcc___thread" = no; then
7303 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7307 $as_echo_n "checking for tls_model attribute... " >&6; }
7308 if ${libc_cv_gcc_tls_model_attr+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 cat > conftest.c <<\EOF
7312 extern __thread int a __attribute__((tls_model ("initial-exec")));
7314 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319 test $ac_status = 0; }; }; then
7320 libc_cv_gcc_tls_model_attr=yes
7321 else
7322 libc_cv_gcc_tls_model_attr=no
7324 rm -f conftest*
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7327 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7328 if test "$libc_cv_gcc_tls_model_attr" = no; then
7329 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
7332 if test -n "$submachine"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7334 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7335 if ${libc_cv_cc_submachine+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 libc_cv_cc_submachine=no
7339 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7340 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; }; then
7346 libc_cv_cc_submachine="$opt"
7347 break
7349 done
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7352 $as_echo "$libc_cv_cc_submachine" >&6; }
7353 if test "x$libc_cv_cc_submachine" = xno; then
7354 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7360 $as_echo_n "checking for libgd... " >&6; }
7361 if test "$with_gd" != "no"; then
7362 old_CFLAGS="$CFLAGS"
7363 CFLAGS="$CFLAGS $libgd_include"
7364 old_LDFLAGS="$LDFLAGS"
7365 LDFLAGS="$LDFLAGS $libgd_ldflags"
7366 old_LIBS="$LIBS"
7367 LIBS="$LIBS -lgd -lpng -lz -lm"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <gd.h>
7372 main ()
7374 gdImagePng (0, 0)
7376 return 0;
7378 _ACEOF
7379 if ac_fn_c_try_link "$LINENO"; then :
7380 LIBGD=yes
7381 else
7382 LIBGD=no
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 CFLAGS="$old_CFLAGS"
7387 LDFLAGS="$old_LDFLAGS"
7388 LIBS="$old_LIBS"
7389 else
7390 LIBGD=no
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7393 $as_echo "$LIBGD" >&6; }
7396 # SELinux detection
7397 if test x$with_selinux = xno ; then
7398 have_selinux=no;
7399 else
7400 # See if we have the SELinux library
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7402 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7403 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 ac_check_lib_save_LIBS=$LIBS
7407 LIBS="-lselinux $LIBS"
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7411 /* Override any GCC internal prototype to avoid an error.
7412 Use char because int might match the return type of a GCC
7413 builtin and then its argument prototype would still apply. */
7414 #ifdef __cplusplus
7415 extern "C"
7416 #endif
7417 char is_selinux_enabled ();
7419 main ()
7421 return is_selinux_enabled ();
7423 return 0;
7425 _ACEOF
7426 if ac_fn_c_try_link "$LINENO"; then :
7427 ac_cv_lib_selinux_is_selinux_enabled=yes
7428 else
7429 ac_cv_lib_selinux_is_selinux_enabled=no
7431 rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433 LIBS=$ac_check_lib_save_LIBS
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7436 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7437 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
7438 have_selinux=yes
7439 else
7440 have_selinux=no
7443 # See if we have the SELinux header with the NSCD permissions in it.
7444 if test x$have_selinux = xyes ; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7446 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 #include <selinux/av_permissions.h>
7451 main ()
7453 #ifdef NSCD__SHMEMHOST
7454 return 0;
7455 #else
7456 #error NSCD__SHMEMHOST not defined
7457 #endif
7459 return 0;
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 have_selinux=yes
7464 else
7465 have_selinux=no
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7469 $as_echo "$have_selinux" >&6; }
7472 if test x$with_selinux = xyes ; then
7473 if test x$have_selinux = xno ; then
7474 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7478 # Check if we're building with SELinux support.
7479 if test "x$have_selinux" = xyes; then
7481 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7484 # See if we have the libaudit library
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7486 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7487 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-laudit $LIBS"
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7495 /* Override any GCC internal prototype to avoid an error.
7496 Use char because int might match the return type of a GCC
7497 builtin and then its argument prototype would still apply. */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 char audit_log_user_avc_message ();
7503 main ()
7505 return audit_log_user_avc_message ();
7507 return 0;
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"; then :
7511 ac_cv_lib_audit_audit_log_user_avc_message=yes
7512 else
7513 ac_cv_lib_audit_audit_log_user_avc_message=no
7515 rm -f core conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7520 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7521 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
7522 have_libaudit=yes
7523 else
7524 have_libaudit=no
7527 if test "x$have_libaudit" = xyes; then
7529 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7534 # See if we have the libcap library
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7536 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7537 if ${ac_cv_lib_cap_cap_init+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lcap $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char cap_init ();
7553 main ()
7555 return cap_init ();
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_lib_cap_cap_init=yes
7562 else
7563 ac_cv_lib_cap_cap_init=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7570 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7571 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
7572 have_libcap=yes
7573 else
7574 have_libcap=no
7577 if test "x$have_libcap" = xyes; then
7579 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7589 if ${ac_cv_path_GREP+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -z "$GREP"; then
7593 ac_path_GREP_found=false
7594 # Loop through the user's path and test for each of PROGNAME-LIST
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_prog in grep ggrep; do
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7604 # Check for GNU ac_path_GREP and select it if it is found.
7605 # Check for GNU $ac_path_GREP
7606 case `"$ac_path_GREP" --version 2>&1` in
7607 *GNU*)
7608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7610 ac_count=0
7611 $as_echo_n 0123456789 >"conftest.in"
7612 while :
7614 cat "conftest.in" "conftest.in" >"conftest.tmp"
7615 mv "conftest.tmp" "conftest.in"
7616 cp "conftest.in" "conftest.nl"
7617 $as_echo 'GREP' >> "conftest.nl"
7618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7620 as_fn_arith $ac_count + 1 && ac_count=$as_val
7621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7622 # Best one so far, save it but keep looking for a better one
7623 ac_cv_path_GREP="$ac_path_GREP"
7624 ac_path_GREP_max=$ac_count
7626 # 10*(2^10) chars as input seems more than enough
7627 test $ac_count -gt 10 && break
7628 done
7629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7630 esac
7632 $ac_path_GREP_found && break 3
7633 done
7634 done
7635 done
7636 IFS=$as_save_IFS
7637 if test -z "$ac_cv_path_GREP"; then
7638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7640 else
7641 ac_cv_path_GREP=$GREP
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7646 $as_echo "$ac_cv_path_GREP" >&6; }
7647 GREP="$ac_cv_path_GREP"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7651 $as_echo_n "checking for egrep... " >&6; }
7652 if ${ac_cv_path_EGREP+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7656 then ac_cv_path_EGREP="$GREP -E"
7657 else
7658 if test -z "$EGREP"; then
7659 ac_path_EGREP_found=false
7660 # Loop through the user's path and test for each of PROGNAME-LIST
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_prog in egrep; do
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7670 # Check for GNU ac_path_EGREP and select it if it is found.
7671 # Check for GNU $ac_path_EGREP
7672 case `"$ac_path_EGREP" --version 2>&1` in
7673 *GNU*)
7674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7676 ac_count=0
7677 $as_echo_n 0123456789 >"conftest.in"
7678 while :
7680 cat "conftest.in" "conftest.in" >"conftest.tmp"
7681 mv "conftest.tmp" "conftest.in"
7682 cp "conftest.in" "conftest.nl"
7683 $as_echo 'EGREP' >> "conftest.nl"
7684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7686 as_fn_arith $ac_count + 1 && ac_count=$as_val
7687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7688 # Best one so far, save it but keep looking for a better one
7689 ac_cv_path_EGREP="$ac_path_EGREP"
7690 ac_path_EGREP_max=$ac_count
7692 # 10*(2^10) chars as input seems more than enough
7693 test $ac_count -gt 10 && break
7694 done
7695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7696 esac
7698 $ac_path_EGREP_found && break 3
7699 done
7700 done
7701 done
7702 IFS=$as_save_IFS
7703 if test -z "$ac_cv_path_EGREP"; then
7704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7706 else
7707 ac_cv_path_EGREP=$EGREP
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7713 $as_echo "$ac_cv_path_EGREP" >&6; }
7714 EGREP="$ac_cv_path_EGREP"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7718 $as_echo_n "checking for ANSI C header files... " >&6; }
7719 if ${ac_cv_header_stdc+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7725 #include <stdarg.h>
7726 #include <string.h>
7727 #include <float.h>
7730 main ()
7734 return 0;
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738 ac_cv_header_stdc=yes
7739 else
7740 ac_cv_header_stdc=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 if test $ac_cv_header_stdc = yes; then
7745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <string.h>
7750 _ACEOF
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev/null 2>&1; then :
7754 else
7755 ac_cv_header_stdc=no
7757 rm -f conftest*
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 #include <stdlib.h>
7767 _ACEOF
7768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769 $EGREP "free" >/dev/null 2>&1; then :
7771 else
7772 ac_cv_header_stdc=no
7774 rm -f conftest*
7778 if test $ac_cv_header_stdc = yes; then
7779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7780 if test "$cross_compiling" = yes; then :
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <ctype.h>
7786 #include <stdlib.h>
7787 #if ((' ' & 0x0FF) == 0x020)
7788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7790 #else
7791 # define ISLOWER(c) \
7792 (('a' <= (c) && (c) <= 'i') \
7793 || ('j' <= (c) && (c) <= 'r') \
7794 || ('s' <= (c) && (c) <= 'z'))
7795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7796 #endif
7798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7800 main ()
7802 int i;
7803 for (i = 0; i < 256; i++)
7804 if (XOR (islower (i), ISLOWER (i))
7805 || toupper (i) != TOUPPER (i))
7806 return 2;
7807 return 0;
7809 _ACEOF
7810 if ac_fn_c_try_run "$LINENO"; then :
7812 else
7813 ac_cv_header_stdc=no
7815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7816 conftest.$ac_objext conftest.beam conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7822 $as_echo "$ac_cv_header_stdc" >&6; }
7823 if test $ac_cv_header_stdc = yes; then
7825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7831 inttypes.h stdint.h unistd.h
7832 do :
7833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7837 cat >>confdefs.h <<_ACEOF
7838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 _ACEOF
7843 done
7846 # The cast to long int works around a bug in the HP C Compiler
7847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7849 # This bug is HP SR number 8606223364.
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7851 $as_echo_n "checking size of long double... " >&6; }
7852 if ${ac_cv_sizeof_long_double+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7857 else
7858 if test "$ac_cv_type_long_double" = yes; then
7859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7861 as_fn_error 77 "cannot compute sizeof (long double)
7862 See \`config.log' for more details" "$LINENO" 5; }
7863 else
7864 ac_cv_sizeof_long_double=0
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7870 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7874 cat >>confdefs.h <<_ACEOF
7875 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7876 _ACEOF
7879 sizeof_long_double=$ac_cv_sizeof_long_double
7882 ### End of automated tests.
7883 ### Now run sysdeps configure fragments.
7885 # They also can set these variables.
7886 use_ldconfig=no
7887 ldd_rewrite_script=no
7888 libc_cv_sysconfdir=$sysconfdir
7889 libc_cv_gcc_unwind_find_fde=no
7890 libc_cv_idn=no
7892 # Iterate over all the sysdep directories we will use, running their
7893 # configure fragments.
7894 for dir in $sysnames; do
7895 case $dir in
7896 /*) dest=$dir ;;
7897 *) dest=$srcdir/$dir ;;
7898 esac
7899 if test -r $dest/configure; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7901 $as_echo "running configure fragment for $dir" >&6; }
7902 . $dest/configure
7904 done
7906 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7907 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7912 # Test for old glibc 2.0.x headers so that they can be removed properly
7913 # Search only in includedir.
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7915 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7916 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7917 then
7918 old_glibc_headers=yes
7919 else
7920 old_glibc_headers=no
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7923 $as_echo "$old_glibc_headers" >&6; }
7924 if test ${old_glibc_headers} = yes; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7926 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7928 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7949 if test $elf = yes; then
7950 $as_echo "#define HAVE_ELF 1" >>confdefs.h
7953 if test $xcoff = yes; then
7954 $as_echo "#define HAVE_XCOFF 1" >>confdefs.h
7960 if test $shared = default; then
7961 shared=$elf
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7965 $as_echo_n "checking whether -fPIC is default... " >&6; }
7966 if ${libc_cv_pic_default+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 libc_cv_pic_default=yes
7970 cat > conftest.c <<EOF
7971 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7972 # error PIC is default.
7973 #endif
7975 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7976 libc_cv_pic_default=no
7978 rm -f conftest.*
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7981 $as_echo "$libc_cv_pic_default" >&6; }
7994 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7995 config_makefile=
7996 else
7997 config_makefile=Makefile
8000 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8001 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8005 ac_config_files="$ac_config_files config.make ${config_makefile}"
8007 ac_config_commands="$ac_config_commands default"
8009 cat >confcache <<\_ACEOF
8010 # This file is a shell script that caches the results of configure
8011 # tests run on this system so they can be shared between configure
8012 # scripts and configure runs, see configure's option --config-cache.
8013 # It is not useful on other systems. If it contains results you don't
8014 # want to keep, you may remove or edit it.
8016 # config.status only pays attention to the cache file if you give it
8017 # the --recheck option to rerun configure.
8019 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8020 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8021 # following values.
8023 _ACEOF
8025 # The following way of writing the cache mishandles newlines in values,
8026 # but we know of no workaround that is simple, portable, and efficient.
8027 # So, we kill variables containing newlines.
8028 # Ultrix sh set writes to stderr and can't be redirected directly,
8029 # and sets the high bit in the cache file unless we assign to the vars.
8031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8032 eval ac_val=\$$ac_var
8033 case $ac_val in #(
8034 *${as_nl}*)
8035 case $ac_var in #(
8036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8038 esac
8039 case $ac_var in #(
8040 _ | IFS | as_nl) ;; #(
8041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8042 *) { eval $ac_var=; unset $ac_var;} ;;
8043 esac ;;
8044 esac
8045 done
8047 (set) 2>&1 |
8048 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8049 *${as_nl}ac_space=\ *)
8050 # `set' does not quote correctly, so add quotes: double-quote
8051 # substitution turns \\\\ into \\, and sed turns \\ into \.
8052 sed -n \
8053 "s/'/'\\\\''/g;
8054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8055 ;; #(
8057 # `set' quotes correctly as required by POSIX, so do not add quotes.
8058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8060 esac |
8061 sort
8063 sed '
8064 /^ac_cv_env_/b end
8065 t clear
8066 :clear
8067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8068 t end
8069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8070 :end' >>confcache
8071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8072 if test -w "$cache_file"; then
8073 if test "x$cache_file" != "x/dev/null"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8075 $as_echo "$as_me: updating cache $cache_file" >&6;}
8076 if test ! -f "$cache_file" || test -h "$cache_file"; then
8077 cat confcache >"$cache_file"
8078 else
8079 case $cache_file in #(
8080 */* | ?:*)
8081 mv -f confcache "$cache_file"$$ &&
8082 mv -f "$cache_file"$$ "$cache_file" ;; #(
8084 mv -f confcache "$cache_file" ;;
8085 esac
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8093 rm -f confcache
8095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8096 # Let make expand exec_prefix.
8097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8099 DEFS=-DHAVE_CONFIG_H
8101 ac_libobjs=
8102 ac_ltlibobjs=
8104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8105 # 1. Remove the extension, and $U if already installed.
8106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8109 # will be set to the directory where LIBOBJS objects are built.
8110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8112 done
8113 LIBOBJS=$ac_libobjs
8115 LTLIBOBJS=$ac_ltlibobjs
8119 : "${CONFIG_STATUS=./config.status}"
8120 ac_write_fail=0
8121 ac_clean_files_save=$ac_clean_files
8122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8125 as_write_fail=0
8126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8127 #! $SHELL
8128 # Generated by $as_me.
8129 # Run this file to recreate the current configuration.
8130 # Compiler output produced by configure, useful for debugging
8131 # configure, is in config.log if it exists.
8133 debug=false
8134 ac_cs_recheck=false
8135 ac_cs_silent=false
8137 SHELL=\${CONFIG_SHELL-$SHELL}
8138 export SHELL
8139 _ASEOF
8140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8141 ## -------------------- ##
8142 ## M4sh Initialization. ##
8143 ## -------------------- ##
8145 # Be more Bourne compatible
8146 DUALCASE=1; export DUALCASE # for MKS sh
8147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8148 emulate sh
8149 NULLCMD=:
8150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8151 # is contrary to our usage. Disable this feature.
8152 alias -g '${1+"$@"}'='"$@"'
8153 setopt NO_GLOB_SUBST
8154 else
8155 case `(set -o) 2>/dev/null` in #(
8156 *posix*) :
8157 set -o posix ;; #(
8158 *) :
8160 esac
8164 as_nl='
8166 export as_nl
8167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8171 # Prefer a ksh shell builtin over an external printf program on Solaris,
8172 # but without wasting forks for bash or zsh.
8173 if test -z "$BASH_VERSION$ZSH_VERSION" \
8174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8175 as_echo='print -r --'
8176 as_echo_n='print -rn --'
8177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8178 as_echo='printf %s\n'
8179 as_echo_n='printf %s'
8180 else
8181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8183 as_echo_n='/usr/ucb/echo -n'
8184 else
8185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8186 as_echo_n_body='eval
8187 arg=$1;
8188 case $arg in #(
8189 *"$as_nl"*)
8190 expr "X$arg" : "X\\(.*\\)$as_nl";
8191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8192 esac;
8193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8195 export as_echo_n_body
8196 as_echo_n='sh -c $as_echo_n_body as_echo'
8198 export as_echo_body
8199 as_echo='sh -c $as_echo_body as_echo'
8202 # The user is always right.
8203 if test "${PATH_SEPARATOR+set}" != set; then
8204 PATH_SEPARATOR=:
8205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8207 PATH_SEPARATOR=';'
8212 # IFS
8213 # We need space, tab and new line, in precisely that order. Quoting is
8214 # there to prevent editors from complaining about space-tab.
8215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8216 # splitting by setting IFS to empty value.)
8217 IFS=" "" $as_nl"
8219 # Find who we are. Look in the path if we contain no directory separator.
8220 as_myself=
8221 case $0 in #((
8222 *[\\/]* ) as_myself=$0 ;;
8223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8229 done
8230 IFS=$as_save_IFS
8233 esac
8234 # We did not find ourselves, most probably we were run as `sh COMMAND'
8235 # in which case we are not to be found in the path.
8236 if test "x$as_myself" = x; then
8237 as_myself=$0
8239 if test ! -f "$as_myself"; then
8240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8241 exit 1
8244 # Unset variables that we do not need and which cause bugs (e.g. in
8245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8246 # suppresses any "Segmentation fault" message there. '((' could
8247 # trigger a bug in pdksh 5.2.14.
8248 for as_var in BASH_ENV ENV MAIL MAILPATH
8249 do eval test x\${$as_var+set} = xset \
8250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8251 done
8252 PS1='$ '
8253 PS2='> '
8254 PS4='+ '
8256 # NLS nuisances.
8257 LC_ALL=C
8258 export LC_ALL
8259 LANGUAGE=C
8260 export LANGUAGE
8262 # CDPATH.
8263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8267 # ----------------------------------------
8268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8270 # script with STATUS, using 1 if that was 0.
8271 as_fn_error ()
8273 as_status=$1; test $as_status -eq 0 && as_status=1
8274 if test "$4"; then
8275 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8278 $as_echo "$as_me: error: $2" >&2
8279 as_fn_exit $as_status
8280 } # as_fn_error
8283 # as_fn_set_status STATUS
8284 # -----------------------
8285 # Set $? to STATUS, without forking.
8286 as_fn_set_status ()
8288 return $1
8289 } # as_fn_set_status
8291 # as_fn_exit STATUS
8292 # -----------------
8293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8294 as_fn_exit ()
8296 set +e
8297 as_fn_set_status $1
8298 exit $1
8299 } # as_fn_exit
8301 # as_fn_unset VAR
8302 # ---------------
8303 # Portably unset VAR.
8304 as_fn_unset ()
8306 { eval $1=; unset $1;}
8308 as_unset=as_fn_unset
8309 # as_fn_append VAR VALUE
8310 # ----------------------
8311 # Append the text in VALUE to the end of the definition contained in VAR. Take
8312 # advantage of any shell optimizations that allow amortized linear growth over
8313 # repeated appends, instead of the typical quadratic growth present in naive
8314 # implementations.
8315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8316 eval 'as_fn_append ()
8318 eval $1+=\$2
8320 else
8321 as_fn_append ()
8323 eval $1=\$$1\$2
8325 fi # as_fn_append
8327 # as_fn_arith ARG...
8328 # ------------------
8329 # Perform arithmetic evaluation on the ARGs, and store the result in the
8330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8331 # must be portable across $(()) and expr.
8332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8333 eval 'as_fn_arith ()
8335 as_val=$(( $* ))
8337 else
8338 as_fn_arith ()
8340 as_val=`expr "$@" || test $? -eq 1`
8342 fi # as_fn_arith
8345 if expr a : '\(a\)' >/dev/null 2>&1 &&
8346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8347 as_expr=expr
8348 else
8349 as_expr=false
8352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8353 as_basename=basename
8354 else
8355 as_basename=false
8358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8359 as_dirname=dirname
8360 else
8361 as_dirname=false
8364 as_me=`$as_basename -- "$0" ||
8365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8366 X"$0" : 'X\(//\)$' \| \
8367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8368 $as_echo X/"$0" |
8369 sed '/^.*\/\([^/][^/]*\)\/*$/{
8370 s//\1/
8373 /^X\/\(\/\/\)$/{
8374 s//\1/
8377 /^X\/\(\/\).*/{
8378 s//\1/
8381 s/.*/./; q'`
8383 # Avoid depending upon Character Ranges.
8384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8387 as_cr_digits='0123456789'
8388 as_cr_alnum=$as_cr_Letters$as_cr_digits
8390 ECHO_C= ECHO_N= ECHO_T=
8391 case `echo -n x` in #(((((
8392 -n*)
8393 case `echo 'xy\c'` in
8394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8395 xy) ECHO_C='\c';;
8396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8397 ECHO_T=' ';;
8398 esac;;
8400 ECHO_N='-n';;
8401 esac
8403 rm -f conf$$ conf$$.exe conf$$.file
8404 if test -d conf$$.dir; then
8405 rm -f conf$$.dir/conf$$.file
8406 else
8407 rm -f conf$$.dir
8408 mkdir conf$$.dir 2>/dev/null
8410 if (echo >conf$$.file) 2>/dev/null; then
8411 if ln -s conf$$.file conf$$ 2>/dev/null; then
8412 as_ln_s='ln -s'
8413 # ... but there are two gotchas:
8414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8416 # In both cases, we have to default to `cp -p'.
8417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8418 as_ln_s='cp -p'
8419 elif ln conf$$.file conf$$ 2>/dev/null; then
8420 as_ln_s=ln
8421 else
8422 as_ln_s='cp -p'
8424 else
8425 as_ln_s='cp -p'
8427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8428 rmdir conf$$.dir 2>/dev/null
8431 # as_fn_mkdir_p
8432 # -------------
8433 # Create "$as_dir" as a directory, including parents if necessary.
8434 as_fn_mkdir_p ()
8437 case $as_dir in #(
8438 -*) as_dir=./$as_dir;;
8439 esac
8440 test -d "$as_dir" || eval $as_mkdir_p || {
8441 as_dirs=
8442 while :; do
8443 case $as_dir in #(
8444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8445 *) as_qdir=$as_dir;;
8446 esac
8447 as_dirs="'$as_qdir' $as_dirs"
8448 as_dir=`$as_dirname -- "$as_dir" ||
8449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8450 X"$as_dir" : 'X\(//\)[^/]' \| \
8451 X"$as_dir" : 'X\(//\)$' \| \
8452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8453 $as_echo X"$as_dir" |
8454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8455 s//\1/
8458 /^X\(\/\/\)[^/].*/{
8459 s//\1/
8462 /^X\(\/\/\)$/{
8463 s//\1/
8466 /^X\(\/\).*/{
8467 s//\1/
8470 s/.*/./; q'`
8471 test -d "$as_dir" && break
8472 done
8473 test -z "$as_dirs" || eval "mkdir $as_dirs"
8474 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8477 } # as_fn_mkdir_p
8478 if mkdir -p . 2>/dev/null; then
8479 as_mkdir_p='mkdir -p "$as_dir"'
8480 else
8481 test -d ./-p && rmdir ./-p
8482 as_mkdir_p=false
8485 if test -x / >/dev/null 2>&1; then
8486 as_test_x='test -x'
8487 else
8488 if ls -dL / >/dev/null 2>&1; then
8489 as_ls_L_option=L
8490 else
8491 as_ls_L_option=
8493 as_test_x='
8494 eval sh -c '\''
8495 if test -d "$1"; then
8496 test -d "$1/.";
8497 else
8498 case $1 in #(
8499 -*)set "./$1";;
8500 esac;
8501 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8502 ???[sx]*):;;*)false;;esac;fi
8503 '\'' sh
8506 as_executable_p=$as_test_x
8508 # Sed expression to map a string onto a valid CPP name.
8509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8511 # Sed expression to map a string onto a valid variable name.
8512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8515 exec 6>&1
8516 ## ----------------------------------- ##
8517 ## Main body of $CONFIG_STATUS script. ##
8518 ## ----------------------------------- ##
8519 _ASEOF
8520 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8523 # Save the log message, to keep $0 and so on meaningful, and to
8524 # report actual input values of CONFIG_FILES etc. instead of their
8525 # values after options handling.
8526 ac_log="
8527 This file was extended by GNU C Library $as_me (see version.h), which was
8528 generated by GNU Autoconf 2.68. Invocation command line was
8530 CONFIG_FILES = $CONFIG_FILES
8531 CONFIG_HEADERS = $CONFIG_HEADERS
8532 CONFIG_LINKS = $CONFIG_LINKS
8533 CONFIG_COMMANDS = $CONFIG_COMMANDS
8534 $ $0 $@
8536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8539 _ACEOF
8541 case $ac_config_files in *"
8542 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8543 esac
8545 case $ac_config_headers in *"
8546 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8547 esac
8550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8551 # Files that config.status was made for.
8552 config_files="$ac_config_files"
8553 config_headers="$ac_config_headers"
8554 config_commands="$ac_config_commands"
8556 _ACEOF
8558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8559 ac_cs_usage="\
8560 \`$as_me' instantiates files and other configuration actions
8561 from templates according to the current configuration. Unless the files
8562 and actions are specified as TAGs, all are instantiated by default.
8564 Usage: $0 [OPTION]... [TAG]...
8566 -h, --help print this help, then exit
8567 -V, --version print version number and configuration settings, then exit
8568 --config print configuration, then exit
8569 -q, --quiet, --silent
8570 do not print progress messages
8571 -d, --debug don't remove temporary files
8572 --recheck update $as_me by reconfiguring in the same conditions
8573 --file=FILE[:TEMPLATE]
8574 instantiate the configuration file FILE
8575 --header=FILE[:TEMPLATE]
8576 instantiate the configuration header FILE
8578 Configuration files:
8579 $config_files
8581 Configuration headers:
8582 $config_headers
8584 Configuration commands:
8585 $config_commands
8587 Report bugs to <http://sourceware.org/bugzilla/>.
8588 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
8589 General help using GNU software: <http://www.gnu.org/gethelp/>."
8591 _ACEOF
8592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8593 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8594 ac_cs_version="\\
8595 GNU C Library config.status (see version.h)
8596 configured by $0, generated by GNU Autoconf 2.68,
8597 with options \\"\$ac_cs_config\\"
8599 Copyright (C) 2010 Free Software Foundation, Inc.
8600 This config.status script is free software; the Free Software Foundation
8601 gives unlimited permission to copy, distribute and modify it."
8603 ac_pwd='$ac_pwd'
8604 srcdir='$srcdir'
8605 INSTALL='$INSTALL'
8606 AWK='$AWK'
8607 test -n "\$AWK" || AWK=awk
8608 _ACEOF
8610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8611 # The default lists apply if the user does not specify any file.
8612 ac_need_defaults=:
8613 while test $# != 0
8615 case $1 in
8616 --*=?*)
8617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8619 ac_shift=:
8621 --*=)
8622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8623 ac_optarg=
8624 ac_shift=:
8627 ac_option=$1
8628 ac_optarg=$2
8629 ac_shift=shift
8631 esac
8633 case $ac_option in
8634 # Handling of the options.
8635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8636 ac_cs_recheck=: ;;
8637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8638 $as_echo "$ac_cs_version"; exit ;;
8639 --config | --confi | --conf | --con | --co | --c )
8640 $as_echo "$ac_cs_config"; exit ;;
8641 --debug | --debu | --deb | --de | --d | -d )
8642 debug=: ;;
8643 --file | --fil | --fi | --f )
8644 $ac_shift
8645 case $ac_optarg in
8646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8647 '') as_fn_error $? "missing file argument" ;;
8648 esac
8649 as_fn_append CONFIG_FILES " '$ac_optarg'"
8650 ac_need_defaults=false;;
8651 --header | --heade | --head | --hea )
8652 $ac_shift
8653 case $ac_optarg in
8654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8655 esac
8656 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8657 ac_need_defaults=false;;
8658 --he | --h)
8659 # Conflict between --help and --header
8660 as_fn_error $? "ambiguous option: \`$1'
8661 Try \`$0 --help' for more information.";;
8662 --help | --hel | -h )
8663 $as_echo "$ac_cs_usage"; exit ;;
8664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8666 ac_cs_silent=: ;;
8668 # This is an error.
8669 -*) as_fn_error $? "unrecognized option: \`$1'
8670 Try \`$0 --help' for more information." ;;
8672 *) as_fn_append ac_config_targets " $1"
8673 ac_need_defaults=false ;;
8675 esac
8676 shift
8677 done
8679 ac_configure_extra_args=
8681 if $ac_cs_silent; then
8682 exec 6>/dev/null
8683 ac_configure_extra_args="$ac_configure_extra_args --silent"
8686 _ACEOF
8687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8688 if \$ac_cs_recheck; then
8689 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8690 shift
8691 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8692 CONFIG_SHELL='$SHELL'
8693 export CONFIG_SHELL
8694 exec "\$@"
8697 _ACEOF
8698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8699 exec 5>>config.log
8701 echo
8702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8703 ## Running $as_me. ##
8704 _ASBOX
8705 $as_echo "$ac_log"
8706 } >&5
8708 _ACEOF
8709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8711 # INIT-COMMANDS
8713 config_vars='$config_vars'
8715 _ACEOF
8717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8719 # Handling of arguments.
8720 for ac_config_target in $ac_config_targets
8722 case $ac_config_target in
8723 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8724 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8725 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8726 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8728 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8729 esac
8730 done
8733 # If the user did not use the arguments to specify the items to instantiate,
8734 # then the envvar interface is used. Set only those that are not.
8735 # We use the long form for the default assignment because of an extremely
8736 # bizarre bug on SunOS 4.1.3.
8737 if $ac_need_defaults; then
8738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8743 # Have a temporary directory for convenience. Make it in the build tree
8744 # simply because there is no reason against having it here, and in addition,
8745 # creating and moving files from /tmp can sometimes cause problems.
8746 # Hook for its removal unless debugging.
8747 # Note that there is a small window in which the directory will not be cleaned:
8748 # after its creation but before its name has been assigned to `$tmp'.
8749 $debug ||
8751 tmp= ac_tmp=
8752 trap 'exit_status=$?
8753 : "${ac_tmp:=$tmp}"
8754 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8756 trap 'as_fn_exit 1' 1 2 13 15
8758 # Create a (secure) tmp directory for tmp files.
8761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8762 test -d "$tmp"
8763 } ||
8765 tmp=./conf$$-$RANDOM
8766 (umask 077 && mkdir "$tmp")
8767 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8768 ac_tmp=$tmp
8770 # Set up the scripts for CONFIG_FILES section.
8771 # No need to generate them if there are no CONFIG_FILES.
8772 # This happens for instance with `./config.status config.h'.
8773 if test -n "$CONFIG_FILES"; then
8776 ac_cr=`echo X | tr X '\015'`
8777 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8778 # But we know of no other shell where ac_cr would be empty at this
8779 # point, so we can use a bashism as a fallback.
8780 if test "x$ac_cr" = x; then
8781 eval ac_cr=\$\'\\r\'
8783 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8784 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8785 ac_cs_awk_cr='\\r'
8786 else
8787 ac_cs_awk_cr=$ac_cr
8790 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8791 _ACEOF
8795 echo "cat >conf$$subs.awk <<_ACEOF" &&
8796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8797 echo "_ACEOF"
8798 } >conf$$subs.sh ||
8799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8800 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8801 ac_delim='%!_!# '
8802 for ac_last_try in false false false false false :; do
8803 . ./conf$$subs.sh ||
8804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8807 if test $ac_delim_n = $ac_delim_num; then
8808 break
8809 elif $ac_last_try; then
8810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8811 else
8812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8814 done
8815 rm -f conf$$subs.sh
8817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8818 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8819 _ACEOF
8820 sed -n '
8822 s/^/S["/; s/!.*/"]=/
8825 s/^[^!]*!//
8826 :repl
8827 t repl
8828 s/'"$ac_delim"'$//
8829 t delim
8832 s/\(.\{148\}\)..*/\1/
8833 t more1
8834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8837 b repl
8838 :more1
8839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8842 s/.\{148\}//
8843 t nl
8844 :delim
8846 s/\(.\{148\}\)..*/\1/
8847 t more2
8848 s/["\\]/\\&/g; s/^/"/; s/$/"/
8851 :more2
8852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8855 s/.\{148\}//
8856 t delim
8857 ' <conf$$subs.awk | sed '
8858 /^[^""]/{
8860 s/\n//
8862 ' >>$CONFIG_STATUS || ac_write_fail=1
8863 rm -f conf$$subs.awk
8864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8865 _ACAWK
8866 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8867 for (key in S) S_is_set[key] = 1
8868 FS = "\a"
8872 line = $ 0
8873 nfields = split(line, field, "@")
8874 substed = 0
8875 len = length(field[1])
8876 for (i = 2; i < nfields; i++) {
8877 key = field[i]
8878 keylen = length(key)
8879 if (S_is_set[key]) {
8880 value = S[key]
8881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8882 len += length(value) + length(field[++i])
8883 substed = 1
8884 } else
8885 len += 1 + keylen
8888 print line
8891 _ACAWK
8892 _ACEOF
8893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8896 else
8898 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8899 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8900 _ACEOF
8902 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8903 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8904 # trailing colons and then remove the whole line if VPATH becomes empty
8905 # (actually we leave an empty line to preserve line numbers).
8906 if test "x$srcdir" = x.; then
8907 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8909 s///
8910 s/^/:/
8911 s/[ ]*$/:/
8912 s/:\$(srcdir):/:/g
8913 s/:\${srcdir}:/:/g
8914 s/:@srcdir@:/:/g
8915 s/^:*//
8916 s/:*$//
8918 s/\(=[ ]*\).*/\1/
8920 s/\n//
8921 s/^[^=]*=[ ]*$//
8925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8926 fi # test -n "$CONFIG_FILES"
8928 # Set up the scripts for CONFIG_HEADERS section.
8929 # No need to generate them if there are no CONFIG_HEADERS.
8930 # This happens for instance with `./config.status Makefile'.
8931 if test -n "$CONFIG_HEADERS"; then
8932 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8933 BEGIN {
8934 _ACEOF
8936 # Transform confdefs.h into an awk script `defines.awk', embedded as
8937 # here-document in config.status, that substitutes the proper values into
8938 # config.h.in to produce config.h.
8940 # Create a delimiter string that does not exist in confdefs.h, to ease
8941 # handling of long lines.
8942 ac_delim='%!_!# '
8943 for ac_last_try in false false :; do
8944 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8945 if test -z "$ac_tt"; then
8946 break
8947 elif $ac_last_try; then
8948 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8949 else
8950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8952 done
8954 # For the awk script, D is an array of macro values keyed by name,
8955 # likewise P contains macro parameters if any. Preserve backslash
8956 # newline sequences.
8958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8959 sed -n '
8960 s/.\{148\}/&'"$ac_delim"'/g
8961 t rset
8962 :rset
8963 s/^[ ]*#[ ]*define[ ][ ]*/ /
8964 t def
8966 :def
8967 s/\\$//
8968 t bsnl
8969 s/["\\]/\\&/g
8970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8971 D["\1"]=" \3"/p
8972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8974 :bsnl
8975 s/["\\]/\\&/g
8976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8977 D["\1"]=" \3\\\\\\n"\\/p
8978 t cont
8979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8980 t cont
8982 :cont
8984 s/.\{148\}/&'"$ac_delim"'/g
8985 t clear
8986 :clear
8987 s/\\$//
8988 t bsnlc
8989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8991 :bsnlc
8992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8993 b cont
8994 ' <confdefs.h | sed '
8995 s/'"$ac_delim"'/"\\\
8996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8999 for (key in D) D_is_set[key] = 1
9000 FS = "\a"
9002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9003 line = \$ 0
9004 split(line, arg, " ")
9005 if (arg[1] == "#") {
9006 defundef = arg[2]
9007 mac1 = arg[3]
9008 } else {
9009 defundef = substr(arg[1], 2)
9010 mac1 = arg[2]
9012 split(mac1, mac2, "(") #)
9013 macro = mac2[1]
9014 prefix = substr(line, 1, index(line, defundef) - 1)
9015 if (D_is_set[macro]) {
9016 # Preserve the white space surrounding the "#".
9017 print prefix "define", macro P[macro] D[macro]
9018 next
9019 } else {
9020 # Replace #undef with comments. This is necessary, for example,
9021 # in the case of _POSIX_SOURCE, which is predefined and required
9022 # on some systems where configure will not decide to define it.
9023 if (defundef == "undef") {
9024 print "/*", prefix defundef, macro, "*/"
9025 next
9029 { print }
9030 _ACAWK
9031 _ACEOF
9032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9033 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9034 fi # test -n "$CONFIG_HEADERS"
9037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9038 shift
9039 for ac_tag
9041 case $ac_tag in
9042 :[FHLC]) ac_mode=$ac_tag; continue;;
9043 esac
9044 case $ac_mode$ac_tag in
9045 :[FHL]*:*);;
9046 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9047 :[FH]-) ac_tag=-:-;;
9048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9049 esac
9050 ac_save_IFS=$IFS
9051 IFS=:
9052 set x $ac_tag
9053 IFS=$ac_save_IFS
9054 shift
9055 ac_file=$1
9056 shift
9058 case $ac_mode in
9059 :L) ac_source=$1;;
9060 :[FH])
9061 ac_file_inputs=
9062 for ac_f
9064 case $ac_f in
9065 -) ac_f="$ac_tmp/stdin";;
9066 *) # Look for the file first in the build tree, then in the source tree
9067 # (if the path is not absolute). The absolute path cannot be DOS-style,
9068 # because $ac_f cannot contain `:'.
9069 test -f "$ac_f" ||
9070 case $ac_f in
9071 [\\/$]*) false;;
9072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9073 esac ||
9074 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9075 esac
9076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9077 as_fn_append ac_file_inputs " '$ac_f'"
9078 done
9080 # Let's still pretend it is `configure' which instantiates (i.e., don't
9081 # use $as_me), people would be surprised to read:
9082 # /* config.h. Generated by config.status. */
9083 configure_input='Generated from '`
9084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9085 `' by configure.'
9086 if test x"$ac_file" != x-; then
9087 configure_input="$ac_file. $configure_input"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9089 $as_echo "$as_me: creating $ac_file" >&6;}
9091 # Neutralize special characters interpreted by sed in replacement strings.
9092 case $configure_input in #(
9093 *\&* | *\|* | *\\* )
9094 ac_sed_conf_input=`$as_echo "$configure_input" |
9095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9096 *) ac_sed_conf_input=$configure_input;;
9097 esac
9099 case $ac_tag in
9100 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9102 esac
9104 esac
9106 ac_dir=`$as_dirname -- "$ac_file" ||
9107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9108 X"$ac_file" : 'X\(//\)[^/]' \| \
9109 X"$ac_file" : 'X\(//\)$' \| \
9110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9111 $as_echo X"$ac_file" |
9112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9113 s//\1/
9116 /^X\(\/\/\)[^/].*/{
9117 s//\1/
9120 /^X\(\/\/\)$/{
9121 s//\1/
9124 /^X\(\/\).*/{
9125 s//\1/
9128 s/.*/./; q'`
9129 as_dir="$ac_dir"; as_fn_mkdir_p
9130 ac_builddir=.
9132 case "$ac_dir" in
9133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9136 # A ".." for each directory in $ac_dir_suffix.
9137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9138 case $ac_top_builddir_sub in
9139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9141 esac ;;
9142 esac
9143 ac_abs_top_builddir=$ac_pwd
9144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9145 # for backward compatibility:
9146 ac_top_builddir=$ac_top_build_prefix
9148 case $srcdir in
9149 .) # We are building in place.
9150 ac_srcdir=.
9151 ac_top_srcdir=$ac_top_builddir_sub
9152 ac_abs_top_srcdir=$ac_pwd ;;
9153 [\\/]* | ?:[\\/]* ) # Absolute name.
9154 ac_srcdir=$srcdir$ac_dir_suffix;
9155 ac_top_srcdir=$srcdir
9156 ac_abs_top_srcdir=$srcdir ;;
9157 *) # Relative name.
9158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9159 ac_top_srcdir=$ac_top_build_prefix$srcdir
9160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9161 esac
9162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9165 case $ac_mode in
9168 # CONFIG_FILE
9171 case $INSTALL in
9172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9174 esac
9175 _ACEOF
9177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9178 # If the template does not know about datarootdir, expand it.
9179 # FIXME: This hack should be removed a few years after 2.60.
9180 ac_datarootdir_hack=; ac_datarootdir_seen=
9181 ac_sed_dataroot='
9182 /datarootdir/ {
9186 /@datadir@/p
9187 /@docdir@/p
9188 /@infodir@/p
9189 /@localedir@/p
9190 /@mandir@/p'
9191 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9192 *datarootdir*) ac_datarootdir_seen=yes;;
9193 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9195 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9196 _ACEOF
9197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9198 ac_datarootdir_hack='
9199 s&@datadir@&$datadir&g
9200 s&@docdir@&$docdir&g
9201 s&@infodir@&$infodir&g
9202 s&@localedir@&$localedir&g
9203 s&@mandir@&$mandir&g
9204 s&\\\${datarootdir}&$datarootdir&g' ;;
9205 esac
9206 _ACEOF
9208 # Neutralize VPATH when `$srcdir' = `.'.
9209 # Shell code in configure.ac might set extrasub.
9210 # FIXME: do we really want to maintain this feature?
9211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9212 ac_sed_extra="$ac_vpsub
9213 $extrasub
9214 _ACEOF
9215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9218 s|@configure_input@|$ac_sed_conf_input|;t t
9219 s&@top_builddir@&$ac_top_builddir_sub&;t t
9220 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9221 s&@srcdir@&$ac_srcdir&;t t
9222 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9223 s&@top_srcdir@&$ac_top_srcdir&;t t
9224 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9225 s&@builddir@&$ac_builddir&;t t
9226 s&@abs_builddir@&$ac_abs_builddir&;t t
9227 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9228 s&@INSTALL@&$ac_INSTALL&;t t
9229 $ac_datarootdir_hack
9231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9232 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9235 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9236 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9237 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9239 which seems to be undefined. Please make sure it is defined" >&5
9240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9241 which seems to be undefined. Please make sure it is defined" >&2;}
9243 rm -f "$ac_tmp/stdin"
9244 case $ac_file in
9245 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9246 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9247 esac \
9248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9252 # CONFIG_HEADER
9254 if test x"$ac_file" != x-; then
9256 $as_echo "/* $configure_input */" \
9257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9258 } >"$ac_tmp/config.h" \
9259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9260 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9263 else
9264 rm -f "$ac_file"
9265 mv "$ac_tmp/config.h" "$ac_file" \
9266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9268 else
9269 $as_echo "/* $configure_input */" \
9270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9271 || as_fn_error $? "could not create -" "$LINENO" 5
9275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9276 $as_echo "$as_me: executing $ac_file commands" >&6;}
9278 esac
9281 case $ac_file$ac_mode in
9282 "default":C)
9283 case $CONFIG_FILES in *config.make*)
9284 echo "$config_vars" >> config.make;;
9285 esac
9286 test -d bits || mkdir bits ;;
9288 esac
9289 done # for ac_tag
9292 as_fn_exit 0
9293 _ACEOF
9294 ac_clean_files=$ac_clean_files_save
9296 test $ac_write_fail = 0 ||
9297 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9300 # configure is writing to config.log, and then calls config.status.
9301 # config.status does its own redirection, appending to config.log.
9302 # Unfortunately, on DOS this fails, as config.log is still kept open
9303 # by configure, so config.status won't be able to write to it; its
9304 # output is simply discarded. So we exec the FD to /dev/null,
9305 # effectively closing config.log, so it can be properly (re)opened and
9306 # appended to by config.status. When coming back to configure, we
9307 # need to make the FD available again.
9308 if test "$no_create" != yes; then
9309 ac_cs_success=:
9310 ac_config_status_args=
9311 test "$silent" = yes &&
9312 ac_config_status_args="$ac_config_status_args --quiet"
9313 exec 5>/dev/null
9314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9315 exec 5>>config.log
9316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9317 # would make configure fail if this is the last instruction.
9318 $ac_cs_success || as_fn_exit 1
9322 # CONFIG_SUBDIRS section.
9324 if test "$no_recursion" != yes; then
9326 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9327 # so they do not pile up.
9328 ac_sub_configure_args=
9329 ac_prev=
9330 eval "set x $ac_configure_args"
9331 shift
9332 for ac_arg
9334 if test -n "$ac_prev"; then
9335 ac_prev=
9336 continue
9338 case $ac_arg in
9339 -cache-file | --cache-file | --cache-fil | --cache-fi \
9340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9341 ac_prev=cache_file ;;
9342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9344 | --c=*)
9346 --config-cache | -C)
9348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9349 ac_prev=srcdir ;;
9350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9353 ac_prev=prefix ;;
9354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9356 --disable-option-checking)
9359 case $ac_arg in
9360 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9361 esac
9362 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9363 esac
9364 done
9366 # Always prepend --prefix to ensure using the same prefix
9367 # in subdir configurations.
9368 ac_arg="--prefix=$prefix"
9369 case $ac_arg in
9370 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9371 esac
9372 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9374 # Pass --silent
9375 if test "$silent" = yes; then
9376 ac_sub_configure_args="--silent $ac_sub_configure_args"
9379 # Always prepend --disable-option-checking to silence warnings, since
9380 # different subdirs can have different --enable and --with options.
9381 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9383 ac_popdir=`pwd`
9384 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9386 # Do not complain, so a configure script can configure whichever
9387 # parts of a large source tree are present.
9388 test -d "$srcdir/$ac_dir" || continue
9390 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9392 $as_echo "$ac_msg" >&6
9393 as_dir="$ac_dir"; as_fn_mkdir_p
9394 ac_builddir=.
9396 case "$ac_dir" in
9397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9400 # A ".." for each directory in $ac_dir_suffix.
9401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9402 case $ac_top_builddir_sub in
9403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9405 esac ;;
9406 esac
9407 ac_abs_top_builddir=$ac_pwd
9408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9409 # for backward compatibility:
9410 ac_top_builddir=$ac_top_build_prefix
9412 case $srcdir in
9413 .) # We are building in place.
9414 ac_srcdir=.
9415 ac_top_srcdir=$ac_top_builddir_sub
9416 ac_abs_top_srcdir=$ac_pwd ;;
9417 [\\/]* | ?:[\\/]* ) # Absolute name.
9418 ac_srcdir=$srcdir$ac_dir_suffix;
9419 ac_top_srcdir=$srcdir
9420 ac_abs_top_srcdir=$srcdir ;;
9421 *) # Relative name.
9422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9423 ac_top_srcdir=$ac_top_build_prefix$srcdir
9424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9425 esac
9426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9429 cd "$ac_dir"
9431 # Check for guested configure; otherwise get Cygnus style configure.
9432 if test -f "$ac_srcdir/configure.gnu"; then
9433 ac_sub_configure=$ac_srcdir/configure.gnu
9434 elif test -f "$ac_srcdir/configure"; then
9435 ac_sub_configure=$ac_srcdir/configure
9436 elif test -f "$ac_srcdir/configure.in"; then
9437 # This should be Cygnus configure.
9438 ac_sub_configure=$ac_aux_dir/configure
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9441 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9442 ac_sub_configure=
9445 # The recursion is here.
9446 if test -n "$ac_sub_configure"; then
9447 # Make the cache file name correct relative to the subdirectory.
9448 case $cache_file in
9449 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9450 *) # Relative name.
9451 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9452 esac
9454 { $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
9455 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9456 # The eval makes quoting arguments work.
9457 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9458 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9459 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9462 cd "$ac_popdir"
9463 done
9465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}