Fix double-checked locking in _res_hconf_reorder_addrs [BZ #19074]
[glibc.git] / configure
blobf0cd17580c8be9c180246a59c9f1a35895c2faf4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
5 # Report bugs to <http://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://sourceware.org/bugzilla/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='GNU C Library'
582 PACKAGE_TARNAME='glibc'
583 PACKAGE_VERSION='(see version.h)'
584 PACKAGE_STRING='GNU C Library (see version.h)'
585 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
586 PACKAGE_URL='http://www.gnu.org/software/glibc/'
588 ac_unique_file="include/features.h"
589 enable_option_checking=no
590 ac_includes_default='/* none */'
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 RELEASE
594 VERSION
595 mach_interface_list
596 DEFINES
597 static_nss
598 profile
599 libc_cv_pie_default
600 libc_cv_pic_default
601 shared
602 static
603 ldd_rewrite_script
604 use_ldconfig
605 libc_cv_forced_unwind
606 libc_cv_rootsbindir
607 libc_cv_localstatedir
608 libc_cv_sysconfdir
609 libc_cv_localedir
610 libc_cv_rtlddir
611 libc_cv_slibdir
612 old_glibc_headers
613 use_nscd
614 libc_cv_gcc_unwind_find_fde
615 libc_extra_cppflags
616 libc_extra_cflags
617 libc_cv_cxx_thread_local
618 CPPUNDEFS
619 sizeof_long_double
620 have_selinux
621 have_libcap
622 have_libaudit
623 LIBGD
624 libc_cv_cc_loop_to_function
625 libc_cv_cc_submachine
626 libc_cv_cc_nofma
627 exceptions
628 gnu89_inline
629 libc_cv_ssp
630 fno_unit_at_a_time
631 libc_cv_output_format
632 libc_cv_hashstyle
633 libc_cv_fpie
634 libc_cv_z_execstack
635 libc_cv_z_combreloc
636 ASFLAGS_config
637 libc_cv_Bgroup
638 libc_cv_cc_with_libunwind
639 libc_cv_protected_data
640 BISON
641 INSTALL_INFO
642 PERL
643 BASH_SHELL
644 libc_cv_gcc_static_libgcc
645 CXX_SYSINCLUDES
646 SYSINCLUDES
647 AUTOCONF
651 MAKEINFO
652 MSGFMT
653 MAKE
656 OBJCOPY
657 OBJDUMP
659 LN_S
660 INSTALL_DATA
661 INSTALL_SCRIPT
662 INSTALL_PROGRAM
663 sysdeps_add_ons
664 sysnames
665 submachine
666 multi_arch
667 base_machine
668 add_on_subdirs
669 add_ons
670 build_pt_chown
671 build_nscd
672 link_obsolete_rpc
673 libc_cv_nss_crypt
674 enable_werror
675 all_warnings
676 force_install
677 bindnow
678 enable_lock_elision
679 hardcoded_path_in_tests
680 enable_timezone_tools
681 use_default_link
682 sysheaders
683 with_fp
684 ac_ct_CXX
685 CXXFLAGS
687 READELF
689 cross_compiling
690 BUILD_CC
691 OBJEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 subdirs
706 REPORT_BUGS_TEXI
707 REPORT_BUGS_TO
708 PKGVERSION_TEXI
709 PKGVERSION
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 with_pkgversion
752 with_bugurl
753 with_gd
754 with_gd_include
755 with_gd_lib
756 with_fp
757 with_binutils
758 with_selinux
759 with_headers
760 with_default_link
761 enable_sanity_checks
762 enable_shared
763 enable_profile
764 enable_timezone_tools
765 enable_hardcoded_path_in_tests
766 enable_stackguard_randomization
767 enable_lock_elision
768 enable_add_ons
769 enable_hidden_plt
770 enable_bind_now
771 enable_static_nss
772 enable_force_install
773 enable_maintainer_mode
774 enable_kernel
775 enable_all_warnings
776 enable_werror
777 enable_multi_arch
778 enable_nss_crypt
779 enable_obsolete_rpc
780 enable_systemtap
781 enable_build_nscd
782 enable_nscd
783 enable_pt_chown
784 enable_mathvec
785 with_cpu
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
797 CXXFLAGS
798 CCC'
799 ac_subdirs_all='
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
850 ac_prev=
851 ac_dashdash=
852 for ac_option
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
871 ac_dashdash=yes ;;
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
890 --config-cache | -C)
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 esac
1208 done
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1292 /^X\(\/\/\)$/{
1293 s//\1/
1296 /^X\(\/\).*/{
1297 s//\1/
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1305 else
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1395 cat <<\_ACEOF
1397 System types:
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1406 esac
1407 cat <<\_ACEOF
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --disable-sanity-checks really do not use threads (should not be used except
1414 in special situations) [default=yes]
1415 --enable-shared build shared library [default=yes if GNU ld]
1416 --enable-profile build profiled library [default=no]
1417 --disable-timezone-tools
1418 do not install timezone tools (if using external
1419 ones) [default=install]
1420 --enable-hardcoded-path-in-tests
1421 hardcode newly built glibc path in tests
1422 [default=no]
1423 --enable-stackguard-randomization
1424 initialize __stack_chk_guard canary with a random
1425 number at program start
1426 --enable-lock-elision=yes/no
1427 Enable lock elision for pthread mutexes by default
1428 --enable-add-ons[=DIRS...]
1429 configure and build add-ons in DIR1,DIR2,... search
1430 for add-ons if no parameter given
1431 --disable-hidden-plt do not hide internal function calls to avoid PLT
1432 --enable-bind-now disable lazy relocations in DSOs
1433 --enable-static-nss build static NSS modules [default=no]
1434 --disable-force-install don't force installation of files from this package,
1435 even if they are older than the installed files
1436 --enable-maintainer-mode
1437 enable make rules and dependencies not useful (and
1438 sometimes confusing) to the casual installer
1439 --enable-kernel=VERSION compile for compatibility with kernel not older than
1440 VERSION
1441 --enable-all-warnings enable all useful warnings gcc can issue
1442 --disable-werror do not build with -Werror
1443 --enable-multi-arch enable single DSO with optimizations for multiple
1444 architectures
1445 --enable-nss-crypt enable libcrypt to use nss
1446 --enable-obsolete-rpc build and install the obsolete RPC code for
1447 link-time usage
1448 --enable-systemtap enable systemtap static probe points [default=no]
1449 --disable-build-nscd disable building and installing the nscd daemon
1450 --disable-nscd library functions will not contact the nscd daemon
1451 --enable-pt_chown Enable building and installing pt_chown
1452 --enable-mathvec Enable building and installing mathvec [default
1453 depends on architecture]
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-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1459 --with-bugurl=URL Direct users to URL to report a bug
1460 --with-gd=DIR find libgd include dir and library with prefix DIR
1461 --with-gd-include=DIR find libgd include files in DIR
1462 --with-gd-lib=DIR find libgd library files in DIR
1463 --with-fp if using floating-point hardware [default=yes]
1464 --with-binutils=PATH specify location of binutils (as and ld)
1465 --with-selinux if building with SELinux support
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.69
1554 Copyright (C) 2012 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_cxx_try_compile LINENO
1604 # ----------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_cxx_try_compile ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_cxx_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=1
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_cxx_try_compile
1641 # ac_fn_cxx_try_link LINENO
1642 # -------------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_cxx_try_link ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_cxx_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=1
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_cxx_try_link
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_run
1775 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1776 # --------------------------------------------
1777 # Tries to find the compile-time value of EXPR in a program that includes
1778 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1779 # computed
1780 ac_fn_c_compute_int ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if test "$cross_compiling" = yes; then
1784 # Depending upon the size, compute the lo and hi bounds.
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1789 main ()
1791 static int test_array [1 - 2 * !(($2) >= 0)];
1792 test_array [0] = 0;
1793 return test_array [0];
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_lo=0 ac_mid=0
1801 while :; do
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1806 main ()
1808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1809 test_array [0] = 0;
1810 return test_array [0];
1813 return 0;
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_hi=$ac_mid; break
1818 else
1819 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1820 if test $ac_lo -le $ac_mid; then
1821 ac_lo= ac_hi=
1822 break
1824 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 done
1828 else
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1833 main ()
1835 static int test_array [1 - 2 * !(($2) < 0)];
1836 test_array [0] = 0;
1837 return test_array [0];
1840 return 0;
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_hi=-1 ac_mid=-1
1845 while :; do
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1850 main ()
1852 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1853 test_array [0] = 0;
1854 return test_array [0];
1857 return 0;
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_lo=$ac_mid; break
1862 else
1863 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1864 if test $ac_mid -le $ac_hi; then
1865 ac_lo= ac_hi=
1866 break
1868 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 done
1872 else
1873 ac_lo= ac_hi=
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 # Binary search between lo and hi bounds.
1879 while test "x$ac_lo" != "x$ac_hi"; do
1880 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1885 main ()
1887 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1888 test_array [0] = 0;
1889 return test_array [0];
1892 return 0;
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 ac_hi=$ac_mid
1897 else
1898 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 done
1902 case $ac_lo in #((
1903 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1904 '') ac_retval=1 ;;
1905 esac
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1910 static long int longval () { return $2; }
1911 static unsigned long int ulongval () { return $2; }
1912 #include <stdio.h>
1913 #include <stdlib.h>
1915 main ()
1918 FILE *f = fopen ("conftest.val", "w");
1919 if (! f)
1920 return 1;
1921 if (($2) < 0)
1923 long int i = longval ();
1924 if (i != ($2))
1925 return 1;
1926 fprintf (f, "%ld", i);
1928 else
1930 unsigned long int i = ulongval ();
1931 if (i != ($2))
1932 return 1;
1933 fprintf (f, "%lu", i);
1935 /* Do not output a trailing newline, as this causes \r\n confusion
1936 on some platforms. */
1937 return ferror (f) || fclose (f) != 0;
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_run "$LINENO"; then :
1944 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1945 else
1946 ac_retval=1
1948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1949 conftest.$ac_objext conftest.beam conftest.$ac_ext
1950 rm -f conftest.val
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_compute_int
1957 cat >config.log <<_ACEOF
1958 This file contains any messages produced by compilers while
1959 running configure, to aid debugging if configure makes a mistake.
1961 It was created by GNU C Library $as_me (see version.h), which was
1962 generated by GNU Autoconf 2.69. Invocation command line was
1964 $ $0 $@
1966 _ACEOF
1967 exec 5>>config.log
1969 cat <<_ASUNAME
1970 ## --------- ##
1971 ## Platform. ##
1972 ## --------- ##
1974 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1983 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1984 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1985 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1986 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1987 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1988 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1989 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991 _ASUNAME
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 $as_echo "PATH: $as_dir"
1999 done
2000 IFS=$as_save_IFS
2002 } >&5
2004 cat >&5 <<_ACEOF
2007 ## ----------- ##
2008 ## Core tests. ##
2009 ## ----------- ##
2011 _ACEOF
2014 # Keep a trace of the command line.
2015 # Strip out --no-create and --no-recursion so they do not pile up.
2016 # Strip out --silent because we don't want to record it for future runs.
2017 # Also quote any args containing shell meta-characters.
2018 # Make two passes to allow for proper duplicate-argument suppression.
2019 ac_configure_args=
2020 ac_configure_args0=
2021 ac_configure_args1=
2022 ac_must_keep_next=false
2023 for ac_pass in 1 2
2025 for ac_arg
2027 case $ac_arg in
2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030 | -silent | --silent | --silen | --sile | --sil)
2031 continue ;;
2032 *\'*)
2033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034 esac
2035 case $ac_pass in
2036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038 as_fn_append ac_configure_args1 " '$ac_arg'"
2039 if test $ac_must_keep_next = true; then
2040 ac_must_keep_next=false # Got value, back to normal.
2041 else
2042 case $ac_arg in
2043 *=* | --config-cache | -C | -disable-* | --disable-* \
2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046 | -with-* | --with-* | -without-* | --without-* | --x)
2047 case "$ac_configure_args0 " in
2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 esac
2051 -* ) ac_must_keep_next=true ;;
2052 esac
2054 as_fn_append ac_configure_args " '$ac_arg'"
2056 esac
2057 done
2058 done
2059 { ac_configure_args0=; unset ac_configure_args0;}
2060 { ac_configure_args1=; unset ac_configure_args1;}
2062 # When interrupted or exit'd, cleanup temporary files, and complete
2063 # config.log. We remove comments because anyway the quotes in there
2064 # would cause problems or look ugly.
2065 # WARNING: Use '\'' to represent an apostrophe within the trap.
2066 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2067 trap 'exit_status=$?
2068 # Save into config.log some information that might help in debugging.
2070 echo
2072 $as_echo "## ---------------- ##
2073 ## Cache variables. ##
2074 ## ---------------- ##"
2075 echo
2076 # The following way of writing the cache mishandles newlines in values,
2078 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in #(
2081 *${as_nl}*)
2082 case $ac_var in #(
2083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085 esac
2086 case $ac_var in #(
2087 _ | IFS | as_nl) ;; #(
2088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089 *) { eval $ac_var=; unset $ac_var;} ;;
2090 esac ;;
2091 esac
2092 done
2093 (set) 2>&1 |
2094 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095 *${as_nl}ac_space=\ *)
2096 sed -n \
2097 "s/'\''/'\''\\\\'\'''\''/g;
2098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099 ;; #(
2101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 esac |
2104 sort
2106 echo
2108 $as_echo "## ----------------- ##
2109 ## Output variables. ##
2110 ## ----------------- ##"
2111 echo
2112 for ac_var in $ac_subst_vars
2114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 $as_echo "$ac_var='\''$ac_val'\''"
2119 done | sort
2120 echo
2122 if test -n "$ac_subst_files"; then
2123 $as_echo "## ------------------- ##
2124 ## File substitutions. ##
2125 ## ------------------- ##"
2126 echo
2127 for ac_var in $ac_subst_files
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2138 if test -s confdefs.h; then
2139 $as_echo "## ----------- ##
2140 ## confdefs.h. ##
2141 ## ----------- ##"
2142 echo
2143 cat confdefs.h
2144 echo
2146 test "$ac_signal" != 0 &&
2147 $as_echo "$as_me: caught signal $ac_signal"
2148 $as_echo "$as_me: exit $exit_status"
2149 } >&5
2150 rm -f core *.core core.conftest.* &&
2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152 exit $exit_status
2154 for ac_signal in 1 2 13 15; do
2155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156 done
2157 ac_signal=0
2159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2160 rm -f -r conftest* confdefs.h
2162 $as_echo "/* confdefs.h */" > confdefs.h
2164 # Predefined preprocessor variables.
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_NAME "$PACKAGE_NAME"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172 _ACEOF
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_STRING "$PACKAGE_STRING"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_URL "$PACKAGE_URL"
2188 _ACEOF
2191 # Let the site file select an alternate cache file if it wants to.
2192 # Prefer an explicitly selected file to automatically selected ones.
2193 ac_site_file1=NONE
2194 ac_site_file2=NONE
2195 if test -n "$CONFIG_SITE"; then
2196 # We do not want a PATH search for config.site.
2197 case $CONFIG_SITE in #((
2198 -*) ac_site_file1=./$CONFIG_SITE;;
2199 */*) ac_site_file1=$CONFIG_SITE;;
2200 *) ac_site_file1=./$CONFIG_SITE;;
2201 esac
2202 elif test "x$prefix" != xNONE; then
2203 ac_site_file1=$prefix/share/config.site
2204 ac_site_file2=$prefix/etc/config.site
2205 else
2206 ac_site_file1=$ac_default_prefix/share/config.site
2207 ac_site_file2=$ac_default_prefix/etc/config.site
2209 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211 test "x$ac_site_file" = xNONE && continue
2212 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2215 sed 's/^/| /' "$ac_site_file" >&5
2216 . "$ac_site_file" \
2217 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 as_fn_error $? "failed to load site script $ac_site_file
2220 See \`config.log' for more details" "$LINENO" 5; }
2222 done
2224 if test -r "$cache_file"; then
2225 # Some versions of bash will fail to source /dev/null (special files
2226 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2227 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2229 $as_echo "$as_me: loading cache $cache_file" >&6;}
2230 case $cache_file in
2231 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2232 *) . "./$cache_file";;
2233 esac
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2237 $as_echo "$as_me: creating cache $cache_file" >&6;}
2238 >$cache_file
2241 # Check that the precious variables saved in the cache have kept the same
2242 # value.
2243 ac_cache_corrupted=false
2244 for ac_var in $ac_precious_vars; do
2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2246 eval ac_new_set=\$ac_env_${ac_var}_set
2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2248 eval ac_new_val=\$ac_env_${ac_var}_value
2249 case $ac_old_set,$ac_new_set in
2250 set,)
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2254 ,set)
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2257 ac_cache_corrupted=: ;;
2258 ,);;
2260 if test "x$ac_old_val" != "x$ac_new_val"; then
2261 # differences in whitespace do not lead to failure.
2262 ac_old_val_w=`echo x $ac_old_val`
2263 ac_new_val_w=`echo x $ac_new_val`
2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2266 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2267 ac_cache_corrupted=:
2268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2270 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2271 eval $ac_var=\$ac_old_val
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2274 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2276 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2277 fi;;
2278 esac
2279 # Pass precious variables to config.status.
2280 if test "$ac_new_set" = set; then
2281 case $ac_new_val in
2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2283 *) ac_arg=$ac_var=$ac_new_val ;;
2284 esac
2285 case " $ac_configure_args " in
2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2288 esac
2290 done
2291 if $ac_cache_corrupted; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2295 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298 ## -------------------- ##
2299 ## Main body of script. ##
2300 ## -------------------- ##
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 ac_config_headers="$ac_config_headers config.h"
2312 ac_aux_dir=
2313 for ac_dir in scripts "$srcdir"/scripts; do
2314 if test -f "$ac_dir/install-sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install-sh -c"
2317 break
2318 elif test -f "$ac_dir/install.sh"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/install.sh -c"
2321 break
2322 elif test -f "$ac_dir/shtool"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/shtool install -c"
2325 break
2327 done
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2344 # Check whether --with-pkgversion was given.
2345 if test "${with_pkgversion+set}" = set; then :
2346 withval=$with_pkgversion; case "$withval" in
2347 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2348 no) PKGVERSION= ;;
2349 *) PKGVERSION="($withval) " ;;
2350 esac
2351 else
2352 PKGVERSION="(GNU libc) "
2356 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2362 # Check whether --with-bugurl was given.
2363 if test "${with_bugurl+set}" = set; then :
2364 withval=$with_bugurl; case "$withval" in
2365 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2366 no) BUGURL=
2368 *) BUGURL="$withval"
2370 esac
2371 else
2372 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2376 case ${BUGURL} in
2378 REPORT_BUGS_TO=
2379 REPORT_BUGS_TEXI=
2382 REPORT_BUGS_TO="<$BUGURL>"
2383 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2385 esac;
2390 cat >>confdefs.h <<_ACEOF
2391 #define PKGVERSION "$PKGVERSION"
2392 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2397 _ACEOF
2400 # Glibc should not depend on any header files
2403 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2404 # here to work around the Autoconf issue discussed in
2405 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2406 # AC_PROG_CPP
2408 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2409 # issue discussed in
2410 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2415 subdirs="$subdirs "
2418 # Make sure we can run config.sub.
2419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2420 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2423 $as_echo_n "checking build system type... " >&6; }
2424 if ${ac_cv_build+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 ac_build_alias=$build_alias
2428 test "x$ac_build_alias" = x &&
2429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2430 test "x$ac_build_alias" = x &&
2431 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2437 $as_echo "$ac_cv_build" >&6; }
2438 case $ac_cv_build in
2439 *-*-*) ;;
2440 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2441 esac
2442 build=$ac_cv_build
2443 ac_save_IFS=$IFS; IFS='-'
2444 set x $ac_cv_build
2445 shift
2446 build_cpu=$1
2447 build_vendor=$2
2448 shift; shift
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2451 build_os=$*
2452 IFS=$ac_save_IFS
2453 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if ${ac_cv_host+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463 else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470 $as_echo "$ac_cv_host" >&6; }
2471 case $ac_cv_host in
2472 *-*-*) ;;
2473 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474 esac
2475 host=$ac_cv_host
2476 ac_save_IFS=$IFS; IFS='-'
2477 set x $ac_cv_host
2478 shift
2479 host_cpu=$1
2480 host_vendor=$2
2481 shift; shift
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2484 host_os=$*
2485 IFS=$ac_save_IFS
2486 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2490 ac_ext=c
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_CC+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2517 done
2518 done
2519 IFS=$as_save_IFS
2523 CC=$ac_cv_prog_CC
2524 if test -n "$CC"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526 $as_echo "$CC" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2534 if test -z "$ac_cv_prog_CC"; then
2535 ac_ct_CC=$CC
2536 # Extract the first word of "gcc", so it can be a program name with args.
2537 set dummy gcc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_ac_ct_CC="gcc"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2559 IFS=$as_save_IFS
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2566 $as_echo "$ac_ct_CC" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2572 if test "x$ac_ct_CC" = x; then
2573 CC=""
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581 CC=$ac_ct_CC
2583 else
2584 CC="$ac_cv_prog_CC"
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}cc; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_CC+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_CC="${ac_tool_prefix}cc"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619 $as_echo "$CC" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2628 if test -z "$CC"; then
2629 # Extract the first word of "cc", so it can be a program name with args.
2630 set dummy cc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 ac_prog_rejected=no
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2648 ac_prog_rejected=yes
2649 continue
2651 ac_cv_prog_CC="cc"
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
2659 if test $ac_prog_rejected = yes; then
2660 # We found a bogon in the path, so make sure we never use it.
2661 set dummy $ac_cv_prog_CC
2662 shift
2663 if test $# != 0; then
2664 # We chose a different compiler from the bogus one.
2665 # However, it has the same basename, so the bogon will be chosen
2666 # first if we set CC to just the basename; use the full file name.
2667 shift
2668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 for ac_prog in cl.exe
2688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_CC+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2709 done
2710 done
2711 IFS=$as_save_IFS
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2725 test -n "$CC" && break
2726 done
2728 if test -z "$CC"; then
2729 ac_ct_CC=$CC
2730 for ac_prog in cl.exe
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2755 IFS=$as_save_IFS
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762 $as_echo "$ac_ct_CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2769 test -n "$ac_ct_CC" && break
2770 done
2772 if test "x$ac_ct_CC" = x; then
2773 CC=""
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error $? "no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details" "$LINENO" 5; }
2793 # Provide some information about the compiler.
2794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2795 set X $ac_compile
2796 ac_compiler=$2
2797 for ac_option in --version -v -V -qversion; do
2798 { { ac_try="$ac_compiler $ac_option >&5"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2806 ac_status=$?
2807 if test -s conftest.err; then
2808 sed '10a\
2809 ... rest of stderr output deleted ...
2810 10q' conftest.err >conftest.er1
2811 cat conftest.er1 >&5
2813 rm -f conftest.er1 conftest.err
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }
2816 done
2818 EXEEXT=
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2820 $as_echo_n "checking for suffix of object files... " >&6; }
2821 if ${ac_cv_objext+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.o conftest.obj
2836 if { { ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842 $as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compile") 2>&5
2844 ac_status=$?
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }; then :
2847 for ac_file in conftest.o conftest.obj conftest.*; do
2848 test -f "$ac_file" || continue;
2849 case $ac_file in
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2852 break;;
2853 esac
2854 done
2855 else
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details" "$LINENO" 5; }
2864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2867 $as_echo "$ac_cv_objext" >&6; }
2868 OBJEXT=$ac_cv_objext
2869 ac_objext=$OBJEXT
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2872 if ${ac_cv_c_compiler_gnu+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2879 main ()
2881 #ifndef __GNUC__
2882 choke me
2883 #endif
2886 return 0;
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_compiler_gnu=yes
2891 else
2892 ac_compiler_gnu=no
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2900 if test $ac_compiler_gnu = yes; then
2901 GCC=yes
2902 else
2903 GCC=
2905 ac_test_CFLAGS=${CFLAGS+set}
2906 ac_save_CFLAGS=$CFLAGS
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2909 if ${ac_cv_prog_cc_g+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 ac_save_c_werror_flag=$ac_c_werror_flag
2913 ac_c_werror_flag=yes
2914 ac_cv_prog_cc_g=no
2915 CFLAGS="-g"
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2920 main ()
2924 return 0;
2926 _ACEOF
2927 if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_cv_prog_cc_g=yes
2929 else
2930 CFLAGS=""
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2935 main ()
2939 return 0;
2941 _ACEOF
2942 if ac_fn_c_try_compile "$LINENO"; then :
2944 else
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2946 CFLAGS="-g"
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2951 main ()
2955 return 0;
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_cv_prog_cc_g=yes
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ac_c_werror_flag=$ac_save_c_werror_flag
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2969 $as_echo "$ac_cv_prog_cc_g" >&6; }
2970 if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2974 CFLAGS="-g -O2"
2975 else
2976 CFLAGS="-g"
2978 else
2979 if test "$GCC" = yes; then
2980 CFLAGS="-O2"
2981 else
2982 CFLAGS=
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test $host != $build; then
2993 for ac_prog in gcc cc
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_BUILD_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$BUILD_CC"; then
3003 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_BUILD_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 BUILD_CC=$ac_cv_prog_BUILD_CC
3023 if test -n "$BUILD_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3025 $as_echo "$BUILD_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$BUILD_CC" && break
3033 done
3037 # On Suns, sometimes $CPP names a directory.
3038 if test -n "$CPP" && test -d "$CPP"; then
3039 CPP=
3041 if test -z "$CPP"; then
3042 CPP="$CC -E"
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_READELF+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$READELF"; then
3054 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 READELF=$ac_cv_prog_READELF
3074 if test -n "$READELF"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3076 $as_echo "$READELF" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_READELF"; then
3085 ac_ct_READELF=$READELF
3086 # Extract the first word of "readelf", so it can be a program name with args.
3087 set dummy readelf; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$ac_ct_READELF"; then
3094 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_READELF="readelf"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3114 if test -n "$ac_ct_READELF"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3116 $as_echo "$ac_ct_READELF" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_READELF" = x; then
3123 READELF="false"
3124 else
3125 case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131 READELF=$ac_ct_READELF
3133 else
3134 READELF="$ac_cv_prog_READELF"
3138 # We need the C++ compiler only for testing.
3139 ac_ext=cpp
3140 ac_cpp='$CXXCPP $CPPFLAGS'
3141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3144 if test -z "$CXX"; then
3145 if test -n "$CCC"; then
3146 CXX=$CCC
3147 else
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CXX+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$CXX"; then
3159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3172 done
3173 done
3174 IFS=$as_save_IFS
3178 CXX=$ac_cv_prog_CXX
3179 if test -n "$CXX"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3181 $as_echo "$CXX" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$CXX" && break
3189 done
3191 if test -z "$CXX"; then
3192 ac_ct_CXX=$CXX
3193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$ac_ct_CXX"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_CXX="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223 if test -n "$ac_ct_CXX"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3225 $as_echo "$ac_ct_CXX" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$ac_ct_CXX" && break
3233 done
3235 if test "x$ac_ct_CXX" = x; then
3236 CXX="g++"
3237 else
3238 case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244 CXX=$ac_ct_CXX
3250 # Provide some information about the compiler.
3251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3252 set X $ac_compile
3253 ac_compiler=$2
3254 for ac_option in --version -v -V -qversion; do
3255 { { ac_try="$ac_compiler $ac_option >&5"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263 ac_status=$?
3264 if test -s conftest.err; then
3265 sed '10a\
3266 ... rest of stderr output deleted ...
3267 10q' conftest.err >conftest.er1
3268 cat conftest.er1 >&5
3270 rm -f conftest.er1 conftest.err
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 done
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3277 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3286 #ifndef __GNUC__
3287 choke me
3288 #endif
3291 return 0;
3293 _ACEOF
3294 if ac_fn_cxx_try_compile "$LINENO"; then :
3295 ac_compiler_gnu=yes
3296 else
3297 ac_compiler_gnu=no
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3306 GXX=yes
3307 else
3308 GXX=
3310 ac_test_CXXFLAGS=${CXXFLAGS+set}
3311 ac_save_CXXFLAGS=$CXXFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3314 if ${ac_cv_prog_cxx_g+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3318 ac_cxx_werror_flag=yes
3319 ac_cv_prog_cxx_g=no
3320 CXXFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 if ac_fn_cxx_try_compile "$LINENO"; then :
3333 ac_cv_prog_cxx_g=yes
3334 else
3335 CXXFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3344 return 0;
3346 _ACEOF
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3349 else
3350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3351 CXXFLAGS="-g"
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3356 main ()
3360 return 0;
3362 _ACEOF
3363 if ac_fn_cxx_try_compile "$LINENO"; then :
3364 ac_cv_prog_cxx_g=yes
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3374 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3375 if test "$ac_test_CXXFLAGS" = set; then
3376 CXXFLAGS=$ac_save_CXXFLAGS
3377 elif test $ac_cv_prog_cxx_g = yes; then
3378 if test "$GXX" = yes; then
3379 CXXFLAGS="-g -O2"
3380 else
3381 CXXFLAGS="-g"
3383 else
3384 if test "$GXX" = yes; then
3385 CXXFLAGS="-O2"
3386 else
3387 CXXFLAGS=
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3399 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3400 if ${libc_cv_cxx_link_ok+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_ext=cpp
3404 ac_cpp='$CXXCPP $CPPFLAGS'
3405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3413 main ()
3417 return 0;
3419 _ACEOF
3420 if ac_fn_cxx_try_link "$LINENO"; then :
3421 libc_cv_cxx_link_ok=yes
3422 else
3423 libc_cv_cxx_link_ok=no
3425 rm -f core conftest.err conftest.$ac_objext \
3426 conftest$ac_exeext conftest.$ac_ext
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3435 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3436 if test $libc_cv_cxx_link_ok != yes; then :
3437 CXX=
3440 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3441 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3444 # This will get text that should go into config.make.
3445 config_vars=
3447 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3449 # Check whether --with-gd was given.
3450 if test "${with_gd+set}" = set; then :
3451 withval=$with_gd; case "$with_gd" in
3452 yes|''|no) ;;
3453 *) libgd_include="-I$withval/include"
3454 libgd_ldflags="-L$withval/lib" ;;
3455 esac
3460 # Check whether --with-gd-include was given.
3461 if test "${with_gd_include+set}" = set; then :
3462 withval=$with_gd_include; case "$with_gd_include" in
3463 ''|no) ;;
3464 *) libgd_include="-I$withval" ;;
3465 esac
3470 # Check whether --with-gd-lib was given.
3471 if test "${with_gd_lib+set}" = set; then :
3472 withval=$with_gd_lib; case "$with_gd_lib" in
3473 ''|no) ;;
3474 *) libgd_ldflags="-L$withval" ;;
3475 esac
3480 if test -n "$libgd_include"; then
3481 config_vars="$config_vars
3482 CFLAGS-memusagestat.c = $libgd_include"
3484 if test -n "$libgd_ldflags"; then
3485 config_vars="$config_vars
3486 libgd-LDFLAGS = $libgd_ldflags"
3490 # Check whether --with-fp was given.
3491 if test "${with_fp+set}" = set; then :
3492 withval=$with_fp; with_fp=$withval
3493 else
3494 with_fp=yes
3499 # Check whether --with-binutils was given.
3500 if test "${with_binutils+set}" = set; then :
3501 withval=$with_binutils; path_binutils=$withval
3502 else
3503 path_binutils=''
3507 # Check whether --with-selinux was given.
3508 if test "${with_selinux+set}" = set; then :
3509 withval=$with_selinux; with_selinux=$withval
3510 else
3511 with_selinux=auto
3516 # Check whether --with-headers was given.
3517 if test "${with_headers+set}" = set; then :
3518 withval=$with_headers; sysheaders=$withval
3519 else
3520 sysheaders=''
3527 # Check whether --with-default-link was given.
3528 if test "${with_default_link+set}" = set; then :
3529 withval=$with_default_link; use_default_link=$withval
3530 else
3531 use_default_link=default
3535 # Check whether --enable-sanity-checks was given.
3536 if test "${enable_sanity_checks+set}" = set; then :
3537 enableval=$enable_sanity_checks; enable_sanity=$enableval
3538 else
3539 enable_sanity=yes
3543 # Check whether --enable-shared was given.
3544 if test "${enable_shared+set}" = set; then :
3545 enableval=$enable_shared; shared=$enableval
3546 else
3547 shared=yes
3550 # Check whether --enable-profile was given.
3551 if test "${enable_profile+set}" = set; then :
3552 enableval=$enable_profile; profile=$enableval
3553 else
3554 profile=no
3557 # Check whether --enable-timezone-tools was given.
3558 if test "${enable_timezone_tools+set}" = set; then :
3559 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3560 else
3561 enable_timezone_tools=yes
3566 # Check whether --enable-hardcoded-path-in-tests was given.
3567 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3568 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3569 else
3570 hardcoded_path_in_tests=no
3575 # Check whether --enable-stackguard-randomization was given.
3576 if test "${enable_stackguard_randomization+set}" = set; then :
3577 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3578 else
3579 enable_stackguard_randomize=no
3582 if test "$enable_stackguard_randomize" = yes; then
3583 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3587 # Check whether --enable-lock-elision was given.
3588 if test "${enable_lock_elision+set}" = set; then :
3589 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3590 else
3591 enable_lock_elision=no
3595 if test "$enable_lock_elision" = yes ; then
3596 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3600 # Check whether --enable-add-ons was given.
3601 if test "${enable_add_ons+set}" = set; then :
3602 enableval=$enable_add_ons;
3603 else
3604 enable_add_ons=yes
3608 # Check whether --enable-hidden-plt was given.
3609 if test "${enable_hidden_plt+set}" = set; then :
3610 enableval=$enable_hidden_plt; hidden=$enableval
3611 else
3612 hidden=yes
3615 if test "x$hidden" = xno; then
3616 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3620 # Check whether --enable-bind-now was given.
3621 if test "${enable_bind_now+set}" = set; then :
3622 enableval=$enable_bind_now; bindnow=$enableval
3623 else
3624 bindnow=no
3629 # Check whether --enable-static-nss was given.
3630 if test "${enable_static_nss+set}" = set; then :
3631 enableval=$enable_static_nss; static_nss=$enableval
3632 else
3633 static_nss=no
3636 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3637 static_nss=yes
3638 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3642 # Check whether --enable-force-install was given.
3643 if test "${enable_force_install+set}" = set; then :
3644 enableval=$enable_force_install; force_install=$enableval
3645 else
3646 force_install=yes
3651 # Check whether --enable-maintainer-mode was given.
3652 if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval=$enable_maintainer_mode; maintainer=$enableval
3654 else
3655 maintainer=no
3659 # Check whether --enable-kernel was given.
3660 if test "${enable_kernel+set}" = set; then :
3661 enableval=$enable_kernel; minimum_kernel=$enableval
3664 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3665 # Better nothing than this.
3666 minimum_kernel=""
3667 else
3668 if test "$minimum_kernel" = current; then
3669 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3673 # Check whether --enable-all-warnings was given.
3674 if test "${enable_all_warnings+set}" = set; then :
3675 enableval=$enable_all_warnings; all_warnings=$enableval
3680 # Check whether --enable-werror was given.
3681 if test "${enable_werror+set}" = set; then :
3682 enableval=$enable_werror; enable_werror=$enableval
3683 else
3684 enable_werror=yes
3689 # Check whether --enable-multi-arch was given.
3690 if test "${enable_multi_arch+set}" = set; then :
3691 enableval=$enable_multi_arch; multi_arch=$enableval
3692 else
3693 multi_arch=default
3697 # Check whether --enable-nss-crypt was given.
3698 if test "${enable_nss_crypt+set}" = set; then :
3699 enableval=$enable_nss_crypt; nss_crypt=$enableval
3700 else
3701 nss_crypt=no
3704 if test x$nss_crypt = xyes; then
3705 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3706 if test $? -ne 0; then
3707 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3709 old_CFLAGS="$CFLAGS"
3710 CFLAGS="$CFLAGS $nss_includes"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3714 typedef int PRBool;
3715 #include <hasht.h>
3716 #include <nsslowhash.h>
3717 void f (void) { NSSLOW_Init (); }
3719 main ()
3723 return 0;
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 libc_cv_nss_crypt=yes
3728 else
3729 as_fn_error $? "
3730 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 old_LIBS="$LIBS"
3734 LIBS="$LIBS -lfreebl3"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 typedef int PRBool;
3738 #include <hasht.h>
3739 #include <nsslowhash.h>
3741 main ()
3743 NSSLOW_Init();
3745 return 0;
3747 _ACEOF
3748 if ac_fn_c_try_link "$LINENO"; then :
3749 libc_cv_nss_crypt=yes
3750 else
3751 as_fn_error $? "
3752 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3754 rm -f core conftest.err conftest.$ac_objext \
3755 conftest$ac_exeext conftest.$ac_ext
3756 CFLAGS="$old_CFLAGS"
3757 LIBS="$old_LIBS"
3758 else
3759 libc_cv_nss_crypt=no
3764 # Check whether --enable-obsolete-rpc was given.
3765 if test "${enable_obsolete_rpc+set}" = set; then :
3766 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3767 else
3768 link_obsolete_rpc=no
3773 if test "$link_obsolete_rpc" = yes; then
3774 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3778 # Check whether --enable-systemtap was given.
3779 if test "${enable_systemtap+set}" = set; then :
3780 enableval=$enable_systemtap; systemtap=$enableval
3781 else
3782 systemtap=no
3785 if test "x$systemtap" != xno; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3787 $as_echo_n "checking for systemtap static probe support... " >&6; }
3788 if ${libc_cv_sdt+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 old_CFLAGS="$CFLAGS"
3792 CFLAGS="-std=gnu99 $CFLAGS"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <sys/sdt.h>
3796 void foo (int i, void *p)
3798 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3799 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 libc_cv_sdt=yes
3804 else
3805 libc_cv_sdt=no
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 CFLAGS="$old_CFLAGS"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3811 $as_echo "$libc_cv_sdt" >&6; }
3812 if test $libc_cv_sdt = yes; then
3813 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3815 elif test "x$systemtap" != xauto; then
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3819 See \`config.log' for more details" "$LINENO" 5; }
3823 # Check whether --enable-build-nscd was given.
3824 if test "${enable_build_nscd+set}" = set; then :
3825 enableval=$enable_build_nscd; build_nscd=$enableval
3826 else
3827 build_nscd=default
3832 # Note the use of $use_nscd is near the bottom of the file.
3833 # Check whether --enable-nscd was given.
3834 if test "${enable_nscd+set}" = set; then :
3835 enableval=$enable_nscd; use_nscd=$enableval
3836 else
3837 use_nscd=yes
3841 # Check whether --enable-pt_chown was given.
3842 if test "${enable_pt_chown+set}" = set; then :
3843 enableval=$enable_pt_chown; build_pt_chown=$enableval
3844 else
3845 build_pt_chown=no
3849 if test "$build_pt_chown" = yes; then
3850 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3854 # The abi-tags file uses a fairly simplistic model for name recognition that
3855 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3856 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3857 # This doesn't get used much beyond that, so it's fairly safe.
3858 case "$host_os" in
3859 linux*)
3861 gnu*)
3862 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3864 esac
3866 # Check whether --enable-mathvec was given.
3867 if test "${enable_mathvec+set}" = set; then :
3868 enableval=$enable_mathvec; build_mathvec=$enableval
3869 else
3870 build_mathvec=notset
3874 # We keep the original values in `$config_*' and never modify them, so we
3875 # can write them unchanged into config.make. Everything else uses
3876 # $machine, $vendor, and $os, and changes them whenever convenient.
3877 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3879 # Don't allow vendor == "unknown"
3880 test "$config_vendor" = unknown && config_vendor=
3881 config_os="`echo $config_os | sed 's/^unknown-//'`"
3883 # Some configurations imply other options.
3884 elf=yes
3886 # The configure fragment of an add-on port can modify these to supplement
3887 # or override the table in the case statement below. No fragment should
3888 # ever change the config_* variables, however.
3889 machine=$config_machine
3890 vendor=$config_vendor
3891 os=$config_os
3892 base_os=''
3894 submachine=
3896 # Check whether --with-cpu was given.
3897 if test "${with_cpu+set}" = set; then :
3898 withval=$with_cpu; case "$withval" in
3899 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3900 no) ;;
3901 *) submachine="$withval" ;;
3902 esac
3907 # An preconfigure script can set this when it wants to disable the sanity
3908 # check below.
3909 libc_config_ok=no
3911 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3912 then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3914 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3915 for frag in $frags; do
3916 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3917 echo $ECHO_N "$name $ECHO_C" >&6
3918 . "$frag"
3919 done
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3921 $as_echo "" >&6; }
3924 subdirs="$subdirs "
3927 case "$enable_add_ons" in
3928 ''|no) add_ons= ;;
3929 yes|'*')
3930 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3931 sed 's@/[^/]*$@@' | sort | uniq`
3932 add_ons_automatic=yes
3934 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3935 add_ons_automatic=no ;;
3936 esac
3938 configured_add_ons=
3939 add_ons_sfx=
3940 add_ons_pfx=
3941 if test x"$add_ons" != x; then
3942 for f in $add_ons; do
3943 # Some sanity checks
3944 case "$f" in
3945 crypt)
3946 as_fn_error $? "
3947 *** It seems that you're using an old \`crypt' add-on. crypt is now
3948 *** part of glibc and using the old add-on will not work with this
3949 *** release. Start again with fresh sources and without the old
3950 *** \`crypt' add-on." "$LINENO" 5
3952 localedata)
3953 as_fn_error $? "
3954 *** It seems that you're using an old \`localedata' add-on. localedata
3955 *** is now part of glibc and using the old add-on will not work with
3956 *** this release. Start again with fresh sources and without the old
3957 *** \`localedata' add-on." "$LINENO" 5
3959 esac
3960 done
3962 # Now source each add-on's configure fragment.
3963 # The fragments can use $srcdir/$libc_add_on to find themselves,
3964 # and test $add_ons_automatic to see if they were explicitly requested.
3965 # A fragment can clear (or even change) $libc_add_on to affect
3966 # whether it goes into the list to be actually used in the build.
3967 use_add_ons=
3968 for libc_add_on in $add_ons; do
3969 # Test whether such a directory really exists.
3970 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3971 case "$libc_add_on" in
3973 libc_add_on_srcdir=$libc_add_on
3976 test -d "$srcdir/$libc_add_on" || {
3977 if test -d "$libc_add_on"; then
3978 libc_add_on="`pwd`/$libc_add_on"
3979 else
3980 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3983 libc_add_on_srcdir=$srcdir/$libc_add_on
3985 esac
3987 libc_add_on_frag=$libc_add_on_srcdir/configure
3988 libc_add_on_canonical=
3989 libc_add_on_config_subdirs=
3990 if test -r "$libc_add_on_frag"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3992 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3993 libc_add_on_canonical=unknown
3994 libc_add_on_subdirs=
3995 . "$libc_add_on_frag"
3996 test -z "$libc_add_on" || {
3997 configured_add_ons="$configured_add_ons $libc_add_on"
3998 if test "x$libc_add_on_canonical" = xunknown; then
3999 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
4001 for d in $libc_add_on_subdirs; do
4002 case "$libc_add_on" in
4003 /*) subdir_srcdir="$libc_add_on" ;;
4004 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4005 esac
4006 case "$d" in
4008 d="${libc_add_on_canonical:-$libc_add_on}"
4011 subdir_srcdir="$d"
4014 subdir_srcdir="$subdir_srcdir/$d"
4016 esac
4017 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4018 add_on_subdirs="$add_on_subdirs $d"
4019 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4020 $d-srcdir = $subdir_srcdir"
4021 done
4022 for d in $libc_add_on_config_subdirs; do
4023 case "$d" in
4024 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4025 esac
4026 if test ! -d "$libc_add_on_srcdir/$d"; then
4027 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
4029 case "$libc_add_on" in
4030 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4031 esac
4032 subdirs="$subdirs $libc_add_on/$d"
4033 done
4036 if test -n "$libc_add_on"; then
4037 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4038 then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4040 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4041 for frag in $frags; do
4042 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4043 echo $ECHO_N "$name $ECHO_C" >&6
4044 . "$frag"
4045 done
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4047 $as_echo "" >&6; }
4049 use_add_ons="$use_add_ons $libc_add_on"
4050 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4051 test -z "$libc_add_on_canonical" ||
4052 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4054 done
4055 # Use echo to strip excess whitespace.
4056 add_ons="`echo $use_add_ons`"
4063 ### I put this here to prevent those annoying emails from people who cannot
4064 ### read and try to compile glibc on unsupported platforms. --drepper
4066 ### By using the undocumented --enable-hacker-mode option for configure
4067 ### one can skip this test to make the configuration not fail for unsupported
4068 ### platforms.
4070 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4071 case "$machine-$host_os" in
4072 *-linux* | *-gnu*)
4075 echo "*** The GNU C library is currently not available for this platform."
4076 echo "*** So far nobody cared to port it and if there is no volunteer it"
4077 echo "*** might never happen. So, if you have interest to see glibc on"
4078 echo "*** this platform visit"
4079 echo "*** http://www.gnu.org/software/libc/porting.html"
4080 echo "*** and join the group of porters"
4081 exit 1
4083 esac
4086 # Set base_machine if not set by a preconfigure fragment.
4087 test -n "$base_machine" || base_machine=$machine
4090 # For the multi-arch option we need support in the assembler & linker.
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4092 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4093 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 cat > conftest.S <<EOF
4097 .type foo,%gnu_indirect_function
4098 foo:
4099 .globl _start
4100 _start:
4101 .globl __start
4102 __start:
4103 .data
4104 #ifdef _LP64
4105 .quad foo
4106 #else
4107 .long foo
4108 #endif
4110 libc_cv_ld_gnu_indirect_function=no
4111 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4112 -nostartfiles -nostdlib \
4113 -o conftest conftest.S 1>&5 2>&5; then
4114 # Do a link to see if the backend supports IFUNC relocs.
4115 $READELF -r conftest 1>&5
4116 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
4117 libc_cv_ld_gnu_indirect_function=yes
4120 rm -f conftest*
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4123 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4126 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4127 if ${libc_cv_dot_text+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 cat > conftest.s <<EOF
4131 .text
4133 libc_cv_dot_text=
4134 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 libc_cv_dot_text=.text
4142 rm -f conftest*
4145 if test -z "$libc_cv_dot_text"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4153 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
4154 if test x"$multi_arch" = xyes; then
4155 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4156 else
4157 multi_arch=no
4160 multi_arch_d=
4161 if test x"$multi_arch" != xno; then
4162 multi_arch_d=/multiarch
4165 # Compute the list of sysdep directories for this configuration.
4166 # This can take a while to compute.
4167 sysdep_dir=$srcdir/sysdeps
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4169 $as_echo_n "checking sysdep dirs... " >&6; }
4170 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4171 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4173 test "x$base_os" != x || case "$os" in
4174 gnu*)
4175 base_os=mach/hurd ;;
4176 linux*)
4177 base_os=unix/sysv ;;
4178 esac
4180 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4181 tail=$os
4182 ostry=$os
4183 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4184 ostry="$ostry /$o"
4185 tail=$o
4186 done
4187 o=`echo $tail | sed 's/[0-9]*$//'`
4188 if test $o != $tail; then
4189 ostry="$ostry /$o"
4191 # For linux-gnu, try linux-gnu, then linux.
4192 o=`echo $tail | sed 's/-.*$//'`
4193 if test $o != $tail; then
4194 ostry="$ostry /$o"
4197 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4198 base=
4199 tail=$base_os
4200 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4201 set $b
4202 base="$base /$1"
4203 tail="$2"
4204 done
4206 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4207 mach=
4208 tail=$machine${submachine:+/$submachine}
4209 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4210 set $m
4211 # Prepend the machine's FPU directory unless --without-fp.
4212 if test "$with_fp" = yes; then
4213 maybe_fpu=/fpu
4214 else
4215 maybe_fpu=/nofpu
4217 # For each machine term, try it with and then without /multiarch.
4218 for try_fpu in $maybe_fpu ''; do
4219 for try_multi in $multi_arch_d ''; do
4220 mach="$mach /$1$try_fpu$try_multi"
4221 done
4222 done
4223 tail="$2"
4224 done
4227 # Find what sysdep directories exist.
4228 sysnames_add_ons=
4229 sysnames=
4230 for b in $base ''; do
4231 for m0 in $mach ''; do
4232 for v in /$vendor ''; do
4233 test "$v" = / && continue
4234 for o in /$ostry ''; do
4235 test "$o" = / && continue
4236 for m in $mach ''; do
4237 for d in $add_ons_pfx ''; do
4238 for a in $add_ons_sfx ''; do
4239 try_suffix="$m0$b$v$o$m"
4240 if test -n "$try_suffix"; then
4241 try_srcdir="${srcdir}/"
4242 case "$d" in
4243 /*) try_srcdir= ;;
4244 esac
4245 try="${d}sysdeps$try_suffix$a"
4246 test -n "$enable_debug_configure" &&
4247 echo "$0 DEBUG: try $try" >&2
4248 if test -d "$try_srcdir$try"; then
4249 sysnames="$sysnames $try"
4250 { test -n "$o" || test -n "$b"; } && os_used=t
4251 { test -n "$m" || test -n "$m0"; } && machine_used=t
4252 case x${m0:-$m} in
4253 x*/$submachine) submachine_used=t ;;
4254 esac
4255 if test -n "$d"; then
4256 case "$sysnames_add_ons" in
4257 *" $d "*) ;;
4258 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4259 esac
4263 done
4264 done
4265 done
4266 done
4267 done
4268 done
4269 done
4271 # If the assembler supports gnu_indirect_function symbol type and the
4272 # architecture supports multi-arch, we enable multi-arch by default.
4273 case $sysnames_add_ons$sysnames in
4274 *"$multi_arch_d"*)
4277 test x"$multi_arch" = xdefault && multi_arch=no
4279 esac
4280 if test x"$multi_arch" != xno; then
4281 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4286 if test -z "$os_used" && test "$os" != none; then
4287 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4289 if test -z "$machine_used" && test "$machine" != none; then
4290 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4292 if test -z "$submachine_used" && test -n "$submachine"; then
4293 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4297 # We have now validated the configuration.
4299 # Expand the list of system names into a full list of directories
4300 # from each element's parent name and Implies file (if present).
4301 set $sysnames
4302 names=
4303 while test $# -gt 0; do
4304 name=$1
4305 shift
4307 case " $names " in *" $name "*)
4308 # Already in the list.
4309 continue
4310 esac
4312 # Report each name as we discover it, so there is no long pause in output.
4313 echo $ECHO_N "$name $ECHO_C" >&6
4315 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4317 case $name in
4318 /*) xsrcdir= ;;
4319 *) xsrcdir=$srcdir/ ;;
4320 esac
4321 test -n "$enable_debug_configure" &&
4322 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4324 for implies_file in Implies Implies-before Implies-after; do
4325 implies_type=`echo $implies_file | sed s/-/_/`
4326 eval ${implies_type}=
4327 if test -f $xsrcdir$name/$implies_file; then
4328 # Collect more names from the `Implies' file (removing comments).
4329 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4330 for x in $implied_candidate; do
4331 found=no
4332 if test -d $xsrcdir$name_base/$x; then
4333 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4334 found=yes
4336 for d in $add_ons_pfx ''; do
4337 try="${d}sysdeps/$x"
4338 case $d in
4339 /*) try_srcdir= ;;
4340 *) try_srcdir=$srcdir/ ;;
4341 esac
4342 test -n "$enable_debug_configure" &&
4343 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4344 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4345 then
4346 eval "${implies_type}=\"\$${implies_type} \$try\""
4347 found=yes
4348 case "$sysnames_add_ons" in
4349 *" $d "*) ;;
4350 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4351 esac
4353 done
4354 if test $found = no; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4356 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4358 done
4360 done
4362 # Add NAME to the list of names.
4363 names="$names $name"
4365 # Find the parent of NAME, using the empty string if it has none.
4366 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4368 test -n "$enable_debug_configure" &&
4369 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4370 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4372 # Add the names implied by NAME, and NAME's parent (if it has one), to
4373 # the list of names to be processed (the argument list). We prepend the
4374 # implied names to the list and append the parent. We want implied
4375 # directories to come before further directories inferred from the
4376 # configuration components; this ensures that for sysv4, unix/common
4377 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4378 # after sysv4).
4379 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4380 test -n "$sysnames" && set $sysnames
4381 done
4383 # Add the default directories.
4384 default_sysnames="sysdeps/generic"
4385 sysnames="$names $default_sysnames"
4387 # The other names were emitted during the scan.
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4389 $as_echo "$default_sysnames" >&6; }
4391 # Collect the list of add-ons that supply partial sysdeps trees.
4392 sysdeps_add_ons=
4393 for add_on in $add_ons; do
4394 case "$add_on" in
4395 /*) xsrcdir= ;;
4396 *) xsrcdir="$srcdir/" ;;
4397 esac
4399 test -d "$xsrcdir$add_on/sysdeps" || {
4400 case "$configured_add_ons " in
4401 *" $add_on "*) ;;
4402 *|'')
4403 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4405 esac
4406 continue
4409 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4410 case "$sysnames_add_ons" in
4411 *" $add_on/ "*) ;;
4412 *|'')
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4414 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4415 continue ;;
4416 esac
4418 found=no
4419 for d in $sysnames; do
4420 case "$d" in
4421 $add_on/sysdeps/*) ;;
4422 *) continue ;;
4423 esac
4424 (cd "$xsrcdir$d" && for f in *[!~]; do
4425 case "$f" in
4426 sys|bits)
4427 for ff in $f/*.h; do
4428 test -d "$ff" || { test -e "$ff" && exit 88; }
4429 done
4432 test -d "$f" || { test -e "$f" && exit 88; }
4434 esac
4435 done)
4436 if test $? -eq 88; then
4437 found=yes
4438 break
4440 done
4441 if test $found = no; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4443 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4445 done
4449 ### Locate tools.
4451 # Find a good install program. We prefer a C program (faster),
4452 # so one script is as good as another. But avoid the broken or
4453 # incompatible versions:
4454 # SysV /etc/install, /usr/sbin/install
4455 # SunOS /usr/etc/install
4456 # IRIX /sbin/install
4457 # AIX /bin/install
4458 # AmigaOS /C/install, which installs bootblocks on floppy discs
4459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4462 # OS/2's system install, which has a completely different semantic
4463 # ./install, which can be erroneously created by make from ./install.sh.
4464 # Reject install programs that cannot install multiple files.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4467 if test -z "$INSTALL"; then
4468 if ${ac_cv_path_install+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 # Account for people who put trailing slashes in PATH elements.
4477 case $as_dir/ in #((
4478 ./ | .// | /[cC]/* | \
4479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4481 /usr/ucb/* ) ;;
4483 # OSF1 and SCO ODT 3.0 have their own names for install.
4484 # Don't use installbsd from OSF since it installs stuff as root
4485 # by default.
4486 for ac_prog in ginstall scoinst install; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4489 if test $ac_prog = install &&
4490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4491 # AIX install. It has an incompatible calling convention.
4493 elif test $ac_prog = install &&
4494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # program-specific install script used by HP pwplus--don't use.
4497 else
4498 rm -rf conftest.one conftest.two conftest.dir
4499 echo one > conftest.one
4500 echo two > conftest.two
4501 mkdir conftest.dir
4502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4503 test -s conftest.one && test -s conftest.two &&
4504 test -s conftest.dir/conftest.one &&
4505 test -s conftest.dir/conftest.two
4506 then
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4512 done
4513 done
4515 esac
4517 done
4518 IFS=$as_save_IFS
4520 rm -rf conftest.one conftest.two conftest.dir
4523 if test "${ac_cv_path_install+set}" = set; then
4524 INSTALL=$ac_cv_path_install
4525 else
4526 # As a last resort, use the slow shell script. Don't cache a
4527 # value for INSTALL within a source directory, because that will
4528 # break other packages using the cache if that directory is
4529 # removed, or if the value is a relative name.
4530 INSTALL=$ac_install_sh
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4534 $as_echo "$INSTALL" >&6; }
4536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4537 # It thinks the first close brace ends the variable substitution.
4538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4544 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4545 # The makefiles need to use a different form to find it in $srcdir.
4546 INSTALL='\$(..)./scripts/install-sh -c'
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4549 $as_echo_n "checking whether ln -s works... " >&6; }
4550 LN_S=$as_ln_s
4551 if test "$LN_S" = "ln -s"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4556 $as_echo "no, using $LN_S" >&6; }
4560 # Was a --with-binutils option given?
4561 if test -n "$path_binutils"; then
4562 # Make absolute; ensure a single trailing slash.
4563 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4564 CC="$CC -B$path_binutils"
4566 AS=`$CC -print-prog-name=as`
4567 LD=`$CC -print-prog-name=ld`
4568 AR=`$CC -print-prog-name=ar`
4570 OBJDUMP=`$CC -print-prog-name=objdump`
4572 OBJCOPY=`$CC -print-prog-name=objcopy`
4575 # Determine whether we are using GNU binutils.
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4577 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4578 if ${libc_cv_prog_as_gnu+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 # Most GNU programs take a -v and spit out some text including
4582 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4583 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4584 libc_cv_prog_as_gnu=yes
4585 else
4586 libc_cv_prog_as_gnu=no
4588 rm -fr contest*
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4591 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4592 rm -f a.out
4593 gnu_as=$libc_cv_prog_as_gnu
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4596 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4597 if ${libc_cv_prog_ld_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 # Most GNU programs take a -v and spit out some text including
4601 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4602 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4603 libc_cv_prog_ld_gnu=yes
4604 else
4605 libc_cv_prog_ld_gnu=no
4607 rm -fr contest*
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4610 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4611 gnu_ld=$libc_cv_prog_ld_gnu
4614 # Accept binutils 2.22 or newer.
4615 for ac_prog in $AS
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_AS+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$AS"; then
4625 ac_cv_prog_AS="$AS" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_AS="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 AS=$ac_cv_prog_AS
4645 if test -n "$AS"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4647 $as_echo "$AS" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 test -n "$AS" && break
4655 done
4657 if test -z "$AS"; then
4658 ac_verc_fail=yes
4659 else
4660 # Found it, now check the version.
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4662 $as_echo_n "checking version of $AS... " >&6; }
4663 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4664 case $ac_prog_version in
4665 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4666 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4667 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4668 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4670 esac
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4672 $as_echo "$ac_prog_version" >&6; }
4674 if test $ac_verc_fail = yes; then
4675 AS=: critic_missing="$critic_missing as"
4678 for ac_prog in $LD
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_LD+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$LD"; then
4688 ac_cv_prog_LD="$LD" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_LD="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 LD=$ac_cv_prog_LD
4708 if test -n "$LD"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4710 $as_echo "$LD" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$LD" && break
4718 done
4720 if test -z "$LD"; then
4721 ac_verc_fail=yes
4722 else
4723 # Found it, now check the version.
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4725 $as_echo_n "checking version of $LD... " >&6; }
4726 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4727 case $ac_prog_version in
4728 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4729 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4730 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4731 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4733 esac
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4735 $as_echo "$ac_prog_version" >&6; }
4737 if test $ac_verc_fail = yes; then
4738 LD=: critic_missing="$critic_missing ld"
4742 # These programs are version sensitive.
4744 for ac_prog in gnumake gmake make
4746 # Extract the first word of "$ac_prog", so it can be a program name with args.
4747 set dummy $ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_MAKE+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$MAKE"; then
4754 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_MAKE="$ac_prog"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4769 IFS=$as_save_IFS
4773 MAKE=$ac_cv_prog_MAKE
4774 if test -n "$MAKE"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4776 $as_echo "$MAKE" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 test -n "$MAKE" && break
4784 done
4786 if test -z "$MAKE"; then
4787 ac_verc_fail=yes
4788 else
4789 # Found it, now check the version.
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4791 $as_echo_n "checking version of $MAKE... " >&6; }
4792 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4793 case $ac_prog_version in
4794 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4795 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4796 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4797 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4799 esac
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4801 $as_echo "$ac_prog_version" >&6; }
4803 if test $ac_verc_fail = yes; then
4804 critic_missing="$critic_missing make"
4808 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4810 # Extract the first word of "$ac_prog", so it can be a program name with args.
4811 set dummy $ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_MSGFMT+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$MSGFMT"; then
4818 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_MSGFMT="$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 MSGFMT=$ac_cv_prog_MSGFMT
4838 if test -n "$MSGFMT"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4840 $as_echo "$MSGFMT" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$MSGFMT" && break
4848 done
4850 if test -z "$MSGFMT"; then
4851 ac_verc_fail=yes
4852 else
4853 # Found it, now check the version.
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4855 $as_echo_n "checking version of $MSGFMT... " >&6; }
4856 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4857 case $ac_prog_version in
4858 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4859 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4860 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4861 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4863 esac
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4865 $as_echo "$ac_prog_version" >&6; }
4867 if test $ac_verc_fail = yes; then
4868 MSGFMT=: aux_missing="$aux_missing msgfmt"
4871 for ac_prog in makeinfo
4873 # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_MAKEINFO+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$MAKEINFO"; then
4881 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_MAKEINFO="$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4900 MAKEINFO=$ac_cv_prog_MAKEINFO
4901 if test -n "$MAKEINFO"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4903 $as_echo "$MAKEINFO" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4910 test -n "$MAKEINFO" && break
4911 done
4913 if test -z "$MAKEINFO"; then
4914 ac_verc_fail=yes
4915 else
4916 # Found it, now check the version.
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4918 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4919 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4920 case $ac_prog_version in
4921 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4922 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4923 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4924 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4926 esac
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4928 $as_echo "$ac_prog_version" >&6; }
4930 if test $ac_verc_fail = yes; then
4931 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4934 for ac_prog in sed
4936 # Extract the first word of "$ac_prog", so it can be a program name with args.
4937 set dummy $ac_prog; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_SED+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$SED"; then
4944 ac_cv_prog_SED="$SED" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_SED="$ac_prog"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 SED=$ac_cv_prog_SED
4964 if test -n "$SED"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4966 $as_echo "$SED" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 test -n "$SED" && break
4974 done
4976 if test -z "$SED"; then
4977 ac_verc_fail=yes
4978 else
4979 # Found it, now check the version.
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4981 $as_echo_n "checking version of $SED... " >&6; }
4982 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4983 case $ac_prog_version in
4984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4985 3.0[2-9]*|3.[1-9]*|[4-9]*)
4986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4989 esac
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4991 $as_echo "$ac_prog_version" >&6; }
4993 if test $ac_verc_fail = yes; then
4994 SED=: aux_missing="$aux_missing sed"
4997 for ac_prog in gawk
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_AWK+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$AWK"; then
5007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_AWK="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 AWK=$ac_cv_prog_AWK
5027 if test -n "$AWK"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5029 $as_echo "$AWK" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$AWK" && break
5037 done
5039 if test -z "$AWK"; then
5040 ac_verc_fail=yes
5041 else
5042 # Found it, now check the version.
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5044 $as_echo_n "checking version of $AWK... " >&6; }
5045 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5046 case $ac_prog_version in
5047 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5048 3.1.[2-9]*|3.[2-9]*|[4-9]*)
5049 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5050 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5052 esac
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5054 $as_echo "$ac_prog_version" >&6; }
5056 if test $ac_verc_fail = yes; then
5057 critic_missing="$critic_missing gawk"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5062 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
5063 if ${libc_cv_compiler_ok+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5071 main ()
5074 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
5075 #error insufficient compiler
5076 #endif
5078 return 0;
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 libc_cv_compiler_ok=yes
5083 else
5084 libc_cv_compiler_ok=no
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5089 $as_echo "$libc_cv_compiler_ok" >&6; }
5090 if test $libc_cv_compiler_ok != yes; then :
5091 critic_missing="$critic_missing compiler"
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}nm; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_NM+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$NM"; then
5103 ac_cv_prog_NM="$NM" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_NM="${ac_tool_prefix}nm"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 NM=$ac_cv_prog_NM
5123 if test -n "$NM"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5125 $as_echo "$NM" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_NM"; then
5134 ac_ct_NM=$NM
5135 # Extract the first word of "nm", so it can be a program name with args.
5136 set dummy nm; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$ac_ct_NM"; then
5143 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_ac_ct_NM="nm"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5163 if test -n "$ac_ct_NM"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5165 $as_echo "$ac_ct_NM" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_NM" = x; then
5172 NM="false"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 NM=$ac_ct_NM
5182 else
5183 NM="$ac_cv_prog_NM"
5187 if test "x$maintainer" = "xyes"; then
5188 for ac_prog in autoconf
5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
5191 set dummy $ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_AUTOCONF+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$AUTOCONF"; then
5198 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_AUTOCONF="$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 AUTOCONF=$ac_cv_prog_AUTOCONF
5218 if test -n "$AUTOCONF"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5220 $as_echo "$AUTOCONF" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 test -n "$AUTOCONF" && break
5228 done
5229 test -n "$AUTOCONF" || AUTOCONF="no"
5231 case "x$AUTOCONF" in
5232 xno|x|x:) AUTOCONF=no ;;
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5235 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5236 if ${libc_cv_autoconf_works+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5240 libc_cv_autoconf_works=yes
5241 else
5242 libc_cv_autoconf_works=no
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5246 $as_echo "$libc_cv_autoconf_works" >&6; }
5247 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5249 esac
5250 if test "x$AUTOCONF" = xno; then
5251 aux_missing="$aux_missing autoconf"
5253 else
5254 AUTOCONF=no
5257 test -n "$critic_missing" && as_fn_error $? "
5258 *** These critical programs are missing or too old:$critic_missing
5259 *** Check the INSTALL file for required versions." "$LINENO" 5
5261 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5262 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5263 *** some features will be disabled.
5264 *** Check the INSTALL file for required versions." >&5
5265 $as_echo "$as_me: WARNING:
5266 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5267 *** some features will be disabled.
5268 *** Check the INSTALL file for required versions." >&2;}
5270 # if using special system headers, find out the compiler's sekrit
5271 # header directory and add that to the list. NOTE: Only does the right
5272 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5273 if test -n "$sysheaders"; then
5274 SYSINCLUDES=-nostdinc
5275 for d in include include-fixed; do
5276 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5277 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5278 done
5279 SYSINCLUDES="$SYSINCLUDES \
5280 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5281 if test -n "$CXX"; then
5282 CXX_SYSINCLUDES=
5283 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5284 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5285 test "x$cxxheaders" != x &&
5286 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5287 done
5293 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5294 # since this would lead to problems installing/building glibc.
5295 # LD_LIBRARY_PATH contains the current directory if one of the following
5296 # is true:
5297 # - one of the terminals (":" and ";") is the first or last sign
5298 # - two terminals occur directly after each other
5299 # - the path contains an element with a dot in it
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5301 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5302 case ${LD_LIBRARY_PATH} in
5303 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5304 ld_library_path_setting="contains current directory"
5307 ld_library_path_setting="ok"
5309 esac
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5311 $as_echo "$ld_library_path_setting" >&6; }
5312 if test "$ld_library_path_setting" != "ok"; then
5313 as_fn_error $? "
5314 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5315 *** building glibc. Please change the environment variable
5316 *** and run configure again." "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5320 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5321 if ${libc_cv_gcc_static_libgcc+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
5325 libc_cv_gcc_static_libgcc=
5326 else
5327 libc_cv_gcc_static_libgcc=-static-libgcc
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5331 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5334 # Extract the first word of "bash", so it can be a program name with args.
5335 set dummy bash; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_path_BASH_SHELL+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 case $BASH_SHELL in
5342 [\\/]* | ?:[\\/]*)
5343 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5357 done
5358 done
5359 IFS=$as_save_IFS
5361 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5363 esac
5365 BASH_SHELL=$ac_cv_path_BASH_SHELL
5366 if test -n "$BASH_SHELL"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5368 $as_echo "$BASH_SHELL" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5376 # Extract the first word of "perl", so it can be a program name with args.
5377 set dummy perl; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_PERL+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 case $PERL in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5399 done
5400 done
5401 IFS=$as_save_IFS
5403 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5405 esac
5407 PERL=$ac_cv_path_PERL
5408 if test -n "$PERL"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5410 $as_echo "$PERL" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 if test "$PERL" != no &&
5418 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5419 PERL=no
5421 # Extract the first word of "install-info", so it can be a program name with args.
5422 set dummy install-info; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 case $INSTALL_INFO in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5435 for as_dir in $as_dummy
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5449 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5451 esac
5453 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5454 if test -n "$INSTALL_INFO"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5456 $as_echo "$INSTALL_INFO" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 for ac_prog in bison
5465 # Extract the first word of "$ac_prog", so it can be a program name with args.
5466 set dummy $ac_prog; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_BISON+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$BISON"; then
5473 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_BISON="$ac_prog"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5486 done
5487 done
5488 IFS=$as_save_IFS
5492 BISON=$ac_cv_prog_BISON
5493 if test -n "$BISON"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5495 $as_echo "$BISON" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 test -n "$BISON" && break
5503 done
5505 if test -z "$BISON"; then
5506 ac_verc_fail=yes
5507 else
5508 # Found it, now check the version.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5510 $as_echo_n "checking version of $BISON... " >&6; }
5511 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5512 case $ac_prog_version in
5513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5514 2.7*|[3-9].*|[1-9][0-9]*)
5515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5518 esac
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5520 $as_echo "$ac_prog_version" >&6; }
5522 if test $ac_verc_fail = yes; then
5523 BISON=no
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5528 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5529 if ${libc_cv_friendly_stddef+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #define __need_size_t
5535 #define __need_wchar_t
5536 #include <stddef.h>
5537 #define __need_NULL
5538 #include <stddef.h>
5540 main ()
5542 size_t size; wchar_t wchar;
5543 #ifdef offsetof
5544 #error stddef.h ignored __need_*
5545 #endif
5546 if (&size == NULL || &wchar == NULL) abort ();
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 libc_cv_friendly_stddef=yes
5553 else
5554 libc_cv_friendly_stddef=no
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5559 $as_echo "$libc_cv_friendly_stddef" >&6; }
5560 if test $libc_cv_friendly_stddef = yes; then
5561 config_vars="$config_vars
5562 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5566 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5567 if ${libc_cv_need_minus_P+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat > conftest.S <<EOF
5571 #include "confdefs.h"
5572 /* Nothing whatsoever. */
5574 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579 test $ac_status = 0; }; }; then
5580 libc_cv_need_minus_P=no
5581 else
5582 libc_cv_need_minus_P=yes
5584 rm -f conftest*
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5587 $as_echo "$libc_cv_need_minus_P" >&6; }
5588 if test $libc_cv_need_minus_P = yes; then
5589 config_vars="$config_vars
5590 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5594 $as_echo_n "checking for .set assembler directive... " >&6; }
5595 if ${libc_cv_asm_set_directive+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat > conftest.s <<EOF
5599 ${libc_cv_dot_text}
5600 foo:
5601 .set glibc_conftest_frobozz,foo
5602 .globl glibc_conftest_frobozz
5604 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5605 # (but it doesn't work), so we must do a linking check to be sure.
5606 cat > conftest1.c <<\EOF
5607 extern int glibc_conftest_frobozz;
5608 void _start() { glibc_conftest_frobozz = 1; }
5610 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5611 -nostartfiles -nostdlib \
5612 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5613 libc_cv_asm_set_directive=yes
5614 else
5615 libc_cv_asm_set_directive=no
5617 rm -f conftest*
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5620 $as_echo "$libc_cv_asm_set_directive" >&6; }
5621 if test $libc_cv_asm_set_directive = yes; then
5622 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5627 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5628 if ${libc_cv_asm_unique_object+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 cat > conftest.s <<EOF
5632 ${libc_cv_dot_text}
5633 _sym:
5634 .type _sym, %gnu_unique_object
5636 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5637 libc_cv_asm_unique_object=yes
5638 else
5639 libc_cv_asm_unique_object=no
5641 rm -f conftest*
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5644 $as_echo "$libc_cv_asm_unique_object" >&6; }
5645 if test $libc_cv_asm_unique_object = yes; then
5646 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5651 $as_echo_n "checking for .previous assembler directive... " >&6; }
5652 if ${libc_cv_asm_previous_directive+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 cat > conftest.s <<EOF
5656 .section foo_section
5657 .previous
5659 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }; }; then
5665 libc_cv_asm_previous_directive=yes
5666 else
5667 libc_cv_asm_previous_directive=no
5669 rm -f conftest*
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5672 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5673 if test $libc_cv_asm_previous_directive = yes; then
5674 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5678 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5679 if ${libc_cv_asm_popsection_directive+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat > conftest.s <<EOF
5683 .pushsection foo_section
5684 .popsection
5686 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; }; }; then
5692 libc_cv_asm_popsection_directive=yes
5693 else
5694 libc_cv_asm_popsection_directive=no
5696 rm -f conftest*
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5699 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5700 if test $libc_cv_asm_popsection_directive = yes; then
5701 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5706 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5707 if ${libc_cv_asm_protected_directive+:} false; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 cat > conftest.s <<EOF
5711 .protected foo
5712 foo:
5713 .hidden bar
5714 bar:
5716 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; }; }; then
5722 libc_cv_asm_protected_directive=yes
5723 else
5724 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5726 rm -f conftest*
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5729 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5731 if test $libc_cv_asm_protected_directive = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5733 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5734 if ${libc_cv_visibility_attribute+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 cat > conftest.c <<EOF
5738 int foo __attribute__ ((visibility ("hidden"))) = 1;
5739 int bar __attribute__ ((visibility ("protected"))) = 1;
5741 libc_cv_visibility_attribute=no
5742 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747 test $ac_status = 0; }; }; then
5748 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5749 if grep '\.protected.*bar' conftest.s >/dev/null; then
5750 libc_cv_visibility_attribute=yes
5754 rm -f conftest.{c,s}
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
5758 $as_echo "$libc_cv_visibility_attribute" >&6; }
5759 if test $libc_cv_visibility_attribute != yes; then
5760 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
5764 if test $libc_cv_visibility_attribute = yes; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5766 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5767 if ${libc_cv_protected_data+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat > conftest.c <<EOF
5771 int bar __attribute__ ((visibility ("protected"))) = 1;
5773 libc_cv_protected_data=no
5774 if { ac_try='${CC-cc} -nostdlib -nostartfiles -fPIC -shared conftest.c -o conftest.so'
5775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779 test $ac_status = 0; }; }; then
5780 cat > conftest.c <<EOF
5781 extern int bar;
5782 int main (void) { return bar; }
5784 if { ac_try='${CC-cc} -nostdlib -nostartfiles conftest.c -o conftest conftest.so'
5785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }; }; then
5790 libc_cv_protected_data=yes
5793 rm -f conftest.*
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5797 $as_echo "$libc_cv_protected_data" >&6; }
5798 else
5799 libc_cv_protected_data=no
5803 if test $libc_cv_visibility_attribute = yes; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
5805 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
5806 if ${libc_cv_broken_visibility_attribute+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 cat > conftest.c <<EOF
5810 int foo (int x);
5811 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5812 int bar (int x) { return x; }
5814 libc_cv_broken_visibility_attribute=yes
5815 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820 test $ac_status = 0; }; }; then
5821 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5822 libc_cv_broken_visibility_attribute=no
5825 rm -f conftest.c conftest.s
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
5829 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
5830 if test $libc_cv_broken_visibility_attribute = yes; then
5831 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5836 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5837 if ${libc_cv_broken_alias_attribute+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat > conftest.c <<EOF
5841 extern int foo (int x) __asm ("xyzzy");
5842 int bar (int x) { return x; }
5843 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5844 extern int dfoo;
5845 extern __typeof (dfoo) dfoo __asm ("abccb");
5846 int dfoo = 1;
5848 libc_cv_broken_alias_attribute=yes
5849 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }; }; then
5855 if grep 'xyzzy' conftest.s >/dev/null &&
5856 grep 'abccb' conftest.s >/dev/null; then
5857 libc_cv_broken_alias_attribute=no
5860 rm -f conftest.c conftest.s
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5864 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5865 if test $libc_cv_broken_alias_attribute = yes; then
5866 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5869 if test $libc_cv_visibility_attribute = yes; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5871 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5872 if ${libc_cv_have_sdata_section+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 echo "int i;" > conftest.c
5876 libc_cv_have_sdata_section=no
5877 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5878 | grep '\.sdata' >/dev/null; then
5879 libc_cv_have_sdata_section=yes
5881 rm -f conftest.c conftest.so
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5885 $as_echo "$libc_cv_have_sdata_section" >&6; }
5886 if test $libc_cv_have_sdata_section = yes; then
5887 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
5893 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
5894 if ${libc_cv_initfini_array+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat > conftest.c <<EOF
5898 int _start (void) { return 0; }
5899 int __start (void) { return 0; }
5901 int foo (void) { return 1; }
5902 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5905 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5906 conftest.c -static -nostartfiles -nostdlib
5907 1>&5'
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }; }; then :
5913 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
5914 libc_cv_initfini_array=yes
5915 else
5916 libc_cv_initfini_array=no
5918 else
5919 libc_cv_initfini_array=no
5921 rm -f conftest*
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
5925 $as_echo "$libc_cv_initfini_array" >&6; }
5926 if test $libc_cv_initfini_array != yes; then
5927 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5931 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5932 if ${libc_cv_ctors_header+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 libc_cv_ctors_header=yes
5936 cat > conftest.c <<EOF
5937 int _start (void) { return 0; }
5938 int __start (void) { return 0; }
5940 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5941 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5944 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5945 conftest.c -static -nostartfiles -nostdlib
5946 1>&5'
5947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951 test $ac_status = 0; }; }; then :
5952 if $READELF -WS conftest$ac_exeext | $AWK '
5953 { gsub(/\[ */, "[") }
5954 $2 == ".ctors" || $2 == ".dtors" {
5955 size = strtonum("0x" $6)
5956 align = strtonum("0x" $NF)
5957 seen[$2] = 1
5958 stub[$2] = size == align * 2
5960 END {
5961 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5962 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5963 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5965 '; then :
5966 libc_cv_ctors_header=no
5969 else
5970 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5973 rm -f conftest*
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5977 $as_echo "$libc_cv_ctors_header" >&6; }
5978 if test $libc_cv_ctors_header = no; then
5979 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5984 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5985 if ${libc_cv_cc_with_libunwind+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5989 cat > conftest.c <<EOF
5990 int main (void) { return 0; }
5992 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5993 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5994 libc_cv_cc_with_libunwind=yes
5995 else
5996 libc_cv_cc_with_libunwind=no
5998 rm -f conftest*
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6001 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6003 if test $libc_cv_cc_with_libunwind = yes; then
6004 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5
6009 $as_echo_n "checking for linker that supports -z nodelete... " >&6; }
6010 libc_linker_feature=no
6011 if test x"$gnu_ld" = x"yes"; then
6012 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"`
6013 if test -n "$libc_linker_check"; then
6014 cat > conftest.c <<EOF
6015 int _start (void) { return 42; }
6017 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6018 -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
6019 -fPIC -shared -o conftest.so conftest.c
6020 1>&5'
6021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; }; }
6026 then
6027 libc_linker_feature=yes
6029 rm -f conftest*
6032 if test $libc_linker_feature = yes; then
6033 libc_cv_z_nodelete=yes
6034 else
6035 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6038 $as_echo "$libc_linker_feature" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5
6041 $as_echo_n "checking for linker that supports -z nodlopen... " >&6; }
6042 libc_linker_feature=no
6043 if test x"$gnu_ld" = x"yes"; then
6044 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"`
6045 if test -n "$libc_linker_check"; then
6046 cat > conftest.c <<EOF
6047 int _start (void) { return 42; }
6049 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6050 -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
6051 -fPIC -shared -o conftest.so conftest.c
6052 1>&5'
6053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; }; }
6058 then
6059 libc_linker_feature=yes
6061 rm -f conftest*
6064 if test $libc_linker_feature = yes; then
6065 libc_cv_z_nodlopen=yes
6066 else
6067 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6070 $as_echo "$libc_linker_feature" >&6; }
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5
6073 $as_echo_n "checking for linker that supports -z initfirst... " >&6; }
6074 libc_linker_feature=no
6075 if test x"$gnu_ld" = x"yes"; then
6076 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"`
6077 if test -n "$libc_linker_check"; then
6078 cat > conftest.c <<EOF
6079 int _start (void) { return 42; }
6081 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6082 -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
6083 -fPIC -shared -o conftest.so conftest.c
6084 1>&5'
6085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; }
6090 then
6091 libc_linker_feature=yes
6093 rm -f conftest*
6096 if test $libc_linker_feature = yes; then
6097 libc_cv_z_initfirst=yes
6098 else
6099 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6102 $as_echo "$libc_linker_feature" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6105 $as_echo_n "checking for -Bgroup option... " >&6; }
6106 if ${libc_cv_Bgroup+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 cat > conftest.c <<EOF
6110 int _start (void) { return 42; }
6112 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6113 -fPIC -shared -o conftest.so conftest.c
6114 -Wl,-Bgroup -nostdlib 1>&5'
6115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }; }
6120 then
6121 libc_cv_Bgroup=yes
6122 else
6123 libc_cv_Bgroup=no
6125 rm -f conftest*
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6128 $as_echo "$libc_cv_Bgroup" >&6; }
6131 ASFLAGS_config=
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6133 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6134 if ${libc_cv_as_noexecstack+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat > conftest.c <<EOF
6138 void foo (void) { }
6140 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6141 -S -o conftest.s conftest.c 1>&5'
6142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; }; } \
6147 && grep .note.GNU-stack conftest.s >/dev/null \
6148 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6149 -c -o conftest.o conftest.s 1>&5'
6150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; }
6155 then
6156 libc_cv_as_noexecstack=yes
6157 else
6158 libc_cv_as_noexecstack=no
6160 rm -f conftest*
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6163 $as_echo "$libc_cv_as_noexecstack" >&6; }
6164 if test $libc_cv_as_noexecstack = yes; then
6165 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6170 $as_echo_n "checking for -z combreloc... " >&6; }
6171 if ${libc_cv_z_combreloc+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat > conftest.c <<EOF
6175 extern int bar (int);
6176 extern int mumble;
6177 int foo (void) { return bar (mumble); }
6179 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6180 -fPIC -shared -o conftest.so conftest.c
6181 -nostdlib -nostartfiles
6182 -Wl,-z,combreloc 1>&5'
6183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; }; }
6188 then
6189 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6190 libc_cv_z_combreloc=yes
6191 else
6192 libc_cv_z_combreloc=no
6194 else
6195 libc_cv_z_combreloc=no
6197 rm -f conftest*
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6200 $as_echo "$libc_cv_z_combreloc" >&6; }
6201 if test "$libc_cv_z_combreloc" = yes; then
6202 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6208 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
6209 libc_linker_feature=no
6210 if test x"$gnu_ld" = x"yes"; then
6211 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
6212 if test -n "$libc_linker_check"; then
6213 cat > conftest.c <<EOF
6214 int _start (void) { return 42; }
6216 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6217 -Wl,-z,execstack -nostdlib -nostartfiles
6218 -fPIC -shared -o conftest.so conftest.c
6219 1>&5'
6220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224 test $ac_status = 0; }; }
6225 then
6226 libc_linker_feature=yes
6228 rm -f conftest*
6231 if test $libc_linker_feature = yes; then
6232 libc_cv_z_execstack=yes
6233 else
6234 libc_cv_z_execstack=no
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6237 $as_echo "$libc_linker_feature" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6241 $as_echo_n "checking for -fpie... " >&6; }
6242 if ${libc_cv_fpie+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; }; then :
6251 libc_cv_fpie=yes
6252 else
6253 libc_cv_fpie=no
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6258 $as_echo "$libc_cv_fpie" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6263 $as_echo_n "checking for --hash-style option... " >&6; }
6264 if ${libc_cv_hashstyle+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat > conftest.c <<EOF
6268 int _start (void) { return 42; }
6270 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6271 -fPIC -shared -o conftest.so conftest.c
6272 -Wl,--hash-style=both -nostdlib 1>&5'
6273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6274 (eval $ac_try) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; }
6278 then
6279 libc_cv_hashstyle=yes
6280 else
6281 libc_cv_hashstyle=no
6283 rm -f conftest*
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6286 $as_echo "$libc_cv_hashstyle" >&6; }
6289 # The linker's default -shared behavior is good enough if it
6290 # does these things that our custom linker scripts ensure that
6291 # all allocated NOTE sections come first.
6292 if test "$use_default_link" = default; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6294 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6295 if ${libc_cv_use_default_link+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 libc_cv_use_default_link=no
6299 cat > conftest.s <<\EOF
6300 .section .note.a,"a",%note
6301 .balign 4
6302 .long 4,4,9
6303 .string "GNU"
6304 .string "foo"
6305 .section .note.b,"a",%note
6306 .balign 4
6307 .long 4,4,9
6308 .string "GNU"
6309 .string "bar"
6311 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; } &&
6317 ac_try=`$READELF -S conftest.so | sed -n \
6318 '${x;p;}
6319 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6324 then
6325 libc_seen_a=no libc_seen_b=no
6326 set -- $ac_try
6327 while test $# -ge 2 -a "$1" = NOTE; do
6328 case "$2" in
6329 .note.a) libc_seen_a=yes ;;
6330 .note.b) libc_seen_b=yes ;;
6331 esac
6332 shift 2
6333 done
6334 case "$libc_seen_a$libc_seen_b" in
6335 yesyes)
6336 libc_cv_use_default_link=yes
6339 echo >&5 "\
6340 $libc_seen_a$libc_seen_b from:
6341 $ac_try"
6343 esac
6345 rm -f conftest*
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6348 $as_echo "$libc_cv_use_default_link" >&6; }
6349 use_default_link=$libc_cv_use_default_link
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6353 $as_echo_n "checking linker output format... " >&6; }
6354 if ${libc_cv_output_format+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if libc_cv_output_format=`
6358 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6359 then
6361 else
6362 libc_cv_output_format=
6364 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6367 $as_echo "$libc_cv_output_format" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6371 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6372 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 cat > conftest.c <<EOF
6376 int foo;
6378 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6379 conftest.c 1>&5'
6380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; }
6385 then
6386 libc_cv_fno_toplevel_reorder=yes
6387 else
6388 libc_cv_fno_toplevel_reorder=no
6390 rm -f conftest*
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6393 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6394 if test $libc_cv_fno_toplevel_reorder = yes; then
6395 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6396 else
6397 fno_unit_at_a_time=-fno-unit-at-a-time
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6402 $as_echo_n "checking for -fstack-protector... " >&6; }
6403 if ${libc_cv_ssp+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }; }; then :
6412 libc_cv_ssp=yes
6413 else
6414 libc_cv_ssp=no
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6419 $as_echo "$libc_cv_ssp" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6423 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6424 if ${libc_cv_gnu89_inline+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat > conftest.c <<EOF
6428 int foo;
6429 #ifdef __GNUC_GNU_INLINE__
6430 main () { return 0;}
6431 #else
6432 #error
6433 #endif
6435 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6436 -o conftest.s conftest.c 1>&5'
6437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; }
6442 then
6443 libc_cv_gnu89_inline=yes
6444 else
6445 libc_cv_gnu89_inline=no
6447 rm -f conftest*
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6450 $as_echo "$libc_cv_gnu89_inline" >&6; }
6451 if test $libc_cv_gnu89_inline = yes; then
6452 gnu89_inline=-fgnu89-inline
6453 else
6454 gnu89_inline=
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6459 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6460 if ${libc_cv_have_section_quotes+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat > conftest.c <<EOF
6464 static const int foo
6465 __attribute__ ((section ("bar"))) = 1;
6467 if ${CC-cc} -S conftest.c -o conftest.s; then
6468 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6469 libc_cv_have_section_quotes=yes
6470 else
6471 libc_cv_have_section_quotes=no
6473 else
6474 libc_cv_have_section_quotes=unknown
6476 rm -f conftest.{c,s}
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6480 $as_echo "$libc_cv_have_section_quotes" >&6; }
6481 if test $libc_cv_have_section_quotes = yes; then
6482 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6487 $as_echo_n "checking for assembler .weak directive... " >&6; }
6488 if ${libc_cv_asm_weak_directive+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 cat > conftest.s <<EOF
6492 ${libc_cv_dot_text}
6493 .globl foo
6494 foo:
6495 .weak foo
6496 .weak bar; bar = foo
6498 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; }; then
6504 libc_cv_asm_weak_directive=yes
6505 else
6506 libc_cv_asm_weak_directive=no
6508 rm -f conftest*
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6511 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6513 if test $libc_cv_asm_weak_directive = no; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6515 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6516 if ${libc_cv_asm_weakext_directive+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat > conftest.s <<EOF
6520 ${libc_cv_dot_text}
6521 .globl foo
6522 foo:
6523 .weakext bar foo
6524 .weakext baz
6525 .globl baz
6526 baz:
6528 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; }; then
6534 libc_cv_asm_weakext_directive=yes
6535 else
6536 libc_cv_asm_weakext_directive=no
6538 rm -f conftest*
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6541 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6543 fi # no .weak
6545 if test $libc_cv_asm_weak_directive = yes; then
6546 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6548 elif test $libc_cv_asm_weakext_directive = yes; then
6549 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6554 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6555 if ${libc_cv_ld_no_whole_archive+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat > conftest.c <<\EOF
6559 _start () {}
6560 int __eh_pc;
6561 __throw () {}
6563 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6564 -nostdlib -nostartfiles -Wl,--no-whole-archive
6565 -o conftest conftest.c 1>&5'
6566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; }; }; then
6571 libc_cv_ld_no_whole_archive=yes
6572 else
6573 libc_cv_ld_no_whole_archive=no
6575 rm -f conftest*
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6578 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6579 if test $libc_cv_ld_no_whole_archive = no; then
6580 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6584 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6585 if ${libc_cv_gcc_exceptions+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat > conftest.c <<\EOF
6589 _start () {}
6590 int __eh_pc;
6591 __throw () {}
6593 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6594 -nostdlib -nostartfiles -fexceptions
6595 -o conftest conftest.c 1>&5'
6596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; }; }; then
6601 libc_cv_gcc_exceptions=yes
6602 else
6603 libc_cv_gcc_exceptions=no
6605 rm -f conftest*
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6608 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6609 if test $libc_cv_gcc_exceptions = yes; then
6610 exceptions=-fexceptions
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6614 $as_echo_n "checking for __builtin_memset... " >&6; }
6615 if ${libc_cv_gcc_builtin_memset+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 cat > conftest.c <<\EOF
6619 void zero (void *x)
6621 __builtin_memset (x, 0, 1000);
6624 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; }; };
6630 then
6631 libc_cv_gcc_builtin_memset=no
6632 else
6633 libc_cv_gcc_builtin_memset=yes
6635 rm -f conftest*
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6638 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6639 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6640 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6645 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6646 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat > conftest.c <<\EOF
6650 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6651 char *foo (const char *a, const char *b)
6653 return __builtin_strstr (a, b);
6656 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; };
6662 then
6663 libc_cv_gcc_builtin_redirection=yes
6664 else
6665 libc_cv_gcc_builtin_redirection=no
6667 rm -f conftest*
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6670 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6671 if test "$libc_cv_gcc_builtin_redirection" = no; then
6672 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
6676 $as_echo_n "checking for __thread... " >&6; }
6677 if ${libc_cv_gcc___thread+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 cat > conftest.c <<\EOF
6681 __thread int a = 42;
6683 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; }; }; then
6689 libc_cv_gcc___thread=yes
6690 else
6691 libc_cv_gcc___thread=no
6693 rm -f conftest*
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
6696 $as_echo "$libc_cv_gcc___thread" >&6; }
6697 if test "$libc_cv_gcc___thread" = no; then
6698 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
6702 $as_echo_n "checking for tls_model attribute... " >&6; }
6703 if ${libc_cv_gcc_tls_model_attr+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 cat > conftest.c <<\EOF
6707 extern __thread int a __attribute__((tls_model ("initial-exec")));
6709 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; }; then
6715 libc_cv_gcc_tls_model_attr=yes
6716 else
6717 libc_cv_gcc_tls_model_attr=no
6719 rm -f conftest*
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
6722 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
6723 if test "$libc_cv_gcc_tls_model_attr" = no; then
6724 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6728 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6729 if ${libc_cv_cc_nofma+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 libc_cv_cc_nofma=
6733 for opt in -ffp-contract=off -mno-fused-madd; do
6734 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }; }; then :
6740 libc_cv_cc_nofma=$opt; break
6742 done
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6745 $as_echo "$libc_cv_cc_nofma" >&6; }
6748 if test -n "$submachine"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6750 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6751 if ${libc_cv_cc_submachine+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 libc_cv_cc_submachine=no
6755 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6756 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; }; }; then :
6763 libc_cv_cc_submachine="$opt"
6764 break
6766 done
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6769 $as_echo "$libc_cv_cc_submachine" >&6; }
6770 if test "x$libc_cv_cc_submachine" = xno; then
6771 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6777 __attribute__ ((__optimize__))" >&5
6778 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6779 __attribute__ ((__optimize__))... " >&6; }
6780 if ${libc_cv_cc_loop_to_function+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 cat > conftest.c <<EOF
6784 void
6785 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6786 foo (void) {}
6788 libc_cv_cc_loop_to_function=no
6789 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; }
6795 then
6796 libc_cv_cc_loop_to_function=yes
6798 rm -f conftest*
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6801 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6802 if test $libc_cv_cc_loop_to_function = yes; then
6803 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6809 $as_echo_n "checking for libgd... " >&6; }
6810 if test "$with_gd" != "no"; then
6811 old_CFLAGS="$CFLAGS"
6812 CFLAGS="$CFLAGS $libgd_include"
6813 old_LDFLAGS="$LDFLAGS"
6814 LDFLAGS="$LDFLAGS $libgd_ldflags"
6815 old_LIBS="$LIBS"
6816 LIBS="$LIBS -lgd -lpng -lz -lm"
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819 #include <gd.h>
6821 main ()
6823 gdImagePng (0, 0)
6825 return 0;
6827 _ACEOF
6828 if ac_fn_c_try_link "$LINENO"; then :
6829 LIBGD=yes
6830 else
6831 LIBGD=no
6833 rm -f core conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835 CFLAGS="$old_CFLAGS"
6836 LDFLAGS="$old_LDFLAGS"
6837 LIBS="$old_LIBS"
6838 else
6839 LIBGD=no
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6842 $as_echo "$LIBGD" >&6; }
6845 # SELinux detection
6846 if test x$with_selinux = xno ; then
6847 have_selinux=no;
6848 else
6849 # See if we have the SELinux library
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6851 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6852 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 ac_check_lib_save_LIBS=$LIBS
6856 LIBS="-lselinux $LIBS"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6860 /* Override any GCC internal prototype to avoid an error.
6861 Use char because int might match the return type of a GCC
6862 builtin and then its argument prototype would still apply. */
6863 #ifdef __cplusplus
6864 extern "C"
6865 #endif
6866 char is_selinux_enabled ();
6868 main ()
6870 return is_selinux_enabled ();
6872 return 0;
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 ac_cv_lib_selinux_is_selinux_enabled=yes
6877 else
6878 ac_cv_lib_selinux_is_selinux_enabled=no
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 LIBS=$ac_check_lib_save_LIBS
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6885 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6886 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6887 have_selinux=yes
6888 else
6889 have_selinux=no
6892 if test x$with_selinux = xyes ; then
6893 if test x$have_selinux = xno ; then
6894 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6898 # Check if we're building with SELinux support.
6899 if test "x$have_selinux" = xyes; then
6901 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6904 # See if we have the libaudit library
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6906 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6907 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 ac_check_lib_save_LIBS=$LIBS
6911 LIBS="-laudit $LIBS"
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6915 /* Override any GCC internal prototype to avoid an error.
6916 Use char because int might match the return type of a GCC
6917 builtin and then its argument prototype would still apply. */
6918 #ifdef __cplusplus
6919 extern "C"
6920 #endif
6921 char audit_log_user_avc_message ();
6923 main ()
6925 return audit_log_user_avc_message ();
6927 return 0;
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931 ac_cv_lib_audit_audit_log_user_avc_message=yes
6932 else
6933 ac_cv_lib_audit_audit_log_user_avc_message=no
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 LIBS=$ac_check_lib_save_LIBS
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6940 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6941 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6942 have_libaudit=yes
6943 else
6944 have_libaudit=no
6947 if test "x$have_libaudit" = xyes; then
6949 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6954 # See if we have the libcap library
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6956 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6957 if ${ac_cv_lib_cap_cap_init+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 ac_check_lib_save_LIBS=$LIBS
6961 LIBS="-lcap $LIBS"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6965 /* Override any GCC internal prototype to avoid an error.
6966 Use char because int might match the return type of a GCC
6967 builtin and then its argument prototype would still apply. */
6968 #ifdef __cplusplus
6969 extern "C"
6970 #endif
6971 char cap_init ();
6973 main ()
6975 return cap_init ();
6977 return 0;
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981 ac_cv_lib_cap_cap_init=yes
6982 else
6983 ac_cv_lib_cap_cap_init=no
6985 rm -f core conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 LIBS=$ac_check_lib_save_LIBS
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6990 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6991 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6992 have_libcap=yes
6993 else
6994 have_libcap=no
6997 if test "x$have_libcap" = xyes; then
6999 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7007 # The cast to long int works around a bug in the HP C Compiler
7008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7010 # This bug is HP SR number 8606223364.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7012 $as_echo_n "checking size of long double... " >&6; }
7013 if ${ac_cv_sizeof_long_double+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7018 else
7019 if test "$ac_cv_type_long_double" = yes; then
7020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7022 as_fn_error 77 "cannot compute sizeof (long double)
7023 See \`config.log' for more details" "$LINENO" 5; }
7024 else
7025 ac_cv_sizeof_long_double=0
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7031 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7035 cat >>confdefs.h <<_ACEOF
7036 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7037 _ACEOF
7040 sizeof_long_double=$ac_cv_sizeof_long_double
7043 CPPUNDEFS=
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
7045 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
7046 if ${libc_cv_predef_fortify_source+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7053 main ()
7056 #ifdef _FORTIFY_SOURCE
7057 # error bogon
7058 #endif
7060 return 0;
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064 libc_cv_predef_fortify_source=no
7065 else
7066 libc_cv_predef_fortify_source=yes
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
7071 $as_echo "$libc_cv_predef_fortify_source" >&6; }
7072 if test $libc_cv_predef_fortify_source = yes; then
7073 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
7078 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
7079 if ${libc_cv_predef_stack_protector+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 extern void foobar (char *);
7087 main ()
7089 char large_array[2048]; foobar (large_array);
7091 return 0;
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"; then :
7096 libc_undefs=`$NM -u conftest.o |
7097 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7098 2>&5` || {
7099 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7101 echo >&5 "libc_undefs='$libc_undefs'"
7102 # On some architectures, there are architecture-specific undefined
7103 # symbols (resolved by the linker), so filter out unknown symbols.
7104 # This will fail to produce the correct result if the compiler
7105 # defaults to -fstack-protector but this produces an undefined symbol
7106 # other than __stack_chk_fail. However, compilers like that have not
7107 # been encountered in practice.
7108 libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
7109 case "$libc_undefs" in
7110 foobar) libc_cv_predef_stack_protector=no ;;
7111 '__stack_chk_fail
7112 foobar') libc_cv_predef_stack_protector=yes ;;
7113 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
7114 esac
7115 else
7116 as_fn_error $? "test compilation failed" "$LINENO" 5
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
7122 $as_echo "$libc_cv_predef_stack_protector" >&6; }
7123 libc_extra_cflags=
7124 if test $libc_cv_predef_stack_protector = yes; then
7125 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
7127 libc_extra_cppflags=
7129 # Some linkers on some architectures support __ehdr_start but with
7130 # bugs. Make sure usage of it does not create relocations in the
7131 # output (as the linker should resolve them all for us).
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
7133 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
7134 if ${libc_cv_ehdr_start+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7138 old_CFLAGS="$CFLAGS"
7139 old_LDFLAGS="$LDFLAGS"
7140 old_LIBS="$LIBS"
7141 CFLAGS="$CFLAGS -fPIC"
7142 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
7143 LIBS=
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7147 typedef struct {
7148 char foo;
7149 long val;
7150 } Ehdr;
7151 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
7152 long ehdr (void) { return __ehdr_start.val; }
7154 _ACEOF
7155 if ac_fn_c_try_link "$LINENO"; then :
7156 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
7157 libc_cv_ehdr_start=broken
7158 else
7159 libc_cv_ehdr_start=yes
7161 else
7162 libc_cv_ehdr_start=no
7164 rm -f core conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166 CFLAGS="$old_CFLAGS"
7167 LDFLAGS="$old_LDFLAGS"
7168 LIBS="$old_LIBS"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
7172 $as_echo "$libc_cv_ehdr_start" >&6; }
7173 if test "$libc_cv_ehdr_start" = yes; then
7174 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
7176 elif test "$libc_cv_ehdr_start" = broken; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
7178 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7182 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
7183 if ${libc_cv_builtin_trap+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 libc_cv_builtin_trap=no
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7191 main ()
7193 __builtin_trap ()
7195 return 0;
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7200 libc_undefs=`$NM -u conftest.o |
7201 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7202 2>&5` || {
7203 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7205 echo >&5 "libc_undefs='$libc_undefs'"
7206 if test -z "$libc_undefs"; then
7207 libc_cv_builtin_trap=yes
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7213 $as_echo "$libc_cv_builtin_trap" >&6; }
7214 if test $libc_cv_builtin_trap = yes; then
7215 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7219 ac_ext=cpp
7220 ac_cpp='$CXXCPP $CPPFLAGS'
7221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7227 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
7228 if ${libc_cv_cxx_thread_local+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7232 old_CXXFLAGS="$CXXFLAGS"
7233 CXXFLAGS="$CXXFLAGS -std=gnu++11"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7237 #include <thread>
7239 // Compiler support.
7240 struct S
7242 S ();
7243 ~S ();
7245 thread_local S s;
7246 S * get () { return &s; }
7248 // libstdc++ support.
7249 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7250 #error __cxa_thread_atexit_impl not supported
7251 #endif
7253 _ACEOF
7254 if ac_fn_cxx_try_compile "$LINENO"; then :
7255 libc_cv_cxx_thread_local=yes
7256 else
7257 libc_cv_cxx_thread_local=no
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 CXXFLAGS="$old_CXXFLAGS"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7264 $as_echo "$libc_cv_cxx_thread_local" >&6; }
7267 ac_ext=c
7268 ac_cpp='$CPP $CPPFLAGS'
7269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274 ### End of automated tests.
7275 ### Now run sysdeps configure fragments.
7277 # They also can set these variables.
7278 use_ldconfig=no
7279 ldd_rewrite_script=no
7280 libc_cv_sysconfdir=$sysconfdir
7281 libc_cv_localstatedir=$localstatedir
7282 libc_cv_gcc_unwind_find_fde=no
7283 libc_cv_idn=no
7285 # Iterate over all the sysdep directories we will use, running their
7286 # configure fragments.
7287 for dir in $sysnames; do
7288 case $dir in
7289 /*) dest=$dir ;;
7290 *) dest=$srcdir/$dir ;;
7291 esac
7292 if test -r $dest/configure; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7294 $as_echo "running configure fragment for $dir" >&6; }
7295 . $dest/configure
7297 done
7299 if test x"$build_mathvec" = xnotset; then
7300 build_mathvec=no
7302 config_vars="$config_vars
7303 build-mathvec = $build_mathvec"
7308 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7309 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7314 # A sysdeps configure fragment can reset this if IFUNC is not actually
7315 # usable even though the assembler knows how to generate the symbol type.
7316 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
7317 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
7321 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7322 # configure fragment can override the value to prevent this AC_DEFINE.
7324 if test "x$use_nscd" != xno; then
7325 $as_echo "#define USE_NSCD 1" >>confdefs.h
7328 if test "x$build_nscd" = xdefault; then
7329 build_nscd=$use_nscd
7332 # Test for old glibc 2.0.x headers so that they can be removed properly
7333 # Search only in includedir.
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7335 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7336 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7337 then
7338 old_glibc_headers=yes
7339 else
7340 old_glibc_headers=no
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7343 $as_echo "$old_glibc_headers" >&6; }
7344 if test ${old_glibc_headers} = yes; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7346 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7348 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7360 if test x$use_ldconfig = xyes; then
7361 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7371 $as_echo_n "checking whether -fPIC is default... " >&6; }
7372 if ${libc_cv_pic_default+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 libc_cv_pic_default=yes
7376 cat > conftest.c <<EOF
7377 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7378 # error PIC is default.
7379 #endif
7381 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7382 libc_cv_pic_default=no
7384 rm -f conftest.*
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7387 $as_echo "$libc_cv_pic_default" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
7391 $as_echo_n "checking whether -fPIE is default... " >&6; }
7392 if ${libc_cv_pie_default+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 libc_cv_pie_default=yes
7396 cat > conftest.c <<EOF
7397 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
7398 # error PIE is default.
7399 #endif
7401 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7402 libc_cv_pie_default=no
7404 rm -f conftest.*
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_default" >&5
7407 $as_echo "$libc_cv_pie_default" >&6; }
7417 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7418 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7422 ac_config_files="$ac_config_files config.make Makefile"
7424 ac_config_commands="$ac_config_commands default"
7426 cat >confcache <<\_ACEOF
7427 # This file is a shell script that caches the results of configure
7428 # tests run on this system so they can be shared between configure
7429 # scripts and configure runs, see configure's option --config-cache.
7430 # It is not useful on other systems. If it contains results you don't
7431 # want to keep, you may remove or edit it.
7433 # config.status only pays attention to the cache file if you give it
7434 # the --recheck option to rerun configure.
7436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7438 # following values.
7440 _ACEOF
7442 # The following way of writing the cache mishandles newlines in values,
7443 # but we know of no workaround that is simple, portable, and efficient.
7444 # So, we kill variables containing newlines.
7445 # Ultrix sh set writes to stderr and can't be redirected directly,
7446 # and sets the high bit in the cache file unless we assign to the vars.
7448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7449 eval ac_val=\$$ac_var
7450 case $ac_val in #(
7451 *${as_nl}*)
7452 case $ac_var in #(
7453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7455 esac
7456 case $ac_var in #(
7457 _ | IFS | as_nl) ;; #(
7458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7459 *) { eval $ac_var=; unset $ac_var;} ;;
7460 esac ;;
7461 esac
7462 done
7464 (set) 2>&1 |
7465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7466 *${as_nl}ac_space=\ *)
7467 # `set' does not quote correctly, so add quotes: double-quote
7468 # substitution turns \\\\ into \\, and sed turns \\ into \.
7469 sed -n \
7470 "s/'/'\\\\''/g;
7471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7472 ;; #(
7474 # `set' quotes correctly as required by POSIX, so do not add quotes.
7475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7477 esac |
7478 sort
7480 sed '
7481 /^ac_cv_env_/b end
7482 t clear
7483 :clear
7484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7485 t end
7486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7487 :end' >>confcache
7488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7489 if test -w "$cache_file"; then
7490 if test "x$cache_file" != "x/dev/null"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7492 $as_echo "$as_me: updating cache $cache_file" >&6;}
7493 if test ! -f "$cache_file" || test -h "$cache_file"; then
7494 cat confcache >"$cache_file"
7495 else
7496 case $cache_file in #(
7497 */* | ?:*)
7498 mv -f confcache "$cache_file"$$ &&
7499 mv -f "$cache_file"$$ "$cache_file" ;; #(
7501 mv -f confcache "$cache_file" ;;
7502 esac
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7510 rm -f confcache
7512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7513 # Let make expand exec_prefix.
7514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7516 DEFS=-DHAVE_CONFIG_H
7518 ac_libobjs=
7519 ac_ltlibobjs=
7521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7522 # 1. Remove the extension, and $U if already installed.
7523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7526 # will be set to the directory where LIBOBJS objects are built.
7527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7529 done
7530 LIBOBJS=$ac_libobjs
7532 LTLIBOBJS=$ac_ltlibobjs
7536 : "${CONFIG_STATUS=./config.status}"
7537 ac_write_fail=0
7538 ac_clean_files_save=$ac_clean_files
7539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7541 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7542 as_write_fail=0
7543 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7544 #! $SHELL
7545 # Generated by $as_me.
7546 # Run this file to recreate the current configuration.
7547 # Compiler output produced by configure, useful for debugging
7548 # configure, is in config.log if it exists.
7550 debug=false
7551 ac_cs_recheck=false
7552 ac_cs_silent=false
7554 SHELL=\${CONFIG_SHELL-$SHELL}
7555 export SHELL
7556 _ASEOF
7557 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7558 ## -------------------- ##
7559 ## M4sh Initialization. ##
7560 ## -------------------- ##
7562 # Be more Bourne compatible
7563 DUALCASE=1; export DUALCASE # for MKS sh
7564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7565 emulate sh
7566 NULLCMD=:
7567 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7568 # is contrary to our usage. Disable this feature.
7569 alias -g '${1+"$@"}'='"$@"'
7570 setopt NO_GLOB_SUBST
7571 else
7572 case `(set -o) 2>/dev/null` in #(
7573 *posix*) :
7574 set -o posix ;; #(
7575 *) :
7577 esac
7581 as_nl='
7583 export as_nl
7584 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7585 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7588 # Prefer a ksh shell builtin over an external printf program on Solaris,
7589 # but without wasting forks for bash or zsh.
7590 if test -z "$BASH_VERSION$ZSH_VERSION" \
7591 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7592 as_echo='print -r --'
7593 as_echo_n='print -rn --'
7594 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7595 as_echo='printf %s\n'
7596 as_echo_n='printf %s'
7597 else
7598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7600 as_echo_n='/usr/ucb/echo -n'
7601 else
7602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7603 as_echo_n_body='eval
7604 arg=$1;
7605 case $arg in #(
7606 *"$as_nl"*)
7607 expr "X$arg" : "X\\(.*\\)$as_nl";
7608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7609 esac;
7610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7612 export as_echo_n_body
7613 as_echo_n='sh -c $as_echo_n_body as_echo'
7615 export as_echo_body
7616 as_echo='sh -c $as_echo_body as_echo'
7619 # The user is always right.
7620 if test "${PATH_SEPARATOR+set}" != set; then
7621 PATH_SEPARATOR=:
7622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7624 PATH_SEPARATOR=';'
7629 # IFS
7630 # We need space, tab and new line, in precisely that order. Quoting is
7631 # there to prevent editors from complaining about space-tab.
7632 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7633 # splitting by setting IFS to empty value.)
7634 IFS=" "" $as_nl"
7636 # Find who we are. Look in the path if we contain no directory separator.
7637 as_myself=
7638 case $0 in #((
7639 *[\\/]* ) as_myself=$0 ;;
7640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7646 done
7647 IFS=$as_save_IFS
7650 esac
7651 # We did not find ourselves, most probably we were run as `sh COMMAND'
7652 # in which case we are not to be found in the path.
7653 if test "x$as_myself" = x; then
7654 as_myself=$0
7656 if test ! -f "$as_myself"; then
7657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7658 exit 1
7661 # Unset variables that we do not need and which cause bugs (e.g. in
7662 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7663 # suppresses any "Segmentation fault" message there. '((' could
7664 # trigger a bug in pdksh 5.2.14.
7665 for as_var in BASH_ENV ENV MAIL MAILPATH
7666 do eval test x\${$as_var+set} = xset \
7667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7668 done
7669 PS1='$ '
7670 PS2='> '
7671 PS4='+ '
7673 # NLS nuisances.
7674 LC_ALL=C
7675 export LC_ALL
7676 LANGUAGE=C
7677 export LANGUAGE
7679 # CDPATH.
7680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7683 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7684 # ----------------------------------------
7685 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7686 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7687 # script with STATUS, using 1 if that was 0.
7688 as_fn_error ()
7690 as_status=$1; test $as_status -eq 0 && as_status=1
7691 if test "$4"; then
7692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7695 $as_echo "$as_me: error: $2" >&2
7696 as_fn_exit $as_status
7697 } # as_fn_error
7700 # as_fn_set_status STATUS
7701 # -----------------------
7702 # Set $? to STATUS, without forking.
7703 as_fn_set_status ()
7705 return $1
7706 } # as_fn_set_status
7708 # as_fn_exit STATUS
7709 # -----------------
7710 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7711 as_fn_exit ()
7713 set +e
7714 as_fn_set_status $1
7715 exit $1
7716 } # as_fn_exit
7718 # as_fn_unset VAR
7719 # ---------------
7720 # Portably unset VAR.
7721 as_fn_unset ()
7723 { eval $1=; unset $1;}
7725 as_unset=as_fn_unset
7726 # as_fn_append VAR VALUE
7727 # ----------------------
7728 # Append the text in VALUE to the end of the definition contained in VAR. Take
7729 # advantage of any shell optimizations that allow amortized linear growth over
7730 # repeated appends, instead of the typical quadratic growth present in naive
7731 # implementations.
7732 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7733 eval 'as_fn_append ()
7735 eval $1+=\$2
7737 else
7738 as_fn_append ()
7740 eval $1=\$$1\$2
7742 fi # as_fn_append
7744 # as_fn_arith ARG...
7745 # ------------------
7746 # Perform arithmetic evaluation on the ARGs, and store the result in the
7747 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7748 # must be portable across $(()) and expr.
7749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7750 eval 'as_fn_arith ()
7752 as_val=$(( $* ))
7754 else
7755 as_fn_arith ()
7757 as_val=`expr "$@" || test $? -eq 1`
7759 fi # as_fn_arith
7762 if expr a : '\(a\)' >/dev/null 2>&1 &&
7763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7764 as_expr=expr
7765 else
7766 as_expr=false
7769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7770 as_basename=basename
7771 else
7772 as_basename=false
7775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7776 as_dirname=dirname
7777 else
7778 as_dirname=false
7781 as_me=`$as_basename -- "$0" ||
7782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7783 X"$0" : 'X\(//\)$' \| \
7784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7785 $as_echo X/"$0" |
7786 sed '/^.*\/\([^/][^/]*\)\/*$/{
7787 s//\1/
7790 /^X\/\(\/\/\)$/{
7791 s//\1/
7794 /^X\/\(\/\).*/{
7795 s//\1/
7798 s/.*/./; q'`
7800 # Avoid depending upon Character Ranges.
7801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7804 as_cr_digits='0123456789'
7805 as_cr_alnum=$as_cr_Letters$as_cr_digits
7807 ECHO_C= ECHO_N= ECHO_T=
7808 case `echo -n x` in #(((((
7809 -n*)
7810 case `echo 'xy\c'` in
7811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7812 xy) ECHO_C='\c';;
7813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7814 ECHO_T=' ';;
7815 esac;;
7817 ECHO_N='-n';;
7818 esac
7820 rm -f conf$$ conf$$.exe conf$$.file
7821 if test -d conf$$.dir; then
7822 rm -f conf$$.dir/conf$$.file
7823 else
7824 rm -f conf$$.dir
7825 mkdir conf$$.dir 2>/dev/null
7827 if (echo >conf$$.file) 2>/dev/null; then
7828 if ln -s conf$$.file conf$$ 2>/dev/null; then
7829 as_ln_s='ln -s'
7830 # ... but there are two gotchas:
7831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7833 # In both cases, we have to default to `cp -pR'.
7834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7835 as_ln_s='cp -pR'
7836 elif ln conf$$.file conf$$ 2>/dev/null; then
7837 as_ln_s=ln
7838 else
7839 as_ln_s='cp -pR'
7841 else
7842 as_ln_s='cp -pR'
7844 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7845 rmdir conf$$.dir 2>/dev/null
7848 # as_fn_mkdir_p
7849 # -------------
7850 # Create "$as_dir" as a directory, including parents if necessary.
7851 as_fn_mkdir_p ()
7854 case $as_dir in #(
7855 -*) as_dir=./$as_dir;;
7856 esac
7857 test -d "$as_dir" || eval $as_mkdir_p || {
7858 as_dirs=
7859 while :; do
7860 case $as_dir in #(
7861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7862 *) as_qdir=$as_dir;;
7863 esac
7864 as_dirs="'$as_qdir' $as_dirs"
7865 as_dir=`$as_dirname -- "$as_dir" ||
7866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7867 X"$as_dir" : 'X\(//\)[^/]' \| \
7868 X"$as_dir" : 'X\(//\)$' \| \
7869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7870 $as_echo X"$as_dir" |
7871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7872 s//\1/
7875 /^X\(\/\/\)[^/].*/{
7876 s//\1/
7879 /^X\(\/\/\)$/{
7880 s//\1/
7883 /^X\(\/\).*/{
7884 s//\1/
7887 s/.*/./; q'`
7888 test -d "$as_dir" && break
7889 done
7890 test -z "$as_dirs" || eval "mkdir $as_dirs"
7891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7894 } # as_fn_mkdir_p
7895 if mkdir -p . 2>/dev/null; then
7896 as_mkdir_p='mkdir -p "$as_dir"'
7897 else
7898 test -d ./-p && rmdir ./-p
7899 as_mkdir_p=false
7903 # as_fn_executable_p FILE
7904 # -----------------------
7905 # Test if FILE is an executable regular file.
7906 as_fn_executable_p ()
7908 test -f "$1" && test -x "$1"
7909 } # as_fn_executable_p
7910 as_test_x='test -x'
7911 as_executable_p=as_fn_executable_p
7913 # Sed expression to map a string onto a valid CPP name.
7914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7916 # Sed expression to map a string onto a valid variable name.
7917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7920 exec 6>&1
7921 ## ----------------------------------- ##
7922 ## Main body of $CONFIG_STATUS script. ##
7923 ## ----------------------------------- ##
7924 _ASEOF
7925 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7928 # Save the log message, to keep $0 and so on meaningful, and to
7929 # report actual input values of CONFIG_FILES etc. instead of their
7930 # values after options handling.
7931 ac_log="
7932 This file was extended by GNU C Library $as_me (see version.h), which was
7933 generated by GNU Autoconf 2.69. Invocation command line was
7935 CONFIG_FILES = $CONFIG_FILES
7936 CONFIG_HEADERS = $CONFIG_HEADERS
7937 CONFIG_LINKS = $CONFIG_LINKS
7938 CONFIG_COMMANDS = $CONFIG_COMMANDS
7939 $ $0 $@
7941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7944 _ACEOF
7946 case $ac_config_files in *"
7947 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7948 esac
7950 case $ac_config_headers in *"
7951 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7952 esac
7955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7956 # Files that config.status was made for.
7957 config_files="$ac_config_files"
7958 config_headers="$ac_config_headers"
7959 config_commands="$ac_config_commands"
7961 _ACEOF
7963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7964 ac_cs_usage="\
7965 \`$as_me' instantiates files and other configuration actions
7966 from templates according to the current configuration. Unless the files
7967 and actions are specified as TAGs, all are instantiated by default.
7969 Usage: $0 [OPTION]... [TAG]...
7971 -h, --help print this help, then exit
7972 -V, --version print version number and configuration settings, then exit
7973 --config print configuration, then exit
7974 -q, --quiet, --silent
7975 do not print progress messages
7976 -d, --debug don't remove temporary files
7977 --recheck update $as_me by reconfiguring in the same conditions
7978 --file=FILE[:TEMPLATE]
7979 instantiate the configuration file FILE
7980 --header=FILE[:TEMPLATE]
7981 instantiate the configuration header FILE
7983 Configuration files:
7984 $config_files
7986 Configuration headers:
7987 $config_headers
7989 Configuration commands:
7990 $config_commands
7992 Report bugs to <http://sourceware.org/bugzilla/>.
7993 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7994 General help using GNU software: <http://www.gnu.org/gethelp/>."
7996 _ACEOF
7997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7998 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7999 ac_cs_version="\\
8000 GNU C Library config.status (see version.h)
8001 configured by $0, generated by GNU Autoconf 2.69,
8002 with options \\"\$ac_cs_config\\"
8004 Copyright (C) 2012 Free Software Foundation, Inc.
8005 This config.status script is free software; the Free Software Foundation
8006 gives unlimited permission to copy, distribute and modify it."
8008 ac_pwd='$ac_pwd'
8009 srcdir='$srcdir'
8010 INSTALL='$INSTALL'
8011 test -n "\$AWK" || AWK=awk
8012 _ACEOF
8014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8015 # The default lists apply if the user does not specify any file.
8016 ac_need_defaults=:
8017 while test $# != 0
8019 case $1 in
8020 --*=?*)
8021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8023 ac_shift=:
8025 --*=)
8026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8027 ac_optarg=
8028 ac_shift=:
8031 ac_option=$1
8032 ac_optarg=$2
8033 ac_shift=shift
8035 esac
8037 case $ac_option in
8038 # Handling of the options.
8039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8040 ac_cs_recheck=: ;;
8041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8042 $as_echo "$ac_cs_version"; exit ;;
8043 --config | --confi | --conf | --con | --co | --c )
8044 $as_echo "$ac_cs_config"; exit ;;
8045 --debug | --debu | --deb | --de | --d | -d )
8046 debug=: ;;
8047 --file | --fil | --fi | --f )
8048 $ac_shift
8049 case $ac_optarg in
8050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8051 '') as_fn_error $? "missing file argument" ;;
8052 esac
8053 as_fn_append CONFIG_FILES " '$ac_optarg'"
8054 ac_need_defaults=false;;
8055 --header | --heade | --head | --hea )
8056 $ac_shift
8057 case $ac_optarg in
8058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8059 esac
8060 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8061 ac_need_defaults=false;;
8062 --he | --h)
8063 # Conflict between --help and --header
8064 as_fn_error $? "ambiguous option: \`$1'
8065 Try \`$0 --help' for more information.";;
8066 --help | --hel | -h )
8067 $as_echo "$ac_cs_usage"; exit ;;
8068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8070 ac_cs_silent=: ;;
8072 # This is an error.
8073 -*) as_fn_error $? "unrecognized option: \`$1'
8074 Try \`$0 --help' for more information." ;;
8076 *) as_fn_append ac_config_targets " $1"
8077 ac_need_defaults=false ;;
8079 esac
8080 shift
8081 done
8083 ac_configure_extra_args=
8085 if $ac_cs_silent; then
8086 exec 6>/dev/null
8087 ac_configure_extra_args="$ac_configure_extra_args --silent"
8090 _ACEOF
8091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8092 if \$ac_cs_recheck; then
8093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8094 shift
8095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8096 CONFIG_SHELL='$SHELL'
8097 export CONFIG_SHELL
8098 exec "\$@"
8101 _ACEOF
8102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8103 exec 5>>config.log
8105 echo
8106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8107 ## Running $as_me. ##
8108 _ASBOX
8109 $as_echo "$ac_log"
8110 } >&5
8112 _ACEOF
8113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8115 # INIT-COMMANDS
8117 config_vars='$config_vars'
8119 _ACEOF
8121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8123 # Handling of arguments.
8124 for ac_config_target in $ac_config_targets
8126 case $ac_config_target in
8127 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8128 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8129 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8130 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8133 esac
8134 done
8137 # If the user did not use the arguments to specify the items to instantiate,
8138 # then the envvar interface is used. Set only those that are not.
8139 # We use the long form for the default assignment because of an extremely
8140 # bizarre bug on SunOS 4.1.3.
8141 if $ac_need_defaults; then
8142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8147 # Have a temporary directory for convenience. Make it in the build tree
8148 # simply because there is no reason against having it here, and in addition,
8149 # creating and moving files from /tmp can sometimes cause problems.
8150 # Hook for its removal unless debugging.
8151 # Note that there is a small window in which the directory will not be cleaned:
8152 # after its creation but before its name has been assigned to `$tmp'.
8153 $debug ||
8155 tmp= ac_tmp=
8156 trap 'exit_status=$?
8157 : "${ac_tmp:=$tmp}"
8158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8160 trap 'as_fn_exit 1' 1 2 13 15
8162 # Create a (secure) tmp directory for tmp files.
8165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8166 test -d "$tmp"
8167 } ||
8169 tmp=./conf$$-$RANDOM
8170 (umask 077 && mkdir "$tmp")
8171 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8172 ac_tmp=$tmp
8174 # Set up the scripts for CONFIG_FILES section.
8175 # No need to generate them if there are no CONFIG_FILES.
8176 # This happens for instance with `./config.status config.h'.
8177 if test -n "$CONFIG_FILES"; then
8180 ac_cr=`echo X | tr X '\015'`
8181 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8182 # But we know of no other shell where ac_cr would be empty at this
8183 # point, so we can use a bashism as a fallback.
8184 if test "x$ac_cr" = x; then
8185 eval ac_cr=\$\'\\r\'
8187 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8188 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8189 ac_cs_awk_cr='\\r'
8190 else
8191 ac_cs_awk_cr=$ac_cr
8194 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8195 _ACEOF
8199 echo "cat >conf$$subs.awk <<_ACEOF" &&
8200 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8201 echo "_ACEOF"
8202 } >conf$$subs.sh ||
8203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8204 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8205 ac_delim='%!_!# '
8206 for ac_last_try in false false false false false :; do
8207 . ./conf$$subs.sh ||
8208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8210 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8211 if test $ac_delim_n = $ac_delim_num; then
8212 break
8213 elif $ac_last_try; then
8214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8215 else
8216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8218 done
8219 rm -f conf$$subs.sh
8221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8222 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8223 _ACEOF
8224 sed -n '
8226 s/^/S["/; s/!.*/"]=/
8229 s/^[^!]*!//
8230 :repl
8231 t repl
8232 s/'"$ac_delim"'$//
8233 t delim
8236 s/\(.\{148\}\)..*/\1/
8237 t more1
8238 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8241 b repl
8242 :more1
8243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8246 s/.\{148\}//
8247 t nl
8248 :delim
8250 s/\(.\{148\}\)..*/\1/
8251 t more2
8252 s/["\\]/\\&/g; s/^/"/; s/$/"/
8255 :more2
8256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8259 s/.\{148\}//
8260 t delim
8261 ' <conf$$subs.awk | sed '
8262 /^[^""]/{
8264 s/\n//
8266 ' >>$CONFIG_STATUS || ac_write_fail=1
8267 rm -f conf$$subs.awk
8268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8269 _ACAWK
8270 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8271 for (key in S) S_is_set[key] = 1
8272 FS = "\a"
8276 line = $ 0
8277 nfields = split(line, field, "@")
8278 substed = 0
8279 len = length(field[1])
8280 for (i = 2; i < nfields; i++) {
8281 key = field[i]
8282 keylen = length(key)
8283 if (S_is_set[key]) {
8284 value = S[key]
8285 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8286 len += length(value) + length(field[++i])
8287 substed = 1
8288 } else
8289 len += 1 + keylen
8292 print line
8295 _ACAWK
8296 _ACEOF
8297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8298 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8299 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8300 else
8302 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8303 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8304 _ACEOF
8306 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8307 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8308 # trailing colons and then remove the whole line if VPATH becomes empty
8309 # (actually we leave an empty line to preserve line numbers).
8310 if test "x$srcdir" = x.; then
8311 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8313 s///
8314 s/^/:/
8315 s/[ ]*$/:/
8316 s/:\$(srcdir):/:/g
8317 s/:\${srcdir}:/:/g
8318 s/:@srcdir@:/:/g
8319 s/^:*//
8320 s/:*$//
8322 s/\(=[ ]*\).*/\1/
8324 s/\n//
8325 s/^[^=]*=[ ]*$//
8329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8330 fi # test -n "$CONFIG_FILES"
8332 # Set up the scripts for CONFIG_HEADERS section.
8333 # No need to generate them if there are no CONFIG_HEADERS.
8334 # This happens for instance with `./config.status Makefile'.
8335 if test -n "$CONFIG_HEADERS"; then
8336 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8337 BEGIN {
8338 _ACEOF
8340 # Transform confdefs.h into an awk script `defines.awk', embedded as
8341 # here-document in config.status, that substitutes the proper values into
8342 # config.h.in to produce config.h.
8344 # Create a delimiter string that does not exist in confdefs.h, to ease
8345 # handling of long lines.
8346 ac_delim='%!_!# '
8347 for ac_last_try in false false :; do
8348 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8349 if test -z "$ac_tt"; then
8350 break
8351 elif $ac_last_try; then
8352 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8353 else
8354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8356 done
8358 # For the awk script, D is an array of macro values keyed by name,
8359 # likewise P contains macro parameters if any. Preserve backslash
8360 # newline sequences.
8362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8363 sed -n '
8364 s/.\{148\}/&'"$ac_delim"'/g
8365 t rset
8366 :rset
8367 s/^[ ]*#[ ]*define[ ][ ]*/ /
8368 t def
8370 :def
8371 s/\\$//
8372 t bsnl
8373 s/["\\]/\\&/g
8374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8375 D["\1"]=" \3"/p
8376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8378 :bsnl
8379 s/["\\]/\\&/g
8380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8381 D["\1"]=" \3\\\\\\n"\\/p
8382 t cont
8383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8384 t cont
8386 :cont
8388 s/.\{148\}/&'"$ac_delim"'/g
8389 t clear
8390 :clear
8391 s/\\$//
8392 t bsnlc
8393 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8395 :bsnlc
8396 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8397 b cont
8398 ' <confdefs.h | sed '
8399 s/'"$ac_delim"'/"\\\
8400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8403 for (key in D) D_is_set[key] = 1
8404 FS = "\a"
8406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8407 line = \$ 0
8408 split(line, arg, " ")
8409 if (arg[1] == "#") {
8410 defundef = arg[2]
8411 mac1 = arg[3]
8412 } else {
8413 defundef = substr(arg[1], 2)
8414 mac1 = arg[2]
8416 split(mac1, mac2, "(") #)
8417 macro = mac2[1]
8418 prefix = substr(line, 1, index(line, defundef) - 1)
8419 if (D_is_set[macro]) {
8420 # Preserve the white space surrounding the "#".
8421 print prefix "define", macro P[macro] D[macro]
8422 next
8423 } else {
8424 # Replace #undef with comments. This is necessary, for example,
8425 # in the case of _POSIX_SOURCE, which is predefined and required
8426 # on some systems where configure will not decide to define it.
8427 if (defundef == "undef") {
8428 print "/*", prefix defundef, macro, "*/"
8429 next
8433 { print }
8434 _ACAWK
8435 _ACEOF
8436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8437 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8438 fi # test -n "$CONFIG_HEADERS"
8441 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8442 shift
8443 for ac_tag
8445 case $ac_tag in
8446 :[FHLC]) ac_mode=$ac_tag; continue;;
8447 esac
8448 case $ac_mode$ac_tag in
8449 :[FHL]*:*);;
8450 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8451 :[FH]-) ac_tag=-:-;;
8452 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8453 esac
8454 ac_save_IFS=$IFS
8455 IFS=:
8456 set x $ac_tag
8457 IFS=$ac_save_IFS
8458 shift
8459 ac_file=$1
8460 shift
8462 case $ac_mode in
8463 :L) ac_source=$1;;
8464 :[FH])
8465 ac_file_inputs=
8466 for ac_f
8468 case $ac_f in
8469 -) ac_f="$ac_tmp/stdin";;
8470 *) # Look for the file first in the build tree, then in the source tree
8471 # (if the path is not absolute). The absolute path cannot be DOS-style,
8472 # because $ac_f cannot contain `:'.
8473 test -f "$ac_f" ||
8474 case $ac_f in
8475 [\\/$]*) false;;
8476 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8477 esac ||
8478 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8479 esac
8480 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8481 as_fn_append ac_file_inputs " '$ac_f'"
8482 done
8484 # Let's still pretend it is `configure' which instantiates (i.e., don't
8485 # use $as_me), people would be surprised to read:
8486 # /* config.h. Generated by config.status. */
8487 configure_input='Generated from '`
8488 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8489 `' by configure.'
8490 if test x"$ac_file" != x-; then
8491 configure_input="$ac_file. $configure_input"
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8493 $as_echo "$as_me: creating $ac_file" >&6;}
8495 # Neutralize special characters interpreted by sed in replacement strings.
8496 case $configure_input in #(
8497 *\&* | *\|* | *\\* )
8498 ac_sed_conf_input=`$as_echo "$configure_input" |
8499 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8500 *) ac_sed_conf_input=$configure_input;;
8501 esac
8503 case $ac_tag in
8504 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8506 esac
8508 esac
8510 ac_dir=`$as_dirname -- "$ac_file" ||
8511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8512 X"$ac_file" : 'X\(//\)[^/]' \| \
8513 X"$ac_file" : 'X\(//\)$' \| \
8514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8515 $as_echo X"$ac_file" |
8516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8517 s//\1/
8520 /^X\(\/\/\)[^/].*/{
8521 s//\1/
8524 /^X\(\/\/\)$/{
8525 s//\1/
8528 /^X\(\/\).*/{
8529 s//\1/
8532 s/.*/./; q'`
8533 as_dir="$ac_dir"; as_fn_mkdir_p
8534 ac_builddir=.
8536 case "$ac_dir" in
8537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8540 # A ".." for each directory in $ac_dir_suffix.
8541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8542 case $ac_top_builddir_sub in
8543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8545 esac ;;
8546 esac
8547 ac_abs_top_builddir=$ac_pwd
8548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8549 # for backward compatibility:
8550 ac_top_builddir=$ac_top_build_prefix
8552 case $srcdir in
8553 .) # We are building in place.
8554 ac_srcdir=.
8555 ac_top_srcdir=$ac_top_builddir_sub
8556 ac_abs_top_srcdir=$ac_pwd ;;
8557 [\\/]* | ?:[\\/]* ) # Absolute name.
8558 ac_srcdir=$srcdir$ac_dir_suffix;
8559 ac_top_srcdir=$srcdir
8560 ac_abs_top_srcdir=$srcdir ;;
8561 *) # Relative name.
8562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8563 ac_top_srcdir=$ac_top_build_prefix$srcdir
8564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8565 esac
8566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8569 case $ac_mode in
8572 # CONFIG_FILE
8575 case $INSTALL in
8576 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8577 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8578 esac
8579 _ACEOF
8581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8582 # If the template does not know about datarootdir, expand it.
8583 # FIXME: This hack should be removed a few years after 2.60.
8584 ac_datarootdir_hack=; ac_datarootdir_seen=
8585 ac_sed_dataroot='
8586 /datarootdir/ {
8590 /@datadir@/p
8591 /@docdir@/p
8592 /@infodir@/p
8593 /@localedir@/p
8594 /@mandir@/p'
8595 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8596 *datarootdir*) ac_datarootdir_seen=yes;;
8597 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8599 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8600 _ACEOF
8601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8602 ac_datarootdir_hack='
8603 s&@datadir@&$datadir&g
8604 s&@docdir@&$docdir&g
8605 s&@infodir@&$infodir&g
8606 s&@localedir@&$localedir&g
8607 s&@mandir@&$mandir&g
8608 s&\\\${datarootdir}&$datarootdir&g' ;;
8609 esac
8610 _ACEOF
8612 # Neutralize VPATH when `$srcdir' = `.'.
8613 # Shell code in configure.ac might set extrasub.
8614 # FIXME: do we really want to maintain this feature?
8615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8616 ac_sed_extra="$ac_vpsub
8617 $extrasub
8618 _ACEOF
8619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8622 s|@configure_input@|$ac_sed_conf_input|;t t
8623 s&@top_builddir@&$ac_top_builddir_sub&;t t
8624 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8625 s&@srcdir@&$ac_srcdir&;t t
8626 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8627 s&@top_srcdir@&$ac_top_srcdir&;t t
8628 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8629 s&@builddir@&$ac_builddir&;t t
8630 s&@abs_builddir@&$ac_abs_builddir&;t t
8631 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8632 s&@INSTALL@&$ac_INSTALL&;t t
8633 $ac_datarootdir_hack
8635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8641 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8643 which seems to be undefined. Please make sure it is defined" >&5
8644 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8645 which seems to be undefined. Please make sure it is defined" >&2;}
8647 rm -f "$ac_tmp/stdin"
8648 case $ac_file in
8649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8651 esac \
8652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8656 # CONFIG_HEADER
8658 if test x"$ac_file" != x-; then
8660 $as_echo "/* $configure_input */" \
8661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8662 } >"$ac_tmp/config.h" \
8663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8666 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8667 else
8668 rm -f "$ac_file"
8669 mv "$ac_tmp/config.h" "$ac_file" \
8670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8672 else
8673 $as_echo "/* $configure_input */" \
8674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8675 || as_fn_error $? "could not create -" "$LINENO" 5
8679 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8680 $as_echo "$as_me: executing $ac_file commands" >&6;}
8682 esac
8685 case $ac_file$ac_mode in
8686 "default":C)
8687 case $CONFIG_FILES in *config.make*)
8688 echo "$config_vars" >> config.make;;
8689 esac
8690 test -d bits || mkdir bits ;;
8692 esac
8693 done # for ac_tag
8696 as_fn_exit 0
8697 _ACEOF
8698 ac_clean_files=$ac_clean_files_save
8700 test $ac_write_fail = 0 ||
8701 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8704 # configure is writing to config.log, and then calls config.status.
8705 # config.status does its own redirection, appending to config.log.
8706 # Unfortunately, on DOS this fails, as config.log is still kept open
8707 # by configure, so config.status won't be able to write to it; its
8708 # output is simply discarded. So we exec the FD to /dev/null,
8709 # effectively closing config.log, so it can be properly (re)opened and
8710 # appended to by config.status. When coming back to configure, we
8711 # need to make the FD available again.
8712 if test "$no_create" != yes; then
8713 ac_cs_success=:
8714 ac_config_status_args=
8715 test "$silent" = yes &&
8716 ac_config_status_args="$ac_config_status_args --quiet"
8717 exec 5>/dev/null
8718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8719 exec 5>>config.log
8720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8721 # would make configure fail if this is the last instruction.
8722 $ac_cs_success || as_fn_exit 1
8726 # CONFIG_SUBDIRS section.
8728 if test "$no_recursion" != yes; then
8730 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8731 # so they do not pile up.
8732 ac_sub_configure_args=
8733 ac_prev=
8734 eval "set x $ac_configure_args"
8735 shift
8736 for ac_arg
8738 if test -n "$ac_prev"; then
8739 ac_prev=
8740 continue
8742 case $ac_arg in
8743 -cache-file | --cache-file | --cache-fil | --cache-fi \
8744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8745 ac_prev=cache_file ;;
8746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8748 | --c=*)
8750 --config-cache | -C)
8752 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8753 ac_prev=srcdir ;;
8754 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8756 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8757 ac_prev=prefix ;;
8758 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8760 --disable-option-checking)
8763 case $ac_arg in
8764 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8765 esac
8766 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8767 esac
8768 done
8770 # Always prepend --prefix to ensure using the same prefix
8771 # in subdir configurations.
8772 ac_arg="--prefix=$prefix"
8773 case $ac_arg in
8774 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8775 esac
8776 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8778 # Pass --silent
8779 if test "$silent" = yes; then
8780 ac_sub_configure_args="--silent $ac_sub_configure_args"
8783 # Always prepend --disable-option-checking to silence warnings, since
8784 # different subdirs can have different --enable and --with options.
8785 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8787 ac_popdir=`pwd`
8788 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8790 # Do not complain, so a configure script can configure whichever
8791 # parts of a large source tree are present.
8792 test -d "$srcdir/$ac_dir" || continue
8794 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8796 $as_echo "$ac_msg" >&6
8797 as_dir="$ac_dir"; as_fn_mkdir_p
8798 ac_builddir=.
8800 case "$ac_dir" in
8801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8803 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8804 # A ".." for each directory in $ac_dir_suffix.
8805 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8806 case $ac_top_builddir_sub in
8807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8809 esac ;;
8810 esac
8811 ac_abs_top_builddir=$ac_pwd
8812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8813 # for backward compatibility:
8814 ac_top_builddir=$ac_top_build_prefix
8816 case $srcdir in
8817 .) # We are building in place.
8818 ac_srcdir=.
8819 ac_top_srcdir=$ac_top_builddir_sub
8820 ac_abs_top_srcdir=$ac_pwd ;;
8821 [\\/]* | ?:[\\/]* ) # Absolute name.
8822 ac_srcdir=$srcdir$ac_dir_suffix;
8823 ac_top_srcdir=$srcdir
8824 ac_abs_top_srcdir=$srcdir ;;
8825 *) # Relative name.
8826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8827 ac_top_srcdir=$ac_top_build_prefix$srcdir
8828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8829 esac
8830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8833 cd "$ac_dir"
8835 # Check for guested configure; otherwise get Cygnus style configure.
8836 if test -f "$ac_srcdir/configure.gnu"; then
8837 ac_sub_configure=$ac_srcdir/configure.gnu
8838 elif test -f "$ac_srcdir/configure"; then
8839 ac_sub_configure=$ac_srcdir/configure
8840 elif test -f "$ac_srcdir/configure.in"; then
8841 # This should be Cygnus configure.
8842 ac_sub_configure=$ac_aux_dir/configure
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8845 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8846 ac_sub_configure=
8849 # The recursion is here.
8850 if test -n "$ac_sub_configure"; then
8851 # Make the cache file name correct relative to the subdirectory.
8852 case $cache_file in
8853 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8854 *) # Relative name.
8855 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8856 esac
8858 { $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
8859 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8860 # The eval makes quoting arguments work.
8861 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8862 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8863 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8866 cd "$ac_popdir"
8867 done
8869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8871 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}