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.
1703 case "$machine-$host_os" in
1711 # Expand the configuration machine name into a subdirectory by architecture
1712 # type and particular chip.
1714 a29k | am29000) base_machine=a29k machine=a29k ;;
1715 alpha*) base_machine=alpha machine=alpha/$machine ;;
1716 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1717 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1718 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1719 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1720 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1721 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1722 ia64) base_machine=ia64 machine=ia64 ;;
1723 m680?0) base_machine=m68k machine=m68k/$machine ;;
1724 m68k) base_machine=m68k machine=m68k/m68020 ;;
1725 m88???) base_machine=m88k machine=m88k/$machine ;;
1726 m88k) base_machine=m88k machine=m88k/m88100 ;;
1727 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1728 mips*) base_machine=mips machine=mips/$machine ;;
1729 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1730 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1731 s390) base_machine=s390 machine=s390/s390-32 ;;
1732 s390x) base_machine=s390 machine=s390/s390-64 ;;
1733 sh3*) base_machine=sh machine=sh/sh3 ;;
1734 sh4*) base_machine=sh machine=sh/sh4 ;;
1736 base_machine=sparc machine=sparc/sparc32 ;;
1737 sparcv8 | supersparc | hypersparc)
1738 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1739 sparcv8plus | sparcv8plusa | sparcv9)
1740 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1741 sparcv8plusb | sparcv9b)
1742 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1743 sparc64 | ultrasparc)
1744 base_machine=sparc machine=sparc/sparc64 ;;
1745 sparc64b | ultrasparc3)
1746 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1747 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1748 *) base_machine=$machine ;;
1752 if test "$base_machine" = "i386"; then
1753 cat >>confdefs.h <<\_ACEOF
1754 #define USE_REGPARMS 1
1759 # Compute the list of sysdep directories for this configuration.
1760 # This can take a while to compute.
1761 sysdep_dir=$srcdir/sysdeps
1762 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1763 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1764 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1765 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1769 base_os=mach/hurd ;;
1770 netbsd* | 386bsd* | freebsd* | bsdi*)
1771 base_os=unix/bsd/bsd4.4 ;;
1772 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1774 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1775 base_os=unix/sysv ;;
1777 base_os=unix/sysv/irix6/$os ;;
1779 base_os=unix/sysv/sysv4 ;;
1781 base_os=unix/sysv/hpux/$os ;;
1783 base_os=unix/sysv/aix/aix4.3 ;;
1785 base_os=standalone ;;
1790 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1793 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1797 o=`echo $tail | sed 's/[0-9]*$//'`
1798 if test $o != $tail; then
1801 # For linux-gnu, try linux-gnu, then linux.
1802 o=`echo $tail | sed 's/-.*$//'`
1803 if test $o != $tail; then
1807 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1810 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1816 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1819 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1821 # Prepend the machine's FPU directory unless --without-fp.
1822 if test "$with_fp" = yes; then
1823 mach="$mach /$1/fpu"
1830 # Find what sysdep directories exist.
1832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1833 for d in $add_ons_pfx ''; do
1834 for b in $base ''; do
1835 for m0 in $mach ''; do
1836 for v in /$vendor ''; do
1837 test "$v" = / && continue
1838 for o in /$ostry ''; do
1839 test "$o" = / && continue
1840 for m in $mach ''; do
1841 if test "$m0$b$v$o$m"; then
1842 try="${d}sysdeps$m0$b$v$o$m"
1843 test -n "$enable_debug_configure" &&
1844 echo "$0 DEBUG: try $try" >&2
1845 if test -d $srcdir/$try; then
1846 sysnames="$sysnames $try"
1847 { test -n "$o" || test -n "$b"; } && os_used=t
1848 { test -n "$m" || test -n "$m0"; } && machine_used=t
1859 if test -z "$os_used" && test "$os" != none; then
1860 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1861 echo "$as_me: error: Operating system $os is not supported." >&2;}
1862 { (exit 1); exit 1; }; }
1864 if test -z "$machine_used" && test "$machine" != none; then
1865 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1866 echo "$as_me: error: The $machine is not supported." >&2;}
1867 { (exit 1); exit 1; }; }
1870 # We have now validated the configuration.
1873 # If using ELF, look for an `elf' subdirectory of each machine directory.
1874 # We prepend these rather than inserting them whereever the machine appears
1875 # because things specified by the machine's ELF ABI should override
1876 # OS-specific things, and should always be the same for any OS on the
1877 # machine (otherwise what's the point of an ABI?).
1878 if test "$elf" = yes; then
1880 for d in $add_ons_pfx ''; do
1882 if test -d $srcdir/${d}sysdeps$m/elf; then
1883 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1887 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1891 # Expand the list of system names into a full list of directories
1892 # from each element's parent name and Implies file (if present).
1895 while test $# -gt 0; do
1899 case " $names " in *" $name "*)
1900 # Already in the list.
1904 # Report each name as we discover it, so there is no long pause in output.
1905 echo $ECHO_N "$name $ECHO_C" >&6
1907 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1911 *) xsrcdir=$srcdir/ ;;
1913 test -n "$enable_debug_configure" &&
1914 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1916 if test -f $xsrcdir$name/Implies; then
1917 # Collect more names from the `Implies' file (removing comments).
1918 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1920 for x in $implied_candidate; do
1922 if test -d $xsrcdir$name_base/$x; then
1923 implied="$implied $name_base/$x";
1926 for d in $add_ons_pfx ''; do
1927 try="${d}sysdeps/$x"
1930 *) try_srcdir=$srcdir/ ;;
1932 test -n "$enable_debug_configure" &&
1933 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1934 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1936 implied="$implied $try"
1940 if test $found = no; then
1941 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
1942 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
1949 # Add NAME to the list of names.
1950 names="$names $name"
1952 # Find the parent of NAME, using the empty string if it has none.
1953 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1955 # Add the names implied by NAME, and NAME's parent (if it has one), to
1956 # the list of names to be processed (the argument list). We prepend the
1957 # implied names to the list and append the parent. We want implied
1958 # directories to come before further directories inferred from the
1959 # configuration components; this ensures that for sysv4, unix/common
1960 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1962 sysnames="`echo $implied $* $parent`"
1963 test -n "$sysnames" && set $sysnames
1966 # Add the default directories.
1967 default_sysnames=sysdeps/generic
1968 if test "$elf" = yes; then
1969 default_sysnames="sysdeps/generic/elf $default_sysnames"
1971 sysnames="$names $default_sysnames"
1973 # The other names were emitted during the scan.
1974 echo "$as_me:$LINENO: result: $default_sysnames" >&5
1975 echo "${ECHO_T}$default_sysnames" >&6
1980 # Find a good install program. We prefer a C program (faster),
1981 # so one script is as good as another. But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1994 if test -z "$INSTALL"; then
1995 if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2009 # OSF1 and SCO ODT 3.0 have their own names for install.
2010 # Don't use installbsd from OSF since it installs stuff as root
2012 for ac_prog in ginstall scoinst install; do
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2015 if test $ac_prog = install &&
2016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # AIX install. It has an incompatible calling convention.
2019 elif test $ac_prog = install &&
2020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2021 # program-specific install script used by HP pwplus--don't use.
2024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2036 if test "${ac_cv_path_install+set}" = set; then
2037 INSTALL=$ac_cv_path_install
2039 # As a last resort, use the slow shell script. We don't cache a
2040 # path for INSTALL within a source directory, because that will
2041 # break other packages using the cache if that directory is
2042 # removed, or if the path is relative.
2043 INSTALL=$ac_install_sh
2046 echo "$as_me:$LINENO: result: $INSTALL" >&5
2047 echo "${ECHO_T}$INSTALL" >&6
2049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2050 # It thinks the first close brace ends the variable substitution.
2051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2057 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2058 # The makefiles need to use a different form to find it in $srcdir.
2059 INSTALL='\$(..)./scripts/install-sh -c'
2061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2064 if test "$LN_S" = "ln -s"; then
2065 echo "$as_me:$LINENO: result: yes" >&5
2066 echo "${ECHO_T}yes" >&6
2068 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2069 echo "${ECHO_T}no, using $LN_S" >&6
2073 # We need the physical current working directory. We cannot use the
2074 # "pwd -P" shell builtin since that's not portable. Instead we try to
2075 # find a pwd binary. Note that assigning to the PWD environment
2076 # variable might have some interesting side effects, so we don't do
2078 # Extract the first word of "pwd", so it can be a program name with args.
2079 set dummy pwd; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_path_PWD_P+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
2108 PWD_P=$ac_cv_path_PWD_P
2110 if test -n "$PWD_P"; then
2111 echo "$as_me:$LINENO: result: $PWD_P" >&5
2112 echo "${ECHO_T}$PWD_P" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2118 if test "$PWD_P" = no; then
2119 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
2120 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
2121 { (exit 1); exit 1; }; }
2124 # These programs are version sensitive.
2126 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 if test -n "$CC"; then
2136 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_CC="$ac_prog"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test -n "$CC"; then
2156 echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2163 test -n "$CC" && break
2166 if test -z "$CC"; then
2169 # Found it, now check the version.
2170 echo "$as_me:$LINENO: checking version of $CC" >&5
2171 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2172 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
2173 case $ac_prog_version in
2174 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2176 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2177 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2180 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2181 echo "${ECHO_T}$ac_prog_version" >&6
2183 if test $ac_verc_fail = yes; then
2184 critic_missing="$critic_missing gcc"
2187 for ac_prog in gnumake gmake make
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_MAKE+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$MAKE"; then
2197 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_MAKE="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 MAKE=$ac_cv_prog_MAKE
2216 if test -n "$MAKE"; then
2217 echo "$as_me:$LINENO: result: $MAKE" >&5
2218 echo "${ECHO_T}$MAKE" >&6
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2224 test -n "$MAKE" && break
2227 if test -z "$MAKE"; then
2230 # Found it, now check the version.
2231 echo "$as_me:$LINENO: checking version of $MAKE" >&5
2232 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
2233 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
2234 case $ac_prog_version in
2235 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2237 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2238 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2241 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2242 echo "${ECHO_T}$ac_prog_version" >&6
2244 if test $ac_verc_fail = yes; then
2245 critic_missing="$critic_missing make"
2250 if test -n "$critic_missing"; then
2251 { { echo "$as_me:$LINENO: error:
2252 *** These critical programs are missing or too old:$critic_missing
2253 *** Check the INSTALL file for required versions." >&5
2254 echo "$as_me: error:
2255 *** These critical programs are missing or too old:$critic_missing
2256 *** Check the INSTALL file for required versions." >&2;}
2257 { (exit 1); exit 1; }; }
2261 for ac_prog in gnumsgfmt gmsgfmt msgfmt
2263 # Extract the first word of "$ac_prog", so it can be a program name with args.
2264 set dummy $ac_prog; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_MSGFMT+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 if test -n "$MSGFMT"; then
2271 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 ac_cv_prog_MSGFMT="$ac_prog"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 MSGFMT=$ac_cv_prog_MSGFMT
2290 if test -n "$MSGFMT"; then
2291 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2292 echo "${ECHO_T}$MSGFMT" >&6
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2298 test -n "$MSGFMT" && break
2301 if test -z "$MSGFMT"; then
2304 # Found it, now check the version.
2305 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
2306 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
2307 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2308 case $ac_prog_version in
2309 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2310 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
2311 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2312 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2315 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2316 echo "${ECHO_T}$ac_prog_version" >&6
2318 if test $ac_verc_fail = yes; then
2319 MSGFMT=: aux_missing="$aux_missing msgfmt"
2322 for ac_prog in makeinfo
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$MAKEINFO"; then
2332 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_MAKEINFO="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 MAKEINFO=$ac_cv_prog_MAKEINFO
2351 if test -n "$MAKEINFO"; then
2352 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2353 echo "${ECHO_T}$MAKEINFO" >&6
2355 echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6
2359 test -n "$MAKEINFO" && break
2362 if test -z "$MAKEINFO"; then
2365 # Found it, now check the version.
2366 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
2367 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
2368 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2369 case $ac_prog_version in
2370 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2372 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2373 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2376 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2377 echo "${ECHO_T}$ac_prog_version" >&6
2379 if test $ac_verc_fail = yes; then
2380 MAKEINFO=: aux_missing="$aux_missing makeinfo"
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_SED+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$SED"; then
2393 ac_cv_prog_SED="$SED" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_prog_SED="$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 if test -n "$SED"; then
2413 echo "$as_me:$LINENO: result: $SED" >&5
2414 echo "${ECHO_T}$SED" >&6
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2420 test -n "$SED" && break
2423 if test -z "$SED"; then
2426 # Found it, now check the version.
2427 echo "$as_me:$LINENO: checking version of $SED" >&5
2428 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
2429 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
2430 case $ac_prog_version in
2431 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2432 3.0[2-9]*|3.[1-9]*|[4-9]*)
2433 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2434 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2437 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2438 echo "${ECHO_T}$ac_prog_version" >&6
2440 if test $ac_verc_fail = yes; then
2441 SED=: aux_missing="$aux_missing sed"
2445 for ac_prog in autoconf
2447 # Extract the first word of "$ac_prog", so it can be a program name with args.
2448 set dummy $ac_prog; ac_word=$2
2449 echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2451 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 if test -n "$AUTOCONF"; then
2455 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_AUTOCONF="$ac_prog"
2465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 AUTOCONF=$ac_cv_prog_AUTOCONF
2474 if test -n "$AUTOCONF"; then
2475 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2476 echo "${ECHO_T}$AUTOCONF" >&6
2478 echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$AUTOCONF" && break
2484 test -n "$AUTOCONF" || AUTOCONF="no"
2486 case "x$AUTOCONF" in
2487 xno|x|x:) AUTOCONF=no ;;
2489 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
2490 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
2491 if test "${libc_cv_autoconf_works+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
2495 libc_cv_autoconf_works=yes
2497 libc_cv_autoconf_works=no
2500 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
2501 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
2502 test $libc_cv_autoconf_works = yes || AUTOCONF=no
2505 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 if test -n "$CC"; then
2541 echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2549 if test -z "$ac_cv_prog_CC"; then
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578 if test -n "$ac_ct_CC"; then
2579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2580 echo "${ECHO_T}$ac_ct_CC" >&6
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2591 if test -z "$CC"; then
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}cc; ac_word=$2
2595 echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_CC="${ac_tool_prefix}cc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6
2624 echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2629 if test -z "$ac_cv_prog_CC"; then
2631 # Extract the first word of "cc", so it can be a program name with args.
2632 set dummy cc; ac_word=$2
2633 echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_ac_ct_CC="cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658 if test -n "$ac_ct_CC"; then
2659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660 echo "${ECHO_T}$ac_ct_CC" >&6
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2672 if test -z "$CC"; then
2673 # Extract the first word of "cc", so it can be a program name with args.
2674 set dummy cc; ac_word=$2
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692 ac_prog_rejected=yes
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2711 set dummy "$as_dir/$ac_word" ${1+"$@"}
2719 if test -n "$CC"; then
2720 echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6
2723 echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2728 if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 echo "$as_me:$LINENO: result: $CC" >&5
2761 echo "${ECHO_T}$CC" >&6
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2767 test -n "$CC" && break
2770 if test -z "$CC"; then
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2803 echo "${ECHO_T}$ac_ct_CC" >&6
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2809 test -n "$ac_ct_CC" && break
2818 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2819 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2820 { (exit 1); exit 1; }; }
2822 # Provide some information about the compiler.
2823 echo "$as_me:$LINENO:" \
2824 "checking for C compiler version" >&5
2825 ac_compiler=`set X $ac_compile; echo $2`
2826 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2827 (eval $ac_compiler --version </dev/null >&5) 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2832 (eval $ac_compiler -v </dev/null >&5) 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2837 (eval $ac_compiler -V </dev/null >&5) 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2843 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2845 if test "${ac_cv_objext+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2852 #ifdef F77_DUMMY_MAIN
2856 int F77_DUMMY_MAIN() { return 1; }
2866 rm -f conftest.o conftest.obj
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; then
2872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2880 echo "$as_me: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2883 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2884 { (exit 1); exit 1; }; }
2887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890 echo "${ECHO_T}$ac_cv_objext" >&6
2891 OBJEXT=$ac_cv_objext
2893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2900 #include "confdefs.h"
2902 #ifdef F77_DUMMY_MAIN
2906 int F77_DUMMY_MAIN() { return 1; }
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2933 echo "$as_me: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2941 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2942 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2943 GCC=`test $ac_compiler_gnu = yes && echo yes`
2944 ac_test_CFLAGS=${CFLAGS+set}
2945 ac_save_CFLAGS=$CFLAGS
2947 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2948 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2949 if test "${ac_cv_prog_cc_g+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 #include "confdefs.h"
2956 #ifdef F77_DUMMY_MAIN
2960 int F77_DUMMY_MAIN() { return 1; }
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2984 echo "$as_me: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2991 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2992 if test "$ac_test_CFLAGS" = set; then
2993 CFLAGS=$ac_save_CFLAGS
2994 elif test $ac_cv_prog_cc_g = yes; then
2995 if test "$GCC" = yes; then
3001 if test "$GCC" = yes; then
3007 # Some people use a C++ compiler to compile C. Since we use `exit',
3008 # in C++ we need to declare it. In case someone uses the same compiler
3009 # for both compiling C and C++ we need to have the C++ compiler decide
3010 # the declaration of exit, since it's the most demanding environment.
3011 cat >conftest.$ac_ext <<_ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -s conftest.$ac_objext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 for ac_declaration in \
3030 '#include <stdlib.h>' \
3031 'extern "C" void std::exit (int) throw (); using std::exit;' \
3032 'extern "C" void std::exit (int); using std::exit;' \
3033 'extern "C" void exit (int) throw ();' \
3034 'extern "C" void exit (int);' \
3037 cat >conftest.$ac_ext <<_ACEOF
3038 #line $LINENO "configure"
3039 #include "confdefs.h"
3042 #ifdef F77_DUMMY_MAIN
3046 int F77_DUMMY_MAIN() { return 1; }
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3070 echo "$as_me: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3074 rm -f conftest.$ac_objext conftest.$ac_ext
3075 cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 #include "confdefs.h"
3079 #ifdef F77_DUMMY_MAIN
3083 int F77_DUMMY_MAIN() { return 1; }
3093 rm -f conftest.$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3107 echo "$as_me: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3113 if test -n "$ac_declaration"; then
3114 echo '#ifdef __cplusplus' >>confdefs.h
3115 echo $ac_declaration >>confdefs.h
3116 echo '#endif' >>confdefs.h
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 rm -f conftest.$ac_objext conftest.$ac_ext
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test $host != $build; then
3131 for ac_prog in gcc cc
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -n "$BUILD_CC"; then
3141 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_BUILD_CC="$ac_prog"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 BUILD_CC=$ac_cv_prog_BUILD_CC
3160 if test -n "$BUILD_CC"; then
3161 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3162 echo "${ECHO_T}$BUILD_CC" >&6
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3168 test -n "$BUILD_CC" && break
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3180 # On Suns, sometimes $CPP names a directory.
3181 if test -n "$CPP" && test -d "$CPP"; then
3184 if test -z "$CPP"; then
3185 if test "${ac_cv_prog_CPP+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 # Double quotes because CPP needs to be expanded
3189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3192 for ac_c_preproc_warn_flag in '' yes
3194 # Use a header file that comes with gcc, so configuring glibc
3195 # with a fresh cross-compiler works.
3196 # On the NeXT, cc -E runs the code through the compiler's parser,
3197 # not just through cpp. "Syntax error" is here to catch this case.
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 #include "confdefs.h"
3204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3207 egrep -v '^ *\+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null; then
3212 if test -s conftest.err; then
3213 ac_cpp_err=$ac_c_preproc_warn_flag
3220 if test -z "$ac_cpp_err"; then
3223 echo "$as_me: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3225 # Broken: fails on valid input.
3228 rm -f conftest.err conftest.$ac_ext
3230 # OK, works on sane cases. Now check whether non-existent headers
3231 # can be detected and how.
3232 cat >conftest.$ac_ext <<_ACEOF
3233 #line $LINENO "configure"
3234 #include "confdefs.h"
3235 #include <ac_nonexistent.h>
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240 egrep -v '^ *\+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3253 if test -z "$ac_cpp_err"; then
3254 # Broken: success on invalid input.
3257 echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 # Passes both tests.
3263 rm -f conftest.err conftest.$ac_ext
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3280 echo "$as_me:$LINENO: result: $CPP" >&5
3281 echo "${ECHO_T}$CPP" >&6
3283 for ac_c_preproc_warn_flag in '' yes
3285 # Use a header file that comes with gcc, so configuring glibc
3286 # with a fresh cross-compiler works.
3287 # On the NeXT, cc -E runs the code through the compiler's parser,
3288 # not just through cpp. "Syntax error" is here to catch this case.
3289 cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3291 #include "confdefs.h"
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3298 egrep -v '^ *\+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3311 if test -z "$ac_cpp_err"; then
3314 echo "$as_me: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 # Broken: fails on valid input.
3319 rm -f conftest.err conftest.$ac_ext
3321 # OK, works on sane cases. Now check whether non-existent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line $LINENO "configure"
3325 #include "confdefs.h"
3326 #include <ac_nonexistent.h>
3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 egrep -v '^ *\+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3344 if test -z "$ac_cpp_err"; then
3345 # Broken: success on invalid input.
3348 echo "$as_me: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3350 # Passes both tests.
3354 rm -f conftest.err conftest.$ac_ext
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3362 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3364 { (exit 1); exit 1; }; }
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 # Was a --with-binutils option given?
3374 if test -n "$path_binutils"; then
3375 # Make absolute; ensure a single trailing slash.
3376 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3377 CC="$CC -B$path_binutils"
3379 AS=`$CC -print-prog-name=as`
3380 LD=`$CC -print-prog-name=ld`
3381 AR=`$CC -print-prog-name=ar`
3384 # ranlib has to be treated a bit differently since it might not exist at all.
3385 ac_ranlib=`$CC -print-prog-name=ranlib`
3386 if test "x$ac_ranlib" = xranlib; then
3387 # This extra check has to happen since gcc simply echos the parameter in
3388 # case it cannot find the value in its own directories.
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$RANLIB"; then
3398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 RANLIB=$ac_cv_prog_RANLIB
3417 if test -n "$RANLIB"; then
3418 echo "$as_me:$LINENO: result: $RANLIB" >&5
3419 echo "${ECHO_T}$RANLIB" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3426 if test -z "$ac_cv_prog_RANLIB"; then
3427 ac_ct_RANLIB=$RANLIB
3428 # Extract the first word of "ranlib", so it can be a program name with args.
3429 set dummy ranlib; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 if test -n "$ac_ct_RANLIB"; then
3436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_ac_ct_RANLIB="ranlib"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3456 if test -n "$ac_ct_RANLIB"; then
3457 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3458 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 RANLIB=$ac_ct_RANLIB
3466 RANLIB="$ac_cv_prog_RANLIB"
3474 # Determine whether we are using GNU binutils.
3475 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3476 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3477 if test "${libc_cv_prog_as_gnu+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 # Most GNU programs take a -v and spit out some text including
3481 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3482 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3483 libc_cv_prog_as_gnu=yes
3485 libc_cv_prog_as_gnu=no
3489 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3490 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3492 gnu_as=$libc_cv_prog_as_gnu
3494 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3495 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3496 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 # Most GNU programs take a -v and spit out some text including
3500 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3501 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3502 libc_cv_prog_ld_gnu=yes
3504 libc_cv_prog_ld_gnu=no
3508 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3509 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3510 gnu_ld=$libc_cv_prog_ld_gnu
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}mig; ac_word=$2
3515 echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517 if test "${ac_cv_prog_MIG+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$MIG"; then
3521 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$MIG"; then
3541 echo "$as_me:$LINENO: result: $MIG" >&5
3542 echo "${ECHO_T}$MIG" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3549 if test -z "$ac_cv_prog_MIG"; then
3551 # Extract the first word of "mig", so it can be a program name with args.
3552 set dummy mig; ac_word=$2
3553 echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 if test -n "$ac_ct_MIG"; then
3559 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_ac_ct_MIG="mig"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 test -z "$ac_cv_prog_ac_ct_MIG" && ac_cv_prog_ac_ct_MIG="MISSING"
3578 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
3579 if test -n "$ac_ct_MIG"; then
3580 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
3581 echo "${ECHO_T}$ac_ct_MIG" >&6
3583 echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6
3589 MIG="$ac_cv_prog_MIG"
3593 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
3594 # XXX Commented out because it filters out too many good versions.
3596 # AC_CHECK_PROG_VER(AS, $AS, --version,
3597 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
3598 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
3600 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3601 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3602 *** some features will be disabled.
3603 *** Check the INSTALL file for required versions." >&5
3604 echo "$as_me: WARNING:
3605 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3606 *** some features will be disabled.
3607 *** Check the INSTALL file for required versions." >&2;}
3609 # glibcbug.in wants to know the compiler version.
3610 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3613 # if using special system headers, find out the compiler's sekrit
3614 # header directory and add that to the list. NOTE: Only does the right
3615 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3616 if test -n "$sysheaders"; then
3617 ccheaders=`$CC -print-file-name=include`
3618 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3622 # check if ranlib is necessary
3623 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3624 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3625 if test "${libc_cv_ranlib_necessary+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 cat > conftest.c <<EOF
3633 $CC $CFLAGS -c conftest.c
3634 $AR cr conftest.a conftest.o
3635 cp conftest.a conftest2.a
3637 if cmp -s conftest.a conftest2.a; then
3638 libc_cv_ranlib_necessary=no
3640 libc_cv_ranlib_necessary=yes
3644 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3645 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3646 if test "$libc_cv_ranlib_necessary" = no; then
3650 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3651 # since this would lead to problems installing/building glibc.
3652 # LD_LIBRARY_PATH contains the current directory if one of the following
3654 # - one of the terminals (":" and ";") is the first or last sign
3655 # - two terminals occur directly after each other
3656 # - the path contains an element with a dot in it
3657 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3658 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3659 case ${LD_LIBRARY_PATH} in
3660 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3661 ld_library_path_setting="contains current directory"
3664 ld_library_path_setting="ok"
3667 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3668 echo "${ECHO_T}$ld_library_path_setting" >&6
3669 if test "$ld_library_path_setting" != "ok"; then
3670 { { echo "$as_me:$LINENO: error:
3671 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3672 *** building glibc. Please change the environment variable
3673 *** and run configure again." >&5
3674 echo "$as_me: error:
3675 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3676 *** building glibc. Please change the environment variable
3677 *** and run configure again." >&2;}
3678 { (exit 1); exit 1; }; }
3681 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3682 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3683 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3687 libc_cv_gcc_static_libgcc=
3689 libc_cv_gcc_static_libgcc=-static-libgcc
3692 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3693 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3696 # Extract the first word of "bash", so it can be a program name with args.
3697 set dummy bash; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_BASH+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3726 BASH=$ac_cv_path_BASH
3728 if test -n "$BASH"; then
3729 echo "$as_me:$LINENO: result: $BASH" >&5
3730 echo "${ECHO_T}$BASH" >&6
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3736 if test "$BASH" != no &&
3737 $BASH -c 'test "$BASH_VERSINFO" \
3738 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
3739 libc_cv_have_bash2=yes
3741 libc_cv_have_bash2=no
3745 if test "$BASH" = no; then
3746 # Extract the first word of "ksh", so it can be a program name with args.
3747 set dummy ksh; ac_word=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_path_KSH+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
3778 if test -n "$KSH"; then
3779 echo "$as_me:$LINENO: result: $KSH" >&5
3780 echo "${ECHO_T}$KSH" >&6
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 if test "$KSH" = no; then
3789 libc_cv_have_ksh=yes
3794 libc_cv_have_ksh=yes
3798 for ac_prog in gawk mawk nawk awk
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_AWK+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$AWK"; then
3808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_AWK="$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 if test -n "$AWK"; then
3828 echo "$as_me:$LINENO: result: $AWK" >&5
3829 echo "${ECHO_T}$AWK" >&6
3831 echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3835 test -n "$AWK" && break
3838 # Extract the first word of "perl", so it can be a program name with args.
3839 set dummy perl; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_path_PERL+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3868 PERL=$ac_cv_path_PERL
3870 if test -n "$PERL"; then
3871 echo "$as_me:$LINENO: result: $PERL" >&5
3872 echo "${ECHO_T}$PERL" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 if test "$PERL" != no &&
3879 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
3882 # Extract the first word of "install-info", so it can be a program name with args.
3883 set dummy install-info; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 case $INSTALL_INFO in
3891 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
3912 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3914 if test -n "$INSTALL_INFO"; then
3915 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3916 echo "${ECHO_T}$INSTALL_INFO" >&6
3918 echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3922 if test "$INSTALL_INFO" != "no"; then
3923 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
3924 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
3925 if test "${libc_cv_old_debian_install_info+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 # There is a hard ^_ on the next line. I am open to better ideas.
3931 echo 'File: dir Node: Top This is the top of the INFO tree'
3932 echo '* Menu:') >conftest.d/dir
3933 (echo 'INFO-DIR-SECTION i-d-s works'
3934 echo 'START-INFO-DIR-ENTRY'
3935 echo '* Prog: (prog). Program.'
3936 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
3937 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
3939 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
3940 then libc_cv_old_debian_install_info=no
3941 else libc_cv_old_debian_install_info=yes
3943 else libc_cv_old_debian_install_info=no testfailed=t
3947 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
3948 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
3949 if test -n "$testfailed"
3950 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
3951 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
3953 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
3957 # Extract the first word of "bison", so it can be a program name with args.
3958 set dummy bison; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_path_BISON+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH:/usr/local/bin:/usr/bin:/bin
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
3987 BISON=$ac_cv_path_BISON
3989 if test -n "$BISON"; then
3990 echo "$as_me:$LINENO: result: $BISON" >&5
3991 echo "${ECHO_T}$BISON" >&6
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3998 echo "$as_me:$LINENO: checking for signed size_t type" >&5
3999 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4000 if test "${libc_cv_signed_size_t+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 echo '#include <stddef.h>
4004 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4005 if eval "$ac_cpp conftest.c 2>/dev/null" \
4006 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4007 libc_cv_signed_size_t=no
4009 libc_cv_signed_size_t=yes
4013 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4014 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4015 if test $libc_cv_signed_size_t = yes; then
4016 cat >> confdefs.h <<\EOF
4017 #undef __SIZE_TYPE__
4018 #define __SIZE_TYPE__ unsigned
4022 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4023 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4024 if test "${libc_cv_friendly_stddef+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 #include "confdefs.h"
4031 #define __need_size_t
4032 #define __need_wchar_t
4036 #ifdef F77_DUMMY_MAIN
4040 int F77_DUMMY_MAIN() { return 1; }
4045 size_t size; wchar_t wchar;
4047 #error stddef.h ignored __need_*
4049 if (&size == NULL || &wchar == NULL) abort ();
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 libc_cv_friendly_stddef=yes
4068 echo "$as_me: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4070 libc_cv_friendly_stddef=no
4072 rm -f conftest.$ac_objext conftest.$ac_ext
4074 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4075 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4076 if test $libc_cv_friendly_stddef = yes; then
4077 config_vars="$config_vars
4078 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4081 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4082 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4083 if test "${libc_cv_need_minus_P+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 cat > conftest.S <<EOF
4087 #include "confdefs.h"
4088 /* Nothing whatsoever. */
4090 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
4091 libc_cv_need_minus_P=no
4093 libc_cv_need_minus_P=yes
4097 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4098 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4099 if test $libc_cv_need_minus_P = yes; then
4100 config_vars="$config_vars
4101 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4104 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4105 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4106 if test "${libc_cv_dot_text+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat > conftest.s <<EOF
4113 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4114 libc_cv_dot_text=.text
4119 if test -z "$libc_cv_dot_text"; then
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4123 echo "$as_me:$LINENO: result: yes" >&5
4124 echo "${ECHO_T}yes" >&6
4127 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4128 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4129 if test "${libc_cv_asm_global_directive+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 libc_cv_asm_global_directive=UNKNOWN
4133 for ac_globl in .globl .global .EXPORT; do
4134 cat > conftest.s <<EOF
4139 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4140 libc_cv_asm_global_directive=${ac_globl}
4143 test $libc_cv_asm_global_directive != UNKNOWN && break
4146 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4147 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4148 if test $libc_cv_asm_global_directive = UNKNOWN; then
4149 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4150 echo "$as_me: error: cannot determine asm global directive" >&2;}
4151 { (exit 1); exit 1; }; }
4153 cat >>confdefs.h <<_ACEOF
4154 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4159 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4160 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4161 if test "${libc_cv_asm_set_directive+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 cat > conftest.s <<EOF
4167 .set glibc_conftest_frobozz,foo
4168 $libc_cv_asm_global_directive glibc_conftest_frobozz
4170 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4171 # (but it doesn't work), so we must do a linking check to be sure.
4172 cat > conftest1.c <<\EOF
4173 extern int glibc_conftest_frobozz;
4174 main () { printf ("%d\n", glibc_conftest_frobozz); }
4176 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4177 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4178 libc_cv_asm_set_directive=yes
4180 libc_cv_asm_set_directive=no
4184 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4185 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4186 if test $libc_cv_asm_set_directive = yes; then
4187 cat >>confdefs.h <<\_ACEOF
4188 #define HAVE_ASM_SET_DIRECTIVE 1
4193 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4194 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4195 if test "${libc_cv_asm_type_prefix+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 libc_cv_asm_type_prefix=no
4199 for ac_try_prefix in '@' '%' '#'; do
4200 cat > conftest.s <<EOF
4202 ${libc_cv_asm_global_directive} foo
4203 .type foo, ${ac_try_prefix}object
4208 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4209 libc_cv_asm_type_prefix=${ac_try_prefix}
4212 test "x$libc_cv_asm_type_prefix" != xno && break
4215 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4216 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4217 if test "x$libc_cv_asm_type_prefix" != xno; then
4218 cat >>confdefs.h <<_ACEOF
4219 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4224 # The Aix ld uses global .symbol_names instead of symbol_names.
4225 # Unfortunately also used in the PPC64 ELF ABI.
4226 case "${os}${machine}" in
4227 aix4.3* | linux*powerpc/powerpc64*)
4228 cat >>confdefs.h <<\_ACEOF
4229 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4234 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4235 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4236 if test "${libc_cv_asm_symver_directive+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat > conftest.s <<EOF
4242 .symver _sym,sym@VERS
4244 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4245 libc_cv_asm_symver_directive=yes
4247 libc_cv_asm_symver_directive=no
4251 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4252 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4253 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4254 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4255 if test "${libc_cv_ld_version_script_option+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test $libc_cv_asm_symver_directive = yes; then
4259 cat > conftest.s <<EOF
4262 .symver _sym,sym@VERS
4264 cat > conftest.map <<EOF
4273 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4274 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4275 -nostartfiles -nostdlib
4276 -Wl,--version-script,conftest.map
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; };
4284 libc_cv_ld_version_script_option=yes
4286 libc_cv_ld_version_script_option=no
4289 libc_cv_ld_version_script_option=no
4292 libc_cv_ld_version_script_option=no
4296 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4297 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4298 if test $shared != no &&
4299 test $libc_cv_asm_symver_directive = yes &&
4300 test $libc_cv_ld_version_script_option = yes &&
4301 test $enable_versioning = yes; then
4303 cat >>confdefs.h <<\_ACEOF
4304 #define DO_VERSIONING 1
4312 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4314 *** WARNING: You should not compile GNU libc without versioning. Not using
4315 *** versioning will introduce incompatibilities so that old binaries
4316 *** will not run anymore.
4317 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4319 if test $elf = yes; then
4320 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4321 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4322 if test "${libc_cv_asm_previous_directive+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 cat > conftest.s <<EOF
4326 .section foo_section
4329 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 libc_cv_asm_previous_directive=yes
4337 libc_cv_asm_previous_directive=no
4341 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4342 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4343 if test $libc_cv_asm_previous_directive = yes; then
4344 cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4349 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4350 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4351 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat > conftest.s <<EOF
4355 .pushsection foo_section
4358 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 libc_cv_asm_popsection_directive=yes
4366 libc_cv_asm_popsection_directive=no
4370 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4371 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4372 if test $libc_cv_asm_popsection_directive = yes; then
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4379 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4380 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4381 if test "${libc_cv_asm_protected_directive+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat > conftest.s <<EOF
4390 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 libc_cv_asm_protected_directive=yes
4398 libc_cv_asm_protected_directive=no
4402 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4403 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4405 cat >>confdefs.h <<\_ACEOF
4406 #define HAVE_PROTECTED 1
4409 cat >>confdefs.h <<\_ACEOF
4410 #define HAVE_HIDDEN 1
4414 if test $libc_cv_asm_protected_directive = yes; then
4415 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4416 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4417 if test "${libc_cv_visibility_attribute+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 cat > conftest.c <<EOF
4421 int foo __attribute__ ((visibility ("hidden"))) = 1;
4422 int bar __attribute__ ((visibility ("protected"))) = 1;
4424 libc_cv_visibility_attribute=no
4425 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4426 if grep '\.hidden.*foo' conftest.s >/dev/null; then
4427 if grep '\.protected.*bar' conftest.s >/dev/null; then
4428 libc_cv_visibility_attribute=yes
4435 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4436 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4437 if test $libc_cv_visibility_attribute = yes; then
4438 cat >>confdefs.h <<\_ACEOF
4439 #define HAVE_VISIBILITY_ATTRIBUTE 1
4445 if test $libc_cv_visibility_attribute = yes; then
4446 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4447 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4448 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat > conftest.c <<EOF
4453 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4454 int bar (int x) { return x; }
4456 libc_cv_broken_visibility_attribute=yes
4457 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4458 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
4459 libc_cv_broken_visibility_attribute=no
4462 rm -f conftest.c conftest.s
4465 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4466 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4467 if test $libc_cv_broken_visibility_attribute = yes; then
4468 cat >>confdefs.h <<\_ACEOF
4469 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4475 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4476 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4477 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 cat > conftest.c <<EOF
4481 extern int foo (int x) __asm ("xyzzy");
4482 int bar (int x) { return x; }
4483 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4485 extern __typeof (dfoo) dfoo __asm ("abccb");
4488 libc_cv_broken_alias_attribute=yes
4489 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4490 if grep 'xyzzy' conftest.s >/dev/null &&
4491 grep 'abccb' conftest.s >/dev/null; then
4492 libc_cv_broken_alias_attribute=no
4495 rm -f conftest.c conftest.s
4498 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4499 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4500 if test $libc_cv_broken_alias_attribute = yes; then
4501 cat >>confdefs.h <<\_ACEOF
4502 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4507 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4508 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4509 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4510 if test "${libc_cv_have_sdata_section+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 echo "int i;" > conftest.c
4514 libc_cv_have_sdata_section=no
4515 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4516 | grep '\.sdata' >/dev/null; then
4517 libc_cv_have_sdata_section=yes
4519 rm -f conftest.c conftest.so
4522 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4523 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4524 if test $libc_cv_have_sdata_section = yes; then
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_SDATA_SECTION 1
4532 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4533 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4534 if test "${libc_cv_initfinit_array+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat > conftest.c <<EOF
4538 int _start (void) { return 0; }
4539 int __start (void) { return 0; }
4540 int foo (void) { return 1; }
4541 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4543 if { ac_try='${CC-cc} -o conftest conftest.c
4544 -static -nostartfiles -nostdlib 1>&5'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }
4551 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4552 libc_cv_initfinit_array=yes
4554 libc_cv_initfinit_array=no
4557 libc_cv_initfinit_array=no
4561 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4562 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4564 if test $libc_cv_initfinit_array = yes; then
4565 cat >>confdefs.h <<\_ACEOF
4566 #define HAVE_INITFINI_ARRAY 1
4571 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4572 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4573 if test "${libc_cv_z_nodelete+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
4580 -nostartfiles -nostdlib
4581 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }
4588 libc_cv_z_nodelete=yes
4590 libc_cv_z_nodelete=no
4594 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4595 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4598 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4599 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4600 if test "${libc_cv_z_nodlopen+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat > conftest.c <<EOF
4604 int _start (void) { return 42; }
4606 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4607 -nostartfiles -nostdlib
4608 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }
4615 libc_cv_z_nodlopen=yes
4617 libc_cv_z_nodlopen=no
4621 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4622 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4625 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4626 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4627 if test "${libc_cv_z_initfirst+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat > conftest.c <<EOF
4631 int _start (void) { return 42; }
4633 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4634 -nostartfiles -nostdlib
4635 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }
4642 libc_cv_z_initfirst=yes
4644 libc_cv_z_initfirst=no
4648 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4649 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4652 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4653 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4654 if test "${libc_cv_Bgroup+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 cat > conftest.c <<EOF
4658 int _start (void) { return 42; }
4660 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }
4673 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4674 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4677 echo "$as_me:$LINENO: checking for -z combreloc" >&5
4678 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4679 if test "${libc_cv_z_combreloc+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 cat > conftest.c <<EOF
4683 extern int bar (int);
4685 int foo (void) { return bar (mumble); }
4687 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4688 -nostdlib -nostartfiles
4689 -Wl,-z,combreloc 1>&5'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }
4696 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
4697 libc_cv_z_combreloc=yes
4699 libc_cv_z_combreloc=no
4702 libc_cv_z_combreloc=no
4706 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
4707 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
4708 if test "$libc_cv_z_combreloc" = yes; then
4709 cat >>confdefs.h <<\_ACEOF
4710 #define HAVE_Z_COMBRELOC 1
4717 if test $elf != yes; then
4718 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
4719 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
4720 if test "${libc_cv_have_initfini+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4727 #ifdef F77_DUMMY_MAIN
4731 int F77_DUMMY_MAIN() { return 1; }
4736 asm (".section .init");
4737 asm (".section .fini");
4738 asm ("${libc_cv_dot_text}");
4743 rm -f conftest.$ac_objext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745 (eval $ac_compile) 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 libc_cv_have_initfini=yes
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 libc_cv_have_initfini=no
4761 rm -f conftest.$ac_objext conftest.$ac_ext
4763 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
4764 echo "${ECHO_T}$libc_cv_have_initfini" >&6
4765 if test $libc_cv_have_initfini = yes; then
4766 cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_INITFINI 1
4773 if test $elf = yes -a $gnu_ld = yes; then
4774 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
4775 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
4776 if test "${libc_cv_have_section_quotes+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 cat > conftest.c <<EOF
4780 static const int foo
4781 __attribute__ ((section ("bar"))) = 1;
4783 if ${CC-cc} -S conftest.c -o conftest.s; then
4784 if grep '\.section.*"bar"' conftest.s >/dev/null; then
4785 libc_cv_have_section_quotes=yes
4787 libc_cv_have_section_quotes=no
4790 libc_cv_have_section_quotes=unknown
4795 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
4796 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
4797 if test $libc_cv_have_section_quotes = yes; then
4798 cat >>confdefs.h <<\_ACEOF
4799 #define HAVE_SECTION_QUOTES 1
4807 if test $elf = yes; then
4808 libc_cv_asm_underscores=no
4810 if test $ac_cv_prog_cc_works = yes; then
4811 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4812 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4813 if test "${libc_cv_asm_underscores+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line $LINENO "configure"
4818 #include "confdefs.h"
4819 asm ("_glibc_foobar:");
4820 #ifdef F77_DUMMY_MAIN
4824 int F77_DUMMY_MAIN() { return 1; }
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -s conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 libc_cv_asm_underscores=yes
4848 echo "$as_me: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 libc_cv_asm_underscores=no
4852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4854 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4855 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4857 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4858 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4859 if test "${libc_cv_asm_underscores+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4863 "configure"
4864 #include "confdefs.h"
4865 void underscore_test(void) {
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; then
4873 if grep _underscore_test conftest* >/dev/null; then
4875 libc_cv_asm_underscores=yes
4878 libc_cv_asm_underscores=no
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 libc_cv_asm_underscores=no
4888 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4889 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4892 if test $libc_cv_asm_underscores = no; then
4893 cat >>confdefs.h <<\_ACEOF
4894 #define NO_UNDERSCORES 1
4899 if test $elf = yes; then
4900 libc_cv_weak_symbols=yes
4903 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
4904 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
4905 if test "${libc_cv_asm_weak_directive+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 cat > conftest.s <<EOF
4910 ${libc_cv_asm_global_directive} foo
4913 .weak bar; bar = foo
4915 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4916 libc_cv_asm_weak_directive=yes
4918 libc_cv_asm_weak_directive=no
4922 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
4923 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
4925 if test $libc_cv_asm_weak_directive = no; then
4926 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
4927 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
4928 if test "${libc_cv_asm_weakext_directive+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 cat > conftest.s <<EOF
4933 ${libc_cv_asm_global_directive} foo
4937 ${libc_cv_asm_global_directive} baz
4940 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4941 libc_cv_asm_weakext_directive=yes
4943 libc_cv_asm_weakext_directive=no
4947 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
4948 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
4952 if test $libc_cv_asm_weak_directive = yes; then
4953 cat >>confdefs.h <<\_ACEOF
4954 #define HAVE_ASM_WEAK_DIRECTIVE 1
4957 elif test $libc_cv_asm_weakext_directive = yes; then
4958 cat >>confdefs.h <<\_ACEOF
4959 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
4964 case "${host_cpu}-${host_os}" in
4966 libc_cv_asm_line_sep='@'
4967 cat >>confdefs.h <<_ACEOF
4968 #define ASM_LINE_SEP $libc_cv_asm_line_sep
4973 echo "$as_me:$LINENO: checking for assembler line separator" >&5
4974 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
4975 if test "${libc_cv_asm_line_sep+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 cat > conftest.s <<EOF
4981 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 libc_cv_asm_line_sep='!'
4989 if test -z "$enable_hacker_mode"; then
4990 echo "*** You need a newer assembler to compile glibc"
4994 libc_cv_asm_line_sep=';'
4998 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
4999 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5000 cat >>confdefs.h <<_ACEOF
5001 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5007 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
5008 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
5009 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat > conftest.c <<\EOF
5017 if { ac_try='${CC-cc} $CFLAGS
5018 -nostdlib -nostartfiles -Wl,--no-whole-archive
5019 -o conftest conftest.c 1>&5'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 libc_cv_ld_no_whole_archive=yes
5027 libc_cv_ld_no_whole_archive=no
5031 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
5032 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
5033 if test $libc_cv_ld_no_whole_archive = yes; then
5034 no_whole_archive=-Wl,--no-whole-archive
5037 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
5038 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
5039 if test "${libc_cv_gcc_exceptions+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 cat > conftest.c <<\EOF
5047 if { ac_try='${CC-cc} $CFLAGS
5048 -nostdlib -nostartfiles -fexceptions
5049 -o conftest conftest.c 1>&5'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 libc_cv_gcc_exceptions=yes
5057 libc_cv_gcc_exceptions=no
5061 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
5062 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
5063 if test $libc_cv_gcc_exceptions = yes; then
5064 exceptions=-fexceptions
5067 if test "$base_machine" = alpha ; then
5068 echo "$as_me:$LINENO: checking for function ..ng prefix" >&5
5069 echo $ECHO_N "checking for function ..ng prefix... $ECHO_C" >&6
5070 if test "${libc_cv_gcc_alpha_ng_prefix+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 cat > conftest.c <<\EOF
5076 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; };
5083 libc_cv_gcc_alpha_ng_prefix=yes
5085 libc_cv_gcc_alpha_ng_prefix=no
5089 echo "$as_me:$LINENO: result: $libc_cv_gcc_alpha_ng_prefix" >&5
5090 echo "${ECHO_T}$libc_cv_gcc_alpha_ng_prefix" >&6
5091 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
5092 cat >>confdefs.h <<\_ACEOF
5093 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
5097 cat >>confdefs.h <<\_ACEOF
5098 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
5104 if test "$host_cpu" = powerpc ; then
5105 # Check for a bug present in at least versions 2.8.x of GCC
5106 # and versions 1.0.x of EGCS.
5107 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5108 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5109 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5114 #include "confdefs.h"
5115 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5116 #ifdef F77_DUMMY_MAIN
5120 int F77_DUMMY_MAIN() { return 1; }
5130 rm -f conftest.$ac_objext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 libc_cv_c_asmcr0_bug='no'
5144 echo "$as_me: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 libc_cv_c_asmcr0_bug='yes'
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5150 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5151 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5152 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5153 cat >>confdefs.h <<\_ACEOF
5154 #define BROKEN_PPC_ASM_CR0 1
5160 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5161 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5162 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat > conftest.c <<EOF
5166 #line 5166 "configure"
5167 static char *__EH_FRAME_BEGIN__;
5170 #ifdef CHECK__register_frame
5171 __register_frame (__EH_FRAME_BEGIN__);
5172 __deregister_frame (__EH_FRAME_BEGIN__);
5174 #ifdef CHECK__register_frame_info
5175 __register_frame_info (__EH_FRAME_BEGIN__);
5176 __deregister_frame_info (__EH_FRAME_BEGIN__);
5181 /* FIXME: this is fragile. */
5190 dl_iterate_phdr () {}
5192 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5193 -nostdlib -nostartfiles
5194 -o conftest conftest.c -lgcc >&5'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 libc_cv_gcc_dwarf2_unwind_info=static
5202 libc_cv_gcc_dwarf2_unwind_info=no
5204 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5205 -nostdlib -nostartfiles
5206 -o conftest conftest.c -lgcc -lgcc_eh >&5'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
5213 -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
5214 | grep -q -- --eh-frame-hdr; then
5215 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5217 libc_cv_gcc_dwarf2_unwind_info=static
5220 libc_cv_gcc_dwarf2_unwind_info=no
5222 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5223 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5224 -nostdlib -nostartfiles
5225 -o conftest conftest.c -lgcc >&5'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 libc_cv_gcc_dwarf2_unwind_info=yes
5233 libc_cv_gcc_dwarf2_unwind_info=no
5238 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5239 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5240 case $libc_cv_gcc_dwarf2_unwind_info in
5242 cat >>confdefs.h <<\_ACEOF
5243 #define HAVE_DWARF2_UNWIND_INFO 1
5248 cat >>confdefs.h <<\_ACEOF
5249 #define HAVE_DWARF2_UNWIND_INFO 1
5252 cat >>confdefs.h <<\_ACEOF
5253 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5259 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5260 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5261 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 cat > conftest.c <<EOF
5265 #line 5265 "configure"
5268 a = __builtin_expect (a, 10);
5269 return a == 10 ? 0 : 1;
5272 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5273 -o conftest conftest.c -lgcc >&5'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 libc_cv_gcc_builtin_expect=yes
5281 libc_cv_gcc_builtin_expect=no
5285 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5286 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5287 if test "$libc_cv_gcc_builtin_expect" = yes; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define HAVE_BUILTIN_EXPECT 1
5294 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5295 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5296 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat > conftest.c <<\EOF
5302 __builtin_memset (x, 0, 1000);
5305 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; };
5312 libc_cv_gcc_builtin_memset=no
5314 libc_cv_gcc_builtin_memset=yes
5318 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5319 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5320 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define HAVE_BUILTIN_MEMSET 1
5327 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5328 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5329 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat > conftest.c <<EOF
5333 #line 5333 "configure"
5336 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5337 void *p = &&l1 + ar[a];
5345 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5346 -o conftest conftest.c -lgcc >&5'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 libc_cv_gcc_subtract_local_labels=yes
5354 libc_cv_gcc_subtract_local_labels=no
5358 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5359 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5360 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5361 cat >>confdefs.h <<\_ACEOF
5362 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5367 if test "x$use__thread" != xno; then
5368 echo "$as_me:$LINENO: checking for __thread" >&5
5369 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5370 if test "${libc_cv_gcc___thread+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat > conftest.c <<\EOF
5374 __thread int a = 42;
5376 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 libc_cv_gcc___thread=yes
5384 libc_cv_gcc___thread=no
5388 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5389 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5390 if test "$libc_cv_gcc___thread" = yes; then
5391 cat >>confdefs.h <<\_ACEOF
5392 #define HAVE___THREAD 1
5397 libc_cv_gcc___thread=no
5400 if test "$libc_cv_gcc___thread" = yes; then
5401 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5402 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5403 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 cat > conftest.c <<\EOF
5407 extern __thread int a __attribute__((tls_model ("initial-exec")));
5409 if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 libc_cv_gcc_tls_model_attr=yes
5417 libc_cv_gcc_tls_model_attr=no
5421 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5422 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5423 if test "$libc_cv_gcc_tls_model_attr" = yes; then
5424 cat >>confdefs.h <<\_ACEOF
5425 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5431 echo "$as_me:$LINENO: checking for libgd" >&5
5432 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5433 if test "$with_gd" != "no"; then
5434 old_CFLAGS="$CFLAGS"
5435 CFLAGS="$CFLAGS $libgd_include"
5436 old_LDFLAGS="$LDFLAGS"
5437 LDFLAGS="$LDFLAGS $libgd_ldflags"
5439 LIBS="$LIBS -lgd -lpng -lz -lm"
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line $LINENO "configure"
5442 #include "confdefs.h"
5444 #ifdef F77_DUMMY_MAIN
5448 int F77_DUMMY_MAIN() { return 1; }
5458 rm -f conftest.$ac_objext conftest$ac_exeext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5460 (eval $ac_link) 2>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -s conftest$ac_exeext'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5472 echo "$as_me: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 CFLAGS="$old_CFLAGS"
5478 LDFLAGS="$old_LDFLAGS"
5483 echo "$as_me:$LINENO: result: $LIBGD" >&5
5484 echo "${ECHO_T}$LIBGD" >&6
5488 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5490 if test "${ac_cv_header_stdc+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 #include "confdefs.h"
5502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5505 egrep -v '^ *\+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null; then
5510 if test -s conftest.err; then
5511 ac_cpp_err=$ac_c_preproc_warn_flag
5518 if test -z "$ac_cpp_err"; then
5519 ac_cv_header_stdc=yes
5521 echo "$as_me: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5523 ac_cv_header_stdc=no
5525 rm -f conftest.err conftest.$ac_ext
5527 if test $ac_cv_header_stdc = yes; then
5528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 egrep "memchr" >/dev/null 2>&1; then
5539 ac_cv_header_stdc=no
5545 if test $ac_cv_header_stdc = yes; then
5546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5547 cat >conftest.$ac_ext <<_ACEOF
5548 #line $LINENO "configure"
5549 #include "confdefs.h"
5553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 egrep "free" >/dev/null 2>&1; then
5557 ac_cv_header_stdc=no
5563 if test $ac_cv_header_stdc = yes; then
5564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5565 if test "$cross_compiling" = yes; then
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 #include "confdefs.h"
5572 #if ((' ' & 0x0FF) == 0x020)
5573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5576 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5594 rm -f conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5607 echo "$as_me: program exited with status $ac_status" >&5
5608 echo "$as_me: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 ac_cv_header_stdc=no
5613 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5627 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5637 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5638 inttypes.h stdint.h unistd.h
5640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5641 echo "$as_me:$LINENO: checking for $ac_header" >&5
5642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5649 $ac_includes_default
5651 #include <$ac_header>
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest.$ac_objext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 eval "$as_ac_Header=yes"
5667 echo "$as_me: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5669 eval "$as_ac_Header=no"
5671 rm -f conftest.$ac_objext conftest.$ac_ext
5673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676 cat >>confdefs.h <<_ACEOF
5677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5685 echo "$as_me:$LINENO: checking for long double" >&5
5686 echo $ECHO_N "checking for long double... $ECHO_C" >&6
5687 if test "${ac_cv_type_long_double+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5691 #line $LINENO "configure"
5692 #include "confdefs.h"
5693 $ac_includes_default
5694 #ifdef F77_DUMMY_MAIN
5698 int F77_DUMMY_MAIN() { return 1; }
5703 if ((long double *) 0)
5705 if (sizeof (long double))
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_type_long_double=yes
5725 echo "$as_me: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 ac_cv_type_long_double=no
5729 rm -f conftest.$ac_objext conftest.$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
5732 echo "${ECHO_T}$ac_cv_type_long_double" >&6
5734 echo "$as_me:$LINENO: checking size of long double" >&5
5735 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
5736 if test "${ac_cv_sizeof_long_double+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 if test "$ac_cv_type_long_double" = yes; then
5740 # The cast to unsigned long works around a bug in the HP C Compiler
5741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5743 # This bug is HP SR number 8606223364.
5744 if test "$cross_compiling" = yes; then
5745 # Depending upon the size, compute the lo and hi bounds.
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 #include "confdefs.h"
5749 $ac_includes_default
5750 #ifdef F77_DUMMY_MAIN
5754 int F77_DUMMY_MAIN() { return 1; }
5759 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
5766 rm -f conftest.$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5782 #include "confdefs.h"
5783 $ac_includes_default
5784 #ifdef F77_DUMMY_MAIN
5788 int F77_DUMMY_MAIN() { return 1; }
5793 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -s conftest.$ac_objext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_hi=$ac_mid; break
5814 echo "$as_me: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5816 ac_lo=`expr $ac_mid + 1`
5817 if test $ac_lo -le $ac_mid; then
5821 ac_mid=`expr 2 '*' $ac_mid + 1`
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5826 echo "$as_me: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5828 cat >conftest.$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5831 $ac_includes_default
5832 #ifdef F77_DUMMY_MAIN
5836 int F77_DUMMY_MAIN() { return 1; }
5841 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5862 cat >conftest.$ac_ext <<_ACEOF
5863 #line $LINENO "configure"
5864 #include "confdefs.h"
5865 $ac_includes_default
5866 #ifdef F77_DUMMY_MAIN
5870 int F77_DUMMY_MAIN() { return 1; }
5875 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_lo=$ac_mid; break
5896 echo "$as_me: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 ac_hi=`expr '(' $ac_mid ')' - 1`
5899 if test $ac_mid -le $ac_hi; then
5903 ac_mid=`expr 2 '*' $ac_mid`
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5908 echo "$as_me: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5912 rm -f conftest.$ac_objext conftest.$ac_ext
5914 rm -f conftest.$ac_objext conftest.$ac_ext
5915 # Binary search between lo and hi bounds.
5916 while test "x$ac_lo" != "x$ac_hi"; do
5917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 #include "confdefs.h"
5921 $ac_includes_default
5922 #ifdef F77_DUMMY_MAIN
5926 int F77_DUMMY_MAIN() { return 1; }
5931 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5952 echo "$as_me: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 rm -f conftest.$ac_objext conftest.$ac_ext
5959 ?*) ac_cv_sizeof_long_double=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
5961 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
5962 { (exit 1); exit 1; }; } ;;
5965 if test "$cross_compiling" = yes; then
5966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5967 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5968 { (exit 1); exit 1; }; }
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 #include "confdefs.h"
5973 $ac_includes_default
5974 long longval () { return (long) (sizeof (long double)); }
5975 unsigned long ulongval () { return (long) (sizeof (long double)); }
5978 #ifdef F77_DUMMY_MAIN
5982 int F77_DUMMY_MAIN() { return 1; }
5988 FILE *f = fopen ("conftest.val", "w");
5991 if (((long) (sizeof (long double))) < 0)
5993 long i = longval ();
5994 if (i != ((long) (sizeof (long double))))
5996 fprintf (f, "%ld\n", i);
6000 unsigned long i = ulongval ();
6001 if (i != ((long) (sizeof (long double))))
6003 fprintf (f, "%lu\n", i);
6005 exit (ferror (f) || fclose (f) != 0);
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_sizeof_long_double=`cat conftest.val`
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
6029 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
6030 { (exit 1); exit 1; }; }
6032 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_sizeof_long_double=0
6040 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6041 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6042 cat >>confdefs.h <<_ACEOF
6043 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6047 sizeof_long_double=$ac_cv_sizeof_long_double
6050 ### End of automated tests.
6051 ### Now run sysdeps configure fragments.
6053 # sysdeps configure fragments may set these with files to be linked below.
6057 # They also can set these variables.
6059 ldd_rewrite_script=no
6060 libc_cv_sysconfdir=$sysconfdir
6061 libc_cv_gcc_unwind_find_fde=no
6063 # Iterate over all the sysdep directories we will use, running their
6064 # configure fragments, and looking for a uname implementation.
6066 for dir in $sysnames; do
6069 *) dest=$srcdir/$dir ;;
6071 if test -r $dest/configure; then
6072 echo "$as_me:$LINENO: result: running configure fragment for $dest" >&5
6073 echo "${ECHO_T}running configure fragment for $dest" >&6
6077 if test -z "$uname"; then
6078 if test -r $dest/uname.c ||
6079 test -r $dest/uname.S ||
6080 { test -r $dest/syscalls.list &&
6081 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
6087 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6088 cat >>confdefs.h <<\_ACEOF
6089 #define EXPORT_UNWIND_FIND_FDE 1
6095 ac_sources="`echo $libc_link_sources`"
6096 ac_dests="`echo $libc_link_dests`"
6097 while test -n "$ac_sources"; do
6098 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6099 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6100 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6102 ac_config_links="$ac_config_links $ac_config_links_1"
6105 # If we will use the generic uname implementation, we must figure out what
6106 # it will say by examining the system, and write the results in config-name.h.
6107 if test "$uname" = "sysdeps/generic"; then
6109 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6110 if test $uname_sysname != $config_os; then
6111 config_release=`echo $config_os | sed s/$uname_sysname//`
6114 echo "$as_me:$LINENO: checking OS release for uname" >&5
6115 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6116 if test "${libc_cv_uname_release+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 if test -r /vmunix; then
6120 kernel_id=`strings /vmunix | grep UNIX`
6121 elif test -r /dynix; then
6122 kernel_id=`strings /dynix | grep DYNIX`
6127 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6128 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6129 != x$config_release; then
6130 # The configuration release is a substring of the kernel release.
6131 libc_cv_uname_release=$kernel_release
6132 elif test x$config_release != x; then
6133 libc_cv_uname_release=$config_release
6134 elif test x$kernel_release != x; then
6135 libc_cv_uname_release=$kernel_release
6137 libc_cv_uname_release=unknown
6140 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6141 echo "${ECHO_T}$libc_cv_uname_release" >&6
6142 uname_release="$libc_cv_uname_release"
6144 echo "$as_me:$LINENO: checking OS version for uname" >&5
6145 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6146 if test "${libc_cv_uname_version+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 if test -r /vmunix; then
6150 kernel_id=`strings /vmunix | grep UNIX`
6151 elif test -r /dynix; then
6152 kernel_id=`strings /dynix | grep DYNIX`
6157 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6158 if test -n "$kernel_version"; then
6159 libc_cv_uname_version="$kernel_version"
6161 libc_cv_uname_version=unknown
6164 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6165 echo "${ECHO_T}$libc_cv_uname_version" >&6
6166 uname_version="$libc_cv_uname_version"
6168 config_uname=config-name.h:config-name.in
6170 # For non-generic uname, we don't need to create config-name.h at all.
6174 cat >>confdefs.h <<\_ACEOF
6175 #define USE_IN_LIBIO 1
6179 # Test for old glibc 2.0.x headers so that they can be removed properly
6180 # Search only in includedir.
6181 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6182 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6183 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6185 old_glibc_headers=yes
6187 old_glibc_headers=no
6189 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6190 echo "${ECHO_T}$old_glibc_headers" >&6
6191 if test ${old_glibc_headers} = yes; then
6192 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6193 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6195 echo "$as_me: WARNING: *** be removed." >&2;}
6208 if test $gnu_ld = yes; then
6209 cat >>confdefs.h <<\_ACEOF
6210 #define HAVE_GNU_LD 1
6214 if test $gnu_as = yes; then
6215 cat >>confdefs.h <<\_ACEOF
6216 #define HAVE_GNU_AS 1
6220 if test $elf = yes; then
6221 cat >>confdefs.h <<\_ACEOF
6226 if test $xcoff = yes; then
6227 cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_XCOFF 1
6235 if test $shared = default; then
6236 if test $gnu_ld = yes; then
6239 # For now we do not assume shared libs are available. In future more
6240 # tests might become available.
6245 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6246 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6247 if test "${pic_default+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat > conftest.c <<EOF
6252 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6253 # error PIC is default.
6256 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6261 echo "$as_me:$LINENO: result: $pic_default" >&5
6262 echo "${ECHO_T}$pic_default" >&6
6274 *door*) linux_doors=yes ;;
6275 *) linux_doors=no ;;
6281 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6284 config_makefile=Makefile
6287 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6288 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6292 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6293 ac_config_commands="$ac_config_commands default"
6294 cat >confcache <<\_ACEOF
6295 # This file is a shell script that caches the results of configure
6296 # tests run on this system so they can be shared between configure
6297 # scripts and configure runs, see configure's option --config-cache.
6298 # It is not useful on other systems. If it contains results you don't
6299 # want to keep, you may remove or edit it.
6301 # config.status only pays attention to the cache file if you give it
6302 # the --recheck option to rerun configure.
6304 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6310 # The following way of writing the cache mishandles newlines in values,
6311 # but we know of no workaround that is simple, portable, and efficient.
6312 # So, don't put newlines in cache variables' values.
6313 # Ultrix sh set writes to stderr and can't be redirected directly,
6314 # and sets the high bit in the cache file unless we assign to the vars.
6317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6319 # `set' does not quote correctly, so add quotes (double-quote
6320 # substitution turns \\\\ into \\, and sed turns \\ into \).
6323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6326 # `set' quotes correctly as required by POSIX, so do not add quotes.
6328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6335 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6337 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6339 if cmp -s $cache_file confcache; then :; else
6340 if test -w $cache_file; then
6341 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6342 cat confcache >$cache_file
6344 echo "not updating unwritable cache $cache_file"
6349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6350 # Let make expand exec_prefix.
6351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6355 # trailing colons and then remove the whole line if VPATH becomes empty
6356 # (actually we leave an empty line to preserve line numbers).
6357 if test "x$srcdir" = x.; then
6358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6359 s/:*\$(srcdir):*/:/;
6360 s/:*\${srcdir}:*/:/;
6362 s/^\([^=]*=[ ]*\):*/\1/;
6368 DEFS=-DHAVE_CONFIG_H
6371 : ${CONFIG_STATUS=./config.status}
6372 ac_clean_files_save=$ac_clean_files
6373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6374 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6375 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6376 cat >$CONFIG_STATUS <<_ACEOF
6378 # Generated by $as_me.
6379 # Run this file to recreate the current configuration.
6380 # Compiler output produced by configure, useful for debugging
6381 # configure, is in config.log if it exists.
6384 SHELL=\${CONFIG_SHELL-$SHELL}
6387 cat >>$CONFIG_STATUS <<\_ACEOF
6389 ## --------------------- ##
6390 ## M4sh Initialization. ##
6391 ## --------------------- ##
6393 # Be Bourne compatible
6394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6397 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6402 # Support unset when possible.
6403 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6409 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6410 { $as_unset LANG || test "${LANG+set}" != set; } ||
6411 { LANG=C; export LANG; }
6412 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6413 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6414 { LC_ALL=C; export LC_ALL; }
6415 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6416 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6417 { LC_TIME=C; export LC_TIME; }
6418 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6419 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6420 { LC_CTYPE=C; export LC_CTYPE; }
6421 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6422 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6423 { LANGUAGE=C; export LANGUAGE; }
6424 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6425 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6426 { LC_COLLATE=C; export LC_COLLATE; }
6427 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6428 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6429 { LC_NUMERIC=C; export LC_NUMERIC; }
6430 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6431 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6432 { LC_MESSAGES=C; export LC_MESSAGES; }
6435 # Name of the executable.
6436 as_me=`(basename "$0") 2>/dev/null ||
6437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6438 X"$0" : 'X\(//\)$' \| \
6439 X"$0" : 'X\(/\)$' \| \
6440 . : '\(.\)' 2>/dev/null ||
6442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6443 /^X\/\(\/\/\)$/{ s//\1/; q; }
6444 /^X\/\(\/\).*/{ s//\1/; q; }
6447 # PATH needs CR, and LINENO needs CR and PATH.
6448 # Avoid depending upon Character Ranges.
6449 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6450 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6451 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6452 as_cr_digits='0123456789'
6453 as_cr_alnum=$as_cr_Letters$as_cr_digits
6455 # The user is always right.
6456 if test "${PATH_SEPARATOR+set}" != set; then
6457 echo "#! /bin/sh" >conftest.sh
6458 echo "exit 0" >>conftest.sh
6459 chmod +x conftest.sh
6460 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6471 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6472 test "x$as_lineno_1" != "x$as_lineno_2" &&
6473 test "x$as_lineno_3" = "x$as_lineno_2" || {
6474 # Find who we are. Look in the path if we contain no path at all
6477 *[\\/]* ) as_myself=$0 ;;
6478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6488 # We did not find ourselves, most probably we were run as `sh COMMAND'
6489 # in which case we are not to be found in the path.
6490 if test "x$as_myself" = x; then
6493 if test ! -f "$as_myself"; then
6494 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6495 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6496 { (exit 1); exit 1; }; }
6498 case $CONFIG_SHELL in
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6504 test -z "$as_dir" && as_dir=.
6505 for as_base in sh bash ksh sh5; do
6508 if ("$as_dir/$as_base" -c '
6511 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6512 test "x$as_lineno_1" != "x$as_lineno_2" &&
6513 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6514 CONFIG_SHELL=$as_dir/$as_base
6516 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6525 # uniformly replaced by the line number. The first 'sed' inserts a
6526 # line-number line before each line; the second 'sed' does the real
6527 # work. The second script uses 'N' to pair each line-number line
6528 # with the numbered line, and appends trailing '-' during
6529 # substitution so that $LINENO is not a special case at line end.
6530 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6531 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6532 sed '=' <$as_myself |
6537 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6540 s,^['$as_cr_digits']*\n,,
6542 chmod +x $as_me.lineno ||
6543 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6544 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6545 { (exit 1); exit 1; }; }
6547 # Don't try to exec as it changes $[0], causing all sort of problems
6548 # (the dirname of $[0] is not the place where we might find the
6549 # original and so on. Autoconf is especially sensible to this).
6551 # Exit status is that of the last command.
6556 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6557 *c*,-n*) ECHO_N= ECHO_C='
6559 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6560 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6563 if expr a : '\(a\)' >/dev/null 2>&1; then
6569 rm -f conf$$ conf$$.exe conf$$.file
6571 if ln -s conf$$.file conf$$ 2>/dev/null; then
6572 # We could just check for DJGPP; but this test a) works b) is more generic
6573 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6574 if test -f conf$$.exe; then
6575 # Don't use ln at all; we don't have any links
6580 elif ln conf$$.file conf$$ 2>/dev/null; then
6585 rm -f conf$$ conf$$.exe conf$$.file
6587 as_executable_p="test -f"
6589 # Sed expression to map a string onto a valid CPP name.
6590 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6592 # Sed expression to map a string onto a valid variable name.
6593 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6597 # We need space, tab and new line, in precisely that order.
6603 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6607 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6608 # report actual input values of CONFIG_FILES etc. instead of their
6609 # values after options handling. Logging --version etc. is OK.
6613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6614 ## Running $as_me. ##
6619 This file was extended by $as_me, which was
6620 generated by GNU Autoconf 2.53. Invocation command line was
6622 CONFIG_FILES = $CONFIG_FILES
6623 CONFIG_HEADERS = $CONFIG_HEADERS
6624 CONFIG_LINKS = $CONFIG_LINKS
6625 CONFIG_COMMANDS = $CONFIG_COMMANDS
6629 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6633 # Files that config.status was made for.
6634 if test -n "$ac_config_files"; then
6635 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6638 if test -n "$ac_config_headers"; then
6639 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6642 if test -n "$ac_config_links"; then
6643 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6646 if test -n "$ac_config_commands"; then
6647 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6650 cat >>$CONFIG_STATUS <<\_ACEOF
6653 \`$as_me' instantiates files from templates according to the
6654 current configuration.
6656 Usage: $0 [OPTIONS] [FILE]...
6658 -h, --help print this help, then exit
6659 -V, --version print version number, then exit
6660 -d, --debug don't remove temporary files
6661 --recheck update $as_me by reconfiguring in the same conditions
6662 --file=FILE[:TEMPLATE]
6663 instantiate the configuration file FILE
6664 --header=FILE[:TEMPLATE]
6665 instantiate the configuration header FILE
6667 Configuration files:
6670 Configuration headers:
6673 Configuration links:
6676 Configuration commands:
6679 Report bugs to <bug-autoconf@gnu.org>."
6682 cat >>$CONFIG_STATUS <<_ACEOF
6685 configured by $0, generated by GNU Autoconf 2.53,
6686 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6688 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6689 Free Software Foundation, Inc.
6690 This config.status script is free software; the Free Software Foundation
6691 gives unlimited permission to copy, distribute and modify it."
6696 cat >>$CONFIG_STATUS <<\_ACEOF
6697 # If no file are specified by the user, then we need to provide default
6698 # value. By we need to know if files were specified by the user.
6704 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6705 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6707 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6711 *) # This is not an option, so the user has probably given explicit
6713 ac_need_defaults=false;;
6717 # Handling of the options.
6719 cat >>$CONFIG_STATUS <<_ACEOF
6720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6721 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6722 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6724 cat >>$CONFIG_STATUS <<\_ACEOF
6725 --version | --vers* | -V )
6726 echo "$ac_cs_version"; exit 0 ;;
6728 # Conflict between --help and --header
6729 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6730 Try \`$0 --help' for more information." >&5
6731 echo "$as_me: error: ambiguous option: $1
6732 Try \`$0 --help' for more information." >&2;}
6733 { (exit 1); exit 1; }; };;
6734 --help | --hel | -h )
6735 echo "$ac_cs_usage"; exit 0 ;;
6736 --debug | --d* | -d )
6738 --file | --fil | --fi | --f )
6740 CONFIG_FILES="$CONFIG_FILES $1"
6741 ac_need_defaults=false;;
6742 --header | --heade | --head | --hea )
6744 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6745 ac_need_defaults=false;;
6748 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6749 Try \`$0 --help' for more information." >&5
6750 echo "$as_me: error: unrecognized option: $1
6751 Try \`$0 --help' for more information." >&2;}
6752 { (exit 1); exit 1; }; } ;;
6754 *) ac_config_targets="$ac_config_targets $1" ;;
6762 cat >>$CONFIG_STATUS <<_ACEOF
6764 # INIT-COMMANDS section.
6767 config_vars='$config_vars'
6773 cat >>$CONFIG_STATUS <<\_ACEOF
6774 for ac_config_target in $ac_config_targets
6776 case "$ac_config_target" in
6777 # Handling of arguments.
6778 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
6779 "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
6780 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
6781 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
6782 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6783 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6784 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6785 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6786 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6787 { (exit 1); exit 1; }; };;
6791 # If the user did not use the arguments to specify the items to instantiate,
6792 # then the envvar interface is used. Set only those that are not.
6793 # We use the long form for the default assignment because of an extremely
6794 # bizarre bug on SunOS 4.1.3.
6795 if $ac_need_defaults; then
6796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6798 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6802 # Create a temporary directory, and hook for its removal unless debugging.
6805 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6806 trap '{ (exit 1); exit 1; }' 1 2 13 15
6809 # Create a (secure) tmp directory for tmp files.
6812 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6813 test -n "$tmp" && test -d "$tmp"
6816 tmp=$TMPDIR/cs$$-$RANDOM
6817 (umask 077 && mkdir $tmp)
6820 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6821 { (exit 1); exit 1; }
6826 cat >>$CONFIG_STATUS <<_ACEOF
6829 # CONFIG_FILES section.
6832 # No need to generate the scripts if there are no CONFIG_FILES.
6833 # This happens for instance when ./config.status config.h
6834 if test -n "\$CONFIG_FILES"; then
6835 # Protect against being on the right side of a sed subst in config.status.
6836 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6837 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6838 s,@SHELL@,$SHELL,;t t
6839 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6840 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6841 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6842 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6843 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6844 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6845 s,@exec_prefix@,$exec_prefix,;t t
6846 s,@prefix@,$prefix,;t t
6847 s,@program_transform_name@,$program_transform_name,;t t
6848 s,@bindir@,$bindir,;t t
6849 s,@sbindir@,$sbindir,;t t
6850 s,@libexecdir@,$libexecdir,;t t
6851 s,@datadir@,$datadir,;t t
6852 s,@sysconfdir@,$sysconfdir,;t t
6853 s,@sharedstatedir@,$sharedstatedir,;t t
6854 s,@localstatedir@,$localstatedir,;t t
6855 s,@libdir@,$libdir,;t t
6856 s,@includedir@,$includedir,;t t
6857 s,@oldincludedir@,$oldincludedir,;t t
6858 s,@infodir@,$infodir,;t t
6859 s,@mandir@,$mandir,;t t
6860 s,@build_alias@,$build_alias,;t t
6861 s,@host_alias@,$host_alias,;t t
6862 s,@target_alias@,$target_alias,;t t
6864 s,@ECHO_C@,$ECHO_C,;t t
6865 s,@ECHO_N@,$ECHO_N,;t t
6866 s,@ECHO_T@,$ECHO_T,;t t
6868 s,@with_fp@,$with_fp,;t t
6869 s,@with_cvs@,$with_cvs,;t t
6870 s,@oldest_abi@,$oldest_abi,;t t
6871 s,@subdirs@,$subdirs,;t t
6872 s,@force_install@,$force_install,;t t
6873 s,@all_warnings@,$all_warnings,;t t
6874 s,@build@,$build,;t t
6875 s,@build_cpu@,$build_cpu,;t t
6876 s,@build_vendor@,$build_vendor,;t t
6877 s,@build_os@,$build_os,;t t
6879 s,@host_cpu@,$host_cpu,;t t
6880 s,@host_vendor@,$host_vendor,;t t
6881 s,@host_os@,$host_os,;t t
6882 s,@completely_soft@,$completely_soft,;t t
6883 s,@base_machine@,$base_machine,;t t
6884 s,@sysnames@,$sysnames,;t t
6885 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6886 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6889 s,@PWD_P@,$PWD_P,;t t
6892 s,@MSGFMT@,$MSGFMT,;t t
6893 s,@MAKEINFO@,$MAKEINFO,;t t
6895 s,@AUTOCONF@,$AUTOCONF,;t t
6896 s,@CFLAGS@,$CFLAGS,;t t
6897 s,@LDFLAGS@,$LDFLAGS,;t t
6898 s,@CPPFLAGS@,$CPPFLAGS,;t t
6899 s,@ac_ct_CC@,$ac_ct_CC,;t t
6900 s,@OBJEXT@,$OBJEXT,;t t
6901 s,@BUILD_CC@,$BUILD_CC,;t t
6902 s,@cross_compiling@,$cross_compiling,;t t
6905 s,@RANLIB@,$RANLIB,;t t
6906 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6908 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6909 s,@CCVERSION@,$CCVERSION,;t t
6910 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
6911 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
6913 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
6915 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
6918 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6919 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
6920 s,@BISON@,$BISON,;t t
6921 s,@VERSIONING@,$VERSIONING,;t t
6922 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
6923 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
6924 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
6925 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
6926 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
6927 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
6928 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
6929 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
6930 s,@no_whole_archive@,$no_whole_archive,;t t
6931 s,@exceptions@,$exceptions,;t t
6932 s,@LIBGD@,$LIBGD,;t t
6933 s,@sizeof_long_double@,$sizeof_long_double,;t t
6934 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
6935 s,@uname_sysname@,$uname_sysname,;t t
6936 s,@uname_release@,$uname_release,;t t
6937 s,@uname_version@,$uname_version,;t t
6938 s,@old_glibc_headers@,$old_glibc_headers,;t t
6939 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
6940 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
6941 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
6942 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
6943 s,@use_ldconfig@,$use_ldconfig,;t t
6944 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
6945 s,@gnu_ld@,$gnu_ld,;t t
6946 s,@gnu_as@,$gnu_as,;t t
6948 s,@xcoff@,$xcoff,;t t
6949 s,@static@,$static,;t t
6950 s,@shared@,$shared,;t t
6951 s,@pic_default@,$pic_default,;t t
6952 s,@profile@,$profile,;t t
6953 s,@omitfp@,$omitfp,;t t
6954 s,@bounded@,$bounded,;t t
6955 s,@static_nss@,$static_nss,;t t
6956 s,@nopic_initfini@,$nopic_initfini,;t t
6957 s,@DEFINES@,$DEFINES,;t t
6958 s,@linux_doors@,$linux_doors,;t t
6959 s,@mach_interface_list@,$mach_interface_list,;t t
6960 s,@VERSION@,$VERSION,;t t
6961 s,@RELEASE@,$RELEASE,;t t
6966 cat >>$CONFIG_STATUS <<\_ACEOF
6967 # Split the substitutions into bite-sized pieces for seds with
6968 # small command number limits, like on Digital OSF/1 and HP-UX.
6970 ac_sed_frag=1 # Number of current file.
6971 ac_beg=1 # First line for current file.
6972 ac_end=$ac_max_sed_lines # Line after last line for current file.
6975 while $ac_more_lines; do
6976 if test $ac_beg -gt 1; then
6977 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6979 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6981 if test ! -s $tmp/subs.frag; then
6984 # The purpose of the label and of the branching condition is to
6985 # speed up the sed processing (if there are no `@' at all, there
6986 # is no need to browse any of the substitutions).
6987 # These are the two extra sed commands mentioned above.
6989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6990 if test -z "$ac_sed_cmds"; then
6991 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6993 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6995 ac_sed_frag=`expr $ac_sed_frag + 1`
6997 ac_end=`expr $ac_end + $ac_max_sed_lines`
7000 if test -z "$ac_sed_cmds"; then
7003 fi # test -n "$CONFIG_FILES"
7006 cat >>$CONFIG_STATUS <<\_ACEOF
7007 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7010 - | *:- | *:-:* ) # input from stdin
7012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7016 * ) ac_file_in=$ac_file.in ;;
7019 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7022 X"$ac_file" : 'X\(//\)[^/]' \| \
7023 X"$ac_file" : 'X\(//\)$' \| \
7024 X"$ac_file" : 'X\(/\)' \| \
7025 . : '\(.\)' 2>/dev/null ||
7027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7029 /^X\(\/\/\)$/{ s//\1/; q; }
7030 /^X\(\/\).*/{ s//\1/; q; }
7033 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7037 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7038 case $as_mkdir_dir in
7039 # Skip DOS drivespec
7040 ?:) as_incr_dir=$as_mkdir_dir ;;
7042 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7043 test -d "$as_incr_dir" ||
7044 mkdir "$as_incr_dir" ||
7045 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7046 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7047 { (exit 1); exit 1; }; }
7054 if test "$ac_dir" != .; then
7055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7056 # A "../" for each directory in $ac_dir_suffix.
7057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7059 ac_dir_suffix= ac_top_builddir=
7063 .) # No --srcdir option. We are building in place.
7065 if test -z "$ac_top_builddir"; then
7068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7070 [\\/]* | ?:[\\/]* ) # Absolute path.
7071 ac_srcdir=$srcdir$ac_dir_suffix;
7072 ac_top_srcdir=$srcdir ;;
7074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7077 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7079 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7080 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7081 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7082 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7087 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7090 if test x"$ac_file" != x-; then
7091 { echo "$as_me:$LINENO: creating $ac_file" >&5
7092 echo "$as_me: creating $ac_file" >&6;}
7095 # Let's still pretend it is `configure' which instantiates (i.e., don't
7096 # use $as_me), people would be surprised to read:
7097 # /* config.h. Generated by config.status. */
7098 if test x"$ac_file" = x-; then
7101 configure_input="$ac_file. "
7103 configure_input=$configure_input"Generated from `echo $ac_file_in |
7104 sed 's,.*/,,'` by configure."
7106 # First look for the input files in the build tree, otherwise in the
7108 ac_file_inputs=`IFS=:
7109 for f in $ac_file_in; do
7111 -) echo $tmp/stdin ;;
7113 # Absolute (can't be DOS-style, as IFS=:)
7114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7115 echo "$as_me: error: cannot find input file: $f" >&2;}
7116 { (exit 1); exit 1; }; }
7119 if test -f "$f"; then
7122 elif test -f "$srcdir/$f"; then
7127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7128 echo "$as_me: error: cannot find input file: $f" >&2;}
7129 { (exit 1); exit 1; }; }
7132 done` || { (exit 1); exit 1; }
7134 cat >>$CONFIG_STATUS <<_ACEOF
7138 cat >>$CONFIG_STATUS <<\_ACEOF
7140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7141 s,@configure_input@,$configure_input,;t t
7142 s,@srcdir@,$ac_srcdir,;t t
7143 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7144 s,@top_srcdir@,$ac_top_srcdir,;t t
7145 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7146 s,@builddir@,$ac_builddir,;t t
7147 s,@abs_builddir@,$ac_abs_builddir,;t t
7148 s,@top_builddir@,$ac_top_builddir,;t t
7149 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7150 s,@INSTALL@,$ac_INSTALL,;t t
7151 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7153 if test x"$ac_file" != x-; then
7154 mv $tmp/out $ac_file
7162 cat >>$CONFIG_STATUS <<\_ACEOF
7165 # CONFIG_HEADER section.
7168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7171 # ac_d sets the value in "#define NAME VALUE" lines.
7172 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7173 ac_dB='[ ].*$,\1#\2'
7176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7177 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7178 ac_uB='$,\1#\2define\3'
7182 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7185 - | *:- | *:-:* ) # input from stdin
7187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7191 * ) ac_file_in=$ac_file.in ;;
7194 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7195 echo "$as_me: creating $ac_file" >&6;}
7197 # First look for the input files in the build tree, otherwise in the
7199 ac_file_inputs=`IFS=:
7200 for f in $ac_file_in; do
7202 -) echo $tmp/stdin ;;
7204 # Absolute (can't be DOS-style, as IFS=:)
7205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7206 echo "$as_me: error: cannot find input file: $f" >&2;}
7207 { (exit 1); exit 1; }; }
7210 if test -f "$f"; then
7213 elif test -f "$srcdir/$f"; then
7218 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7219 echo "$as_me: error: cannot find input file: $f" >&2;}
7220 { (exit 1); exit 1; }; }
7223 done` || { (exit 1); exit 1; }
7224 # Remove the trailing spaces.
7225 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7229 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7230 # `conftest.undefs', that substitutes the proper values into
7231 # config.h.in to produce config.h. The first handles `#define'
7232 # templates, and the second `#undef' templates.
7233 # And first: Protect against being on the right side of a sed subst in
7234 # config.status. Protect against being in an unquoted here document
7236 rm -f conftest.defines conftest.undefs
7237 # Using a here document instead of a string reduces the quoting nightmare.
7238 # Putting comments in sed scripts is not portable.
7240 # `end' is used to avoid that the second main sed command (meant for
7241 # 0-ary CPP macros) applies to n-ary macro definitions.
7242 # See the Autoconf documentation for `clear'.
7243 cat >confdef2sed.sed <<\_ACEOF
7248 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7250 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7253 # If some macros were called several times there might be several times
7254 # the same #defines, which is useless. Nevertheless, we may not want to
7255 # sort them, since we want the *last* AC-DEFINE to be honored.
7256 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7257 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7258 rm -f confdef2sed.sed
7260 # This sed command replaces #undef with comments. This is necessary, for
7261 # example, in the case of _POSIX_SOURCE, which is predefined and required
7262 # on some systems where configure will not decide to define it.
7263 cat >>conftest.undefs <<\_ACEOF
7264 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7267 # Break up conftest.defines because some shells have a limit on the size
7268 # of here documents, and old seds have small limits too (100 cmds).
7269 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7270 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7271 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7272 echo ' :' >>$CONFIG_STATUS
7274 while grep . conftest.defines >/dev/null
7276 # Write a limited-size here document to $tmp/defines.sed.
7277 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7278 # Speed up: don't consider the non `#define' lines.
7279 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7280 # Work around the forget-to-reset-the-flag bug.
7281 echo 't clr' >>$CONFIG_STATUS
7282 echo ': clr' >>$CONFIG_STATUS
7283 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7285 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7289 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7290 rm -f conftest.defines
7291 mv conftest.tail conftest.defines
7293 rm -f conftest.defines
7294 echo ' fi # egrep' >>$CONFIG_STATUS
7295 echo >>$CONFIG_STATUS
7297 # Break up conftest.undefs because some shells have a limit on the size
7298 # of here documents, and old seds have small limits too (100 cmds).
7299 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7301 while grep . conftest.undefs >/dev/null
7303 # Write a limited-size here document to $tmp/undefs.sed.
7304 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7305 # Speed up: don't consider the non `#undef'
7306 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7307 # Work around the forget-to-reset-the-flag bug.
7308 echo 't clr' >>$CONFIG_STATUS
7309 echo ': clr' >>$CONFIG_STATUS
7310 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7312 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7316 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7317 rm -f conftest.undefs
7318 mv conftest.tail conftest.undefs
7320 rm -f conftest.undefs
7322 cat >>$CONFIG_STATUS <<\_ACEOF
7323 # Let's still pretend it is `configure' which instantiates (i.e., don't
7324 # use $as_me), people would be surprised to read:
7325 # /* config.h. Generated by config.status. */
7326 if test x"$ac_file" = x-; then
7327 echo "/* Generated by configure. */" >$tmp/config.h
7329 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7331 cat $tmp/in >>$tmp/config.h
7333 if test x"$ac_file" != x-; then
7334 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7335 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7336 echo "$as_me: $ac_file is unchanged" >&6;}
7338 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7340 X"$ac_file" : 'X\(//\)[^/]' \| \
7341 X"$ac_file" : 'X\(//\)$' \| \
7342 X"$ac_file" : 'X\(/\)' \| \
7343 . : '\(.\)' 2>/dev/null ||
7345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7347 /^X\(\/\/\)$/{ s//\1/; q; }
7348 /^X\(\/\).*/{ s//\1/; q; }
7351 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7355 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7356 case $as_mkdir_dir in
7357 # Skip DOS drivespec
7358 ?:) as_incr_dir=$as_mkdir_dir ;;
7360 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7361 test -d "$as_incr_dir" ||
7362 mkdir "$as_incr_dir" ||
7363 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7364 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7365 { (exit 1); exit 1; }; }
7371 mv $tmp/config.h $ac_file
7379 cat >>$CONFIG_STATUS <<\_ACEOF
7382 # CONFIG_LINKS section.
7385 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7386 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7387 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7389 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7390 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7392 if test ! -r $srcdir/$ac_source; then
7393 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7394 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7395 { (exit 1); exit 1; }; }
7399 # Make relative symlinks.
7400 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7401 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7402 X"$ac_dest" : 'X\(//\)[^/]' \| \
7403 X"$ac_dest" : 'X\(//\)$' \| \
7404 X"$ac_dest" : 'X\(/\)' \| \
7405 . : '\(.\)' 2>/dev/null ||
7407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7409 /^X\(\/\/\)$/{ s//\1/; q; }
7410 /^X\(\/\).*/{ s//\1/; q; }
7412 { case "$ac_dest_dir" in
7413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7416 as_dummy="$ac_dest_dir"
7417 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7418 case $as_mkdir_dir in
7419 # Skip DOS drivespec
7420 ?:) as_incr_dir=$as_mkdir_dir ;;
7422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7423 test -d "$as_incr_dir" ||
7424 mkdir "$as_incr_dir" ||
7425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
7426 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
7427 { (exit 1); exit 1; }; }
7434 if test "$ac_dest_dir" != .; then
7435 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7436 # A "../" for each directory in $ac_dir_suffix.
7437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7439 ac_dir_suffix= ac_top_builddir=
7443 .) # No --srcdir option. We are building in place.
7445 if test -z "$ac_top_builddir"; then
7448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7450 [\\/]* | ?:[\\/]* ) # Absolute path.
7451 ac_srcdir=$srcdir$ac_dir_suffix;
7452 ac_top_srcdir=$srcdir ;;
7454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7457 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
7459 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
7460 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
7461 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
7462 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
7466 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7467 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7470 # Make a symlink if possible; otherwise try a hard link.
7471 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7472 ln $srcdir/$ac_source $ac_dest ||
7473 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
7474 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
7475 { (exit 1); exit 1; }; }
7478 cat >>$CONFIG_STATUS <<\_ACEOF
7481 # CONFIG_COMMANDS section.
7483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7488 X"$ac_dest" : 'X\(//\)[^/]' \| \
7489 X"$ac_dest" : 'X\(//\)$' \| \
7490 X"$ac_dest" : 'X\(/\)' \| \
7491 . : '\(.\)' 2>/dev/null ||
7493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7495 /^X\(\/\/\)$/{ s//\1/; q; }
7496 /^X\(\/\).*/{ s//\1/; q; }
7500 if test "$ac_dir" != .; then
7501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7502 # A "../" for each directory in $ac_dir_suffix.
7503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7505 ac_dir_suffix= ac_top_builddir=
7509 .) # No --srcdir option. We are building in place.
7511 if test -z "$ac_top_builddir"; then
7514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7516 [\\/]* | ?:[\\/]* ) # Absolute path.
7517 ac_srcdir=$srcdir$ac_dir_suffix;
7518 ac_top_srcdir=$srcdir ;;
7520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7523 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7525 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7526 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7527 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7528 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7531 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7532 echo "$as_me: executing $ac_dest commands" >&6;}
7535 case $CONFIG_FILES in *config.make*)
7536 echo "$config_vars" >> config.make;;
7538 test -d bits || mkdir bits ;;
7543 cat >>$CONFIG_STATUS <<\_ACEOF
7545 { (exit 0); exit 0; }
7547 chmod +x $CONFIG_STATUS
7548 ac_clean_files=$ac_clean_files_save
7551 # configure is writing to config.log, and then calls config.status.
7552 # config.status does its own redirection, appending to config.log.
7553 # Unfortunately, on DOS this fails, as config.log is still kept open
7554 # by configure, so config.status won't be able to write to it; its
7555 # output is simply discarded. So we exec the FD to /dev/null,
7556 # effectively closing config.log, so it can be properly (re)opened and
7557 # appended to by config.status. When coming back to configure, we
7558 # need to make the FD available again.
7559 if test "$no_create" != yes; then
7562 $SHELL $CONFIG_STATUS || ac_cs_success=false
7564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7565 # would make configure fail if this is the last instruction.
7566 $ac_cs_success || { (exit 1); exit 1; }
7570 # CONFIG_SUBDIRS section.
7572 if test "$no_recursion" != yes; then
7574 # Remove --cache-file and --srcdir arguments so they do not pile up.
7575 ac_sub_configure_args=
7577 for ac_arg in $ac_configure_args; do
7578 if test -n "$ac_prev"; then
7583 -cache-file | --cache-file | --cache-fil | --cache-fi \
7584 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7585 ac_prev=cache_file ;;
7586 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7587 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7590 --config-cache | -C)
7592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7596 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7598 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7600 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7604 # Always prepend --prefix to ensure using the same prefix
7605 # in subdir configurations.
7606 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7609 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7611 # Do not complain, so a configure script can configure whichever
7612 # parts of a large source tree are present.
7613 test -d $srcdir/$ac_dir || continue
7615 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7616 echo "$as_me: configuring in $ac_dir" >&6;}
7618 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7622 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7623 case $as_mkdir_dir in
7624 # Skip DOS drivespec
7625 ?:) as_incr_dir=$as_mkdir_dir ;;
7627 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7628 test -d "$as_incr_dir" ||
7629 mkdir "$as_incr_dir" ||
7630 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7631 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7632 { (exit 1); exit 1; }; }
7639 if test "$ac_dir" != .; then
7640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7641 # A "../" for each directory in $ac_dir_suffix.
7642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7644 ac_dir_suffix= ac_top_builddir=
7648 .) # No --srcdir option. We are building in place.
7650 if test -z "$ac_top_builddir"; then
7653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7655 [\\/]* | ?:[\\/]* ) # Absolute path.
7656 ac_srcdir=$srcdir$ac_dir_suffix;
7657 ac_top_srcdir=$srcdir ;;
7659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7662 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7664 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7665 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7666 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7667 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7672 # Check for guested configure; otherwise get Cygnus style configure.
7673 if test -f $ac_srcdir/configure.gnu; then
7674 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7675 elif test -f $ac_srcdir/configure; then
7676 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7677 elif test -f $ac_srcdir/configure.in; then
7678 ac_sub_configure=$ac_configure
7680 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7685 # The recursion is here.
7686 if test -n "$ac_sub_configure"; then
7687 # Make the cache file name correct relative to the subdirectory.
7689 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7691 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7694 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7695 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7696 # The eval makes quoting arguments work.
7697 eval $ac_sub_configure $ac_sub_configure_args \
7698 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7699 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7700 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7701 { (exit 1); exit 1; }; }