2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
262 ac_unique_file="include/features.h"
263 ac_subdirs_all="$ac_subdirs_all $add_ons"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
268 # include <sys/types.h>
271 # include <sys/stat.h>
282 # if !STDC_HEADERS && HAVE_MEMORY_H
288 # include <strings.h>
291 # include <inttypes.h>
302 # Initialize some variables set by options.
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
314 program_transform_name=s,x,x,
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
350 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
352 # Accept the important Cygnus configure options, so we can diagnose typos.
356 -bindir | --bindir | --bindi | --bind | --bin | --bi)
358 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
361 -build | --build | --buil | --bui | --bu)
362 ac_prev=build_alias ;;
363 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364 build_alias=$ac_optarg ;;
366 -cache-file | --cache-file | --cache-fil | --cache-fi \
367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368 ac_prev=cache_file ;;
369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371 cache_file=$ac_optarg ;;
374 cache_file=config.cache ;;
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
380 datadir=$ac_optarg ;;
382 -disable-* | --disable-*)
383 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384 # Reject names that are not valid shell variable names.
385 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387 { (exit 1); exit 1; }; }
388 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389 eval "enable_$ac_feature=no" ;;
391 -enable-* | --enable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
402 eval "enable_$ac_feature='$ac_optarg'" ;;
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix=$ac_optarg ;;
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
417 -help | --help | --hel | --he | -h)
419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420 ac_init_help=recursive ;;
421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422 ac_init_help=short ;;
424 -host | --host | --hos | --ho)
425 ac_prev=host_alias ;;
426 -host=* | --host=* | --hos=* | --ho=*)
427 host_alias=$ac_optarg ;;
429 -includedir | --includedir | --includedi | --included | --include \
430 | --includ | --inclu | --incl | --inc)
431 ac_prev=includedir ;;
432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433 | --includ=* | --inclu=* | --incl=* | --inc=*)
434 includedir=$ac_optarg ;;
436 -infodir | --infodir | --infodi | --infod | --info | --inf)
438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439 infodir=$ac_optarg ;;
441 -libdir | --libdir | --libdi | --libd)
443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447 | --libexe | --libex | --libe)
448 ac_prev=libexecdir ;;
449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450 | --libexe=* | --libex=* | --libe=*)
451 libexecdir=$ac_optarg ;;
453 -localstatedir | --localstatedir | --localstatedi | --localstated \
454 | --localstate | --localstat | --localsta | --localst \
455 | --locals | --local | --loca | --loc | --lo)
456 ac_prev=localstatedir ;;
457 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460 localstatedir=$ac_optarg ;;
462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468 # Obsolete; use --without-fp.
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c | -n)
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481 | --oldin | --oldi | --old | --ol | --o)
482 ac_prev=oldincludedir ;;
483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486 oldincludedir=$ac_optarg ;;
488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
494 | --program-pre | --program-pr | --program-p)
495 ac_prev=program_prefix ;;
496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498 program_prefix=$ac_optarg ;;
500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
501 | --program-suf | --program-su | --program-s)
502 ac_prev=program_suffix ;;
503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505 program_suffix=$ac_optarg ;;
507 -program-transform-name | --program-transform-name \
508 | --program-transform-nam | --program-transform-na \
509 | --program-transform-n | --program-transform- \
510 | --program-transform | --program-transfor \
511 | --program-transfo | --program-transf \
512 | --program-trans | --program-tran \
513 | --progr-tra | --program-tr | --program-t)
514 ac_prev=program_transform_name ;;
515 -program-transform-name=* | --program-transform-name=* \
516 | --program-transform-nam=* | --program-transform-na=* \
517 | --program-transform-n=* | --program-transform-=* \
518 | --program-transform=* | --program-transfor=* \
519 | --program-transfo=* | --program-transf=* \
520 | --program-trans=* | --program-tran=* \
521 | --progr-tra=* | --program-tr=* | --program-t=*)
522 program_transform_name=$ac_optarg ;;
524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525 | -silent | --silent | --silen | --sile | --sil)
528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
532 sbindir=$ac_optarg ;;
534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536 | --sharedst | --shareds | --shared | --share | --shar \
538 ac_prev=sharedstatedir ;;
539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
543 sharedstatedir=$ac_optarg ;;
545 -site | --site | --sit)
547 -site=* | --site=* | --sit=*)
550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556 | --syscon | --sysco | --sysc | --sys | --sy)
557 ac_prev=sysconfdir ;;
558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560 sysconfdir=$ac_optarg ;;
562 -target | --target | --targe | --targ | --tar | --ta | --t)
563 ac_prev=target_alias ;;
564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565 target_alias=$ac_optarg ;;
567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
570 -version | --version | --versio | --versi | --vers | -V)
574 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid package name: $ac_package" >&2
578 { (exit 1); exit 1; }; }
579 ac_package=`echo $ac_package| sed 's/-/_/g'`
581 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584 eval "with_$ac_package='$ac_optarg'" ;;
586 -without-* | --without-*)
587 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package | sed 's/-/_/g'`
593 eval "with_$ac_package=no" ;;
596 # Obsolete; use --with-x.
599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600 | --x-incl | --x-inc | --x-in | --x-i)
601 ac_prev=x_includes ;;
602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604 x_includes=$ac_optarg ;;
606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608 ac_prev=x_libraries ;;
609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611 x_libraries=$ac_optarg ;;
613 -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615 { (exit 1); exit 1; }; }
619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620 # Reject names that are not valid shell variable names.
621 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623 { (exit 1); exit 1; }; }
624 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625 eval "$ac_envvar='$ac_optarg'"
629 # FIXME: should be removed in autoconf 3.0.
630 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
639 if test -n "$ac_prev"; then
640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641 { echo "$as_me: error: missing argument to $ac_option" >&2
642 { (exit 1); exit 1; }; }
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
648 eval ac_val=$`echo $ac_var`
650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677 if test "x$build_alias" = x; then
678 cross_compiling=maybe
679 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680 If a cross compiler is detected then cross compile mode will be used." >&2
681 elif test "x$build_alias" != "x$host_alias"; then
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
689 test "$silent" = yes && exec 6>/dev/null
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
709 if test ! -r $srcdir/$ac_unique_file; then
713 ac_srcdir_defaulted=no
715 if test ! -r $srcdir/$ac_unique_file; then
716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
759 # Report the --help message.
761 if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
765 \`configure' configures this package to adapt to many kinds of systems.
767 Usage: $0 [OPTION]... [VAR=VALUE]...
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE. See below for descriptions of some of the useful variables.
772 Defaults for the options are specified in brackets.
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --sbindir=DIR system admin executables [EPREFIX/sbin]
804 --libexecdir=DIR program executables [EPREFIX/libexec]
805 --datadir=DIR read-only architecture-independent data [PREFIX/share]
806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
809 --libdir=DIR object code libraries [EPREFIX/lib]
810 --includedir=DIR C header files [PREFIX/include]
811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
812 --infodir=DIR info documentation [PREFIX/info]
813 --mandir=DIR man documentation [PREFIX/man]
819 --build=BUILD configure for building on BUILD [guessed]
820 --host=HOST cross-compile to build programs to run on HOST [BUILD]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --disable-sanity-checks really do not use threads (should not be used
832 except in special situations) default=yes
833 --enable-shared build shared library default=yes if GNU ld & ELF
834 --enable-profile build profiled library default=yes
835 --enable-omitfp build undebuggable optimized library default=no
836 --enable-bounded build with runtime bounds checking default=no
837 --disable-versioning do not include versioning information in the
838 library objects default=yes if supported
839 --enable-oldest-abi=ABI configure the oldest ABI supported e.g. 2.2
840 default=glibc default
841 --enable-add-ons=DIR1,DIR2...
842 configure and build add-ons in DIR1,DIR2,...
843 search for add-ons if no parameter given
844 --disable-hidden-plt do not hide internal function calls to avoid PLT
845 --enable-static-nss build static NSS modules default=no
846 --disable-force-install don't force installation of files from this package,
847 even if they are older than the installed files
848 --enable-kernel=VERSION compile for compatibility with kernel not older
850 --enable-all-warnings enable all useful warnings gcc can issue
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
856 --with-gd=DIR find libgd include dir and library with prefix DIR
857 --with-gd-include=DIR find libgd include files in DIR
858 --with-gd-lib=DIR find libgd library files in DIR
859 --with-fp if using floating-point hardware default=yes
860 --with-binutils=PATH specify location of binutils (as and ld)
861 --with-elf if using the ELF object format
862 --with-xcoff if using the XCOFF object format
863 --without-cvs if CVS should not be used
864 --with-headers=PATH location of system headers to use
865 e.g. /usr/src/linux/include
866 default=compiler default
867 --with-tls enable support for TLS
868 --without-__thread do not use TLS features even when supporting them
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 ac_dir_suffix= ac_top_builddir=
901 .) # No --srcdir option. We are building in place.
903 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
918 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
923 # Check for guested configure; otherwise get Cygnus style configure.
924 if test -f $ac_srcdir/configure.gnu; then
926 $SHELL $ac_srcdir/configure.gnu --help=recursive
927 elif test -f $ac_srcdir/configure; then
929 $SHELL $ac_srcdir/configure --help=recursive
930 elif test -f $ac_srcdir/configure.ac ||
931 test -f $ac_srcdir/configure.in; then
935 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941 test -n "$ac_init_help" && exit 0
942 if $ac_init_version; then
945 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
946 Free Software Foundation, Inc.
947 This configure script is free software; the Free Software Foundation
948 gives unlimited permission to copy, distribute and modify it.
954 This file contains any messages produced by compilers while
955 running configure, to aid debugging if configure makes a mistake.
957 It was created by $as_me, which was
958 generated by GNU Autoconf 2.53. Invocation command line was
969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
981 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992 test -z "$as_dir" && as_dir=.
1008 # Keep a trace of the command line.
1009 # Strip out --no-create and --no-recursion so they do not pile up.
1010 # Also quote any args containing shell meta-characters.
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n ) continue ;;
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1024 case " $ac_configure_args " in
1025 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1026 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1029 # Get rid of the leading space.
1032 # When interrupted or exit'd, cleanup temporary files, and complete
1033 # config.log. We remove comments because anyway the quotes in there
1034 # would cause problems or look ugly.
1035 # WARNING: Be sure not to use single quotes in there, as some shells,
1036 # such as our DU 5.0 friend, will then `close' the trap.
1037 trap 'exit_status=$?
1038 # Save into config.log some information that might help in debugging.
1042 ## ---------------- ##
1043 ## Cache variables. ##
1044 ## ---------------- ##
1047 # The following way of writing the cache mishandles newlines in values,
1050 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1053 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1063 if test -s confdefs.h; then
1070 sed "/^$/d" confdefs.h
1073 test "$ac_signal" != 0 &&
1074 echo "$as_me: caught signal $ac_signal"
1075 echo "$as_me: exit $exit_status"
1077 rm -f core core.* *.core &&
1078 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1081 for ac_signal in 1 2 13 15; do
1082 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1087 rm -rf conftest* confdefs.h
1088 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1091 # Predefined preprocessor variables.
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_NAME "$PACKAGE_NAME"
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_STRING "$PACKAGE_STRING"
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1118 # Let the site file select an alternate cache file if it wants to.
1119 # Prefer explicitly selected file to automatically selected ones.
1120 if test -z "$CONFIG_SITE"; then
1121 if test "x$prefix" != xNONE; then
1122 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1124 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1127 for ac_site_file in $CONFIG_SITE; do
1128 if test -r "$ac_site_file"; then
1129 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1130 echo "$as_me: loading site script $ac_site_file" >&6;}
1131 sed 's/^/| /' "$ac_site_file" >&5
1136 if test -r "$cache_file"; then
1137 # Some versions of bash will fail to source /dev/null (special
1138 # files actually), so we avoid doing that.
1139 if test -f "$cache_file"; then
1140 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1141 echo "$as_me: loading cache $cache_file" >&6;}
1143 [\\/]* | ?:[\\/]* ) . $cache_file;;
1144 *) . ./$cache_file;;
1148 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1149 echo "$as_me: creating cache $cache_file" >&6;}
1153 # Check that the precious variables saved in the cache have kept the same
1155 ac_cache_corrupted=false
1156 for ac_var in `(set) 2>&1 |
1157 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1159 eval ac_new_set=\$ac_env_${ac_var}_set
1160 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1161 eval ac_new_val="\$ac_env_${ac_var}_value"
1162 case $ac_old_set,$ac_new_set in
1164 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1165 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1166 ac_cache_corrupted=: ;;
1168 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1169 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1170 ac_cache_corrupted=: ;;
1173 if test "x$ac_old_val" != "x$ac_new_val"; then
1174 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1175 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1176 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1177 echo "$as_me: former value: $ac_old_val" >&2;}
1178 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1179 echo "$as_me: current value: $ac_new_val" >&2;}
1180 ac_cache_corrupted=:
1183 # Pass precious variables to config.status.
1184 if test "$ac_new_set" = set; then
1186 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1188 *) ac_arg=$ac_var=$ac_new_val ;;
1190 case " $ac_configure_args " in
1191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1192 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1196 if $ac_cache_corrupted; then
1197 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1198 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1199 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1200 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1201 { (exit 1); exit 1; }; }
1205 ac_cpp='$CPP $CPPFLAGS'
1206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227 ac_config_headers="$ac_config_headers config.h"
1230 for ac_dir in scripts $srcdir/scripts; do
1231 if test -f $ac_dir/install-sh; then
1233 ac_install_sh="$ac_aux_dir/install-sh -c"
1235 elif test -f $ac_dir/install.sh; then
1237 ac_install_sh="$ac_aux_dir/install.sh -c"
1239 elif test -f $ac_dir/shtool; then
1241 ac_install_sh="$ac_aux_dir/shtool install -c"
1245 if test -z "$ac_aux_dir"; then
1246 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1247 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1248 { (exit 1); exit 1; }; }
1250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1252 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1255 # This will get text that should go into config.make.
1258 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1260 # Check whether --with-gmp or --without-gmp was given.
1261 if test "${with_gmp+set}" = set; then
1264 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1265 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1266 { (exit 1); exit 1; }; } ;;
1268 *) config_vars="$config_vars
1269 gmp-srcdir = $withval" ;;
1273 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1275 # Check whether --with-gd or --without-gd was given.
1276 if test "${with_gd+set}" = set; then
1280 *) libgd_include="-I$withval/include"
1281 libgd_ldflags="-L$withval/lib" ;;
1286 # Check whether --with-gd-include or --without-gd-include was given.
1287 if test "${with_gd_include+set}" = set; then
1288 withval="$with_gd_include"
1289 case "$with_gd_include" in
1291 *) libgd_include="-I$withval" ;;
1296 # Check whether --with-gd-lib or --without-gd-lib was given.
1297 if test "${with_gd_lib+set}" = set; then
1298 withval="$with_gd_lib"
1299 case "$with_gd_lib" in
1301 *) libgd_ldflags="-L$withval" ;;
1306 if test -n "$libgd_include"; then
1307 config_vars="$config_vars
1308 CFLAGS-memusagestat.c = $libgd_include"
1310 if test -n "$libgd_ldflags"; then
1311 config_vars="$config_vars
1312 libgd-LDFLAGS = $libgd_ldflags"
1316 # Check whether --with-fp or --without-fp was given.
1317 if test "${with_fp+set}" = set; then
1325 # Check whether --with-binutils or --without-binutils was given.
1326 if test "${with_binutils+set}" = set; then
1327 withval="$with_binutils"
1328 path_binutils=$withval
1333 # Check whether --with-elf or --without-elf was given.
1334 if test "${with_elf+set}" = set; then
1341 # Check whether --with-xcoff or --without-xcoff was given.
1342 if test "${with_xcoff+set}" = set; then
1343 withval="$with_xcoff"
1349 # Check whether --with-cvs or --without-cvs was given.
1350 if test "${with_cvs+set}" = set; then
1356 if test "$with_cvs" = yes; then
1357 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1365 # Check whether --with-headers or --without-headers was given.
1366 if test "${with_headers+set}" = set; then
1367 withval="$with_headers"
1373 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1374 if test "${enable_sanity_checks+set}" = set; then
1375 enableval="$enable_sanity_checks"
1376 enable_sanity=$enableval
1382 # Check whether --enable-shared or --disable-shared was given.
1383 if test "${enable_shared+set}" = set; then
1384 enableval="$enable_shared"
1389 # Check whether --enable-profile or --disable-profile was given.
1390 if test "${enable_profile+set}" = set; then
1391 enableval="$enable_profile"
1396 # Check whether --enable-omitfp or --disable-omitfp was given.
1397 if test "${enable_omitfp+set}" = set; then
1398 enableval="$enable_omitfp"
1403 # Check whether --enable-bounded or --disable-bounded was given.
1404 if test "${enable_bounded+set}" = set; then
1405 enableval="$enable_bounded"
1410 # Check whether --enable-versioning or --disable-versioning was given.
1411 if test "${enable_versioning+set}" = set; then
1412 enableval="$enable_versioning"
1413 enable_versioning=$enableval
1415 enable_versioning=yes
1418 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1419 if test "${enable_oldest_abi+set}" = set; then
1420 enableval="$enable_oldest_abi"
1421 oldest_abi=$enableval
1425 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1428 cat >>confdefs.h <<_ACEOF
1429 #define GLIBC_OLDEST_ABI "$oldest_abi"
1435 # Check whether --enable-add-ons or --disable-add-ons was given.
1436 if test "${enable_add_ons+set}" = set; then
1437 enableval="$enable_add_ons"
1438 case "$enableval" in
1439 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1440 test "$add_ons" = "*" && add_ons= ;;
1441 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1448 # Check whether --with-tls or --without-tls was given.
1449 if test "${with_tls+set}" = set; then
1457 # Check whether --with-__thread or --without-__thread was given.
1458 if test "${with___thread+set}" = set; then
1459 withval="$with___thread"
1460 use__thread=$withval
1465 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1466 if test "${enable_hidden_plt+set}" = set; then
1467 enableval="$enable_hidden_plt"
1472 if test "x$hidden" = xno; then
1473 cat >>confdefs.h <<\_ACEOF
1481 subdirs="$subdirs $add_ons"
1484 if test x"$add_ons" != x; then
1485 for f in $add_ons; do
1486 # Some sanity checks
1487 if test "$f" = "crypt"; then
1488 { { echo "$as_me:$LINENO: error:
1489 *** It seems that you're using an old \`crypt' add-on. crypt is now
1490 *** part of glibc and using the old add-on will not work with this
1491 *** release. Start again with fresh sources and without the old
1492 *** \`crypt' add-on." >&5
1493 echo "$as_me: error:
1494 *** It seems that you're using an old \`crypt' add-on. crypt is now
1495 *** part of glibc and using the old add-on will not work with this
1496 *** release. Start again with fresh sources and without the old
1497 *** \`crypt' add-on." >&2;}
1498 { (exit 1); exit 1; }; }
1500 if test "$f" = "localedata"; then
1501 { { echo "$as_me:$LINENO: error:
1502 *** It seems that you're using an old \`localedata' add-on. localedata
1503 *** is now part of glibc and using the old add-on will not work with
1504 *** this release. Start again with fresh sources and without the old
1505 *** \`localedata' add-on." >&5
1506 echo "$as_me: error:
1507 *** It seems that you're using an old \`localedata' add-on. localedata
1508 *** is now part of glibc and using the old add-on will not work with
1509 *** this release. Start again with fresh sources and without the old
1510 *** \`localedata' add-on." >&2;}
1511 { (exit 1); exit 1; }; }
1513 # Test whether such a subdir really exists.
1514 if test -d $srcdir/$f; then
1515 add_ons_pfx="$add_ons_pfx $f/"
1517 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1518 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1519 { (exit 1); exit 1; }; }
1524 # Check whether --enable-static-nss or --disable-static-nss was given.
1525 if test "${enable_static_nss+set}" = set; then
1526 enableval="$enable_static_nss"
1527 static_nss=$enableval
1531 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1533 cat >>confdefs.h <<\_ACEOF
1534 #define DO_STATIC_NSS 1
1539 # Check whether --enable-force-install or --disable-force-install was given.
1540 if test "${enable_force_install+set}" = set; then
1541 enableval="$enable_force_install"
1542 force_install=$enableval
1548 # Check whether --enable-kernel or --disable-kernel was given.
1549 if test "${enable_kernel+set}" = set; then
1550 enableval="$enable_kernel"
1551 minimum_kernel=$enableval
1553 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1554 # Better nothing than this.
1557 if test "$minimum_kernel" = current; then
1558 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1562 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1563 if test "${enable_all_warnings+set}" = set; then
1564 enableval="$enable_all_warnings"
1565 all_warnings=$enableval
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624 # The way shlib-versions is used to generate soversions.mk uses a
1625 # fairly simplistic model for name recognition that can't distinguish
1626 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1627 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1628 # tell. This doesn't get used much beyond that, so it's fairly safe.
1633 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1637 # We keep the original values in `$config_*' and never modify them, so we
1638 # can write them unchanged into config.make. Everything else uses
1639 # $machine, $vendor, and $os, and changes them whenever convenient.
1640 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1642 # Don't allow vendor == "unknown"
1643 test "$config_vendor" = unknown && config_vendor=
1644 config_os="`echo $config_os | sed 's/^unknown-//'`"
1646 # Some configurations imply other options.
1648 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1649 # These systems always use GNU tools.
1650 gnu_ld=yes gnu_as=yes ;;
1653 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1654 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1656 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1657 # These systems (almost) always use the ELF format.
1661 # These systems are always xcoff
1667 machine=$config_machine
1668 vendor=$config_vendor
1671 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1673 if test "$machine" = rs6000; then
1678 ### I put this here to prevent those annoying emails from people who cannot
1679 ### read and try to compile glibc on unsupported platforms. --drepper
1681 ### By using the undocumented --enable-hacker-mode option for configure
1682 ### one can skip this test to make the configuration not fail for unsupported
1685 if test -z "$enable_hacker_mode"; then
1686 case "$machine-$host_os" in
1687 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1690 echo "*** The GNU C library is currently not available for this platform."
1691 echo "*** So far nobody cared to port it and if there is no volunteer it"
1692 echo "*** might never happen. So, if you have interest to see glibc on"
1693 echo "*** this platform visit"
1694 echo "*** http://www.gnu.org/software/libc/porting.html"
1695 echo "*** and join the group of porters"
1701 # Brain dead PowerPC box with absolutely no FPU.
1702 case "$machine-$host_os" in
1710 # Expand the configuration machine name into a subdirectory by architecture
1711 # type and particular chip.
1713 a29k | am29000) base_machine=a29k machine=a29k ;;
1714 alpha*) base_machine=alpha machine=alpha/$machine ;;
1715 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1716 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1717 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1718 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1719 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1720 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1721 ia64) base_machine=ia64 machine=ia64 ;;
1722 m680?0) base_machine=m68k machine=m68k/$machine ;;
1723 m68k) base_machine=m68k machine=m68k/m68020 ;;
1724 m88???) base_machine=m88k machine=m88k/$machine ;;
1725 m88k) base_machine=m88k machine=m88k/m88100 ;;
1726 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1727 mips*) base_machine=mips machine=mips/$machine ;;
1728 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1729 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1730 s390) base_machine=s390 machine=s390/s390-32 ;;
1731 s390x) base_machine=s390 machine=s390/s390-64 ;;
1732 sh3*) base_machine=sh machine=sh/sh3 ;;
1733 sh4*) base_machine=sh machine=sh/sh4 ;;
1735 base_machine=sparc machine=sparc/sparc32 ;;
1736 sparcv8 | supersparc | hypersparc)
1737 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1738 sparcv8plus | sparcv8plusa | sparcv9)
1739 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1740 sparcv8plusb | sparcv9b)
1741 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1742 sparc64 | ultrasparc)
1743 base_machine=sparc machine=sparc/sparc64 ;;
1744 sparc64b | ultrasparc3)
1745 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1746 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1747 *) base_machine=$machine ;;
1751 if test "$base_machine" = "i386"; then
1752 cat >>confdefs.h <<\_ACEOF
1753 #define USE_REGPARMS 1
1758 # Compute the list of sysdep directories for this configuration.
1759 # This can take a while to compute.
1760 sysdep_dir=$srcdir/sysdeps
1761 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1762 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1763 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1764 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1768 base_os=mach/hurd ;;
1769 netbsd* | 386bsd* | freebsd* | bsdi*)
1770 base_os=unix/bsd/bsd4.4 ;;
1771 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1773 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1774 base_os=unix/sysv ;;
1776 base_os=unix/sysv/irix6/$os ;;
1778 base_os=unix/sysv/sysv4 ;;
1780 base_os=unix/sysv/hpux/$os ;;
1782 base_os=unix/sysv/aix/aix4.3 ;;
1784 base_os=standalone ;;
1789 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1792 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1796 o=`echo $tail | sed 's/[0-9]*$//'`
1797 if test $o != $tail; then
1800 # For linux-gnu, try linux-gnu, then linux.
1801 o=`echo $tail | sed 's/-.*$//'`
1802 if test $o != $tail; then
1806 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1809 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1815 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1818 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1820 # Prepend the machine's FPU directory unless --without-fp.
1821 if test "$with_fp" = yes; then
1822 mach="$mach /$1/fpu"
1829 # Find what sysdep directories exist.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1832 for d in $add_ons_pfx ''; do
1833 for b in $base ''; do
1834 for m0 in $mach ''; do
1835 for v in /$vendor ''; do
1836 test "$v" = / && continue
1837 for o in /$ostry ''; do
1838 test "$o" = / && continue
1839 for m in $mach ''; do
1840 if test "$m0$b$v$o$m"; then
1841 try="${d}sysdeps$m0$b$v$o$m"
1842 test -n "$enable_debug_configure" &&
1843 echo "$0 DEBUG: try $try" >&2
1844 if test -d $srcdir/$try; then
1845 sysnames="$sysnames $try"
1846 { test -n "$o" || test -n "$b"; } && os_used=t
1847 { test -n "$m" || test -n "$m0"; } && machine_used=t
1858 if test -z "$os_used" && test "$os" != none; then
1859 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1860 echo "$as_me: error: Operating system $os is not supported." >&2;}
1861 { (exit 1); exit 1; }; }
1863 if test -z "$machine_used" && test "$machine" != none; then
1864 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1865 echo "$as_me: error: The $machine is not supported." >&2;}
1866 { (exit 1); exit 1; }; }
1869 # We have now validated the configuration.
1872 # If using ELF, look for an `elf' subdirectory of each machine directory.
1873 # We prepend these rather than inserting them whereever the machine appears
1874 # because things specified by the machine's ELF ABI should override
1875 # OS-specific things, and should always be the same for any OS on the
1876 # machine (otherwise what's the point of an ABI?).
1877 if test "$elf" = yes; then
1879 for d in $add_ons_pfx ''; do
1881 if test -d $srcdir/${d}sysdeps$m/elf; then
1882 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1886 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1890 # Expand the list of system names into a full list of directories
1891 # from each element's parent name and Implies file (if present).
1894 while test $# -gt 0; do
1898 case " $names " in *" $name "*)
1899 # Already in the list.
1903 # Report each name as we discover it, so there is no long pause in output.
1904 echo $ECHO_N "$name $ECHO_C" >&6
1906 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1910 *) xsrcdir=$srcdir/ ;;
1912 test -n "$enable_debug_configure" &&
1913 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1915 if test -f $xsrcdir$name/Implies; then
1916 # Collect more names from the `Implies' file (removing comments).
1917 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1919 for x in $implied_candidate; do
1921 if test -d $xsrcdir$name_base/$x; then
1922 implied="$implied $name_base/$x";
1925 for d in $add_ons_pfx ''; do
1926 try="${d}sysdeps/$x"
1929 *) try_srcdir=$srcdir/ ;;
1931 test -n "$enable_debug_configure" &&
1932 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1933 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1935 implied="$implied $try"
1939 if test $found = no; then
1940 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
1941 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
1948 # Add NAME to the list of names.
1949 names="$names $name"
1951 # Find the parent of NAME, using the empty string if it has none.
1952 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1954 # Add the names implied by NAME, and NAME's parent (if it has one), to
1955 # the list of names to be processed (the argument list). We prepend the
1956 # implied names to the list and append the parent. We want implied
1957 # directories to come before further directories inferred from the
1958 # configuration components; this ensures that for sysv4, unix/common
1959 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1961 sysnames="`echo $implied $* $parent`"
1962 test -n "$sysnames" && set $sysnames
1965 # Add the default directories.
1966 default_sysnames=sysdeps/generic
1967 if test "$elf" = yes; then
1968 default_sysnames="sysdeps/generic/elf $default_sysnames"
1970 sysnames="$names $default_sysnames"
1972 # The other names were emitted during the scan.
1973 echo "$as_me:$LINENO: result: $default_sysnames" >&5
1974 echo "${ECHO_T}$default_sysnames" >&6
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # ./install, which can be erroneously created by make from ./install.sh.
1991 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1993 if test -z "$INSTALL"; then
1994 if test "${ac_cv_path_install+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 # Account for people who put trailing slashes in PATH elements.
2004 ./ | .// | /cC/* | \
2005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 # OSF1 and SCO ODT 3.0 have their own names for install.
2009 # Don't use installbsd from OSF since it installs stuff as root
2011 for ac_prog in ginstall scoinst install; do
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2014 if test $ac_prog = install &&
2015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # AIX install. It has an incompatible calling convention.
2018 elif test $ac_prog = install &&
2019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2020 # program-specific install script used by HP pwplus--don't use.
2023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2038 # As a last resort, use the slow shell script. We don't cache a
2039 # path for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the path is relative.
2042 INSTALL=$ac_install_sh
2045 echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2057 # The makefiles need to use a different form to find it in $srcdir.
2058 INSTALL='\$(..)./scripts/install-sh -c'
2060 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2061 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2063 if test "$LN_S" = "ln -s"; then
2064 echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6
2067 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2068 echo "${ECHO_T}no, using $LN_S" >&6
2072 # We need the physical current working directory. We cannot use the
2073 # "pwd -P" shell builtin since that's not portable. Instead we try to
2074 # find a pwd binary. Note that assigning to the PWD environment
2075 # variable might have some interesting side effects, so we don't do
2077 # Extract the first word of "pwd", so it can be a program name with args.
2078 set dummy pwd; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_path_PWD_P+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
2107 PWD_P=$ac_cv_path_PWD_P
2109 if test -n "$PWD_P"; then
2110 echo "$as_me:$LINENO: result: $PWD_P" >&5
2111 echo "${ECHO_T}$PWD_P" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2117 if test "$PWD_P" = no; then
2118 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
2119 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
2120 { (exit 1); exit 1; }; }
2123 # These programs are version sensitive.
2125 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_CC="$ac_prog"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 test -n "$CC" && break
2165 if test -z "$CC"; then
2168 # Found it, now check the version.
2169 echo "$as_me:$LINENO: checking version of $CC" >&5
2170 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2171 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
2172 case $ac_prog_version in
2173 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2175 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2176 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2179 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2180 echo "${ECHO_T}$ac_prog_version" >&6
2182 if test $ac_verc_fail = yes; then
2183 critic_missing="$critic_missing gcc"
2186 for ac_prog in gnumake gmake make
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_MAKE+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test -n "$MAKE"; then
2196 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205 ac_cv_prog_MAKE="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 MAKE=$ac_cv_prog_MAKE
2215 if test -n "$MAKE"; then
2216 echo "$as_me:$LINENO: result: $MAKE" >&5
2217 echo "${ECHO_T}$MAKE" >&6
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2223 test -n "$MAKE" && break
2226 if test -z "$MAKE"; then
2229 # Found it, now check the version.
2230 echo "$as_me:$LINENO: checking version of $MAKE" >&5
2231 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
2232 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
2233 case $ac_prog_version in
2234 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2236 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2237 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2240 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2241 echo "${ECHO_T}$ac_prog_version" >&6
2243 if test $ac_verc_fail = yes; then
2244 critic_missing="$critic_missing make"
2249 if test -n "$critic_missing"; then
2250 { { echo "$as_me:$LINENO: error:
2251 *** These critical programs are missing or too old:$critic_missing
2252 *** Check the INSTALL file for required versions." >&5
2253 echo "$as_me: error:
2254 *** These critical programs are missing or too old:$critic_missing
2255 *** Check the INSTALL file for required versions." >&2;}
2256 { (exit 1); exit 1; }; }
2260 for ac_prog in gnumsgfmt gmsgfmt msgfmt
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_MSGFMT+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 if test -n "$MSGFMT"; then
2270 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_MSGFMT="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 MSGFMT=$ac_cv_prog_MSGFMT
2289 if test -n "$MSGFMT"; then
2290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2291 echo "${ECHO_T}$MSGFMT" >&6
2293 echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2297 test -n "$MSGFMT" && break
2300 if test -z "$MSGFMT"; then
2303 # Found it, now check the version.
2304 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
2305 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
2306 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2307 case $ac_prog_version in
2308 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2309 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
2310 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2311 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2314 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2315 echo "${ECHO_T}$ac_prog_version" >&6
2317 if test $ac_verc_fail = yes; then
2318 MSGFMT=: aux_missing="$aux_missing msgfmt"
2321 for ac_prog in makeinfo
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$MAKEINFO"; then
2331 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_MAKEINFO="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 MAKEINFO=$ac_cv_prog_MAKEINFO
2350 if test -n "$MAKEINFO"; then
2351 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2352 echo "${ECHO_T}$MAKEINFO" >&6
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2358 test -n "$MAKEINFO" && break
2361 if test -z "$MAKEINFO"; then
2364 # Found it, now check the version.
2365 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
2366 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
2367 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2368 case $ac_prog_version in
2369 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2371 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2372 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2375 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2376 echo "${ECHO_T}$ac_prog_version" >&6
2378 if test $ac_verc_fail = yes; then
2379 MAKEINFO=: aux_missing="$aux_missing makeinfo"
2384 # Extract the first word of "$ac_prog", so it can be a program name with args.
2385 set dummy $ac_prog; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_SED+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 if test -n "$SED"; then
2392 ac_cv_prog_SED="$SED" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_SED="$ac_prog"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 if test -n "$SED"; then
2412 echo "$as_me:$LINENO: result: $SED" >&5
2413 echo "${ECHO_T}$SED" >&6
2415 echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 test -n "$SED" && break
2422 if test -z "$SED"; then
2425 # Found it, now check the version.
2426 echo "$as_me:$LINENO: checking version of $SED" >&5
2427 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
2428 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
2429 case $ac_prog_version in
2430 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2431 3.0[2-9]*|3.[1-9]*|[4-9]*)
2432 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2433 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2436 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2437 echo "${ECHO_T}$ac_prog_version" >&6
2439 if test $ac_verc_fail = yes; then
2440 SED=: aux_missing="$aux_missing sed"
2444 for ac_prog in autoconf
2446 # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$AUTOCONF"; then
2454 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_AUTOCONF="$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 AUTOCONF=$ac_cv_prog_AUTOCONF
2473 if test -n "$AUTOCONF"; then
2474 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2475 echo "${ECHO_T}$AUTOCONF" >&6
2477 echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2481 test -n "$AUTOCONF" && break
2483 test -n "$AUTOCONF" || AUTOCONF="no"
2485 case "x$AUTOCONF" in
2486 xno|x|x:) AUTOCONF=no ;;
2488 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
2489 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
2490 if test "${libc_cv_autoconf_works+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
2494 libc_cv_autoconf_works=yes
2496 libc_cv_autoconf_works=no
2499 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
2500 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
2501 test $libc_cv_autoconf_works = yes || AUTOCONF=no
2504 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2548 if test -z "$ac_cv_prog_CC"; then
2550 # Extract the first word of "gcc", so it can be a program name with args.
2551 set dummy gcc; ac_word=$2
2552 echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_CC="gcc"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6
2581 echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6
2623 echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6
2628 if test -z "$ac_cv_prog_CC"; then
2630 # Extract the first word of "cc", so it can be a program name with args.
2631 set dummy cc; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_ac_ct_CC="cc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657 if test -n "$ac_ct_CC"; then
2658 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659 echo "${ECHO_T}$ac_ct_CC" >&6
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2671 if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2710 set dummy "$as_dir/$ac_word" ${1+"$@"}
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 if test -n "$CC"; then
2759 echo "$as_me:$LINENO: result: $CC" >&5
2760 echo "${ECHO_T}$CC" >&6
2762 echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2766 test -n "$CC" && break
2769 if test -z "$CC"; then
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_ac_ct_CC="$ac_prog"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2802 echo "${ECHO_T}$ac_ct_CC" >&6
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 test -n "$ac_ct_CC" && break
2817 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2818 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2819 { (exit 1); exit 1; }; }
2821 # Provide some information about the compiler.
2822 echo "$as_me:$LINENO:" \
2823 "checking for C compiler version" >&5
2824 ac_compiler=`set X $ac_compile; echo $2`
2825 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2826 (eval $ac_compiler --version </dev/null >&5) 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2831 (eval $ac_compiler -v </dev/null >&5) 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2836 (eval $ac_compiler -V </dev/null >&5) 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2842 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2844 if test "${ac_cv_objext+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 #include "confdefs.h"
2851 #ifdef F77_DUMMY_MAIN
2855 int F77_DUMMY_MAIN() { return 1; }
2865 rm -f conftest.o conftest.obj
2866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867 (eval $ac_compile) 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2879 echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2882 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2883 { (exit 1); exit 1; }; }
2886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2888 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2889 echo "${ECHO_T}$ac_cv_objext" >&6
2890 OBJEXT=$ac_cv_objext
2892 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2899 #include "confdefs.h"
2901 #ifdef F77_DUMMY_MAIN
2905 int F77_DUMMY_MAIN() { return 1; }
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2942 GCC=`test $ac_compiler_gnu = yes && echo yes`
2943 ac_test_CFLAGS=${CFLAGS+set}
2944 ac_save_CFLAGS=$CFLAGS
2946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2948 if test "${ac_cv_prog_cc_g+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2955 #ifdef F77_DUMMY_MAIN
2959 int F77_DUMMY_MAIN() { return 1; }
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2989 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2990 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2991 if test "$ac_test_CFLAGS" = set; then
2992 CFLAGS=$ac_save_CFLAGS
2993 elif test $ac_cv_prog_cc_g = yes; then
2994 if test "$GCC" = yes; then
3000 if test "$GCC" = yes; then
3006 # Some people use a C++ compiler to compile C. Since we use `exit',
3007 # in C++ we need to declare it. In case someone uses the same compiler
3008 # for both compiling C and C++ we need to have the C++ compiler decide
3009 # the declaration of exit, since it's the most demanding environment.
3010 cat >conftest.$ac_ext <<_ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3027 for ac_declaration in \
3029 '#include <stdlib.h>' \
3030 'extern "C" void std::exit (int) throw (); using std::exit;' \
3031 'extern "C" void std::exit (int); using std::exit;' \
3032 'extern "C" void exit (int) throw ();' \
3033 'extern "C" void exit (int);' \
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3041 #ifdef F77_DUMMY_MAIN
3045 int F77_DUMMY_MAIN() { return 1; }
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 echo "$as_me: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3073 rm -f conftest.$ac_objext conftest.$ac_ext
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 #include "confdefs.h"
3078 #ifdef F77_DUMMY_MAIN
3082 int F77_DUMMY_MAIN() { return 1; }
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3112 if test -n "$ac_declaration"; then
3113 echo '#ifdef __cplusplus' >>confdefs.h
3114 echo $ac_declaration >>confdefs.h
3115 echo '#endif' >>confdefs.h
3119 echo "$as_me: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 rm -f conftest.$ac_objext conftest.$ac_ext
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 if test $host != $build; then
3130 for ac_prog in gcc cc
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3136 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 if test -n "$BUILD_CC"; then
3140 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_BUILD_CC="$ac_prog"
3150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 BUILD_CC=$ac_cv_prog_BUILD_CC
3159 if test -n "$BUILD_CC"; then
3160 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3161 echo "${ECHO_T}$BUILD_CC" >&6
3163 echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3167 test -n "$BUILD_CC" && break
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3178 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3179 # On Suns, sometimes $CPP names a directory.
3180 if test -n "$CPP" && test -d "$CPP"; then
3183 if test -z "$CPP"; then
3184 if test "${ac_cv_prog_CPP+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 # Double quotes because CPP needs to be expanded
3188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3191 for ac_c_preproc_warn_flag in '' yes
3193 # Use a header file that comes with gcc, so configuring glibc
3194 # with a fresh cross-compiler works.
3195 # On the NeXT, cc -E runs the code through the compiler's parser,
3196 # not just through cpp. "Syntax error" is here to catch this case.
3197 cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 #include "confdefs.h"
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3206 egrep -v '^ *\+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } >/dev/null; then
3211 if test -s conftest.err; then
3212 ac_cpp_err=$ac_c_preproc_warn_flag
3219 if test -z "$ac_cpp_err"; then
3222 echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 # Broken: fails on valid input.
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether non-existent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3233 #include "confdefs.h"
3234 #include <ac_nonexistent.h>
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 egrep -v '^ *\+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3252 if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3256 echo "$as_me: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 # Passes both tests.
3262 rm -f conftest.err conftest.$ac_ext
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then
3279 echo "$as_me:$LINENO: result: $CPP" >&5
3280 echo "${ECHO_T}$CPP" >&6
3282 for ac_c_preproc_warn_flag in '' yes
3284 # Use a header file that comes with gcc, so configuring glibc
3285 # with a fresh cross-compiler works.
3286 # On the NeXT, cc -E runs the code through the compiler's parser,
3287 # not just through cpp. "Syntax error" is here to catch this case.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297 egrep -v '^ *\+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3310 if test -z "$ac_cpp_err"; then
3313 echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 # Broken: fails on valid input.
3318 rm -f conftest.err conftest.$ac_ext
3320 # OK, works on sane cases. Now check whether non-existent headers
3321 # can be detected and how.
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 #include "confdefs.h"
3325 #include <ac_nonexistent.h>
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 egrep -v '^ *\+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3343 if test -z "$ac_cpp_err"; then
3344 # Broken: success on invalid input.
3347 echo "$as_me: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3349 # Passes both tests.
3353 rm -f conftest.err conftest.$ac_ext
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3361 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3363 { (exit 1); exit 1; }; }
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 # Was a --with-binutils option given?
3373 if test -n "$path_binutils"; then
3374 # Make absolute; ensure a single trailing slash.
3375 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3376 CC="$CC -B$path_binutils"
3378 AS=`$CC -print-prog-name=as`
3379 LD=`$CC -print-prog-name=ld`
3380 AR=`$CC -print-prog-name=ar`
3383 # ranlib has to be treated a bit differently since it might not exist at all.
3384 ac_ranlib=`$CC -print-prog-name=ranlib`
3385 if test "x$ac_ranlib" = xranlib; then
3386 # This extra check has to happen since gcc simply echos the parameter in
3387 # case it cannot find the value in its own directories.
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_RANLIB+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$RANLIB"; then
3397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 RANLIB=$ac_cv_prog_RANLIB
3416 if test -n "$RANLIB"; then
3417 echo "$as_me:$LINENO: result: $RANLIB" >&5
3418 echo "${ECHO_T}$RANLIB" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3425 if test -z "$ac_cv_prog_RANLIB"; then
3426 ac_ct_RANLIB=$RANLIB
3427 # Extract the first word of "ranlib", so it can be a program name with args.
3428 set dummy ranlib; ac_word=$2
3429 echo "$as_me:$LINENO: checking for $ac_word" >&5
3430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 if test -n "$ac_ct_RANLIB"; then
3435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_ac_ct_RANLIB="ranlib"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3455 if test -n "$ac_ct_RANLIB"; then
3456 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3457 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3463 RANLIB=$ac_ct_RANLIB
3465 RANLIB="$ac_cv_prog_RANLIB"
3473 # Determine whether we are using GNU binutils.
3474 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3475 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3476 if test "${libc_cv_prog_as_gnu+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 # Most GNU programs take a -v and spit out some text including
3480 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3481 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3482 libc_cv_prog_as_gnu=yes
3484 libc_cv_prog_as_gnu=no
3488 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3489 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3491 gnu_as=$libc_cv_prog_as_gnu
3493 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3494 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3495 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 # Most GNU programs take a -v and spit out some text including
3499 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3500 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3501 libc_cv_prog_ld_gnu=yes
3503 libc_cv_prog_ld_gnu=no
3507 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3508 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3509 gnu_ld=$libc_cv_prog_ld_gnu
3512 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
3513 # XXX Commented out because it filters out too many good versions.
3515 # AC_CHECK_PROG_VER(AS, $AS, --version,
3516 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
3517 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
3519 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3520 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3521 *** some features will be disabled.
3522 *** Check the INSTALL file for required versions." >&5
3523 echo "$as_me: WARNING:
3524 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3525 *** some features will be disabled.
3526 *** Check the INSTALL file for required versions." >&2;}
3528 # glibcbug.in wants to know the compiler version.
3529 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3532 # if using special system headers, find out the compiler's sekrit
3533 # header directory and add that to the list. NOTE: Only does the right
3534 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3535 if test -n "$sysheaders"; then
3536 ccheaders=`$CC -print-file-name=include`
3537 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3541 # check if ranlib is necessary
3542 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3543 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3544 if test "${libc_cv_ranlib_necessary+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 cat > conftest.c <<EOF
3552 $CC $CFLAGS -c conftest.c
3553 $AR cr conftest.a conftest.o
3554 cp conftest.a conftest2.a
3556 if cmp -s conftest.a conftest2.a; then
3557 libc_cv_ranlib_necessary=no
3559 libc_cv_ranlib_necessary=yes
3563 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3564 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3565 if test "$libc_cv_ranlib_necessary" = no; then
3569 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LD_LIBRARY_PATH contains the current directory if one of the following
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3577 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3578 case ${LD_LIBRARY_PATH} in
3579 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580 ld_library_path_setting="contains current directory"
3583 ld_library_path_setting="ok"
3586 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3587 echo "${ECHO_T}$ld_library_path_setting" >&6
3588 if test "$ld_library_path_setting" != "ok"; then
3589 { { echo "$as_me:$LINENO: error:
3590 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3591 *** building glibc. Please change the environment variable
3592 *** and run configure again." >&5
3593 echo "$as_me: error:
3594 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3595 *** building glibc. Please change the environment variable
3596 *** and run configure again." >&2;}
3597 { (exit 1); exit 1; }; }
3600 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3601 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3602 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3606 libc_cv_gcc_static_libgcc=
3608 libc_cv_gcc_static_libgcc=-static-libgcc
3611 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3612 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3615 # Extract the first word of "bash", so it can be a program name with args.
3616 set dummy bash; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_BASH+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3645 BASH=$ac_cv_path_BASH
3647 if test -n "$BASH"; then
3648 echo "$as_me:$LINENO: result: $BASH" >&5
3649 echo "${ECHO_T}$BASH" >&6
3651 echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3655 if test "$BASH" != no &&
3656 $BASH -c 'test "$BASH_VERSINFO" \
3657 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
3658 libc_cv_have_bash2=yes
3660 libc_cv_have_bash2=no
3664 if test "$BASH" = no; then
3665 # Extract the first word of "ksh", so it can be a program name with args.
3666 set dummy ksh; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_KSH+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
3685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
3697 if test -n "$KSH"; then
3698 echo "$as_me:$LINENO: result: $KSH" >&5
3699 echo "${ECHO_T}$KSH" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 if test "$KSH" = no; then
3708 libc_cv_have_ksh=yes
3713 libc_cv_have_ksh=yes
3717 for ac_prog in gawk mawk nawk awk
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_AWK+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$AWK"; then
3727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_AWK="$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 if test -n "$AWK"; then
3747 echo "$as_me:$LINENO: result: $AWK" >&5
3748 echo "${ECHO_T}$AWK" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$AWK" && break
3757 # Extract the first word of "perl", so it can be a program name with args.
3758 set dummy perl; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_path_PERL+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3787 PERL=$ac_cv_path_PERL
3789 if test -n "$PERL"; then
3790 echo "$as_me:$LINENO: result: $PERL" >&5
3791 echo "${ECHO_T}$PERL" >&6
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 if test "$PERL" != no &&
3798 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
3801 # Extract the first word of "install-info", so it can be a program name with args.
3802 set dummy install-info; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 case $INSTALL_INFO in
3810 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
3831 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3833 if test -n "$INSTALL_INFO"; then
3834 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3835 echo "${ECHO_T}$INSTALL_INFO" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 if test "$INSTALL_INFO" != "no"; then
3842 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
3843 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
3844 if test "${libc_cv_old_debian_install_info+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 # There is a hard ^_ on the next line. I am open to better ideas.
3850 echo 'File: dir Node: Top This is the top of the INFO tree'
3851 echo '* Menu:') >conftest.d/dir
3852 (echo 'INFO-DIR-SECTION i-d-s works'
3853 echo 'START-INFO-DIR-ENTRY'
3854 echo '* Prog: (prog). Program.'
3855 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
3856 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
3858 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
3859 then libc_cv_old_debian_install_info=no
3860 else libc_cv_old_debian_install_info=yes
3862 else libc_cv_old_debian_install_info=no testfailed=t
3866 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
3867 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
3868 if test -n "$testfailed"
3869 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
3870 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
3872 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
3876 # Extract the first word of "bison", so it can be a program name with args.
3877 set dummy bison; ac_word=$2
3878 echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_path_BISON+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH:/usr/local/bin:/usr/bin:/bin
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
3906 BISON=$ac_cv_path_BISON
3908 if test -n "$BISON"; then
3909 echo "$as_me:$LINENO: result: $BISON" >&5
3910 echo "${ECHO_T}$BISON" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 echo "$as_me:$LINENO: checking for signed size_t type" >&5
3918 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
3919 if test "${libc_cv_signed_size_t+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 echo '#include <stddef.h>
3923 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
3924 if eval "$ac_cpp conftest.c 2>/dev/null" \
3925 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
3926 libc_cv_signed_size_t=no
3928 libc_cv_signed_size_t=yes
3932 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
3933 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
3934 if test $libc_cv_signed_size_t = yes; then
3935 cat >> confdefs.h <<\EOF
3936 #undef __SIZE_TYPE__
3937 #define __SIZE_TYPE__ unsigned
3941 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
3942 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
3943 if test "${libc_cv_friendly_stddef+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3949 #include "confdefs.h"
3950 #define __need_size_t
3951 #define __need_wchar_t
3955 #ifdef F77_DUMMY_MAIN
3959 int F77_DUMMY_MAIN() { return 1; }
3964 size_t size; wchar_t wchar;
3966 #error stddef.h ignored __need_*
3968 if (&size == NULL || &wchar == NULL) abort ();
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 libc_cv_friendly_stddef=yes
3987 echo "$as_me: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3989 libc_cv_friendly_stddef=no
3991 rm -f conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
3994 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
3995 if test $libc_cv_friendly_stddef = yes; then
3996 config_vars="$config_vars
3997 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4000 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4001 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4002 if test "${libc_cv_need_minus_P+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 cat > conftest.S <<EOF
4006 #include "confdefs.h"
4007 /* Nothing whatsoever. */
4009 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
4010 libc_cv_need_minus_P=no
4012 libc_cv_need_minus_P=yes
4016 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4017 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4018 if test $libc_cv_need_minus_P = yes; then
4019 config_vars="$config_vars
4020 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4023 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4024 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4025 if test "${libc_cv_dot_text+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 cat > conftest.s <<EOF
4032 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4033 libc_cv_dot_text=.text
4038 if test -z "$libc_cv_dot_text"; then
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4042 echo "$as_me:$LINENO: result: yes" >&5
4043 echo "${ECHO_T}yes" >&6
4046 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4047 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4048 if test "${libc_cv_asm_global_directive+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 libc_cv_asm_global_directive=UNKNOWN
4052 for ac_globl in .globl .global .EXPORT; do
4053 cat > conftest.s <<EOF
4058 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4059 libc_cv_asm_global_directive=${ac_globl}
4062 test $libc_cv_asm_global_directive != UNKNOWN && break
4065 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4066 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4067 if test $libc_cv_asm_global_directive = UNKNOWN; then
4068 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4069 echo "$as_me: error: cannot determine asm global directive" >&2;}
4070 { (exit 1); exit 1; }; }
4072 cat >>confdefs.h <<_ACEOF
4073 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4078 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4079 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4080 if test "${libc_cv_asm_set_directive+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat > conftest.s <<EOF
4086 .set glibc_conftest_frobozz,foo
4087 $libc_cv_asm_global_directive glibc_conftest_frobozz
4089 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4090 # (but it doesn't work), so we must do a linking check to be sure.
4091 cat > conftest1.c <<\EOF
4092 extern int glibc_conftest_frobozz;
4093 main () { printf ("%d\n", glibc_conftest_frobozz); }
4095 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4096 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4097 libc_cv_asm_set_directive=yes
4099 libc_cv_asm_set_directive=no
4103 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4104 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4105 if test $libc_cv_asm_set_directive = yes; then
4106 cat >>confdefs.h <<\_ACEOF
4107 #define HAVE_ASM_SET_DIRECTIVE 1
4112 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4113 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4114 if test "${libc_cv_asm_type_prefix+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 libc_cv_asm_type_prefix=no
4118 for ac_try_prefix in '@' '%' '#'; do
4119 cat > conftest.s <<EOF
4121 ${libc_cv_asm_global_directive} foo
4122 .type foo, ${ac_try_prefix}object
4127 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4128 libc_cv_asm_type_prefix=${ac_try_prefix}
4131 test "x$libc_cv_asm_type_prefix" != xno && break
4134 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4135 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4136 if test "x$libc_cv_asm_type_prefix" != xno; then
4137 cat >>confdefs.h <<_ACEOF
4138 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4143 # The Aix ld uses global .symbol_names instead of symbol_names.
4144 # Unfortunately also used in the PPC64 ELF ABI.
4145 case "${os}${machine}" in
4146 aix4.3* | linux*powerpc/powerpc64*)
4147 cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4153 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4154 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4155 if test "${libc_cv_asm_symver_directive+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 cat > conftest.s <<EOF
4161 .symver _sym,sym@VERS
4163 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4164 libc_cv_asm_symver_directive=yes
4166 libc_cv_asm_symver_directive=no
4170 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4171 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4172 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4173 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4174 if test "${libc_cv_ld_version_script_option+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test $libc_cv_asm_symver_directive = yes; then
4178 cat > conftest.s <<EOF
4181 .symver _sym,sym@VERS
4183 cat > conftest.map <<EOF
4192 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4193 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4194 -nostartfiles -nostdlib
4195 -Wl,--version-script,conftest.map
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; };
4203 libc_cv_ld_version_script_option=yes
4205 libc_cv_ld_version_script_option=no
4208 libc_cv_ld_version_script_option=no
4211 libc_cv_ld_version_script_option=no
4215 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4216 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4217 if test $shared != no &&
4218 test $libc_cv_asm_symver_directive = yes &&
4219 test $libc_cv_ld_version_script_option = yes &&
4220 test $enable_versioning = yes; then
4222 cat >>confdefs.h <<\_ACEOF
4223 #define DO_VERSIONING 1
4231 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4233 *** WARNING: You should not compile GNU libc without versioning. Not using
4234 *** versioning will introduce incompatibilities so that old binaries
4235 *** will not run anymore.
4236 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4238 if test $elf = yes; then
4239 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4240 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4241 if test "${libc_cv_asm_previous_directive+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat > conftest.s <<EOF
4245 .section foo_section
4248 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 libc_cv_asm_previous_directive=yes
4256 libc_cv_asm_previous_directive=no
4260 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4261 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4262 if test $libc_cv_asm_previous_directive = yes; then
4263 cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4268 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4269 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4270 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 cat > conftest.s <<EOF
4274 .pushsection foo_section
4277 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 libc_cv_asm_popsection_directive=yes
4285 libc_cv_asm_popsection_directive=no
4289 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4290 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4291 if test $libc_cv_asm_popsection_directive = yes; then
4292 cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4298 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4299 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4300 if test "${libc_cv_asm_protected_directive+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 cat > conftest.s <<EOF
4309 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 libc_cv_asm_protected_directive=yes
4317 libc_cv_asm_protected_directive=no
4321 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4322 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4324 cat >>confdefs.h <<\_ACEOF
4325 #define HAVE_PROTECTED 1
4328 cat >>confdefs.h <<\_ACEOF
4329 #define HAVE_HIDDEN 1
4333 if test $libc_cv_asm_protected_directive = yes; then
4334 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4335 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4336 if test "${libc_cv_visibility_attribute+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat > conftest.c <<EOF
4340 int foo __attribute__ ((visibility ("hidden"))) = 1;
4341 int bar __attribute__ ((visibility ("protected"))) = 1;
4343 libc_cv_visibility_attribute=no
4344 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4345 if grep '\.hidden.*foo' conftest.s >/dev/null; then
4346 if grep '\.protected.*bar' conftest.s >/dev/null; then
4347 libc_cv_visibility_attribute=yes
4354 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4355 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4356 if test $libc_cv_visibility_attribute = yes; then
4357 cat >>confdefs.h <<\_ACEOF
4358 #define HAVE_VISIBILITY_ATTRIBUTE 1
4364 if test $libc_cv_visibility_attribute = yes; then
4365 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4366 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4367 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat > conftest.c <<EOF
4372 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4373 int bar (int x) { return x; }
4375 libc_cv_broken_visibility_attribute=yes
4376 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4377 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
4378 libc_cv_broken_visibility_attribute=no
4381 rm -f conftest.c conftest.s
4384 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4385 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4386 if test $libc_cv_broken_visibility_attribute = yes; then
4387 cat >>confdefs.h <<\_ACEOF
4388 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4394 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4395 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4396 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat > conftest.c <<EOF
4400 extern int foo (int x) __asm ("xyzzy");
4401 int bar (int x) { return x; }
4402 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4404 extern __typeof (dfoo) dfoo __asm ("abccb");
4407 libc_cv_broken_alias_attribute=yes
4408 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4409 if grep 'xyzzy' conftest.s >/dev/null &&
4410 grep 'abccb' conftest.s >/dev/null; then
4411 libc_cv_broken_alias_attribute=no
4414 rm -f conftest.c conftest.s
4417 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4418 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4419 if test $libc_cv_broken_alias_attribute = yes; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4426 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4427 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4428 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4429 if test "${libc_cv_have_sdata_section+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 echo "int i;" > conftest.c
4433 libc_cv_have_sdata_section=no
4434 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4435 | grep '\.sdata' >/dev/null; then
4436 libc_cv_have_sdata_section=yes
4438 rm -f conftest.c conftest.so
4441 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4442 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4443 if test $libc_cv_have_sdata_section = yes; then
4444 cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_SDATA_SECTION 1
4451 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4452 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4453 if test "${libc_cv_initfinit_array+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat > conftest.c <<EOF
4457 int _start (void) { return 0; }
4458 int __start (void) { return 0; }
4459 int foo (void) { return 1; }
4460 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4462 if { ac_try='${CC-cc} -o conftest conftest.c
4463 -static -nostartfiles -nostdlib 1>&5'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }
4470 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4471 libc_cv_initfinit_array=yes
4473 libc_cv_initfinit_array=no
4476 libc_cv_initfinit_array=no
4480 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4481 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4483 if test $libc_cv_initfinit_array = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_INITFINI_ARRAY 1
4490 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4491 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4492 if test "${libc_cv_z_nodelete+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 cat > conftest.c <<EOF
4496 int _start (void) { return 42; }
4498 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4499 -nostartfiles -nostdlib
4500 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }
4507 libc_cv_z_nodelete=yes
4509 libc_cv_z_nodelete=no
4513 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4514 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4517 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4518 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4519 if test "${libc_cv_z_nodlopen+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat > conftest.c <<EOF
4523 int _start (void) { return 42; }
4525 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4526 -nostartfiles -nostdlib
4527 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }
4534 libc_cv_z_nodlopen=yes
4536 libc_cv_z_nodlopen=no
4540 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4541 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4544 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4545 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4546 if test "${libc_cv_z_initfirst+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 cat > conftest.c <<EOF
4550 int _start (void) { return 42; }
4552 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4553 -nostartfiles -nostdlib
4554 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }
4561 libc_cv_z_initfirst=yes
4563 libc_cv_z_initfirst=no
4567 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4568 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4571 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4572 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4573 if test "${libc_cv_Bgroup+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat > conftest.c <<EOF
4577 int _start (void) { return 42; }
4579 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }
4592 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4593 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4596 echo "$as_me:$LINENO: checking for -z combreloc" >&5
4597 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4598 if test "${libc_cv_z_combreloc+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 cat > conftest.c <<EOF
4602 extern int bar (int);
4604 int foo (void) { return bar (mumble); }
4606 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4607 -nostdlib -nostartfiles
4608 -Wl,-z,combreloc 1>&5'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }
4615 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
4616 libc_cv_z_combreloc=yes
4618 libc_cv_z_combreloc=no
4621 libc_cv_z_combreloc=no
4625 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
4626 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
4627 if test "$libc_cv_z_combreloc" = yes; then
4628 cat >>confdefs.h <<\_ACEOF
4629 #define HAVE_Z_COMBRELOC 1
4636 if test $elf != yes; then
4637 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
4638 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
4639 if test "${libc_cv_have_initfini+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 #include "confdefs.h"
4646 #ifdef F77_DUMMY_MAIN
4650 int F77_DUMMY_MAIN() { return 1; }
4655 asm (".section .init");
4656 asm (".section .fini");
4657 asm ("${libc_cv_dot_text}");
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 libc_cv_have_initfini=yes
4676 echo "$as_me: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 libc_cv_have_initfini=no
4680 rm -f conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
4683 echo "${ECHO_T}$libc_cv_have_initfini" >&6
4684 if test $libc_cv_have_initfini = yes; then
4685 cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_INITFINI 1
4692 if test $elf = yes -a $gnu_ld = yes; then
4693 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
4694 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
4695 if test "${libc_cv_have_section_quotes+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 cat > conftest.c <<EOF
4699 static const int foo
4700 __attribute__ ((section ("bar"))) = 1;
4702 if ${CC-cc} -S conftest.c -o conftest.s; then
4703 if grep '\.section.*"bar"' conftest.s >/dev/null; then
4704 libc_cv_have_section_quotes=yes
4706 libc_cv_have_section_quotes=no
4709 libc_cv_have_section_quotes=unknown
4714 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
4715 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
4716 if test $libc_cv_have_section_quotes = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define HAVE_SECTION_QUOTES 1
4726 if test $elf = yes; then
4727 libc_cv_asm_underscores=no
4729 if test $ac_cv_prog_cc_works = yes; then
4730 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4731 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4732 if test "${libc_cv_asm_underscores+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 cat >conftest.$ac_ext <<_ACEOF
4736 #line $LINENO "configure"
4737 #include "confdefs.h"
4738 asm ("_glibc_foobar:");
4739 #ifdef F77_DUMMY_MAIN
4743 int F77_DUMMY_MAIN() { return 1; }
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -s conftest$ac_exeext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 libc_cv_asm_underscores=yes
4767 echo "$as_me: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 libc_cv_asm_underscores=no
4771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4773 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4774 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4776 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4777 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4778 if test "${libc_cv_asm_underscores+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4782 "configure"
4783 #include "confdefs.h"
4784 void underscore_test(void) {
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 if grep _underscore_test conftest* >/dev/null; then
4794 libc_cv_asm_underscores=yes
4797 libc_cv_asm_underscores=no
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 libc_cv_asm_underscores=no
4807 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4808 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4811 if test $libc_cv_asm_underscores = no; then
4812 cat >>confdefs.h <<\_ACEOF
4813 #define NO_UNDERSCORES 1
4818 if test $elf = yes; then
4819 libc_cv_weak_symbols=yes
4822 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
4823 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
4824 if test "${libc_cv_asm_weak_directive+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat > conftest.s <<EOF
4829 ${libc_cv_asm_global_directive} foo
4832 .weak bar; bar = foo
4834 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4835 libc_cv_asm_weak_directive=yes
4837 libc_cv_asm_weak_directive=no
4841 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
4842 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
4844 if test $libc_cv_asm_weak_directive = no; then
4845 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
4846 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
4847 if test "${libc_cv_asm_weakext_directive+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat > conftest.s <<EOF
4852 ${libc_cv_asm_global_directive} foo
4856 ${libc_cv_asm_global_directive} baz
4859 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4860 libc_cv_asm_weakext_directive=yes
4862 libc_cv_asm_weakext_directive=no
4866 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
4867 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
4871 if test $libc_cv_asm_weak_directive = yes; then
4872 cat >>confdefs.h <<\_ACEOF
4873 #define HAVE_ASM_WEAK_DIRECTIVE 1
4876 elif test $libc_cv_asm_weakext_directive = yes; then
4877 cat >>confdefs.h <<\_ACEOF
4878 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
4883 case "${host_cpu}-${host_os}" in
4885 libc_cv_asm_line_sep='@'
4886 cat >>confdefs.h <<_ACEOF
4887 #define ASM_LINE_SEP $libc_cv_asm_line_sep
4892 echo "$as_me:$LINENO: checking for assembler line separator" >&5
4893 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
4894 if test "${libc_cv_asm_line_sep+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat > conftest.s <<EOF
4900 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 libc_cv_asm_line_sep='!'
4908 if test -z "$enable_hacker_mode"; then
4909 echo "*** You need a newer assembler to compile glibc"
4913 libc_cv_asm_line_sep=';'
4917 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
4918 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
4919 cat >>confdefs.h <<_ACEOF
4920 #define ASM_LINE_SEP $libc_cv_asm_line_sep
4926 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
4927 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
4928 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 cat > conftest.c <<\EOF
4936 if { ac_try='${CC-cc} $CFLAGS
4937 -nostdlib -nostartfiles -Wl,--no-whole-archive
4938 -o conftest conftest.c 1>&5'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 libc_cv_ld_no_whole_archive=yes
4946 libc_cv_ld_no_whole_archive=no
4950 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
4951 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
4952 if test $libc_cv_ld_no_whole_archive = yes; then
4953 no_whole_archive=-Wl,--no-whole-archive
4956 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
4957 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
4958 if test "${libc_cv_gcc_exceptions+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat > conftest.c <<\EOF
4966 if { ac_try='${CC-cc} $CFLAGS
4967 -nostdlib -nostartfiles -fexceptions
4968 -o conftest conftest.c 1>&5'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 libc_cv_gcc_exceptions=yes
4976 libc_cv_gcc_exceptions=no
4980 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
4981 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
4982 if test $libc_cv_gcc_exceptions = yes; then
4983 exceptions=-fexceptions
4986 if test "$base_machine" = alpha ; then
4987 echo "$as_me:$LINENO: checking for function ..ng prefix" >&5
4988 echo $ECHO_N "checking for function ..ng prefix... $ECHO_C" >&6
4989 if test "${libc_cv_gcc_alpha_ng_prefix+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 cat > conftest.c <<\EOF
4995 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; };
5002 libc_cv_gcc_alpha_ng_prefix=yes
5004 libc_cv_gcc_alpha_ng_prefix=no
5008 echo "$as_me:$LINENO: result: $libc_cv_gcc_alpha_ng_prefix" >&5
5009 echo "${ECHO_T}$libc_cv_gcc_alpha_ng_prefix" >&6
5010 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
5016 cat >>confdefs.h <<\_ACEOF
5017 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
5023 if test "$host_cpu" = powerpc ; then
5024 # Check for a bug present in at least versions 2.8.x of GCC
5025 # and versions 1.0.x of EGCS.
5026 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5027 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5028 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 #include "confdefs.h"
5034 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5035 #ifdef F77_DUMMY_MAIN
5039 int F77_DUMMY_MAIN() { return 1; }
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 libc_cv_c_asmcr0_bug='no'
5063 echo "$as_me: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 libc_cv_c_asmcr0_bug='yes'
5067 rm -f conftest.$ac_objext conftest.$ac_ext
5069 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5070 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5071 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5072 cat >>confdefs.h <<\_ACEOF
5073 #define BROKEN_PPC_ASM_CR0 1
5079 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5080 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5081 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 cat > conftest.c <<EOF
5085 #line 5085 "configure"
5086 static char *__EH_FRAME_BEGIN__;
5089 #ifdef CHECK__register_frame
5090 __register_frame (__EH_FRAME_BEGIN__);
5091 __deregister_frame (__EH_FRAME_BEGIN__);
5093 #ifdef CHECK__register_frame_info
5094 __register_frame_info (__EH_FRAME_BEGIN__);
5095 __deregister_frame_info (__EH_FRAME_BEGIN__);
5100 /* FIXME: this is fragile. */
5109 dl_iterate_phdr () {}
5111 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5112 -nostdlib -nostartfiles
5113 -o conftest conftest.c -lgcc >&5'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 libc_cv_gcc_dwarf2_unwind_info=static
5121 libc_cv_gcc_dwarf2_unwind_info=no
5123 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5124 -nostdlib -nostartfiles
5125 -o conftest conftest.c -lgcc -lgcc_eh >&5'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
5132 -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
5133 | grep -q -- --eh-frame-hdr; then
5134 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5136 libc_cv_gcc_dwarf2_unwind_info=static
5139 libc_cv_gcc_dwarf2_unwind_info=no
5141 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5142 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5143 -nostdlib -nostartfiles
5144 -o conftest conftest.c -lgcc >&5'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 libc_cv_gcc_dwarf2_unwind_info=yes
5152 libc_cv_gcc_dwarf2_unwind_info=no
5157 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5158 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5159 case $libc_cv_gcc_dwarf2_unwind_info in
5161 cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_DWARF2_UNWIND_INFO 1
5167 cat >>confdefs.h <<\_ACEOF
5168 #define HAVE_DWARF2_UNWIND_INFO 1
5171 cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5178 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5179 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5180 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat > conftest.c <<EOF
5184 #line 5184 "configure"
5187 a = __builtin_expect (a, 10);
5188 return a == 10 ? 0 : 1;
5191 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5192 -o conftest conftest.c -lgcc >&5'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 libc_cv_gcc_builtin_expect=yes
5200 libc_cv_gcc_builtin_expect=no
5204 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5205 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5206 if test "$libc_cv_gcc_builtin_expect" = yes; then
5207 cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_BUILTIN_EXPECT 1
5213 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5214 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5215 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat > conftest.c <<\EOF
5221 __builtin_memset (x, 0, 1000);
5224 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; };
5231 libc_cv_gcc_builtin_memset=no
5233 libc_cv_gcc_builtin_memset=yes
5237 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5238 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5239 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5240 cat >>confdefs.h <<\_ACEOF
5241 #define HAVE_BUILTIN_MEMSET 1
5246 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5247 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5248 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 cat > conftest.c <<EOF
5252 #line 5252 "configure"
5255 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5256 void *p = &&l1 + ar[a];
5264 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5265 -o conftest conftest.c -lgcc >&5'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 libc_cv_gcc_subtract_local_labels=yes
5273 libc_cv_gcc_subtract_local_labels=no
5277 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5278 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5279 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5280 cat >>confdefs.h <<\_ACEOF
5281 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5286 if test "x$use__thread" != xno; then
5287 echo "$as_me:$LINENO: checking for __thread" >&5
5288 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5289 if test "${libc_cv_gcc___thread+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cat > conftest.c <<\EOF
5293 __thread int a = 42;
5295 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 libc_cv_gcc___thread=yes
5303 libc_cv_gcc___thread=no
5307 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5308 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5309 if test "$libc_cv_gcc___thread" = yes; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define HAVE___THREAD 1
5316 libc_cv_gcc___thread=no
5319 if test "$libc_cv_gcc___thread" = yes; then
5320 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5321 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5322 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat > conftest.c <<\EOF
5326 extern __thread int a __attribute__((tls_model ("initial-exec")));
5328 if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 libc_cv_gcc_tls_model_attr=yes
5336 libc_cv_gcc_tls_model_attr=no
5340 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5341 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5342 if test "$libc_cv_gcc_tls_model_attr" = yes; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5350 echo "$as_me:$LINENO: checking for libgd" >&5
5351 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5352 if test "$with_gd" != "no"; then
5353 old_CFLAGS="$CFLAGS"
5354 CFLAGS="$CFLAGS $libgd_include"
5355 old_LDFLAGS="$LDFLAGS"
5356 LDFLAGS="$LDFLAGS $libgd_ldflags"
5358 LIBS="$LIBS -lgd -lpng -lz -lm"
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 #include "confdefs.h"
5363 #ifdef F77_DUMMY_MAIN
5367 int F77_DUMMY_MAIN() { return 1; }
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -s conftest$ac_exeext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5391 echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5396 CFLAGS="$old_CFLAGS"
5397 LDFLAGS="$old_LDFLAGS"
5402 echo "$as_me:$LINENO: result: $LIBGD" >&5
5403 echo "${ECHO_T}$LIBGD" >&6
5407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5409 if test "${ac_cv_header_stdc+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424 egrep -v '^ *\+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5437 if test -z "$ac_cpp_err"; then
5438 ac_cv_header_stdc=yes
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_header_stdc=no
5444 rm -f conftest.err conftest.$ac_ext
5446 if test $ac_cv_header_stdc = yes; then
5447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 #include "confdefs.h"
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 egrep "memchr" >/dev/null 2>&1; then
5458 ac_cv_header_stdc=no
5464 if test $ac_cv_header_stdc = yes; then
5465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473 egrep "free" >/dev/null 2>&1; then
5476 ac_cv_header_stdc=no
5482 if test $ac_cv_header_stdc = yes; then
5483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5484 if test "$cross_compiling" = yes; then
5487 cat >conftest.$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5489 #include "confdefs.h"
5491 #if ((' ' & 0x0FF) == 0x020)
5492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5495 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5496 || ('j' <= (c) && (c) <= 'r') \
5497 || ('s' <= (c) && (c) <= 'z'))
5498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5506 for (i = 0; i < 256; i++)
5507 if (XOR (islower (i), ISLOWER (i))
5508 || toupper (i) != TOUPPER (i))
5513 rm -f conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: program exited with status $ac_status" >&5
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 ac_cv_header_stdc=no
5532 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5537 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5538 if test $ac_cv_header_stdc = yes; then
5540 cat >>confdefs.h <<\_ACEOF
5541 #define STDC_HEADERS 1
5546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5557 inttypes.h stdint.h unistd.h
5559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5560 echo "$as_me:$LINENO: checking for $ac_header" >&5
5561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5568 $ac_includes_default
5570 #include <$ac_header>
5572 rm -f conftest.$ac_objext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_Header=yes"
5586 echo "$as_me: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 eval "$as_ac_Header=no"
5590 rm -f conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5604 echo "$as_me:$LINENO: checking for long double" >&5
5605 echo $ECHO_N "checking for long double... $ECHO_C" >&6
5606 if test "${ac_cv_type_long_double+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 #include "confdefs.h"
5612 $ac_includes_default
5613 #ifdef F77_DUMMY_MAIN
5617 int F77_DUMMY_MAIN() { return 1; }
5622 if ((long double *) 0)
5624 if (sizeof (long double))
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632 (eval $ac_compile) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -s conftest.$ac_objext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_cv_type_long_double=yes
5644 echo "$as_me: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 ac_cv_type_long_double=no
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
5651 echo "${ECHO_T}$ac_cv_type_long_double" >&6
5653 echo "$as_me:$LINENO: checking size of long double" >&5
5654 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
5655 if test "${ac_cv_sizeof_long_double+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test "$ac_cv_type_long_double" = yes; then
5659 # The cast to unsigned long works around a bug in the HP C Compiler
5660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5662 # This bug is HP SR number 8606223364.
5663 if test "$cross_compiling" = yes; then
5664 # Depending upon the size, compute the lo and hi bounds.
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 #include "confdefs.h"
5668 $ac_includes_default
5669 #ifdef F77_DUMMY_MAIN
5673 int F77_DUMMY_MAIN() { return 1; }
5678 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5702 $ac_includes_default
5703 #ifdef F77_DUMMY_MAIN
5707 int F77_DUMMY_MAIN() { return 1; }
5712 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5719 rm -f conftest.$ac_objext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 (eval $ac_compile) 2>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_hi=$ac_mid; break
5733 echo "$as_me: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5735 ac_lo=`expr $ac_mid + 1`
5736 if test $ac_lo -le $ac_mid; then
5740 ac_mid=`expr 2 '*' $ac_mid + 1`
5742 rm -f conftest.$ac_objext conftest.$ac_ext
5745 echo "$as_me: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 cat >conftest.$ac_ext <<_ACEOF
5748 #line $LINENO "configure"
5749 #include "confdefs.h"
5750 $ac_includes_default
5751 #ifdef F77_DUMMY_MAIN
5755 int F77_DUMMY_MAIN() { return 1; }
5760 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 #include "confdefs.h"
5784 $ac_includes_default
5785 #ifdef F77_DUMMY_MAIN
5789 int F77_DUMMY_MAIN() { return 1; }
5794 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_lo=$ac_mid; break
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 ac_hi=`expr '(' $ac_mid ')' - 1`
5818 if test $ac_mid -le $ac_hi; then
5822 ac_mid=`expr 2 '*' $ac_mid`
5824 rm -f conftest.$ac_objext conftest.$ac_ext
5827 echo "$as_me: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5831 rm -f conftest.$ac_objext conftest.$ac_ext
5833 rm -f conftest.$ac_objext conftest.$ac_ext
5834 # Binary search between lo and hi bounds.
5835 while test "x$ac_lo" != "x$ac_hi"; do
5836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5837 cat >conftest.$ac_ext <<_ACEOF
5838 #line $LINENO "configure"
5839 #include "confdefs.h"
5840 $ac_includes_default
5841 #ifdef F77_DUMMY_MAIN
5845 int F77_DUMMY_MAIN() { return 1; }
5850 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 ac_lo=`expr '(' $ac_mid ')' + 1`
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5878 ?*) ac_cv_sizeof_long_double=$ac_lo;;
5879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
5880 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
5881 { (exit 1); exit 1; }; } ;;
5884 if test "$cross_compiling" = yes; then
5885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5886 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5887 { (exit 1); exit 1; }; }
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 #include "confdefs.h"
5892 $ac_includes_default
5893 long longval () { return (long) (sizeof (long double)); }
5894 unsigned long ulongval () { return (long) (sizeof (long double)); }
5897 #ifdef F77_DUMMY_MAIN
5901 int F77_DUMMY_MAIN() { return 1; }
5907 FILE *f = fopen ("conftest.val", "w");
5910 if (((long) (sizeof (long double))) < 0)
5912 long i = longval ();
5913 if (i != ((long) (sizeof (long double))))
5915 fprintf (f, "%ld\n", i);
5919 unsigned long i = ulongval ();
5920 if (i != ((long) (sizeof (long double))))
5922 fprintf (f, "%lu\n", i);
5924 exit (ferror (f) || fclose (f) != 0);
5930 rm -f conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_sizeof_long_double=`cat conftest.val`
5943 echo "$as_me: program exited with status $ac_status" >&5
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
5948 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
5949 { (exit 1); exit 1; }; }
5951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_sizeof_long_double=0
5959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
5960 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
5966 sizeof_long_double=$ac_cv_sizeof_long_double
5969 ### End of automated tests.
5970 ### Now run sysdeps configure fragments.
5972 # sysdeps configure fragments may set these with files to be linked below.
5976 # They also can set these variables.
5978 ldd_rewrite_script=no
5979 libc_cv_sysconfdir=$sysconfdir
5980 libc_cv_gcc_unwind_find_fde=no
5982 # Iterate over all the sysdep directories we will use, running their
5983 # configure fragments, and looking for a uname implementation.
5985 for dir in $sysnames; do
5988 *) dest=$srcdir/$dir ;;
5990 if test -r $dest/configure; then
5991 echo "$as_me:$LINENO: result: running configure fragment for $dest" >&5
5992 echo "${ECHO_T}running configure fragment for $dest" >&6
5996 if test -z "$uname"; then
5997 if test -r $dest/uname.c ||
5998 test -r $dest/uname.S ||
5999 { test -r $dest/syscalls.list &&
6000 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
6006 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define EXPORT_UNWIND_FIND_FDE 1
6014 ac_sources="`echo $libc_link_sources`"
6015 ac_dests="`echo $libc_link_dests`"
6016 while test -n "$ac_sources"; do
6017 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6018 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6019 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6021 ac_config_links="$ac_config_links $ac_config_links_1"
6024 # If we will use the generic uname implementation, we must figure out what
6025 # it will say by examining the system, and write the results in config-name.h.
6026 if test "$uname" = "sysdeps/generic"; then
6028 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6029 if test $uname_sysname != $config_os; then
6030 config_release=`echo $config_os | sed s/$uname_sysname//`
6033 echo "$as_me:$LINENO: checking OS release for uname" >&5
6034 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6035 if test "${libc_cv_uname_release+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 if test -r /vmunix; then
6039 kernel_id=`strings /vmunix | grep UNIX`
6040 elif test -r /dynix; then
6041 kernel_id=`strings /dynix | grep DYNIX`
6046 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6047 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6048 != x$config_release; then
6049 # The configuration release is a substring of the kernel release.
6050 libc_cv_uname_release=$kernel_release
6051 elif test x$config_release != x; then
6052 libc_cv_uname_release=$config_release
6053 elif test x$kernel_release != x; then
6054 libc_cv_uname_release=$kernel_release
6056 libc_cv_uname_release=unknown
6059 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6060 echo "${ECHO_T}$libc_cv_uname_release" >&6
6061 uname_release="$libc_cv_uname_release"
6063 echo "$as_me:$LINENO: checking OS version for uname" >&5
6064 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6065 if test "${libc_cv_uname_version+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 if test -r /vmunix; then
6069 kernel_id=`strings /vmunix | grep UNIX`
6070 elif test -r /dynix; then
6071 kernel_id=`strings /dynix | grep DYNIX`
6076 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6077 if test -n "$kernel_version"; then
6078 libc_cv_uname_version="$kernel_version"
6080 libc_cv_uname_version=unknown
6083 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6084 echo "${ECHO_T}$libc_cv_uname_version" >&6
6085 uname_version="$libc_cv_uname_version"
6087 config_uname=config-name.h:config-name.in
6089 # For non-generic uname, we don't need to create config-name.h at all.
6093 cat >>confdefs.h <<\_ACEOF
6094 #define USE_IN_LIBIO 1
6098 # Test for old glibc 2.0.x headers so that they can be removed properly
6099 # Search only in includedir.
6100 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6101 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6102 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6104 old_glibc_headers=yes
6106 old_glibc_headers=no
6108 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6109 echo "${ECHO_T}$old_glibc_headers" >&6
6110 if test ${old_glibc_headers} = yes; then
6111 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6112 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6114 echo "$as_me: WARNING: *** be removed." >&2;}
6127 if test $gnu_ld = yes; then
6128 cat >>confdefs.h <<\_ACEOF
6129 #define HAVE_GNU_LD 1
6133 if test $gnu_as = yes; then
6134 cat >>confdefs.h <<\_ACEOF
6135 #define HAVE_GNU_AS 1
6139 if test $elf = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6145 if test $xcoff = yes; then
6146 cat >>confdefs.h <<\_ACEOF
6147 #define HAVE_XCOFF 1
6154 if test $shared = default; then
6155 if test $gnu_ld = yes; then
6158 # For now we do not assume shared libs are available. In future more
6159 # tests might become available.
6164 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6165 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6166 if test "${pic_default+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat > conftest.c <<EOF
6171 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6172 # error PIC is default.
6175 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6180 echo "$as_me:$LINENO: result: $pic_default" >&5
6181 echo "${ECHO_T}$pic_default" >&6
6193 *door*) linux_doors=yes ;;
6194 *) linux_doors=no ;;
6200 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6203 config_makefile=Makefile
6206 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6207 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6211 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6212 ac_config_commands="$ac_config_commands default"
6213 cat >confcache <<\_ACEOF
6214 # This file is a shell script that caches the results of configure
6215 # tests run on this system so they can be shared between configure
6216 # scripts and configure runs, see configure's option --config-cache.
6217 # It is not useful on other systems. If it contains results you don't
6218 # want to keep, you may remove or edit it.
6220 # config.status only pays attention to the cache file if you give it
6221 # the --recheck option to rerun configure.
6223 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6229 # The following way of writing the cache mishandles newlines in values,
6230 # but we know of no workaround that is simple, portable, and efficient.
6231 # So, don't put newlines in cache variables' values.
6232 # Ultrix sh set writes to stderr and can't be redirected directly,
6233 # and sets the high bit in the cache file unless we assign to the vars.
6236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6238 # `set' does not quote correctly, so add quotes (double-quote
6239 # substitution turns \\\\ into \\, and sed turns \\ into \).
6242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6245 # `set' quotes correctly as required by POSIX, so do not add quotes.
6247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6258 if cmp -s $cache_file confcache; then :; else
6259 if test -w $cache_file; then
6260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6261 cat confcache >$cache_file
6263 echo "not updating unwritable cache $cache_file"
6268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6269 # Let make expand exec_prefix.
6270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6274 # trailing colons and then remove the whole line if VPATH becomes empty
6275 # (actually we leave an empty line to preserve line numbers).
6276 if test "x$srcdir" = x.; then
6277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6278 s/:*\$(srcdir):*/:/;
6279 s/:*\${srcdir}:*/:/;
6281 s/^\([^=]*=[ ]*\):*/\1/;
6287 DEFS=-DHAVE_CONFIG_H
6290 : ${CONFIG_STATUS=./config.status}
6291 ac_clean_files_save=$ac_clean_files
6292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6295 cat >$CONFIG_STATUS <<_ACEOF
6297 # Generated by $as_me.
6298 # Run this file to recreate the current configuration.
6299 # Compiler output produced by configure, useful for debugging
6300 # configure, is in config.log if it exists.
6303 SHELL=\${CONFIG_SHELL-$SHELL}
6306 cat >>$CONFIG_STATUS <<\_ACEOF
6308 ## --------------------- ##
6309 ## M4sh Initialization. ##
6310 ## --------------------- ##
6312 # Be Bourne compatible
6313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6316 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6321 # Support unset when possible.
6322 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6328 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6329 { $as_unset LANG || test "${LANG+set}" != set; } ||
6330 { LANG=C; export LANG; }
6331 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6332 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6333 { LC_ALL=C; export LC_ALL; }
6334 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6335 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6336 { LC_TIME=C; export LC_TIME; }
6337 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6338 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6339 { LC_CTYPE=C; export LC_CTYPE; }
6340 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6341 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6342 { LANGUAGE=C; export LANGUAGE; }
6343 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6344 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6345 { LC_COLLATE=C; export LC_COLLATE; }
6346 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6347 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6348 { LC_NUMERIC=C; export LC_NUMERIC; }
6349 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6350 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6351 { LC_MESSAGES=C; export LC_MESSAGES; }
6354 # Name of the executable.
6355 as_me=`(basename "$0") 2>/dev/null ||
6356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6357 X"$0" : 'X\(//\)$' \| \
6358 X"$0" : 'X\(/\)$' \| \
6359 . : '\(.\)' 2>/dev/null ||
6361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6362 /^X\/\(\/\/\)$/{ s//\1/; q; }
6363 /^X\/\(\/\).*/{ s//\1/; q; }
6366 # PATH needs CR, and LINENO needs CR and PATH.
6367 # Avoid depending upon Character Ranges.
6368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6371 as_cr_digits='0123456789'
6372 as_cr_alnum=$as_cr_Letters$as_cr_digits
6374 # The user is always right.
6375 if test "${PATH_SEPARATOR+set}" != set; then
6376 echo "#! /bin/sh" >conftest.sh
6377 echo "exit 0" >>conftest.sh
6378 chmod +x conftest.sh
6379 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6391 test "x$as_lineno_1" != "x$as_lineno_2" &&
6392 test "x$as_lineno_3" = "x$as_lineno_2" || {
6393 # Find who we are. Look in the path if we contain no path at all
6396 *[\\/]* ) as_myself=$0 ;;
6397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6407 # We did not find ourselves, most probably we were run as `sh COMMAND'
6408 # in which case we are not to be found in the path.
6409 if test "x$as_myself" = x; then
6412 if test ! -f "$as_myself"; then
6413 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6414 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6415 { (exit 1); exit 1; }; }
6417 case $CONFIG_SHELL in
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6423 test -z "$as_dir" && as_dir=.
6424 for as_base in sh bash ksh sh5; do
6427 if ("$as_dir/$as_base" -c '
6430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6431 test "x$as_lineno_1" != "x$as_lineno_2" &&
6432 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6433 CONFIG_SHELL=$as_dir/$as_base
6435 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6444 # uniformly replaced by the line number. The first 'sed' inserts a
6445 # line-number line before each line; the second 'sed' does the real
6446 # work. The second script uses 'N' to pair each line-number line
6447 # with the numbered line, and appends trailing '-' during
6448 # substitution so that $LINENO is not a special case at line end.
6449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6450 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6451 sed '=' <$as_myself |
6456 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6459 s,^['$as_cr_digits']*\n,,
6461 chmod +x $as_me.lineno ||
6462 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6463 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6464 { (exit 1); exit 1; }; }
6466 # Don't try to exec as it changes $[0], causing all sort of problems
6467 # (the dirname of $[0] is not the place where we might find the
6468 # original and so on. Autoconf is especially sensible to this).
6470 # Exit status is that of the last command.
6475 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6476 *c*,-n*) ECHO_N= ECHO_C='
6478 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6479 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6482 if expr a : '\(a\)' >/dev/null 2>&1; then
6488 rm -f conf$$ conf$$.exe conf$$.file
6490 if ln -s conf$$.file conf$$ 2>/dev/null; then
6491 # We could just check for DJGPP; but this test a) works b) is more generic
6492 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6493 if test -f conf$$.exe; then
6494 # Don't use ln at all; we don't have any links
6499 elif ln conf$$.file conf$$ 2>/dev/null; then
6504 rm -f conf$$ conf$$.exe conf$$.file
6506 as_executable_p="test -f"
6508 # Sed expression to map a string onto a valid CPP name.
6509 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6511 # Sed expression to map a string onto a valid variable name.
6512 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6516 # We need space, tab and new line, in precisely that order.
6522 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6526 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6527 # report actual input values of CONFIG_FILES etc. instead of their
6528 # values after options handling. Logging --version etc. is OK.
6532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6533 ## Running $as_me. ##
6538 This file was extended by $as_me, which was
6539 generated by GNU Autoconf 2.53. Invocation command line was
6541 CONFIG_FILES = $CONFIG_FILES
6542 CONFIG_HEADERS = $CONFIG_HEADERS
6543 CONFIG_LINKS = $CONFIG_LINKS
6544 CONFIG_COMMANDS = $CONFIG_COMMANDS
6548 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6552 # Files that config.status was made for.
6553 if test -n "$ac_config_files"; then
6554 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6557 if test -n "$ac_config_headers"; then
6558 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6561 if test -n "$ac_config_links"; then
6562 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6565 if test -n "$ac_config_commands"; then
6566 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6569 cat >>$CONFIG_STATUS <<\_ACEOF
6572 \`$as_me' instantiates files from templates according to the
6573 current configuration.
6575 Usage: $0 [OPTIONS] [FILE]...
6577 -h, --help print this help, then exit
6578 -V, --version print version number, then exit
6579 -d, --debug don't remove temporary files
6580 --recheck update $as_me by reconfiguring in the same conditions
6581 --file=FILE[:TEMPLATE]
6582 instantiate the configuration file FILE
6583 --header=FILE[:TEMPLATE]
6584 instantiate the configuration header FILE
6586 Configuration files:
6589 Configuration headers:
6592 Configuration links:
6595 Configuration commands:
6598 Report bugs to <bug-autoconf@gnu.org>."
6601 cat >>$CONFIG_STATUS <<_ACEOF
6604 configured by $0, generated by GNU Autoconf 2.53,
6605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6608 Free Software Foundation, Inc.
6609 This config.status script is free software; the Free Software Foundation
6610 gives unlimited permission to copy, distribute and modify it."
6615 cat >>$CONFIG_STATUS <<\_ACEOF
6616 # If no file are specified by the user, then we need to provide default
6617 # value. By we need to know if files were specified by the user.
6623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6630 *) # This is not an option, so the user has probably given explicit
6632 ac_need_defaults=false;;
6636 # Handling of the options.
6638 cat >>$CONFIG_STATUS <<_ACEOF
6639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6643 cat >>$CONFIG_STATUS <<\_ACEOF
6644 --version | --vers* | -V )
6645 echo "$ac_cs_version"; exit 0 ;;
6647 # Conflict between --help and --header
6648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6649 Try \`$0 --help' for more information." >&5
6650 echo "$as_me: error: ambiguous option: $1
6651 Try \`$0 --help' for more information." >&2;}
6652 { (exit 1); exit 1; }; };;
6653 --help | --hel | -h )
6654 echo "$ac_cs_usage"; exit 0 ;;
6655 --debug | --d* | -d )
6657 --file | --fil | --fi | --f )
6659 CONFIG_FILES="$CONFIG_FILES $1"
6660 ac_need_defaults=false;;
6661 --header | --heade | --head | --hea )
6663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6664 ac_need_defaults=false;;
6667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6668 Try \`$0 --help' for more information." >&5
6669 echo "$as_me: error: unrecognized option: $1
6670 Try \`$0 --help' for more information." >&2;}
6671 { (exit 1); exit 1; }; } ;;
6673 *) ac_config_targets="$ac_config_targets $1" ;;
6681 cat >>$CONFIG_STATUS <<_ACEOF
6683 # INIT-COMMANDS section.
6686 config_vars='$config_vars'
6692 cat >>$CONFIG_STATUS <<\_ACEOF
6693 for ac_config_target in $ac_config_targets
6695 case "$ac_config_target" in
6696 # Handling of arguments.
6697 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
6698 "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
6699 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
6700 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
6701 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6702 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6703 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6704 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6705 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6706 { (exit 1); exit 1; }; };;
6710 # If the user did not use the arguments to specify the items to instantiate,
6711 # then the envvar interface is used. Set only those that are not.
6712 # We use the long form for the default assignment because of an extremely
6713 # bizarre bug on SunOS 4.1.3.
6714 if $ac_need_defaults; then
6715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6717 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6721 # Create a temporary directory, and hook for its removal unless debugging.
6724 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6725 trap '{ (exit 1); exit 1; }' 1 2 13 15
6728 # Create a (secure) tmp directory for tmp files.
6731 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6732 test -n "$tmp" && test -d "$tmp"
6735 tmp=$TMPDIR/cs$$-$RANDOM
6736 (umask 077 && mkdir $tmp)
6739 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6740 { (exit 1); exit 1; }
6745 cat >>$CONFIG_STATUS <<_ACEOF
6748 # CONFIG_FILES section.
6751 # No need to generate the scripts if there are no CONFIG_FILES.
6752 # This happens for instance when ./config.status config.h
6753 if test -n "\$CONFIG_FILES"; then
6754 # Protect against being on the right side of a sed subst in config.status.
6755 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6756 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6757 s,@SHELL@,$SHELL,;t t
6758 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6759 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6760 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6761 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6762 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6763 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6764 s,@exec_prefix@,$exec_prefix,;t t
6765 s,@prefix@,$prefix,;t t
6766 s,@program_transform_name@,$program_transform_name,;t t
6767 s,@bindir@,$bindir,;t t
6768 s,@sbindir@,$sbindir,;t t
6769 s,@libexecdir@,$libexecdir,;t t
6770 s,@datadir@,$datadir,;t t
6771 s,@sysconfdir@,$sysconfdir,;t t
6772 s,@sharedstatedir@,$sharedstatedir,;t t
6773 s,@localstatedir@,$localstatedir,;t t
6774 s,@libdir@,$libdir,;t t
6775 s,@includedir@,$includedir,;t t
6776 s,@oldincludedir@,$oldincludedir,;t t
6777 s,@infodir@,$infodir,;t t
6778 s,@mandir@,$mandir,;t t
6779 s,@build_alias@,$build_alias,;t t
6780 s,@host_alias@,$host_alias,;t t
6781 s,@target_alias@,$target_alias,;t t
6783 s,@ECHO_C@,$ECHO_C,;t t
6784 s,@ECHO_N@,$ECHO_N,;t t
6785 s,@ECHO_T@,$ECHO_T,;t t
6787 s,@with_fp@,$with_fp,;t t
6788 s,@with_cvs@,$with_cvs,;t t
6789 s,@oldest_abi@,$oldest_abi,;t t
6790 s,@subdirs@,$subdirs,;t t
6791 s,@force_install@,$force_install,;t t
6792 s,@all_warnings@,$all_warnings,;t t
6793 s,@build@,$build,;t t
6794 s,@build_cpu@,$build_cpu,;t t
6795 s,@build_vendor@,$build_vendor,;t t
6796 s,@build_os@,$build_os,;t t
6798 s,@host_cpu@,$host_cpu,;t t
6799 s,@host_vendor@,$host_vendor,;t t
6800 s,@host_os@,$host_os,;t t
6801 s,@completely_soft@,$completely_soft,;t t
6802 s,@base_machine@,$base_machine,;t t
6803 s,@sysnames@,$sysnames,;t t
6804 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6805 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6806 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6808 s,@PWD_P@,$PWD_P,;t t
6811 s,@MSGFMT@,$MSGFMT,;t t
6812 s,@MAKEINFO@,$MAKEINFO,;t t
6814 s,@AUTOCONF@,$AUTOCONF,;t t
6815 s,@CFLAGS@,$CFLAGS,;t t
6816 s,@LDFLAGS@,$LDFLAGS,;t t
6817 s,@CPPFLAGS@,$CPPFLAGS,;t t
6818 s,@ac_ct_CC@,$ac_ct_CC,;t t
6819 s,@OBJEXT@,$OBJEXT,;t t
6820 s,@BUILD_CC@,$BUILD_CC,;t t
6821 s,@cross_compiling@,$cross_compiling,;t t
6824 s,@RANLIB@,$RANLIB,;t t
6825 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6827 s,@CCVERSION@,$CCVERSION,;t t
6828 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
6829 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
6831 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
6833 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
6836 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6837 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
6838 s,@BISON@,$BISON,;t t
6839 s,@VERSIONING@,$VERSIONING,;t t
6840 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
6841 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
6842 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
6843 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
6844 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
6845 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
6846 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
6847 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
6848 s,@no_whole_archive@,$no_whole_archive,;t t
6849 s,@exceptions@,$exceptions,;t t
6850 s,@LIBGD@,$LIBGD,;t t
6851 s,@sizeof_long_double@,$sizeof_long_double,;t t
6852 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
6853 s,@uname_sysname@,$uname_sysname,;t t
6854 s,@uname_release@,$uname_release,;t t
6855 s,@uname_version@,$uname_version,;t t
6856 s,@old_glibc_headers@,$old_glibc_headers,;t t
6857 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
6858 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
6859 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
6860 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
6861 s,@use_ldconfig@,$use_ldconfig,;t t
6862 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
6863 s,@gnu_ld@,$gnu_ld,;t t
6864 s,@gnu_as@,$gnu_as,;t t
6866 s,@xcoff@,$xcoff,;t t
6867 s,@static@,$static,;t t
6868 s,@shared@,$shared,;t t
6869 s,@pic_default@,$pic_default,;t t
6870 s,@profile@,$profile,;t t
6871 s,@omitfp@,$omitfp,;t t
6872 s,@bounded@,$bounded,;t t
6873 s,@static_nss@,$static_nss,;t t
6874 s,@nopic_initfini@,$nopic_initfini,;t t
6875 s,@DEFINES@,$DEFINES,;t t
6876 s,@linux_doors@,$linux_doors,;t t
6877 s,@mach_interface_list@,$mach_interface_list,;t t
6878 s,@VERSION@,$VERSION,;t t
6879 s,@RELEASE@,$RELEASE,;t t
6884 cat >>$CONFIG_STATUS <<\_ACEOF
6885 # Split the substitutions into bite-sized pieces for seds with
6886 # small command number limits, like on Digital OSF/1 and HP-UX.
6888 ac_sed_frag=1 # Number of current file.
6889 ac_beg=1 # First line for current file.
6890 ac_end=$ac_max_sed_lines # Line after last line for current file.
6893 while $ac_more_lines; do
6894 if test $ac_beg -gt 1; then
6895 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6897 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6899 if test ! -s $tmp/subs.frag; then
6902 # The purpose of the label and of the branching condition is to
6903 # speed up the sed processing (if there are no `@' at all, there
6904 # is no need to browse any of the substitutions).
6905 # These are the two extra sed commands mentioned above.
6907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6908 if test -z "$ac_sed_cmds"; then
6909 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6911 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6913 ac_sed_frag=`expr $ac_sed_frag + 1`
6915 ac_end=`expr $ac_end + $ac_max_sed_lines`
6918 if test -z "$ac_sed_cmds"; then
6921 fi # test -n "$CONFIG_FILES"
6924 cat >>$CONFIG_STATUS <<\_ACEOF
6925 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6928 - | *:- | *:-:* ) # input from stdin
6930 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6932 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6934 * ) ac_file_in=$ac_file.in ;;
6937 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6938 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6940 X"$ac_file" : 'X\(//\)[^/]' \| \
6941 X"$ac_file" : 'X\(//\)$' \| \
6942 X"$ac_file" : 'X\(/\)' \| \
6943 . : '\(.\)' 2>/dev/null ||
6945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6947 /^X\(\/\/\)$/{ s//\1/; q; }
6948 /^X\(\/\).*/{ s//\1/; q; }
6951 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6955 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6956 case $as_mkdir_dir in
6957 # Skip DOS drivespec
6958 ?:) as_incr_dir=$as_mkdir_dir ;;
6960 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6961 test -d "$as_incr_dir" ||
6962 mkdir "$as_incr_dir" ||
6963 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6964 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6965 { (exit 1); exit 1; }; }
6972 if test "$ac_dir" != .; then
6973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6974 # A "../" for each directory in $ac_dir_suffix.
6975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6977 ac_dir_suffix= ac_top_builddir=
6981 .) # No --srcdir option. We are building in place.
6983 if test -z "$ac_top_builddir"; then
6986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6988 [\\/]* | ?:[\\/]* ) # Absolute path.
6989 ac_srcdir=$srcdir$ac_dir_suffix;
6990 ac_top_srcdir=$srcdir ;;
6992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6995 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6997 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6998 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6999 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7000 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7005 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7008 if test x"$ac_file" != x-; then
7009 { echo "$as_me:$LINENO: creating $ac_file" >&5
7010 echo "$as_me: creating $ac_file" >&6;}
7013 # Let's still pretend it is `configure' which instantiates (i.e., don't
7014 # use $as_me), people would be surprised to read:
7015 # /* config.h. Generated by config.status. */
7016 if test x"$ac_file" = x-; then
7019 configure_input="$ac_file. "
7021 configure_input=$configure_input"Generated from `echo $ac_file_in |
7022 sed 's,.*/,,'` by configure."
7024 # First look for the input files in the build tree, otherwise in the
7026 ac_file_inputs=`IFS=:
7027 for f in $ac_file_in; do
7029 -) echo $tmp/stdin ;;
7031 # Absolute (can't be DOS-style, as IFS=:)
7032 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7033 echo "$as_me: error: cannot find input file: $f" >&2;}
7034 { (exit 1); exit 1; }; }
7037 if test -f "$f"; then
7040 elif test -f "$srcdir/$f"; then
7045 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7046 echo "$as_me: error: cannot find input file: $f" >&2;}
7047 { (exit 1); exit 1; }; }
7050 done` || { (exit 1); exit 1; }
7052 cat >>$CONFIG_STATUS <<_ACEOF
7056 cat >>$CONFIG_STATUS <<\_ACEOF
7058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7059 s,@configure_input@,$configure_input,;t t
7060 s,@srcdir@,$ac_srcdir,;t t
7061 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7062 s,@top_srcdir@,$ac_top_srcdir,;t t
7063 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7064 s,@builddir@,$ac_builddir,;t t
7065 s,@abs_builddir@,$ac_abs_builddir,;t t
7066 s,@top_builddir@,$ac_top_builddir,;t t
7067 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7068 s,@INSTALL@,$ac_INSTALL,;t t
7069 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7071 if test x"$ac_file" != x-; then
7072 mv $tmp/out $ac_file
7080 cat >>$CONFIG_STATUS <<\_ACEOF
7083 # CONFIG_HEADER section.
7086 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7087 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7089 # ac_d sets the value in "#define NAME VALUE" lines.
7090 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7091 ac_dB='[ ].*$,\1#\2'
7094 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7095 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7096 ac_uB='$,\1#\2define\3'
7100 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7103 - | *:- | *:-:* ) # input from stdin
7105 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7109 * ) ac_file_in=$ac_file.in ;;
7112 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7113 echo "$as_me: creating $ac_file" >&6;}
7115 # First look for the input files in the build tree, otherwise in the
7117 ac_file_inputs=`IFS=:
7118 for f in $ac_file_in; do
7120 -) echo $tmp/stdin ;;
7122 # Absolute (can't be DOS-style, as IFS=:)
7123 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7124 echo "$as_me: error: cannot find input file: $f" >&2;}
7125 { (exit 1); exit 1; }; }
7128 if test -f "$f"; then
7131 elif test -f "$srcdir/$f"; then
7136 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7137 echo "$as_me: error: cannot find input file: $f" >&2;}
7138 { (exit 1); exit 1; }; }
7141 done` || { (exit 1); exit 1; }
7142 # Remove the trailing spaces.
7143 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7147 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7148 # `conftest.undefs', that substitutes the proper values into
7149 # config.h.in to produce config.h. The first handles `#define'
7150 # templates, and the second `#undef' templates.
7151 # And first: Protect against being on the right side of a sed subst in
7152 # config.status. Protect against being in an unquoted here document
7154 rm -f conftest.defines conftest.undefs
7155 # Using a here document instead of a string reduces the quoting nightmare.
7156 # Putting comments in sed scripts is not portable.
7158 # `end' is used to avoid that the second main sed command (meant for
7159 # 0-ary CPP macros) applies to n-ary macro definitions.
7160 # See the Autoconf documentation for `clear'.
7161 cat >confdef2sed.sed <<\_ACEOF
7166 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7168 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7171 # If some macros were called several times there might be several times
7172 # the same #defines, which is useless. Nevertheless, we may not want to
7173 # sort them, since we want the *last* AC-DEFINE to be honored.
7174 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7175 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7176 rm -f confdef2sed.sed
7178 # This sed command replaces #undef with comments. This is necessary, for
7179 # example, in the case of _POSIX_SOURCE, which is predefined and required
7180 # on some systems where configure will not decide to define it.
7181 cat >>conftest.undefs <<\_ACEOF
7182 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7185 # Break up conftest.defines because some shells have a limit on the size
7186 # of here documents, and old seds have small limits too (100 cmds).
7187 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7188 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7189 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7190 echo ' :' >>$CONFIG_STATUS
7192 while grep . conftest.defines >/dev/null
7194 # Write a limited-size here document to $tmp/defines.sed.
7195 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7196 # Speed up: don't consider the non `#define' lines.
7197 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7198 # Work around the forget-to-reset-the-flag bug.
7199 echo 't clr' >>$CONFIG_STATUS
7200 echo ': clr' >>$CONFIG_STATUS
7201 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7203 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7207 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7208 rm -f conftest.defines
7209 mv conftest.tail conftest.defines
7211 rm -f conftest.defines
7212 echo ' fi # egrep' >>$CONFIG_STATUS
7213 echo >>$CONFIG_STATUS
7215 # Break up conftest.undefs because some shells have a limit on the size
7216 # of here documents, and old seds have small limits too (100 cmds).
7217 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7219 while grep . conftest.undefs >/dev/null
7221 # Write a limited-size here document to $tmp/undefs.sed.
7222 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7223 # Speed up: don't consider the non `#undef'
7224 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7225 # Work around the forget-to-reset-the-flag bug.
7226 echo 't clr' >>$CONFIG_STATUS
7227 echo ': clr' >>$CONFIG_STATUS
7228 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7230 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7234 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7235 rm -f conftest.undefs
7236 mv conftest.tail conftest.undefs
7238 rm -f conftest.undefs
7240 cat >>$CONFIG_STATUS <<\_ACEOF
7241 # Let's still pretend it is `configure' which instantiates (i.e., don't
7242 # use $as_me), people would be surprised to read:
7243 # /* config.h. Generated by config.status. */
7244 if test x"$ac_file" = x-; then
7245 echo "/* Generated by configure. */" >$tmp/config.h
7247 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7249 cat $tmp/in >>$tmp/config.h
7251 if test x"$ac_file" != x-; then
7252 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7253 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7254 echo "$as_me: $ac_file is unchanged" >&6;}
7256 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7258 X"$ac_file" : 'X\(//\)[^/]' \| \
7259 X"$ac_file" : 'X\(//\)$' \| \
7260 X"$ac_file" : 'X\(/\)' \| \
7261 . : '\(.\)' 2>/dev/null ||
7263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7265 /^X\(\/\/\)$/{ s//\1/; q; }
7266 /^X\(\/\).*/{ s//\1/; q; }
7269 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7273 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7274 case $as_mkdir_dir in
7275 # Skip DOS drivespec
7276 ?:) as_incr_dir=$as_mkdir_dir ;;
7278 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7279 test -d "$as_incr_dir" ||
7280 mkdir "$as_incr_dir" ||
7281 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7282 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7283 { (exit 1); exit 1; }; }
7289 mv $tmp/config.h $ac_file
7297 cat >>$CONFIG_STATUS <<\_ACEOF
7300 # CONFIG_LINKS section.
7303 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7304 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7305 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7307 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7308 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7310 if test ! -r $srcdir/$ac_source; then
7311 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7312 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7313 { (exit 1); exit 1; }; }
7317 # Make relative symlinks.
7318 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7319 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320 X"$ac_dest" : 'X\(//\)[^/]' \| \
7321 X"$ac_dest" : 'X\(//\)$' \| \
7322 X"$ac_dest" : 'X\(/\)' \| \
7323 . : '\(.\)' 2>/dev/null ||
7325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327 /^X\(\/\/\)$/{ s//\1/; q; }
7328 /^X\(\/\).*/{ s//\1/; q; }
7330 { case "$ac_dest_dir" in
7331 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7334 as_dummy="$ac_dest_dir"
7335 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7336 case $as_mkdir_dir in
7337 # Skip DOS drivespec
7338 ?:) as_incr_dir=$as_mkdir_dir ;;
7340 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7341 test -d "$as_incr_dir" ||
7342 mkdir "$as_incr_dir" ||
7343 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
7344 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
7345 { (exit 1); exit 1; }; }
7352 if test "$ac_dest_dir" != .; then
7353 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7354 # A "../" for each directory in $ac_dir_suffix.
7355 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7357 ac_dir_suffix= ac_top_builddir=
7361 .) # No --srcdir option. We are building in place.
7363 if test -z "$ac_top_builddir"; then
7366 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7368 [\\/]* | ?:[\\/]* ) # Absolute path.
7369 ac_srcdir=$srcdir$ac_dir_suffix;
7370 ac_top_srcdir=$srcdir ;;
7372 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7373 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7375 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
7377 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
7378 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
7379 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
7380 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
7384 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7385 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7388 # Make a symlink if possible; otherwise try a hard link.
7389 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7390 ln $srcdir/$ac_source $ac_dest ||
7391 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
7392 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
7393 { (exit 1); exit 1; }; }
7396 cat >>$CONFIG_STATUS <<\_ACEOF
7399 # CONFIG_COMMANDS section.
7401 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7402 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7403 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7404 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7405 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7406 X"$ac_dest" : 'X\(//\)[^/]' \| \
7407 X"$ac_dest" : 'X\(//\)$' \| \
7408 X"$ac_dest" : 'X\(/\)' \| \
7409 . : '\(.\)' 2>/dev/null ||
7411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7413 /^X\(\/\/\)$/{ s//\1/; q; }
7414 /^X\(\/\).*/{ s//\1/; q; }
7418 if test "$ac_dir" != .; then
7419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7420 # A "../" for each directory in $ac_dir_suffix.
7421 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7423 ac_dir_suffix= ac_top_builddir=
7427 .) # No --srcdir option. We are building in place.
7429 if test -z "$ac_top_builddir"; then
7432 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7434 [\\/]* | ?:[\\/]* ) # Absolute path.
7435 ac_srcdir=$srcdir$ac_dir_suffix;
7436 ac_top_srcdir=$srcdir ;;
7438 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7439 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7441 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7443 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7444 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7445 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7446 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7449 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7450 echo "$as_me: executing $ac_dest commands" >&6;}
7453 case $CONFIG_FILES in *config.make*)
7454 echo "$config_vars" >> config.make;;
7456 test -d bits || mkdir bits ;;
7461 cat >>$CONFIG_STATUS <<\_ACEOF
7463 { (exit 0); exit 0; }
7465 chmod +x $CONFIG_STATUS
7466 ac_clean_files=$ac_clean_files_save
7469 # configure is writing to config.log, and then calls config.status.
7470 # config.status does its own redirection, appending to config.log.
7471 # Unfortunately, on DOS this fails, as config.log is still kept open
7472 # by configure, so config.status won't be able to write to it; its
7473 # output is simply discarded. So we exec the FD to /dev/null,
7474 # effectively closing config.log, so it can be properly (re)opened and
7475 # appended to by config.status. When coming back to configure, we
7476 # need to make the FD available again.
7477 if test "$no_create" != yes; then
7480 $SHELL $CONFIG_STATUS || ac_cs_success=false
7482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7483 # would make configure fail if this is the last instruction.
7484 $ac_cs_success || { (exit 1); exit 1; }
7488 # CONFIG_SUBDIRS section.
7490 if test "$no_recursion" != yes; then
7492 # Remove --cache-file and --srcdir arguments so they do not pile up.
7493 ac_sub_configure_args=
7495 for ac_arg in $ac_configure_args; do
7496 if test -n "$ac_prev"; then
7501 -cache-file | --cache-file | --cache-fil | --cache-fi \
7502 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7503 ac_prev=cache_file ;;
7504 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7505 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7508 --config-cache | -C)
7510 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7512 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7514 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7516 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7518 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7522 # Always prepend --prefix to ensure using the same prefix
7523 # in subdir configurations.
7524 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7527 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7529 # Do not complain, so a configure script can configure whichever
7530 # parts of a large source tree are present.
7531 test -d $srcdir/$ac_dir || continue
7533 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7534 echo "$as_me: configuring in $ac_dir" >&6;}
7536 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7540 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7541 case $as_mkdir_dir in
7542 # Skip DOS drivespec
7543 ?:) as_incr_dir=$as_mkdir_dir ;;
7545 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7546 test -d "$as_incr_dir" ||
7547 mkdir "$as_incr_dir" ||
7548 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7549 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7550 { (exit 1); exit 1; }; }
7557 if test "$ac_dir" != .; then
7558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7559 # A "../" for each directory in $ac_dir_suffix.
7560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7562 ac_dir_suffix= ac_top_builddir=
7566 .) # No --srcdir option. We are building in place.
7568 if test -z "$ac_top_builddir"; then
7571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7573 [\\/]* | ?:[\\/]* ) # Absolute path.
7574 ac_srcdir=$srcdir$ac_dir_suffix;
7575 ac_top_srcdir=$srcdir ;;
7577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7580 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7582 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7583 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7584 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7585 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7590 # Check for guested configure; otherwise get Cygnus style configure.
7591 if test -f $ac_srcdir/configure.gnu; then
7592 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7593 elif test -f $ac_srcdir/configure; then
7594 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7595 elif test -f $ac_srcdir/configure.in; then
7596 ac_sub_configure=$ac_configure
7598 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7599 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7603 # The recursion is here.
7604 if test -n "$ac_sub_configure"; then
7605 # Make the cache file name correct relative to the subdirectory.
7607 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7609 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7612 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7613 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7614 # The eval makes quoting arguments work.
7615 eval $ac_sub_configure $ac_sub_configure_args \
7616 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7617 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7618 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7619 { (exit 1); exit 1; }; }