]> git.ipfire.org Git - thirdparty/glibc.git/blob - configure
2004-07-07 Roland McGrath <roland@frob.com>
[thirdparty/glibc.git] / configure
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
5 #
6 # Report bugs to <glibc>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
275
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi bindnow force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os subdirs add_ons base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_cc_with_libunwind libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_z_relro libc_cv_Bgroup libc_cv_libgcc_s_suffix libc_cv_as_needed ASFLAGS_config libc_cv_z_combreloc libc_cv_z_execstack libc_cv_fpie fno_unit_at_a_time libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir libc_cv_forced_unwind use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784
785 #
786 # Report the --help message.
787 #
788 if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
791 cat <<_ACEOF
792 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
793
794 Usage: $0 [OPTION]... [VAR=VALUE]...
795
796 To assign environment variables (e.g., CC, CFLAGS...), specify them as
797 VAR=VALUE. See below for descriptions of some of the useful variables.
798
799 Defaults for the options are specified in brackets.
800
801 Configuration:
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811
812 _ACEOF
813
814 cat <<_ACEOF
815 Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
817 [$ac_default_prefix]
818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 [PREFIX]
820
821 By default, \`make install' will install all the files in
822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824 for instance \`--prefix=\$HOME'.
825
826 For better control, use the options below.
827
828 Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
841 _ACEOF
842
843 cat <<\_ACEOF
844
845 System types:
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
854 esac
855 cat <<\_ACEOF
856
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-sanity-checks really do not use threads (should not be used except
861 in special situations) [default=yes]
862 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
863 [default=no]
864 --enable-shared build shared library [default=yes if GNU ld &
865 ELF]
866 --enable-profile build profiled library [default=yes]
867 --enable-omitfp build undebuggable optimized library
868 [default=no]
869 --enable-bounded build with runtime bounds checking
870 [default=no]
871 --disable-versioning do not include versioning information in the library
872 objects [default=yes if supported]
873 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
874 [default=glibc default]
875 --enable-add-ons[=DIRS...]
876 configure and build add-ons in DIR1,DIR2,... search
877 for add-ons if no parameter given
878 --disable-hidden-plt do not hide internal function calls to avoid PLT
879 --enable-bind-now disable lazy relocations in DSOs
880 --enable-static-nss build static NSS modules [default=no]
881 --disable-force-install don't force installation of files from this package,
882 even if they are older than the installed files
883 --enable-kernel=VERSION compile for compatibility with kernel not older than
884 VERSION
885 --enable-all-warnings enable all useful warnings gcc can issue
886
887 Optional Packages:
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
891 --with-gd=DIR find libgd include dir and library with prefix DIR
892 --with-gd-include=DIR find libgd include files in DIR
893 --with-gd-lib=DIR find libgd library files in DIR
894 --with-fp if using floating-point hardware [default=yes]
895 --with-binutils=PATH specify location of binutils (as and ld)
896 --with-elf if using the ELF object format
897 --with-xcoff if using the XCOFF object format
898 --without-cvs if CVS should not be used
899 --with-headers=PATH location of system headers to use (for example
900 /usr/src/linux/include) [default=compiler
901 default]
902 --with-tls enable support for TLS
903 --without-__thread do not use TLS features even when supporting them
904
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CPP C preprocessor
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 Report bugs to <glibc>.
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
929
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935 ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 # absolute.
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd $ac_popdir
976 done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
982 GNU C Library configure (see version.h)
983 generated by GNU Autoconf 2.57
984
985 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
986 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990 exit 0
991 fi
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
996
997 It was created by GNU C Library $as_me (see version.h), which was
998 generated by GNU Autoconf 2.57. Invocation command line was
999
1000 $ $0 $@
1001
1002 _ACEOF
1003 {
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1008
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026 _ASUNAME
1027
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1030 do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034 done
1035
1036 } >&5
1037
1038 cat >&5 <<_ACEOF
1039
1040
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1044
1045 _ACEOF
1046
1047
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1059 do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116 {
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129 }
1130 echo
1131
1132 cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core core.* *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1182
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1187
1188 # Predefined preprocessor variables.
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1213
1214
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223 fi
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231 done
1232
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244 else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248 fi
1249
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292 done
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299 fi
1300
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers config.h"
1335
1336 ac_aux_dir=
1337 for ac_dir in scripts $srcdir/scripts; do
1338 if test -f $ac_dir/install-sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 break
1342 elif test -f $ac_dir/install.sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 break
1346 elif test -f $ac_dir/shtool; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 break
1350 fi
1351 done
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1355 { (exit 1); exit 1; }; }
1356 fi
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
1361
1362 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1363 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1364 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1365 { (exit 1); exit 1; }; }
1366 fi
1367
1368 # This will get text that should go into config.make.
1369 config_vars=
1370
1371 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1372
1373 # Check whether --with-gmp or --without-gmp was given.
1374 if test "${with_gmp+set}" = set; then
1375 withval="$with_gmp"
1376
1377 case "$with_gmp" in
1378 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1379 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1380 { (exit 1); exit 1; }; } ;;
1381 ''|no) ;;
1382 *) config_vars="$config_vars
1383 gmp-srcdir = $withval" ;;
1384 esac
1385
1386 fi;
1387 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1388
1389 # Check whether --with-gd or --without-gd was given.
1390 if test "${with_gd+set}" = set; then
1391 withval="$with_gd"
1392 case "$with_gd" in
1393 yes|''|no) ;;
1394 *) libgd_include="-I$withval/include"
1395 libgd_ldflags="-L$withval/lib" ;;
1396 esac
1397
1398 fi;
1399
1400 # Check whether --with-gd-include or --without-gd-include was given.
1401 if test "${with_gd_include+set}" = set; then
1402 withval="$with_gd_include"
1403 case "$with_gd_include" in
1404 ''|no) ;;
1405 *) libgd_include="-I$withval" ;;
1406 esac
1407
1408 fi;
1409
1410 # Check whether --with-gd-lib or --without-gd-lib was given.
1411 if test "${with_gd_lib+set}" = set; then
1412 withval="$with_gd_lib"
1413 case "$with_gd_lib" in
1414 ''|no) ;;
1415 *) libgd_ldflags="-L$withval" ;;
1416 esac
1417
1418 fi;
1419
1420 if test -n "$libgd_include"; then
1421 config_vars="$config_vars
1422 CFLAGS-memusagestat.c = $libgd_include"
1423 fi
1424 if test -n "$libgd_ldflags"; then
1425 config_vars="$config_vars
1426 libgd-LDFLAGS = $libgd_ldflags"
1427 fi
1428
1429
1430 # Check whether --with-fp or --without-fp was given.
1431 if test "${with_fp+set}" = set; then
1432 withval="$with_fp"
1433 with_fp=$withval
1434 else
1435 with_fp=yes
1436 fi;
1437
1438
1439 # Check whether --with-binutils or --without-binutils was given.
1440 if test "${with_binutils+set}" = set; then
1441 withval="$with_binutils"
1442 path_binutils=$withval
1443 else
1444 path_binutils=''
1445 fi;
1446
1447 # Check whether --with-elf or --without-elf was given.
1448 if test "${with_elf+set}" = set; then
1449 withval="$with_elf"
1450 elf=$withval
1451 else
1452 elf=no
1453 fi;
1454
1455 # Check whether --with-xcoff or --without-xcoff was given.
1456 if test "${with_xcoff+set}" = set; then
1457 withval="$with_xcoff"
1458 xcoff=$withval
1459 else
1460 xcoff=no
1461 fi;
1462
1463 # Check whether --with-cvs or --without-cvs was given.
1464 if test "${with_cvs+set}" = set; then
1465 withval="$with_cvs"
1466 with_cvs=$withval
1467 else
1468 with_cvs=yes
1469 fi;
1470 if test "$with_cvs" = yes; then
1471 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1472 then
1473 with_cvs=no
1474 fi
1475 fi
1476
1477
1478
1479 # Check whether --with-headers or --without-headers was given.
1480 if test "${with_headers+set}" = set; then
1481 withval="$with_headers"
1482 sysheaders=$withval
1483 else
1484 sysheaders=''
1485 fi;
1486
1487 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1488 if test "${enable_sanity_checks+set}" = set; then
1489 enableval="$enable_sanity_checks"
1490 enable_sanity=$enableval
1491 else
1492 enable_sanity=yes
1493 fi;
1494
1495
1496 # Check whether --enable-check-abi or --disable-check-abi was given.
1497 if test "${enable_check_abi+set}" = set; then
1498 enableval="$enable_check_abi"
1499 enable_check_abi=$enableval
1500 else
1501 enable_check_abi=no
1502 fi;
1503
1504 static=yes
1505 # Check whether --enable-shared or --disable-shared was given.
1506 if test "${enable_shared+set}" = set; then
1507 enableval="$enable_shared"
1508 shared=$enableval
1509 else
1510 shared=default
1511 fi;
1512 # Check whether --enable-profile or --disable-profile was given.
1513 if test "${enable_profile+set}" = set; then
1514 enableval="$enable_profile"
1515 profile=$enableval
1516 else
1517 profile=yes
1518 fi;
1519 # Check whether --enable-omitfp or --disable-omitfp was given.
1520 if test "${enable_omitfp+set}" = set; then
1521 enableval="$enable_omitfp"
1522 omitfp=$enableval
1523 else
1524 omitfp=no
1525 fi;
1526 # Check whether --enable-bounded or --disable-bounded was given.
1527 if test "${enable_bounded+set}" = set; then
1528 enableval="$enable_bounded"
1529 bounded=$enableval
1530 else
1531 bounded=no
1532 fi;
1533 # Check whether --enable-versioning or --disable-versioning was given.
1534 if test "${enable_versioning+set}" = set; then
1535 enableval="$enable_versioning"
1536 enable_versioning=$enableval
1537 else
1538 enable_versioning=yes
1539 fi;
1540
1541 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1542 if test "${enable_oldest_abi+set}" = set; then
1543 enableval="$enable_oldest_abi"
1544 oldest_abi=$enableval
1545 else
1546 oldest_abi=no
1547 fi;
1548 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1549 oldest_abi=default
1550 else
1551 cat >>confdefs.h <<_ACEOF
1552 #define GLIBC_OLDEST_ABI "$oldest_abi"
1553 _ACEOF
1554
1555 fi
1556
1557
1558 # Check whether --enable-add-ons or --disable-add-ons was given.
1559 if test "${enable_add_ons+set}" = set; then
1560 enableval="$enable_add_ons"
1561 case "$enableval" in
1562 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1563 test "$add_ons" = "*" && add_ons= ;;
1564 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1565 esac
1566 else
1567 add_ons=
1568 fi;
1569
1570
1571 # Check whether --with-tls or --without-tls was given.
1572 if test "${with_tls+set}" = set; then
1573 withval="$with_tls"
1574 usetls=$withval
1575 else
1576 usetls=no
1577 fi;
1578
1579
1580 # Check whether --with-__thread or --without-__thread was given.
1581 if test "${with___thread+set}" = set; then
1582 withval="$with___thread"
1583 use__thread=$withval
1584 else
1585 use__thread=yes
1586 fi;
1587
1588 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1589 if test "${enable_hidden_plt+set}" = set; then
1590 enableval="$enable_hidden_plt"
1591 hidden=$enableval
1592 else
1593 hidden=yes
1594 fi;
1595 if test "x$hidden" = xno; then
1596 cat >>confdefs.h <<\_ACEOF
1597 #define NO_HIDDEN 1
1598 _ACEOF
1599
1600 fi
1601
1602 # Check whether --enable-bind-now or --disable-bind-now was given.
1603 if test "${enable_bind_now+set}" = set; then
1604 enableval="$enable_bind_now"
1605 bindnow=$enableval
1606 else
1607 bindnow=no
1608 fi;
1609
1610
1611 # Check whether --enable-static-nss or --disable-static-nss was given.
1612 if test "${enable_static_nss+set}" = set; then
1613 enableval="$enable_static_nss"
1614 static_nss=$enableval
1615 else
1616 static_nss=no
1617 fi;
1618 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1619 static_nss=yes
1620 cat >>confdefs.h <<\_ACEOF
1621 #define DO_STATIC_NSS 1
1622 _ACEOF
1623
1624 fi
1625
1626 # Check whether --enable-force-install or --disable-force-install was given.
1627 if test "${enable_force_install+set}" = set; then
1628 enableval="$enable_force_install"
1629 force_install=$enableval
1630 else
1631 force_install=yes
1632 fi;
1633
1634
1635 # Check whether --enable-kernel or --disable-kernel was given.
1636 if test "${enable_kernel+set}" = set; then
1637 enableval="$enable_kernel"
1638 minimum_kernel=$enableval
1639 fi;
1640 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1641 # Better nothing than this.
1642 minimum_kernel=""
1643 else
1644 if test "$minimum_kernel" = current; then
1645 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1646 fi
1647 fi
1648
1649 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1650 if test "${enable_all_warnings+set}" = set; then
1651 enableval="$enable_all_warnings"
1652 all_warnings=$enableval
1653 fi;
1654
1655
1656 # Make sure we can run config.sub.
1657 $ac_config_sub sun4 >/dev/null 2>&1 ||
1658 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1659 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662 echo "$as_me:$LINENO: checking build system type" >&5
1663 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1664 if test "${ac_cv_build+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_build_alias=$build_alias
1668 test -z "$ac_cv_build_alias" &&
1669 ac_cv_build_alias=`$ac_config_guess`
1670 test -z "$ac_cv_build_alias" &&
1671 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1672 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1673 { (exit 1); exit 1; }; }
1674 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1678
1679 fi
1680 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1681 echo "${ECHO_T}$ac_cv_build" >&6
1682 build=$ac_cv_build
1683 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686
1687
1688 echo "$as_me:$LINENO: checking host system type" >&5
1689 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1690 if test "${ac_cv_host+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 ac_cv_host_alias=$host_alias
1694 test -z "$ac_cv_host_alias" &&
1695 ac_cv_host_alias=$ac_cv_build_alias
1696 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1697 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1698 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1699 { (exit 1); exit 1; }; }
1700
1701 fi
1702 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1703 echo "${ECHO_T}$ac_cv_host" >&6
1704 host=$ac_cv_host
1705 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708
1709
1710
1711 # An add-on can set this when it the tuple to disable the sanity check below.
1712 libc_config_ok=no
1713
1714
1715
1716 subdirs="$subdirs "
1717
1718
1719 add_ons_sfx=
1720 add_ons_pfx=
1721 if test x"$add_ons" != x; then
1722 for f in $add_ons; do
1723 # Some sanity checks
1724 case "$f" in
1725 crypt)
1726 { { echo "$as_me:$LINENO: error:
1727 *** It seems that you're using an old \`crypt' add-on. crypt is now
1728 *** part of glibc and using the old add-on will not work with this
1729 *** release. Start again with fresh sources and without the old
1730 *** \`crypt' add-on." >&5
1731 echo "$as_me: error:
1732 *** It seems that you're using an old \`crypt' add-on. crypt is now
1733 *** part of glibc and using the old add-on will not work with this
1734 *** release. Start again with fresh sources and without the old
1735 *** \`crypt' add-on." >&2;}
1736 { (exit 1); exit 1; }; }
1737 ;;
1738 localedata)
1739 { { echo "$as_me:$LINENO: error:
1740 *** It seems that you're using an old \`localedata' add-on. localedata
1741 *** is now part of glibc and using the old add-on will not work with
1742 *** this release. Start again with fresh sources and without the old
1743 *** \`localedata' add-on." >&5
1744 echo "$as_me: error:
1745 *** It seems that you're using an old \`localedata' add-on. localedata
1746 *** is now part of glibc and using the old add-on will not work with
1747 *** this release. Start again with fresh sources and without the old
1748 *** \`localedata' add-on." >&2;}
1749 { (exit 1); exit 1; }; }
1750 ;;
1751 esac
1752
1753 # Test whether such a subdir really exists.
1754 if test -d $srcdir/$f; then
1755 add_ons_pfx="$add_ons_pfx $f/"
1756 add_ons_sfx="$add_ons_sfx /$f"
1757 else
1758 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1759 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1760 { (exit 1); exit 1; }; }
1761 fi
1762 done
1763
1764 for f in $add_ons; do
1765 frag=$srcdir/$f/configure
1766 if test -r $frag; then
1767 echo "$as_me:$LINENO: result: running configure fragment for add-on $f" >&5
1768 echo "${ECHO_T}running configure fragment for add-on $f" >&6
1769 . $frag
1770 else
1771 { echo "$as_me:$LINENO: WARNING: add-on fragment $frag missing" >&5
1772 echo "$as_me: WARNING: add-on fragment $frag missing" >&2;}
1773 fi
1774 done
1775 fi
1776
1777
1778
1779 # The way shlib-versions is used to generate soversions.mk uses a
1780 # fairly simplistic model for name recognition that can't distinguish
1781 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1782 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1783 # tell. This doesn't get used much beyond that, so it's fairly safe.
1784 case "$host_os" in
1785 linux*)
1786 ;;
1787 gnu*)
1788 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1789 ;;
1790 esac
1791
1792 # We keep the original values in `$config_*' and never modify them, so we
1793 # can write them unchanged into config.make. Everything else uses
1794 # $machine, $vendor, and $os, and changes them whenever convenient.
1795 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1796
1797 # Don't allow vendor == "unknown"
1798 test "$config_vendor" = unknown && config_vendor=
1799 config_os="`echo $config_os | sed 's/^unknown-//'`"
1800
1801 # Some configurations imply other options.
1802 case "$host_os" in
1803 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1804 # These systems always use GNU tools.
1805 gnu_ld=yes gnu_as=yes ;;
1806 esac
1807 case "$host_os" in
1808 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1809 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1810 ;;
1811 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1812 # These systems (almost) always use the ELF format.
1813 elf=yes
1814 ;;
1815 aix*)
1816 # These systems are always xcoff
1817 xcoff=yes
1818 elf=no
1819 ;;
1820 esac
1821
1822 machine=$config_machine
1823 vendor=$config_vendor
1824 os=$config_os
1825
1826 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1827 # Unify this here.
1828 if test "$machine" = rs6000; then
1829 machine="powerpc"
1830 fi
1831
1832 # Braindead PowerPC box with absolutely no FPU.
1833 case "$machine-$host_os" in
1834 powerpc*-*soft)
1835 with_fp=no
1836 ;;
1837 esac
1838
1839 ###
1840 ### I put this here to prevent those annoying emails from people who cannot
1841 ### read and try to compile glibc on unsupported platforms. --drepper
1842 ###
1843 ### By using the undocumented --enable-hacker-mode option for configure
1844 ### one can skip this test to make the configuration not fail for unsupported
1845 ### platforms.
1846 ###
1847 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
1848 case "$machine-$host_os" in
1849 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1850 ;;
1851 *)
1852 echo "*** The GNU C library is currently not available for this platform."
1853 echo "*** So far nobody cared to port it and if there is no volunteer it"
1854 echo "*** might never happen. So, if you have interest to see glibc on"
1855 echo "*** this platform visit"
1856 echo "*** http://www.gnu.org/software/libc/porting.html"
1857 echo "*** and join the group of porters"
1858 exit 1
1859 ;;
1860 esac
1861 fi
1862
1863 # Expand the configuration machine name into a subdirectory by architecture
1864 # type and particular chip. If an add-on configure fragment already set
1865 # base_machine, we don't change it.
1866 test -n "$base_machine" || case "$machine" in
1867 a29k | am29000) base_machine=a29k machine=a29k ;;
1868 alpha*) base_machine=alpha machine=alpha/$machine ;;
1869 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1870 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1871 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1872 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1873 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1874 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1875 ia64) base_machine=ia64 machine=ia64 ;;
1876 m680?0) base_machine=m68k machine=m68k/$machine ;;
1877 m68k) base_machine=m68k machine=m68k/m68020 ;;
1878 m88???) base_machine=m88k machine=m88k/$machine ;;
1879 m88k) base_machine=m88k machine=m88k/m88100 ;;
1880 mips64*) base_machine=mips64
1881 case "$CC $CFLAGS $CPPFLAGS " in
1882 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
1883 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
1884 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
1885 *) mips_cc_abi=default ;;
1886 esac
1887 case $config_os in
1888 *abin32*) mips_config_abi=n32 ;;
1889 *abi64*|*abin64*) mips_config_abi=64 ;;
1890 *abi32*|*abio32*) mips_config_abi=32 ;;
1891 *) mips_config_abi=$mips_cc_abi ;;
1892 esac
1893 case $mips_config_abi in
1894 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
1895 n32) machine=mips/mips64/n32 ;;
1896 64) machine=mips/mips64/n64 ;;
1897 32) machine=mips/mips32/kern64 ;;
1898 esac
1899 machine=$machine/$config_machine
1900 if test $mips_config_abi != $mips_cc_abi; then
1901 # This won't make it to config.make, but we want to
1902 # set this in case configure tests depend on it.
1903 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
1904 fi
1905 ;;
1906 mips*) base_machine=mips machine=mips/mips32/$machine ;;
1907 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1908 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1909 s390) base_machine=s390 machine=s390/s390-32 ;;
1910 s390x) base_machine=s390 machine=s390/s390-64 ;;
1911 sh3*) base_machine=sh machine=sh/sh3 ;;
1912 sh4*) base_machine=sh machine=sh/sh4 ;;
1913 sparc | sparcv[67])
1914 base_machine=sparc machine=sparc/sparc32 ;;
1915 sparcv8 | supersparc | hypersparc)
1916 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1917 sparcv8plus | sparcv8plusa | sparcv9)
1918 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1919 sparcv8plusb | sparcv9b)
1920 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1921 sparc64 | ultrasparc)
1922 base_machine=sparc machine=sparc/sparc64 ;;
1923 sparc64b | ultrasparc3)
1924 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1925 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1926 *) base_machine=$machine ;;
1927 esac
1928
1929
1930 if test "$base_machine" = "i386"; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define USE_REGPARMS 1
1933 _ACEOF
1934
1935 fi
1936
1937 # Compute the list of sysdep directories for this configuration.
1938 # This can take a while to compute.
1939 sysdep_dir=$srcdir/sysdeps
1940 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1941 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1942 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1943 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1944
1945 case "$os" in
1946 gnu*)
1947 base_os=mach/hurd ;;
1948 netbsd* | 386bsd* | freebsd* | bsdi*)
1949 base_os=unix/bsd/bsd4.4 ;;
1950 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1951 base_os=unix/bsd ;;
1952 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1953 base_os=unix/sysv ;;
1954 irix6*)
1955 base_os=unix/sysv/irix6/$os ;;
1956 solaris[2-9]*)
1957 base_os=unix/sysv/sysv4 ;;
1958 hpux*)
1959 base_os=unix/sysv/hpux/$os ;;
1960 aix4.3*)
1961 base_os=unix/sysv/aix/aix4.3 ;;
1962 none)
1963 base_os=standalone ;;
1964 *)
1965 base_os='' ;;
1966 esac
1967
1968 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1969 tail=$os
1970 ostry=$os
1971 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1972 ostry="$ostry /$o"
1973 tail=$o
1974 done
1975 o=`echo $tail | sed 's/[0-9]*$//'`
1976 if test $o != $tail; then
1977 ostry="$ostry /$o"
1978 fi
1979 # For linux-gnu, try linux-gnu, then linux.
1980 o=`echo $tail | sed 's/-.*$//'`
1981 if test $o != $tail; then
1982 ostry="$ostry /$o"
1983 fi
1984
1985 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1986 base=
1987 tail=$base_os
1988 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1989 set $b
1990 base="$base /$1"
1991 tail="$2"
1992 done
1993
1994 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1995 mach=
1996 tail=$machine
1997 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1998 set $m
1999 # Prepend the machine's FPU directory unless --without-fp.
2000 if test "$with_fp" = yes; then
2001 mach="$mach /$1/fpu"
2002 else
2003 mach="$mach /$1/nofpu"
2004 fi
2005 mach="$mach /$1"
2006 tail="$2"
2007 done
2008
2009
2010 # Find what sysdep directories exist.
2011 sysnames=
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2013 for d in $add_ons_pfx ''; do
2014 for b in $base ''; do
2015 for m0 in $mach ''; do
2016 for v in /$vendor ''; do
2017 test "$v" = / && continue
2018 for o in /$ostry ''; do
2019 test "$o" = / && continue
2020 for m in $mach ''; do
2021 for a in $add_ons_sfx ''; do
2022 if test "$m0$b$v$o$m"; then
2023 try="${d}sysdeps$m0$b$v$o$m$a"
2024 test -n "$enable_debug_configure" &&
2025 echo "$0 DEBUG: try $try" >&2
2026 if test -d $srcdir/$try; then
2027 sysnames="$sysnames $try"
2028 { test -n "$o" || test -n "$b"; } && os_used=t
2029 { test -n "$m" || test -n "$m0"; } && machine_used=t
2030 fi
2031 fi
2032 done
2033 done
2034 done
2035 done
2036 done
2037 done
2038 done
2039 IFS="$ac_save_ifs"
2040
2041 if test -z "$os_used" && test "$os" != none; then
2042 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2043 echo "$as_me: error: Operating system $os is not supported." >&2;}
2044 { (exit 1); exit 1; }; }
2045 fi
2046 if test -z "$machine_used" && test "$machine" != none; then
2047 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2048 echo "$as_me: error: The $machine is not supported." >&2;}
2049 { (exit 1); exit 1; }; }
2050 fi
2051
2052 # We have now validated the configuration.
2053
2054
2055 # If using ELF, look for an `elf' subdirectory of each machine directory.
2056 # We prepend these rather than inserting them whereever the machine appears
2057 # because things specified by the machine's ELF ABI should override
2058 # OS-specific things, and should always be the same for any OS on the
2059 # machine (otherwise what's the point of an ABI?).
2060 if test "$elf" = yes; then
2061 elf_dirs=
2062 for d in $add_ons_pfx ''; do
2063 for m in $mach; do
2064 if test -d $srcdir/${d}sysdeps$m/elf; then
2065 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2066 fi
2067 done
2068 done
2069 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2070 fi
2071
2072
2073 # Expand the list of system names into a full list of directories
2074 # from each element's parent name and Implies file (if present).
2075 set $sysnames
2076 names=
2077 while test $# -gt 0; do
2078 name=$1
2079 shift
2080
2081 case " $names " in *" $name "*)
2082 # Already in the list.
2083 continue
2084 esac
2085
2086 # Report each name as we discover it, so there is no long pause in output.
2087 echo $ECHO_N "$name $ECHO_C" >&6
2088
2089 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2090
2091 case $name in
2092 /*) xsrcdir= ;;
2093 *) xsrcdir=$srcdir/ ;;
2094 esac
2095 test -n "$enable_debug_configure" &&
2096 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2097
2098 if test -f $xsrcdir$name/Implies; then
2099 # Collect more names from the `Implies' file (removing comments).
2100 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2101 implied=
2102 for x in $implied_candidate; do
2103 found=no
2104 if test -d $xsrcdir$name_base/$x; then
2105 implied="$implied $name_base/$x";
2106 found=yes
2107 fi
2108 for d in $add_ons_pfx ''; do
2109 try="${d}sysdeps/$x"
2110 case $d in
2111 /*) try_srcdir= ;;
2112 *) try_srcdir=$srcdir/ ;;
2113 esac
2114 test -n "$enable_debug_configure" &&
2115 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2116 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2117 then
2118 implied="$implied $try"
2119 found=yes
2120 fi
2121 done
2122 if test $found = no; then
2123 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2124 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2125 fi
2126 done
2127 else
2128 implied=
2129 fi
2130
2131 # Add NAME to the list of names.
2132 names="$names $name"
2133
2134 # Find the parent of NAME, using the empty string if it has none.
2135 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2136
2137 # Add the names implied by NAME, and NAME's parent (if it has one), to
2138 # the list of names to be processed (the argument list). We prepend the
2139 # implied names to the list and append the parent. We want implied
2140 # directories to come before further directories inferred from the
2141 # configuration components; this ensures that for sysv4, unix/common
2142 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2143 # after sysv4).
2144 sysnames="`echo $implied $* $parent`"
2145 test -n "$sysnames" && set $sysnames
2146 done
2147
2148 # Add the default directories.
2149 default_sysnames=sysdeps/generic
2150 if test "$elf" = yes; then
2151 default_sysnames="sysdeps/generic/elf $default_sysnames"
2152 fi
2153 sysnames="$names $default_sysnames"
2154
2155 # The other names were emitted during the scan.
2156 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2157 echo "${ECHO_T}$default_sysnames" >&6
2158
2159
2160 ### Locate tools.
2161
2162 # Find a good install program. We prefer a C program (faster),
2163 # so one script is as good as another. But avoid the broken or
2164 # incompatible versions:
2165 # SysV /etc/install, /usr/sbin/install
2166 # SunOS /usr/etc/install
2167 # IRIX /sbin/install
2168 # AIX /bin/install
2169 # AmigaOS /C/install, which installs bootblocks on floppy discs
2170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2173 # ./install, which can be erroneously created by make from ./install.sh.
2174 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2175 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2176 if test -z "$INSTALL"; then
2177 if test "${ac_cv_path_install+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 # Account for people who put trailing slashes in PATH elements.
2186 case $as_dir/ in
2187 ./ | .// | /cC/* | \
2188 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2189 /usr/ucb/* ) ;;
2190 *)
2191 # OSF1 and SCO ODT 3.0 have their own names for install.
2192 # Don't use installbsd from OSF since it installs stuff as root
2193 # by default.
2194 for ac_prog in ginstall scoinst install; do
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2197 if test $ac_prog = install &&
2198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199 # AIX install. It has an incompatible calling convention.
2200 :
2201 elif test $ac_prog = install &&
2202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # program-specific install script used by HP pwplus--don't use.
2204 :
2205 else
2206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2207 break 3
2208 fi
2209 fi
2210 done
2211 done
2212 ;;
2213 esac
2214 done
2215
2216
2217 fi
2218 if test "${ac_cv_path_install+set}" = set; then
2219 INSTALL=$ac_cv_path_install
2220 else
2221 # As a last resort, use the slow shell script. We don't cache a
2222 # path for INSTALL within a source directory, because that will
2223 # break other packages using the cache if that directory is
2224 # removed, or if the path is relative.
2225 INSTALL=$ac_install_sh
2226 fi
2227 fi
2228 echo "$as_me:$LINENO: result: $INSTALL" >&5
2229 echo "${ECHO_T}$INSTALL" >&6
2230
2231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2232 # It thinks the first close brace ends the variable substitution.
2233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2234
2235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2236
2237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2238
2239 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2240 # The makefiles need to use a different form to find it in $srcdir.
2241 INSTALL='\$(..)./scripts/install-sh -c'
2242 fi
2243 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2244 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2245 LN_S=$as_ln_s
2246 if test "$LN_S" = "ln -s"; then
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2249 else
2250 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2251 echo "${ECHO_T}no, using $LN_S" >&6
2252 fi
2253
2254
2255 ac_ext=c
2256 ac_cpp='$CPP $CPPFLAGS'
2257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2284
2285 fi
2286 fi
2287 CC=$ac_cv_prog_CC
2288 if test -n "$CC"; then
2289 echo "$as_me:$LINENO: result: $CC" >&5
2290 echo "${ECHO_T}$CC" >&6
2291 else
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 fi
2295
2296 fi
2297 if test -z "$ac_cv_prog_CC"; then
2298 ac_ct_CC=$CC
2299 # Extract the first word of "gcc", so it can be a program name with args.
2300 set dummy gcc; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$ac_ct_CC"; then
2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_ac_ct_CC="gcc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2322
2323 fi
2324 fi
2325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326 if test -n "$ac_ct_CC"; then
2327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2328 echo "${ECHO_T}$ac_ct_CC" >&6
2329 else
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334 CC=$ac_ct_CC
2335 else
2336 CC="$ac_cv_prog_CC"
2337 fi
2338
2339 if test -z "$CC"; then
2340 if test -n "$ac_tool_prefix"; then
2341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}cc; ac_word=$2
2343 echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358 ac_cv_prog_CC="${ac_tool_prefix}cc"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2361 fi
2362 done
2363 done
2364
2365 fi
2366 fi
2367 CC=$ac_cv_prog_CC
2368 if test -n "$CC"; then
2369 echo "$as_me:$LINENO: result: $CC" >&5
2370 echo "${ECHO_T}$CC" >&6
2371 else
2372 echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6
2374 fi
2375
2376 fi
2377 if test -z "$ac_cv_prog_CC"; then
2378 ac_ct_CC=$CC
2379 # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 ac_cv_prog_ac_ct_CC="cc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 break 2
2399 fi
2400 done
2401 done
2402
2403 fi
2404 fi
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6
2409 else
2410 echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2412 fi
2413
2414 CC=$ac_ct_CC
2415 else
2416 CC="$ac_cv_prog_CC"
2417 fi
2418
2419 fi
2420 if test -z "$CC"; then
2421 # Extract the first word of "cc", so it can be a program name with args.
2422 set dummy cc; ac_word=$2
2423 echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 else
2431 ac_prog_rejected=no
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2440 ac_prog_rejected=yes
2441 continue
2442 fi
2443 ac_cv_prog_CC="cc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449
2450 if test $ac_prog_rejected = yes; then
2451 # We found a bogon in the path, so make sure we never use it.
2452 set dummy $ac_cv_prog_CC
2453 shift
2454 if test $# != 0; then
2455 # We chose a different compiler from the bogus one.
2456 # However, it has the same basename, so the bogon will be chosen
2457 # first if we set CC to just the basename; use the full file name.
2458 shift
2459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2460 fi
2461 fi
2462 fi
2463 fi
2464 CC=$ac_cv_prog_CC
2465 if test -n "$CC"; then
2466 echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473 fi
2474 if test -z "$CC"; then
2475 if test -n "$ac_tool_prefix"; then
2476 for ac_prog in cl
2477 do
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513 test -n "$CC" && break
2514 done
2515 fi
2516 if test -z "$CC"; then
2517 ac_ct_CC=$CC
2518 for ac_prog in cl
2519 do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555 test -n "$ac_ct_CC" && break
2556 done
2557
2558 CC=$ac_ct_CC
2559 fi
2560
2561 fi
2562
2563
2564 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }
2569
2570 # Provide some information about the compiler.
2571 echo "$as_me:$LINENO:" \
2572 "checking for C compiler version" >&5
2573 ac_compiler=`set X $ac_compile; echo $2`
2574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2575 (eval $ac_compiler --version </dev/null >&5) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2580 (eval $ac_compiler -v </dev/null >&5) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2585 (eval $ac_compiler -V </dev/null >&5) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589
2590 EXEEXT=
2591 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2592 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2593 if test "${ac_cv_objext+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 #line $LINENO "configure"
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2603
2604 int
2605 main ()
2606 {
2607
2608 ;
2609 return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.o conftest.obj
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2622 break;;
2623 esac
2624 done
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2634 fi
2635
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6
2640 OBJEXT=$ac_cv_objext
2641 ac_objext=$OBJEXT
2642 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654
2655 int
2656 main ()
2657 {
2658 #ifndef __GNUC__
2659 choke me
2660 #endif
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_compiler_gnu=yes
2679 else
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_compiler_gnu=no
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2687
2688 fi
2689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2691 GCC=`test $ac_compiler_gnu = yes && echo yes`
2692 ac_test_CFLAGS=${CFLAGS+set}
2693 ac_save_CFLAGS=$CFLAGS
2694 CFLAGS="-g"
2695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2697 if test "${ac_cv_prog_cc_g+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 cat >conftest.$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707
2708 int
2709 main ()
2710 {
2711
2712 ;
2713 return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_prog_cc_g=yes
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_cv_prog_cc_g=no
2734 fi
2735 rm -f conftest.$ac_objext conftest.$ac_ext
2736 fi
2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2739 if test "$ac_test_CFLAGS" = set; then
2740 CFLAGS=$ac_save_CFLAGS
2741 elif test $ac_cv_prog_cc_g = yes; then
2742 if test "$GCC" = yes; then
2743 CFLAGS="-g -O2"
2744 else
2745 CFLAGS="-g"
2746 fi
2747 else
2748 if test "$GCC" = yes; then
2749 CFLAGS="-O2"
2750 else
2751 CFLAGS=
2752 fi
2753 fi
2754 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2755 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2756 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 ac_cv_prog_cc_stdc=no
2760 ac_save_CC=$CC
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768 #include <stdarg.h>
2769 #include <stdio.h>
2770 #include <sys/types.h>
2771 #include <sys/stat.h>
2772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2773 struct buf { int x; };
2774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2775 static char *e (p, i)
2776 char **p;
2777 int i;
2778 {
2779 return p[i];
2780 }
2781 static char *f (char * (*g) (char **, int), char **p, ...)
2782 {
2783 char *s;
2784 va_list v;
2785 va_start (v,p);
2786 s = g (p, va_arg (v,int));
2787 va_end (v);
2788 return s;
2789 }
2790 int test (int i, double x);
2791 struct s1 {int (*f) (int a);};
2792 struct s2 {int (*f) (double a);};
2793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2794 int argc;
2795 char **argv;
2796 int
2797 main ()
2798 {
2799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 # Don't try gcc -ansi; that turns off useful extensions and
2805 # breaks some systems' header files.
2806 # AIX -qlanglvl=ansi
2807 # Ultrix and OSF/1 -std1
2808 # HP-UX 10.20 and later -Ae
2809 # HP-UX older versions -Aa -D_HPUX_SOURCE
2810 # SVR4 -Xc -D__EXTENSIONS__
2811 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 do
2813 CC="$ac_save_CC $ac_arg"
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 ac_cv_prog_cc_stdc=$ac_arg
2827 break
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 fi
2833 rm -f conftest.$ac_objext
2834 done
2835 rm -f conftest.$ac_ext conftest.$ac_objext
2836 CC=$ac_save_CC
2837
2838 fi
2839
2840 case "x$ac_cv_prog_cc_stdc" in
2841 x|xno)
2842 echo "$as_me:$LINENO: result: none needed" >&5
2843 echo "${ECHO_T}none needed" >&6 ;;
2844 *)
2845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2847 CC="$CC $ac_cv_prog_cc_stdc" ;;
2848 esac
2849
2850 # Some people use a C++ compiler to compile C. Since we use `exit',
2851 # in C++ we need to declare it. In case someone uses the same compiler
2852 # for both compiling C and C++ we need to have the C++ compiler decide
2853 # the declaration of exit, since it's the most demanding environment.
2854 cat >conftest.$ac_ext <<_ACEOF
2855 #ifndef __cplusplus
2856 choke me
2857 #endif
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 for ac_declaration in \
2872 ''\
2873 '#include <stdlib.h>' \
2874 'extern "C" void std::exit (int) throw (); using std::exit;' \
2875 'extern "C" void std::exit (int); using std::exit;' \
2876 'extern "C" void exit (int) throw ();' \
2877 'extern "C" void exit (int);' \
2878 'void exit (int);'
2879 do
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 #include <stdlib.h>
2888 $ac_declaration
2889 int
2890 main ()
2891 {
2892 exit (42);
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 :
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 continue
2915 fi
2916 rm -f conftest.$ac_objext conftest.$ac_ext
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #line $LINENO "configure"
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2924 $ac_declaration
2925 int
2926 main ()
2927 {
2928 exit (42);
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 break
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 fi
2951 rm -f conftest.$ac_objext conftest.$ac_ext
2952 done
2953 rm -f conftest*
2954 if test -n "$ac_declaration"; then
2955 echo '#ifdef __cplusplus' >>confdefs.h
2956 echo $ac_declaration >>confdefs.h
2957 echo '#endif' >>confdefs.h
2958 fi
2959
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 fi
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971
2972 if test $host != $build; then
2973 for ac_prog in gcc cc
2974 do
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -n "$BUILD_CC"; then
2983 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_BUILD_CC="$ac_prog"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998
2999 fi
3000 fi
3001 BUILD_CC=$ac_cv_prog_BUILD_CC
3002 if test -n "$BUILD_CC"; then
3003 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3004 echo "${ECHO_T}$BUILD_CC" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 fi
3009
3010 test -n "$BUILD_CC" && break
3011 done
3012
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3021 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3022 # On Suns, sometimes $CPP names a directory.
3023 if test -n "$CPP" && test -d "$CPP"; then
3024 CPP=
3025 fi
3026 if test -z "$CPP"; then
3027 if test "${ac_cv_prog_CPP+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 # Double quotes because CPP needs to be expanded
3031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3032 do
3033 ac_preproc_ok=false
3034 for ac_c_preproc_warn_flag in '' yes
3035 do
3036 # Use a header file that comes with gcc, so configuring glibc
3037 # with a fresh cross-compiler works.
3038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039 # <limits.h> exists even on freestanding compilers.
3040 # On the NeXT, cc -E runs the code through the compiler's parser,
3041 # not just through cpp. "Syntax error" is here to catch this case.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054 Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 else
3067 ac_cpp_err=
3068 fi
3069 else
3070 ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073 :
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 # Broken: fails on valid input.
3079 continue
3080 fi
3081 rm -f conftest.err conftest.$ac_ext
3082
3083 # OK, works on sane cases. Now check whether non-existent headers
3084 # can be detected and how.
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 else
3105 ac_cpp_err=
3106 fi
3107 else
3108 ac_cpp_err=yes
3109 fi
3110 if test -z "$ac_cpp_err"; then
3111 # Broken: success on invalid input.
3112 continue
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 # Passes both tests.
3118 ac_preproc_ok=:
3119 break
3120 fi
3121 rm -f conftest.err conftest.$ac_ext
3122
3123 done
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then
3127 break
3128 fi
3129
3130 done
3131 ac_cv_prog_CPP=$CPP
3132
3133 fi
3134 CPP=$ac_cv_prog_CPP
3135 else
3136 ac_cv_prog_CPP=$CPP
3137 fi
3138 echo "$as_me:$LINENO: result: $CPP" >&5
3139 echo "${ECHO_T}$CPP" >&6
3140 ac_preproc_ok=false
3141 for ac_c_preproc_warn_flag in '' yes
3142 do
3143 # Use a header file that comes with gcc, so configuring glibc
3144 # with a fresh cross-compiler works.
3145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3146 # <limits.h> exists even on freestanding compilers.
3147 # On the NeXT, cc -E runs the code through the compiler's parser,
3148 # not just through cpp. "Syntax error" is here to catch this case.
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #ifdef __STDC__
3157 # include <limits.h>
3158 #else
3159 # include <assert.h>
3160 #endif
3161 Syntax error
3162 _ACEOF
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
3173 else
3174 ac_cpp_err=
3175 fi
3176 else
3177 ac_cpp_err=yes
3178 fi
3179 if test -z "$ac_cpp_err"; then
3180 :
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 # Broken: fails on valid input.
3186 continue
3187 fi
3188 rm -f conftest.err conftest.$ac_ext
3189
3190 # OK, works on sane cases. Now check whether non-existent headers
3191 # can be detected and how.
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <ac_nonexistent.h>
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 else
3212 ac_cpp_err=
3213 fi
3214 else
3215 ac_cpp_err=yes
3216 fi
3217 if test -z "$ac_cpp_err"; then
3218 # Broken: success on invalid input.
3219 continue
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 # Passes both tests.
3225 ac_preproc_ok=:
3226 break
3227 fi
3228 rm -f conftest.err conftest.$ac_ext
3229
3230 done
3231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3232 rm -f conftest.err conftest.$ac_ext
3233 if $ac_preproc_ok; then
3234 :
3235 else
3236 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 # We need the C++ compiler only for testing.
3250 ac_ext=cc
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3257 do
3258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_prog_CXX+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 if test -n "$CXX"; then
3266 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281
3282 fi
3283 fi
3284 CXX=$ac_cv_prog_CXX
3285 if test -n "$CXX"; then
3286 echo "$as_me:$LINENO: result: $CXX" >&5
3287 echo "${ECHO_T}$CXX" >&6
3288 else
3289 echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 fi
3292
3293 test -n "$CXX" && break
3294 done
3295 fi
3296 if test -z "$CXX"; then
3297 ac_ct_CXX=$CXX
3298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3299 do
3300 # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if test -n "$ac_ct_CXX"; then
3308 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_ac_ct_CXX="$ac_prog"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323
3324 fi
3325 fi
3326 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3327 if test -n "$ac_ct_CXX"; then
3328 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3329 echo "${ECHO_T}$ac_ct_CXX" >&6
3330 else
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335 test -n "$ac_ct_CXX" && break
3336 done
3337 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3338
3339 CXX=$ac_ct_CXX
3340 fi
3341
3342
3343 # Provide some information about the compiler.
3344 echo "$as_me:$LINENO:" \
3345 "checking for C++ compiler version" >&5
3346 ac_compiler=`set X $ac_compile; echo $2`
3347 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3348 (eval $ac_compiler --version </dev/null >&5) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3353 (eval $ac_compiler -v </dev/null >&5) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3358 (eval $ac_compiler -V </dev/null >&5) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362
3363 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3364 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3365 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379 #ifndef __GNUC__
3380 choke me
3381 #endif
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 ac_compiler_gnu=yes
3400 else
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 ac_compiler_gnu=no
3405 fi
3406 rm -f conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3408
3409 fi
3410 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3411 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3412 GXX=`test $ac_compiler_gnu = yes && echo yes`
3413 ac_test_CXXFLAGS=${CXXFLAGS+set}
3414 ac_save_CXXFLAGS=$CXXFLAGS
3415 CXXFLAGS="-g"
3416 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3417 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3418 if test "${ac_cv_prog_cxx_g+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428
3429 int
3430 main ()
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 ac_cv_prog_cxx_g=yes
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 ac_cv_prog_cxx_g=no
3455 fi
3456 rm -f conftest.$ac_objext conftest.$ac_ext
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3460 if test "$ac_test_CXXFLAGS" = set; then
3461 CXXFLAGS=$ac_save_CXXFLAGS
3462 elif test $ac_cv_prog_cxx_g = yes; then
3463 if test "$GXX" = yes; then
3464 CXXFLAGS="-g -O2"
3465 else
3466 CXXFLAGS="-g"
3467 fi
3468 else
3469 if test "$GXX" = yes; then
3470 CXXFLAGS="-O2"
3471 else
3472 CXXFLAGS=
3473 fi
3474 fi
3475 for ac_declaration in \
3476 ''\
3477 '#include <stdlib.h>' \
3478 'extern "C" void std::exit (int) throw (); using std::exit;' \
3479 'extern "C" void std::exit (int); using std::exit;' \
3480 'extern "C" void exit (int) throw ();' \
3481 'extern "C" void exit (int);' \
3482 'void exit (int);'
3483 do
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line $LINENO "configure"
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <stdlib.h>
3492 $ac_declaration
3493 int
3494 main ()
3495 {
3496 exit (42);
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 :
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 continue
3519 fi
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_declaration
3529 int
3530 main ()
3531 {
3532 exit (42);
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 break
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 fi
3555 rm -f conftest.$ac_objext conftest.$ac_ext
3556 done
3557 rm -f conftest*
3558 if test -n "$ac_declaration"; then
3559 echo '#ifdef __cplusplus' >>confdefs.h
3560 echo $ac_declaration >>confdefs.h
3561 echo '#endif' >>confdefs.h
3562 fi
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570 # Was a --with-binutils option given?
3571 if test -n "$path_binutils"; then
3572 # Make absolute; ensure a single trailing slash.
3573 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3574 CC="$CC -B$path_binutils"
3575 fi
3576 AS=`$CC -print-prog-name=as`
3577 LD=`$CC -print-prog-name=ld`
3578 AR=`$CC -print-prog-name=ar`
3579
3580 OBJDUMP=`$CC -print-prog-name=objdump`
3581
3582
3583 # ranlib has to be treated a bit differently since it might not exist at all.
3584 ac_ranlib=`$CC -print-prog-name=ranlib`
3585 if test "x$ac_ranlib" = xranlib; then
3586 # This extra check has to happen since gcc simply echos the parameter in
3587 # case it cannot find the value in its own directories.
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_prog_RANLIB+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -n "$RANLIB"; then
3597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610 done
3611 done
3612
3613 fi
3614 fi
3615 RANLIB=$ac_cv_prog_RANLIB
3616 if test -n "$RANLIB"; then
3617 echo "$as_me:$LINENO: result: $RANLIB" >&5
3618 echo "${ECHO_T}$RANLIB" >&6
3619 else
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 fi
3623
3624 fi
3625 if test -z "$ac_cv_prog_RANLIB"; then
3626 ac_ct_RANLIB=$RANLIB
3627 # Extract the first word of "ranlib", so it can be a program name with args.
3628 set dummy ranlib; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 if test -n "$ac_ct_RANLIB"; then
3635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_RANLIB="ranlib"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650
3651 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3652 fi
3653 fi
3654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3655 if test -n "$ac_ct_RANLIB"; then
3656 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3657 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3658 else
3659 echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3661 fi
3662
3663 RANLIB=$ac_ct_RANLIB
3664 else
3665 RANLIB="$ac_cv_prog_RANLIB"
3666 fi
3667
3668 else
3669 RANLIB=$ac_ranlib
3670 fi
3671
3672
3673 # Determine whether we are using GNU binutils.
3674 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3675 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3676 if test "${libc_cv_prog_as_gnu+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 # Most GNU programs take a -v and spit out some text including
3680 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3681 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3682 libc_cv_prog_as_gnu=yes
3683 else
3684 libc_cv_prog_as_gnu=no
3685 fi
3686 rm -fr contest*
3687 fi
3688 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3689 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3690 rm -f a.out
3691 gnu_as=$libc_cv_prog_as_gnu
3692
3693 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3694 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3695 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 # Most GNU programs take a -v and spit out some text including
3699 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3700 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3701 libc_cv_prog_ld_gnu=yes
3702 else
3703 libc_cv_prog_ld_gnu=no
3704 fi
3705 rm -fr contest*
3706 fi
3707 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3708 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3709 gnu_ld=$libc_cv_prog_ld_gnu
3710
3711
3712 # Accept binutils 2.13 or newer.
3713 for ac_prog in $AS
3714 do
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_AS+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$AS"; then
3723 ac_cv_prog_AS="$AS" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_AS="$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738
3739 fi
3740 fi
3741 AS=$ac_cv_prog_AS
3742 if test -n "$AS"; then
3743 echo "$as_me:$LINENO: result: $AS" >&5
3744 echo "${ECHO_T}$AS" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750 test -n "$AS" && break
3751 done
3752
3753 if test -z "$AS"; then
3754 ac_verc_fail=yes
3755 else
3756 # Found it, now check the version.
3757 echo "$as_me:$LINENO: checking version of $AS" >&5
3758 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3759 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3760 case $ac_prog_version in
3761 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3762 2.1[3-9]*)
3763 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3764 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3765
3766 esac
3767 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3768 echo "${ECHO_T}$ac_prog_version" >&6
3769 fi
3770 if test $ac_verc_fail = yes; then
3771 AS=: critic_missing="$critic_missing as"
3772 fi
3773
3774 for ac_prog in $LD
3775 do
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_LD+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if test -n "$LD"; then
3784 ac_cv_prog_LD="$LD" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_LD="$ac_prog"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799
3800 fi
3801 fi
3802 LD=$ac_cv_prog_LD
3803 if test -n "$LD"; then
3804 echo "$as_me:$LINENO: result: $LD" >&5
3805 echo "${ECHO_T}$LD" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3809 fi
3810
3811 test -n "$LD" && break
3812 done
3813
3814 if test -z "$LD"; then
3815 ac_verc_fail=yes
3816 else
3817 # Found it, now check the version.
3818 echo "$as_me:$LINENO: checking version of $LD" >&5
3819 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3820 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3821 case $ac_prog_version in
3822 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3823 2.1[3-9]*)
3824 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3825 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3826
3827 esac
3828 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3829 echo "${ECHO_T}$ac_prog_version" >&6
3830 fi
3831 if test $ac_verc_fail = yes; then
3832 LD=: critic_missing="$critic_missing ld"
3833 fi
3834
3835
3836 # We need the physical current working directory. We cannot use the
3837 # "pwd -P" shell builtin since that's not portable. Instead we try to
3838 # find a pwd binary. Note that assigning to the PWD environment
3839 # variable might have some interesting side effects, so we don't do
3840 # that.
3841 # Extract the first word of "pwd", so it can be a program name with args.
3842 set dummy pwd; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_PWD_P+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 case $PWD_P in
3849 [\\/]* | ?:[\\/]*)
3850 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3851 ;;
3852 *)
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864 done
3865 done
3866
3867 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3868 ;;
3869 esac
3870 fi
3871 PWD_P=$ac_cv_path_PWD_P
3872
3873 if test -n "$PWD_P"; then
3874 echo "$as_me:$LINENO: result: $PWD_P" >&5
3875 echo "${ECHO_T}$PWD_P" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881 if test "$PWD_P" = no; then
3882 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3883 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3884 { (exit 1); exit 1; }; }
3885 fi
3886
3887 # These programs are version sensitive.
3888
3889 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3890 do
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_CC+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_CC="$ac_prog"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 echo "$as_me:$LINENO: result: $CC" >&5
3920 echo "${ECHO_T}$CC" >&6
3921 else
3922 echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3924 fi
3925
3926 test -n "$CC" && break
3927 done
3928
3929 if test -z "$CC"; then
3930 ac_verc_fail=yes
3931 else
3932 # Found it, now check the version.
3933 echo "$as_me:$LINENO: checking version of $CC" >&5
3934 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3935 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3936 case $ac_prog_version in
3937 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3938 3.[2-9]*)
3939 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3940 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3941
3942 esac
3943 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3944 echo "${ECHO_T}$ac_prog_version" >&6
3945 fi
3946 if test $ac_verc_fail = yes; then
3947 critic_missing="$critic_missing gcc"
3948 fi
3949
3950 for ac_prog in gnumake gmake make
3951 do
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 echo "$as_me:$LINENO: checking for $ac_word" >&5
3955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956 if test "${ac_cv_prog_MAKE+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959 if test -n "$MAKE"; then
3960 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_MAKE="$ac_prog"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975
3976 fi
3977 fi
3978 MAKE=$ac_cv_prog_MAKE
3979 if test -n "$MAKE"; then
3980 echo "$as_me:$LINENO: result: $MAKE" >&5
3981 echo "${ECHO_T}$MAKE" >&6
3982 else
3983 echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3985 fi
3986
3987 test -n "$MAKE" && break
3988 done
3989
3990 if test -z "$MAKE"; then
3991 ac_verc_fail=yes
3992 else
3993 # Found it, now check the version.
3994 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3995 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3996 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3997 case $ac_prog_version in
3998 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3999 3.79* | 3.[89]*)
4000 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4001 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4002
4003 esac
4004 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4005 echo "${ECHO_T}$ac_prog_version" >&6
4006 fi
4007 if test $ac_verc_fail = yes; then
4008 critic_missing="$critic_missing make"
4009 fi
4010
4011
4012 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4013 do
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy $ac_prog; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$MSGFMT"; then
4022 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_MSGFMT="$ac_prog"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037
4038 fi
4039 fi
4040 MSGFMT=$ac_cv_prog_MSGFMT
4041 if test -n "$MSGFMT"; then
4042 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4043 echo "${ECHO_T}$MSGFMT" >&6
4044 else
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049 test -n "$MSGFMT" && break
4050 done
4051
4052 if test -z "$MSGFMT"; then
4053 ac_verc_fail=yes
4054 else
4055 # Found it, now check the version.
4056 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4057 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
4058 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4059 case $ac_prog_version in
4060 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4061 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4062 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4063 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4064
4065 esac
4066 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4067 echo "${ECHO_T}$ac_prog_version" >&6
4068 fi
4069 if test $ac_verc_fail = yes; then
4070 MSGFMT=: aux_missing="$aux_missing msgfmt"
4071 fi
4072
4073 for ac_prog in makeinfo
4074 do
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$MAKEINFO"; then
4083 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_MAKEINFO="$ac_prog"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 MAKEINFO=$ac_cv_prog_MAKEINFO
4102 if test -n "$MAKEINFO"; then
4103 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4104 echo "${ECHO_T}$MAKEINFO" >&6
4105 else
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110 test -n "$MAKEINFO" && break
4111 done
4112
4113 if test -z "$MAKEINFO"; then
4114 ac_verc_fail=yes
4115 else
4116 # Found it, now check the version.
4117 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4118 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
4119 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4120 case $ac_prog_version in
4121 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4122 4.*)
4123 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4124 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4125
4126 esac
4127 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4128 echo "${ECHO_T}$ac_prog_version" >&6
4129 fi
4130 if test $ac_verc_fail = yes; then
4131 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4132 fi
4133
4134 for ac_prog in sed
4135 do
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_SED+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 if test -n "$SED"; then
4144 ac_cv_prog_SED="$SED" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_SED="$ac_prog"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159
4160 fi
4161 fi
4162 SED=$ac_cv_prog_SED
4163 if test -n "$SED"; then
4164 echo "$as_me:$LINENO: result: $SED" >&5
4165 echo "${ECHO_T}$SED" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4169 fi
4170
4171 test -n "$SED" && break
4172 done
4173
4174 if test -z "$SED"; then
4175 ac_verc_fail=yes
4176 else
4177 # Found it, now check the version.
4178 echo "$as_me:$LINENO: checking version of $SED" >&5
4179 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
4180 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4181 case $ac_prog_version in
4182 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4183 3.0[2-9]*|3.[1-9]*|[4-9]*)
4184 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4185 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4186
4187 esac
4188 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4189 echo "${ECHO_T}$ac_prog_version" >&6
4190 fi
4191 if test $ac_verc_fail = yes; then
4192 SED=: aux_missing="$aux_missing sed"
4193 fi
4194
4195
4196 for ac_prog in autoconf
4197 do
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$AUTOCONF"; then
4206 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_AUTOCONF="$ac_prog"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221
4222 fi
4223 fi
4224 AUTOCONF=$ac_cv_prog_AUTOCONF
4225 if test -n "$AUTOCONF"; then
4226 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4227 echo "${ECHO_T}$AUTOCONF" >&6
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233 test -n "$AUTOCONF" && break
4234 done
4235 test -n "$AUTOCONF" || AUTOCONF="no"
4236
4237 case "x$AUTOCONF" in
4238 xno|x|x:) AUTOCONF=no ;;
4239 *)
4240 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4241 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
4242 if test "${libc_cv_autoconf_works+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
4246 libc_cv_autoconf_works=yes
4247 else
4248 libc_cv_autoconf_works=no
4249 fi
4250 fi
4251 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
4252 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
4253 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4254 ;;
4255 esac
4256 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
4257 # If --without-cvs they probably won't change configure.in, so no complaints.
4258 aux_missing="$aux_missing autoconf"
4259 fi
4260
4261 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
4262 *** These critical programs are missing or too old:$critic_missing
4263 *** Check the INSTALL file for required versions." >&5
4264 echo "$as_me: error:
4265 *** These critical programs are missing or too old:$critic_missing
4266 *** Check the INSTALL file for required versions." >&2;}
4267 { (exit 1); exit 1; }; }
4268
4269 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
4270 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4271 *** some features will be disabled.
4272 *** Check the INSTALL file for required versions." >&5
4273 echo "$as_me: WARNING:
4274 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4275 *** some features will be disabled.
4276 *** Check the INSTALL file for required versions." >&2;}
4277
4278 # if using special system headers, find out the compiler's sekrit
4279 # header directory and add that to the list. NOTE: Only does the right
4280 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
4281 if test -n "$sysheaders"; then
4282 ccheaders=`$CC -print-file-name=include`
4283 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
4284 fi
4285
4286
4287 # check if ranlib is necessary
4288 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
4289 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
4290 if test "${libc_cv_ranlib_necessary+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 cat > conftest.c <<EOF
4294 int a;
4295 char b;
4296 void c(void) {}
4297 EOF
4298 $CC $CFLAGS $CPPFLAGS -c conftest.c
4299 $AR cr conftest.a conftest.o
4300 cp conftest.a conftest2.a
4301 $RANLIB conftest.a
4302 if cmp -s conftest.a conftest2.a; then
4303 libc_cv_ranlib_necessary=no
4304 else
4305 libc_cv_ranlib_necessary=yes
4306 fi
4307 rm -rf conftest*
4308 fi
4309 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
4310 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
4311 if test "$libc_cv_ranlib_necessary" = no; then
4312 RANLIB=:
4313 fi
4314
4315 # Test if LD_LIBRARY_PATH contains the notation for the current directory
4316 # since this would lead to problems installing/building glibc.
4317 # LD_LIBRARY_PATH contains the current directory if one of the following
4318 # is true:
4319 # - one of the terminals (":" and ";") is the first or last sign
4320 # - two terminals occur directly after each other
4321 # - the path contains an element with a dot in it
4322 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
4323 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
4324 case ${LD_LIBRARY_PATH} in
4325 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
4326 ld_library_path_setting="contains current directory"
4327 ;;
4328 *)
4329 ld_library_path_setting="ok"
4330 ;;
4331 esac
4332 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
4333 echo "${ECHO_T}$ld_library_path_setting" >&6
4334 if test "$ld_library_path_setting" != "ok"; then
4335 { { echo "$as_me:$LINENO: error:
4336 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4337 *** building glibc. Please change the environment variable
4338 *** and run configure again." >&5
4339 echo "$as_me: error:
4340 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4341 *** building glibc. Please change the environment variable
4342 *** and run configure again." >&2;}
4343 { (exit 1); exit 1; }; }
4344 fi
4345
4346 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
4347 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
4348 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
4352 libc_cv_gcc_static_libgcc=
4353 else
4354 libc_cv_gcc_static_libgcc=-static-libgcc
4355 fi
4356 fi
4357 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
4358 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
4359
4360
4361 # Extract the first word of "bash", so it can be a program name with args.
4362 set dummy bash; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_path_BASH+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 case $BASH in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386
4387 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4388 ;;
4389 esac
4390 fi
4391 BASH=$ac_cv_path_BASH
4392
4393 if test -n "$BASH"; then
4394 echo "$as_me:$LINENO: result: $BASH" >&5
4395 echo "${ECHO_T}$BASH" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4399 fi
4400
4401 if test "$BASH" != no &&
4402 $BASH -c 'test "$BASH_VERSINFO" \
4403 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4404 libc_cv_have_bash2=yes
4405 else
4406 libc_cv_have_bash2=no
4407 fi
4408
4409
4410 if test "$BASH" = no; then
4411 # Extract the first word of "ksh", so it can be a program name with args.
4412 set dummy ksh; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_path_KSH+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 case $KSH in
4419 [\\/]* | ?:[\\/]*)
4420 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4421 ;;
4422 *)
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436
4437 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4438 ;;
4439 esac
4440 fi
4441 KSH=$ac_cv_path_KSH
4442
4443 if test -n "$KSH"; then
4444 echo "$as_me:$LINENO: result: $KSH" >&5
4445 echo "${ECHO_T}$KSH" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449 fi
4450
4451 if test "$KSH" = no; then
4452 libc_cv_have_ksh=no
4453 else
4454 libc_cv_have_ksh=yes
4455 fi
4456 else
4457 KSH="$BASH"
4458
4459 libc_cv_have_ksh=yes
4460 fi
4461
4462
4463 for ac_prog in gawk mawk nawk awk
4464 do
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_AWK+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$AWK"; then
4473 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_AWK="$ac_prog"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488
4489 fi
4490 fi
4491 AWK=$ac_cv_prog_AWK
4492 if test -n "$AWK"; then
4493 echo "$as_me:$LINENO: result: $AWK" >&5
4494 echo "${ECHO_T}$AWK" >&6
4495 else
4496 echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4498 fi
4499
4500 test -n "$AWK" && break
4501 done
4502
4503 # Extract the first word of "perl", so it can be a program name with args.
4504 set dummy perl; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_path_PERL+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 case $PERL in
4511 [\\/]* | ?:[\\/]*)
4512 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4513 ;;
4514 *)
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526 done
4527 done
4528
4529 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4530 ;;
4531 esac
4532 fi
4533 PERL=$ac_cv_path_PERL
4534
4535 if test -n "$PERL"; then
4536 echo "$as_me:$LINENO: result: $PERL" >&5
4537 echo "${ECHO_T}$PERL" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542
4543 if test "$PERL" != no &&
4544 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4545 PERL=no
4546 fi
4547 # Extract the first word of "install-info", so it can be a program name with args.
4548 set dummy install-info; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 case $INSTALL_INFO in
4555 [\\/]* | ?:[\\/]*)
4556 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4557 ;;
4558 *)
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4561 for as_dir in $as_dummy
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573
4574 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4575 ;;
4576 esac
4577 fi
4578 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4579
4580 if test -n "$INSTALL_INFO"; then
4581 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4582 echo "${ECHO_T}$INSTALL_INFO" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588 # Extract the first word of "bison", so it can be a program name with args.
4589 set dummy bison; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_path_BISON+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 case $BISON in
4596 [\\/]* | ?:[\\/]*)
4597 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4598 ;;
4599 *)
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4602 for as_dir in $as_dummy
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614
4615 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4616 ;;
4617 esac
4618 fi
4619 BISON=$ac_cv_path_BISON
4620
4621 if test -n "$BISON"; then
4622 echo "$as_me:$LINENO: result: $BISON" >&5
4623 echo "${ECHO_T}$BISON" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629
4630 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4631 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4632 if test "${libc_cv_signed_size_t+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 echo '#include <stddef.h>
4636 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4637 if eval "$ac_cpp conftest.c 2>/dev/null" \
4638 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4639 libc_cv_signed_size_t=no
4640 else
4641 libc_cv_signed_size_t=yes
4642 fi
4643 rm -f conftest*
4644 fi
4645 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4646 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4647 if test $libc_cv_signed_size_t = yes; then
4648 cat >> confdefs.h <<\EOF
4649 #undef __SIZE_TYPE__
4650 #define __SIZE_TYPE__ unsigned
4651 EOF
4652 fi
4653
4654
4655 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4656 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4657 if test "${libc_cv_friendly_stddef+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #define __need_size_t
4668 #define __need_wchar_t
4669 #include <stddef.h>
4670 #define __need_NULL
4671 #include <stddef.h>
4672 int
4673 main ()
4674 {
4675 size_t size; wchar_t wchar;
4676 #ifdef offsetof
4677 #error stddef.h ignored __need_*
4678 #endif
4679 if (&size == NULL || &wchar == NULL) abort ();
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 libc_cv_friendly_stddef=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 libc_cv_friendly_stddef=no
4702 fi
4703 rm -f conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4706 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4707 if test $libc_cv_friendly_stddef = yes; then
4708 config_vars="$config_vars
4709 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4710 fi
4711
4712 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4713 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4714 if test "${libc_cv_need_minus_P+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 cat > conftest.S <<EOF
4718 #include "confdefs.h"
4719 /* Nothing whatsoever. */
4720 EOF
4721 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 libc_cv_need_minus_P=no
4728 else
4729 libc_cv_need_minus_P=yes
4730 fi
4731 rm -f conftest*
4732 fi
4733 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4734 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4735 if test $libc_cv_need_minus_P = yes; then
4736 config_vars="$config_vars
4737 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4738 fi
4739
4740 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4741 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4742 if test "${libc_cv_dot_text+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 cat > conftest.s <<EOF
4746 .text
4747 EOF
4748 libc_cv_dot_text=
4749 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 libc_cv_dot_text=.text
4756 fi
4757 rm -f conftest*
4758 fi
4759
4760 if test -z "$libc_cv_dot_text"; then
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763 else
4764 echo "$as_me:$LINENO: result: yes" >&5
4765 echo "${ECHO_T}yes" >&6
4766 fi
4767
4768 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4769 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4770 if test "${libc_cv_asm_global_directive+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 libc_cv_asm_global_directive=UNKNOWN
4774 for ac_globl in .globl .global .EXPORT; do
4775 cat > conftest.s <<EOF
4776 ${libc_cv_dot_text}
4777 ${ac_globl} foo
4778 foo:
4779 EOF
4780 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 libc_cv_asm_global_directive=${ac_globl}
4787 fi
4788 rm -f conftest*
4789 test $libc_cv_asm_global_directive != UNKNOWN && break
4790 done
4791 fi
4792 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4793 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4794 if test $libc_cv_asm_global_directive = UNKNOWN; then
4795 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4796 echo "$as_me: error: cannot determine asm global directive" >&2;}
4797 { (exit 1); exit 1; }; }
4798 else
4799 cat >>confdefs.h <<_ACEOF
4800 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4801 _ACEOF
4802
4803 fi
4804
4805 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4806 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4807 if test "${libc_cv_asm_set_directive+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat > conftest.s <<EOF
4811 ${libc_cv_dot_text}
4812 foo:
4813 .set glibc_conftest_frobozz,foo
4814 $libc_cv_asm_global_directive glibc_conftest_frobozz
4815 EOF
4816 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4817 # (but it doesn't work), so we must do a linking check to be sure.
4818 cat > conftest1.c <<\EOF
4819 extern int glibc_conftest_frobozz;
4820 void _start() { glibc_conftest_frobozz = 1; }
4821 EOF
4822 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4823 -nostartfiles -nostdlib \
4824 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4825 libc_cv_asm_set_directive=yes
4826 else
4827 libc_cv_asm_set_directive=no
4828 fi
4829 rm -f conftest*
4830 fi
4831 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4832 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4833 if test $libc_cv_asm_set_directive = yes; then
4834 cat >>confdefs.h <<\_ACEOF
4835 #define HAVE_ASM_SET_DIRECTIVE 1
4836 _ACEOF
4837
4838 fi
4839
4840 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4841 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4842 if test "${libc_cv_asm_type_prefix+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 libc_cv_asm_type_prefix=no
4846 for ac_try_prefix in '@' '%' '#'; do
4847 cat > conftest.s <<EOF
4848 ${libc_cv_dot_text}
4849 ${libc_cv_asm_global_directive} foo
4850 .type foo, ${ac_try_prefix}object
4851 .size foo, 1
4852 foo:
4853 .byte 1
4854 EOF
4855 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 libc_cv_asm_type_prefix=${ac_try_prefix}
4862 fi
4863 rm -f conftest*
4864 test "x$libc_cv_asm_type_prefix" != xno && break
4865 done
4866 fi
4867 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4868 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4869 if test "x$libc_cv_asm_type_prefix" != xno; then
4870 cat >>confdefs.h <<_ACEOF
4871 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4872 _ACEOF
4873
4874 fi
4875
4876 # The Aix ld uses global .symbol_names instead of symbol_names.
4877 # Unfortunately also used in the PPC64 ELF ABI.
4878 case "${os}${machine}" in
4879 aix4.3* | linux*powerpc/powerpc64*)
4880 cat >>confdefs.h <<\_ACEOF
4881 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4882 _ACEOF
4883
4884 esac
4885
4886 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4887 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4888 if test "${libc_cv_asm_symver_directive+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 cat > conftest.s <<EOF
4892 ${libc_cv_dot_text}
4893 _sym:
4894 .symver _sym,sym@VERS
4895 EOF
4896 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
4897 libc_cv_asm_symver_directive=yes
4898 else
4899 libc_cv_asm_symver_directive=no
4900 fi
4901 rm -f conftest*
4902 fi
4903 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4904 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4905 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4906 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4907 if test "${libc_cv_ld_version_script_option+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 if test $libc_cv_asm_symver_directive = yes; then
4911 cat > conftest.s <<EOF
4912 ${libc_cv_dot_text}
4913 _sym:
4914 .symver _sym,sym@VERS
4915 EOF
4916 cat > conftest.map <<EOF
4917 VERS_1 {
4918 global: sym;
4919 };
4920
4921 VERS_2 {
4922 global: sym;
4923 } VERS_1;
4924 EOF
4925 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
4926 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
4927 -o conftest.so conftest.o
4928 -nostartfiles -nostdlib
4929 -Wl,--version-script,conftest.map
4930 1>&5'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; };
4936 then
4937 libc_cv_ld_version_script_option=yes
4938 else
4939 libc_cv_ld_version_script_option=no
4940 fi
4941 else
4942 libc_cv_ld_version_script_option=no
4943 fi
4944 else
4945 libc_cv_ld_version_script_option=no
4946 fi
4947 rm -f conftest*
4948 fi
4949 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4950 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4951 if test $shared != no &&
4952 test $libc_cv_asm_symver_directive = yes &&
4953 test $libc_cv_ld_version_script_option = yes &&
4954 test $enable_versioning = yes; then
4955 VERSIONING=yes
4956 cat >>confdefs.h <<\_ACEOF
4957 #define DO_VERSIONING 1
4958 _ACEOF
4959
4960 else
4961 VERSIONING=no
4962 fi
4963
4964
4965 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4966 echo "\
4967 *** WARNING: You should not compile GNU libc without versioning. Not using
4968 *** versioning will introduce incompatibilities so that old binaries
4969 *** will not run anymore.
4970 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4971 fi
4972 if test $elf = yes; then
4973 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4974 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4975 if test "${libc_cv_asm_previous_directive+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 cat > conftest.s <<EOF
4979 .section foo_section
4980 .previous
4981 EOF
4982 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 libc_cv_asm_previous_directive=yes
4989 else
4990 libc_cv_asm_previous_directive=no
4991 fi
4992 rm -f conftest*
4993 fi
4994 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4995 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4996 if test $libc_cv_asm_previous_directive = yes; then
4997 cat >>confdefs.h <<\_ACEOF
4998 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4999 _ACEOF
5000
5001 else
5002 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5003 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
5004 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 cat > conftest.s <<EOF
5008 .pushsection foo_section
5009 .popsection
5010 EOF
5011 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 libc_cv_asm_popsection_directive=yes
5018 else
5019 libc_cv_asm_popsection_directive=no
5020 fi
5021 rm -f conftest*
5022 fi
5023 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5024 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
5025 if test $libc_cv_asm_popsection_directive = yes; then
5026 cat >>confdefs.h <<\_ACEOF
5027 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5028 _ACEOF
5029
5030 fi
5031 fi
5032 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5033 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
5034 if test "${libc_cv_asm_protected_directive+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 cat > conftest.s <<EOF
5038 .protected foo
5039 foo:
5040 .hidden bar
5041 bar:
5042 EOF
5043 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 libc_cv_asm_protected_directive=yes
5050 else
5051 libc_cv_asm_protected_directive=no
5052 fi
5053 rm -f conftest*
5054 fi
5055 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5056 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
5057
5058 cat >>confdefs.h <<\_ACEOF
5059 #define HAVE_PROTECTED 1
5060 _ACEOF
5061
5062 cat >>confdefs.h <<\_ACEOF
5063 #define HAVE_HIDDEN 1
5064 _ACEOF
5065
5066
5067 if test $libc_cv_asm_protected_directive = yes; then
5068 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5069 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
5070 if test "${libc_cv_visibility_attribute+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 cat > conftest.c <<EOF
5074 int foo __attribute__ ((visibility ("hidden"))) = 1;
5075 int bar __attribute__ ((visibility ("protected"))) = 1;
5076 EOF
5077 libc_cv_visibility_attribute=no
5078 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5085 if grep '\.protected.*bar' conftest.s >/dev/null; then
5086 libc_cv_visibility_attribute=yes
5087 fi
5088 fi
5089 fi
5090 rm -f conftest.cs
5091
5092 fi
5093 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5094 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
5095 if test $libc_cv_visibility_attribute = yes; then
5096 cat >>confdefs.h <<\_ACEOF
5097 #define HAVE_VISIBILITY_ATTRIBUTE 1
5098 _ACEOF
5099
5100 fi
5101 fi
5102
5103 if test $libc_cv_visibility_attribute = yes; then
5104 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5105 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
5106 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 cat > conftest.c <<EOF
5110 int foo (int x);
5111 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5112 int bar (int x) { return x; }
5113 EOF
5114 libc_cv_broken_visibility_attribute=yes
5115 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5122 libc_cv_broken_visibility_attribute=no
5123 fi
5124 fi
5125 rm -f conftest.c conftest.s
5126
5127 fi
5128 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5129 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
5130 if test $libc_cv_broken_visibility_attribute = yes; then
5131 cat >>confdefs.h <<\_ACEOF
5132 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
5133 _ACEOF
5134
5135 fi
5136 fi
5137
5138 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5139 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
5140 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 cat > conftest.c <<EOF
5144 extern int foo (int x) __asm ("xyzzy");
5145 int bar (int x) { return x; }
5146 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5147 extern int dfoo;
5148 extern __typeof (dfoo) dfoo __asm ("abccb");
5149 int dfoo = 1;
5150 EOF
5151 libc_cv_broken_alias_attribute=yes
5152 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 if grep 'xyzzy' conftest.s >/dev/null &&
5159 grep 'abccb' conftest.s >/dev/null; then
5160 libc_cv_broken_alias_attribute=no
5161 fi
5162 fi
5163 rm -f conftest.c conftest.s
5164
5165 fi
5166 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5167 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
5168 if test $libc_cv_broken_alias_attribute = yes; then
5169 cat >>confdefs.h <<\_ACEOF
5170 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
5171 _ACEOF
5172
5173 fi
5174
5175 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
5176 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5177 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
5178 if test "${libc_cv_have_sdata_section+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 echo "int i;" > conftest.c
5182 libc_cv_have_sdata_section=no
5183 if ${CC-cc} $LDFLAGS -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5184 | grep '\.sdata' >/dev/null; then
5185 libc_cv_have_sdata_section=yes
5186 fi
5187 rm -f conftest.c conftest.so
5188
5189 fi
5190 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5191 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
5192 if test $libc_cv_have_sdata_section = yes; then
5193 cat >>confdefs.h <<\_ACEOF
5194 #define HAVE_SDATA_SECTION 1
5195 _ACEOF
5196
5197 fi
5198 fi
5199
5200 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5201 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
5202 if test "${libc_cv_initfinit_array+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 cat > conftest.c <<EOF
5206 int _start (void) { return 0; }
5207 int __start (void) { return 0; }
5208 int foo (void) { return 1; }
5209 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5210 EOF
5211 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5212 -static -nostartfiles -nostdlib 1>&5'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }
5218 then
5219 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
5220 libc_cv_initfinit_array=yes
5221 else
5222 libc_cv_initfinit_array=no
5223 fi
5224 else
5225 libc_cv_initfinit_array=no
5226 fi
5227 rm -f conftest*
5228 fi
5229 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
5230 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
5231
5232 if test $libc_cv_initfinit_array = yes; then
5233 cat >>confdefs.h <<\_ACEOF
5234 #define HAVE_INITFINI_ARRAY 1
5235 _ACEOF
5236
5237 fi
5238
5239 echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
5240 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6
5241 if test "${libc_cv_cc_with_libunwind+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #include <libunwind.h>
5252 int
5253 main ()
5254 {
5255
5256 unw_context_t uc;
5257 unw_cursor_t c;
5258 unw_getcontext (&uc);
5259 unw_init_local (&c, &uc)
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext conftest$ac_exeext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266 (eval $ac_link) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -s conftest$ac_exeext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 libc_cv_cc_with_libunwind=yes
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 libc_cv_cc_with_libunwind=no
5282 fi
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 fi
5285 echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
5286 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6
5287
5288 if test $libc_cv_cc_with_libunwind = yes; then
5289 cat >>confdefs.h <<\_ACEOF
5290 #define HAVE_CC_WITH_LIBUNWIND 1
5291 _ACEOF
5292
5293 fi
5294
5295 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
5296 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
5297 if test "${libc_cv_z_nodelete+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 cat > conftest.c <<EOF
5301 int _start (void) { return 42; }
5302 EOF
5303 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5304 -shared -o conftest.so conftest.c
5305 -nostartfiles -nostdlib
5306 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }
5312 then
5313 libc_cv_z_nodelete=yes
5314 else
5315 libc_cv_z_nodelete=no
5316 fi
5317 rm -f conftest*
5318 fi
5319 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
5320 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
5321
5322
5323 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
5324 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
5325 if test "${libc_cv_z_nodlopen+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 cat > conftest.c <<EOF
5329 int _start (void) { return 42; }
5330 EOF
5331 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5332 -shared -o conftest.so conftest.c
5333 -nostartfiles -nostdlib
5334 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 (eval $ac_try) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }
5340 then
5341 libc_cv_z_nodlopen=yes
5342 else
5343 libc_cv_z_nodlopen=no
5344 fi
5345 rm -f conftest*
5346 fi
5347 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
5348 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
5349
5350
5351 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
5352 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
5353 if test "${libc_cv_z_initfirst+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 cat > conftest.c <<EOF
5357 int _start (void) { return 42; }
5358 EOF
5359 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5360 -shared -o conftest.so conftest.c
5361 -nostartfiles -nostdlib
5362 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 (eval $ac_try) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }
5368 then
5369 libc_cv_z_initfirst=yes
5370 else
5371 libc_cv_z_initfirst=no
5372 fi
5373 rm -f conftest*
5374 fi
5375 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
5376 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
5377
5378
5379 echo "$as_me:$LINENO: checking for -z relro option" >&5
5380 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6
5381 if test "${libc_cv_z_relro+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }
5390 then
5391 libc_cv_z_relro=yes
5392 else
5393 libc_cv_z_relro=no
5394 fi
5395 fi
5396 echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
5397 echo "${ECHO_T}$libc_cv_z_relro" >&6
5398
5399 if test $libc_cv_z_relro = yes; then
5400 cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_Z_RELRO 1
5402 _ACEOF
5403
5404 fi
5405
5406 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
5407 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
5408 if test "${libc_cv_Bgroup+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 cat > conftest.c <<EOF
5412 int _start (void) { return 42; }
5413 EOF
5414 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5415 -shared -o conftest.so conftest.c
5416 -Wl,-Bgroup -nostdlib 1>&5'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }
5422 then
5423 libc_cv_Bgroup=yes
5424 else
5425 libc_cv_Bgroup=no
5426 fi
5427 rm -f conftest*
5428 fi
5429 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
5430 echo "${ECHO_T}$libc_cv_Bgroup" >&6
5431
5432
5433 echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
5434 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6
5435 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 cat > conftest.c <<EOF
5439 int main (void) { return 0; }
5440 EOF
5441 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5442 -shared -shared-libgcc -o conftest.so \
5443 conftest.c -v 2>&1 >/dev/null \
5444 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
5445 rm -f conftest*
5446 fi
5447 echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
5448 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6
5449
5450
5451 echo "$as_me:$LINENO: checking for --as-needed option" >&5
5452 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6
5453 if test "${libc_cv_as_needed+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat > conftest.c <<EOF
5457 int main (void) { return 0; }
5458 EOF
5459 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5460 -shared -o conftest.so conftest.c
5461 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
5462 -nostdlib 1>&5'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }
5468 then
5469 libc_cv_as_needed=yes
5470 else
5471 libc_cv_as_needed=no
5472 fi
5473 rm -f conftest*
5474 fi
5475 echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
5476 echo "${ECHO_T}$libc_cv_as_needed" >&6
5477
5478
5479 ASFLAGS_config=
5480 echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
5481 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6
5482 if test "${libc_cv_as_noexecstack+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 cat > conftest.c <<EOF
5486 void foo (void) { }
5487 EOF
5488 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5489 -S -o conftest.s conftest.c 1>&5'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } \
5495 && grep -q .note.GNU-stack conftest.s \
5496 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
5497 -c -o conftest.o conftest.s 1>&5'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }
5503 then
5504 libc_cv_as_noexecstack=yes
5505 else
5506 libc_cv_as_noexecstack=no
5507 fi
5508 rm -f conftest*
5509 fi
5510 echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
5511 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6
5512 if test $libc_cv_as_noexecstack = yes; then
5513 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5514 fi
5515
5516
5517 echo "$as_me:$LINENO: checking for -z combreloc" >&5
5518 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
5519 if test "${libc_cv_z_combreloc+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat > conftest.c <<EOF
5523 extern int bar (int);
5524 extern int mumble;
5525 int foo (void) { return bar (mumble); }
5526 EOF
5527 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5528 -shared -o conftest.so conftest.c
5529 -nostdlib -nostartfiles
5530 -Wl,-z,combreloc 1>&5'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }
5536 then
5537 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5538 libc_cv_z_combreloc=yes
5539 else
5540 libc_cv_z_combreloc=no
5541 fi
5542 else
5543 libc_cv_z_combreloc=no
5544 fi
5545 rm -f conftest*
5546 fi
5547 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5548 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5549 if test "$libc_cv_z_combreloc" = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_Z_COMBRELOC 1
5552 _ACEOF
5553
5554 fi
5555
5556
5557 echo "$as_me:$LINENO: checking for -z execstack" >&5
5558 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6
5559 if test "${libc_cv_z_execstack+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat > conftest.c <<EOF
5563 int _start (void) { return 42; }
5564 EOF
5565 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5566 -shared -o conftest.so conftest.c
5567 -Wl,-z,execstack -nostdlib
5568 1>&5'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }
5574 then
5575 libc_cv_z_execstack=yes
5576 else
5577 libc_cv_z_execstack=no
5578 fi
5579 rm -f conftest*
5580 fi
5581 echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
5582 echo "${ECHO_T}$libc_cv_z_execstack" >&6
5583
5584
5585 echo "$as_me:$LINENO: checking for -fpie" >&5
5586 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6
5587 if test "${libc_cv_fpie+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 cat > conftest.c <<EOF
5591 int foo;
5592 main () { return 0;}
5593 EOF
5594 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
5595 -o conftest conftest.c 1>&5'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }
5601 then
5602 libc_cv_fpie=yes
5603 else
5604 libc_cv_fpie=no
5605 fi
5606 rm -f conftest*
5607 fi
5608 echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
5609 echo "${ECHO_T}$libc_cv_fpie" >&6
5610
5611
5612 fi
5613
5614 echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5
5615 echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6
5616 if test "${libc_cv_fno_unit_at_a_time+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 cat > conftest.c <<EOF
5620 int foo;
5621 EOF
5622 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
5623 conftest.c 1>&5'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }
5629 then
5630 libc_cv_fno_unit_at_a_time=yes
5631 else
5632 libc_cv_fno_unit_at_a_time=no
5633 fi
5634 rm -f conftest*
5635 fi
5636 echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5
5637 echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6
5638 if test $libc_cv_fno_unit_at_a_time = yes; then
5639 fno_unit_at_a_time=-fno-unit-at-a-time
5640 fi
5641
5642
5643 if test $elf != yes; then
5644 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5645 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5646 if test "${libc_cv_have_initfini+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656
5657 int
5658 main ()
5659 {
5660 asm (".section .init");
5661 asm (".section .fini");
5662 asm ("${libc_cv_dot_text}");
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 libc_cv_have_initfini=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 libc_cv_have_initfini=no
5685 fi
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5689 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5690 if test $libc_cv_have_initfini = yes; then
5691 cat >>confdefs.h <<\_ACEOF
5692 #define HAVE_INITFINI 1
5693 _ACEOF
5694
5695 fi
5696 fi
5697
5698 if test $elf = yes -a $gnu_ld = yes; then
5699 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5700 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5701 if test "${libc_cv_have_section_quotes+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 cat > conftest.c <<EOF
5705 static const int foo
5706 __attribute__ ((section ("bar"))) = 1;
5707 EOF
5708 if ${CC-cc} -S conftest.c -o conftest.s; then
5709 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5710 libc_cv_have_section_quotes=yes
5711 else
5712 libc_cv_have_section_quotes=no
5713 fi
5714 else
5715 libc_cv_have_section_quotes=unknown
5716 fi
5717 rm -f conftest.cs
5718
5719 fi
5720 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5721 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5722 if test $libc_cv_have_section_quotes = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_SECTION_QUOTES 1
5725 _ACEOF
5726
5727 fi
5728 fi
5729
5730
5731
5732 if test $elf = yes; then
5733 libc_cv_asm_underscores=no
5734 else
5735 if test $ac_cv_prog_cc_works = yes; then
5736 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5737 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5738 if test "${libc_cv_asm_underscores+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 asm ("_glibc_foobar:");
5749 int
5750 main ()
5751 {
5752 glibc_foobar ();
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 libc_cv_asm_underscores=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 libc_cv_asm_underscores=no
5775 fi
5776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5777 fi
5778 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5779 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5780 else
5781 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5782 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5783 if test "${libc_cv_asm_underscores+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 cat > conftest.$ac_ext <<EOF
5787 #line $LINENO "configure"
5788 #include "confdefs.h"
5789 void underscore_test(void) {
5790 return; }
5791 EOF
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; then
5797 if grep _underscore_test conftest* >/dev/null; then
5798 rm -f conftest*
5799 libc_cv_asm_underscores=yes
5800 else
5801 rm -f conftest*
5802 libc_cv_asm_underscores=no
5803 fi
5804 else
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -f conftest*
5808 libc_cv_asm_underscores=no
5809 fi
5810 rm -f conftest*
5811 fi
5812 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5813 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5814 fi
5815 fi
5816 if test $libc_cv_asm_underscores = no; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define NO_UNDERSCORES 1
5819 _ACEOF
5820
5821 fi
5822
5823 if test $elf = yes; then
5824 libc_cv_weak_symbols=yes
5825 fi
5826
5827 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5828 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5829 if test "${libc_cv_asm_weak_directive+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat > conftest.s <<EOF
5833 ${libc_cv_dot_text}
5834 ${libc_cv_asm_global_directive} foo
5835 foo:
5836 .weak foo
5837 .weak bar; bar = foo
5838 EOF
5839 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 libc_cv_asm_weak_directive=yes
5846 else
5847 libc_cv_asm_weak_directive=no
5848 fi
5849 rm -f conftest*
5850 fi
5851 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5852 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5853
5854 if test $libc_cv_asm_weak_directive = no; then
5855 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5856 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5857 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 cat > conftest.s <<EOF
5861 ${libc_cv_dot_text}
5862 ${libc_cv_asm_global_directive} foo
5863 foo:
5864 .weakext bar foo
5865 .weakext baz
5866 ${libc_cv_asm_global_directive} baz
5867 baz:
5868 EOF
5869 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 libc_cv_asm_weakext_directive=yes
5876 else
5877 libc_cv_asm_weakext_directive=no
5878 fi
5879 rm -f conftest*
5880 fi
5881 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5882 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5883
5884 fi # no .weak
5885
5886 if test $libc_cv_asm_weak_directive = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_ASM_WEAK_DIRECTIVE 1
5889 _ACEOF
5890
5891 elif test $libc_cv_asm_weakext_directive = yes; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5894 _ACEOF
5895
5896 fi
5897
5898 case "${host_cpu}-${host_os}" in
5899 cris*)
5900 libc_cv_asm_line_sep='@'
5901 cat >>confdefs.h <<_ACEOF
5902 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5903 _ACEOF
5904
5905 ;;
5906 hppa*linux*)
5907 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5908 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5909 if test "${libc_cv_asm_line_sep+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat > conftest.s <<EOF
5913 nop ; is_old_puffin
5914 EOF
5915 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 libc_cv_asm_line_sep='!'
5922 else
5923 if test -z "$enable_hacker_mode"; then
5924 echo "*** You need a newer assembler to compile glibc"
5925 rm -f conftest*
5926 exit 1
5927 fi
5928 libc_cv_asm_line_sep=';'
5929 fi
5930 rm -f conftest*
5931 fi
5932 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5933 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5934 cat >>confdefs.h <<_ACEOF
5935 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5936 _ACEOF
5937
5938 ;;
5939 esac
5940
5941 echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
5942 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6
5943 if test "${libc_cv_asm_cfi_directives+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat > conftest.s <<EOF
5947 .text
5948 .type func,@function
5949 func:
5950 .cfi_startproc
5951 .cfi_remember_state
5952 .cfi_rel_offset 1, 0
5953 .cfi_endproc
5954 EOF
5955 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 libc_cv_asm_cfi_directives=yes
5962 else
5963 libc_cv_asm_cfi_directives=no
5964 fi
5965 rm -f conftest*
5966 fi
5967 echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
5968 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6
5969 if test $libc_cv_asm_cfi_directives = yes; then
5970 cat >>confdefs.h <<\_ACEOF
5971 #define HAVE_ASM_CFI_DIRECTIVES 1
5972 _ACEOF
5973
5974 fi
5975
5976 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5977 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5978 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat > conftest.S <<EOF
5982 #include "confdefs.h"
5983
5984 /* comment on
5985 two lines */
5986 ${libc_cv_dot_text}
5987 ${libc_cv_asm_global_directive} foo
5988 foo:
5989 /* Unfortunately this test only works for a real instruction,
5990 not for any of the machine-independent pseudo-ops.
5991 So we just have to assume everybody has a "nop". */
5992 nop
5993 /* comment */
5994 nop
5995 /* comment */
5996 nop
5997 EOF
5998 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 ac_pattern='conftest\.S'
6005 { ac_try='readelf --debug-dump=line conftest.o |
6006 grep $ac_pattern 1>&5'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 libc_cv_cpp_asm_debuginfo=yes
6013 else
6014 libc_cv_cpp_asm_debuginfo=no
6015 fi
6016 rm -f conftest*
6017 fi
6018 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
6019 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
6020 if test $libc_cv_cpp_asm_debuginfo = yes; then
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_CPP_ASM_DEBUGINFO 1
6023 _ACEOF
6024
6025 fi
6026
6027 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6028 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
6029 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat > conftest.c <<\EOF
6033 _start () {}
6034 int __eh_pc;
6035 __throw () {}
6036 EOF
6037 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6038 -nostdlib -nostartfiles -Wl,--no-whole-archive
6039 -o conftest conftest.c 1>&5'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 libc_cv_ld_no_whole_archive=yes
6046 else
6047 libc_cv_ld_no_whole_archive=no
6048 fi
6049 rm -f conftest*
6050 fi
6051 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6052 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
6053 if test $libc_cv_ld_no_whole_archive = yes; then
6054 no_whole_archive=-Wl,--no-whole-archive
6055 fi
6056
6057 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6058 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
6059 if test "${libc_cv_gcc_exceptions+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 cat > conftest.c <<\EOF
6063 _start () {}
6064 int __eh_pc;
6065 __throw () {}
6066 EOF
6067 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6068 -nostdlib -nostartfiles -fexceptions
6069 -o conftest conftest.c 1>&5'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 libc_cv_gcc_exceptions=yes
6076 else
6077 libc_cv_gcc_exceptions=no
6078 fi
6079 rm -f conftest*
6080 fi
6081 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6082 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
6083 if test $libc_cv_gcc_exceptions = yes; then
6084 exceptions=-fexceptions
6085 fi
6086
6087 if test "$host_cpu" = powerpc ; then
6088 # Check for a bug present in at least versions 2.8.x of GCC
6089 # and versions 1.0.x of EGCS.
6090 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6091 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
6092 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6103 int
6104 main ()
6105 {
6106
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113 (eval $ac_compile) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 libc_cv_c_asmcr0_bug='no'
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 libc_cv_c_asmcr0_bug='yes'
6129 fi
6130 rm -f conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6133 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
6134 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define BROKEN_PPC_ASM_CR0 1
6137 _ACEOF
6138
6139 fi
6140 fi
6141
6142 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
6143 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
6144 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 cat > conftest.c <<EOF
6148 #line $LINENO "configure"
6149 static char *__EH_FRAME_BEGIN__;
6150 _start ()
6151 {
6152 #ifdef CHECK__register_frame
6153 __register_frame (__EH_FRAME_BEGIN__);
6154 __deregister_frame (__EH_FRAME_BEGIN__);
6155 #endif
6156 #ifdef CHECK__register_frame_info
6157 __register_frame_info (__EH_FRAME_BEGIN__);
6158 __deregister_frame_info (__EH_FRAME_BEGIN__);
6159 #endif
6160 }
6161 int __eh_pc;
6162 __throw () {}
6163 /* FIXME: this is fragile. */
6164 malloc () {}
6165 strcmp () {}
6166 strlen () {}
6167 memcpy () {}
6168 memset () {}
6169 free () {}
6170 abort () {}
6171 __bzero () {}
6172 dl_iterate_phdr () {}
6173 EOF
6174 libc_unwind_check="${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame_info \
6175 $LDFLAGS \
6176 -nostdlib -nostartfiles -o conftest conftest.c \
6177 -lgcc"
6178 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
6179 if { ac_try='$libc_unwind_check >&5'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; } ||
6185 { ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }
6191 then
6192 if $libc_unwind_check -v 2>&1 >/dev/null \
6193 | grep -- --eh-frame-hdr 2>&1 >/dev/null; then
6194 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
6195 else
6196 libc_cv_gcc_dwarf2_unwind_info=static
6197 fi
6198 else
6199 libc_cv_gcc_dwarf2_unwind_info=no
6200 fi
6201 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
6202 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame
6203 $LDFLAGS -nostdlib -nostartfiles
6204 -o conftest conftest.c -lgcc >&5'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 libc_cv_gcc_dwarf2_unwind_info=yes
6211 else
6212 libc_cv_gcc_dwarf2_unwind_info=no
6213 fi
6214 fi
6215 rm -f conftest*
6216 fi
6217 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
6218 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
6219 case $libc_cv_gcc_dwarf2_unwind_info in
6220 yes)
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_DWARF2_UNWIND_INFO 1
6223 _ACEOF
6224
6225 ;;
6226 static)
6227 cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_DWARF2_UNWIND_INFO 1
6229 _ACEOF
6230
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
6233 _ACEOF
6234
6235 ;;
6236 esac
6237
6238 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6239 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
6240 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat > conftest.c <<EOF
6244 #line $LINENO "configure"
6245 int foo (int a)
6246 {
6247 a = __builtin_expect (a, 10);
6248 return a == 10 ? 0 : 1;
6249 }
6250 EOF
6251 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6252 -o conftest conftest.c -lgcc >&5'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 libc_cv_gcc_builtin_expect=yes
6259 else
6260 libc_cv_gcc_builtin_expect=no
6261 fi
6262 rm -f conftest*
6263 fi
6264 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6265 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
6266 if test "$libc_cv_gcc_builtin_expect" = yes; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define HAVE_BUILTIN_EXPECT 1
6269 _ACEOF
6270
6271 fi
6272
6273 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6274 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
6275 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat > conftest.c <<\EOF
6279 void zero (void *x)
6280 {
6281 __builtin_memset (x, 0, 1000);
6282 }
6283 EOF
6284 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; };
6290 then
6291 libc_cv_gcc_builtin_memset=no
6292 else
6293 libc_cv_gcc_builtin_memset=yes
6294 fi
6295 rm -f conftest*
6296 fi
6297 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6298 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
6299 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_BUILTIN_MEMSET 1
6302 _ACEOF
6303
6304 fi
6305
6306 echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6307 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
6308 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 cat > conftest.c <<\EOF
6312 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6313 char *foo (const char *a, const char *b)
6314 {
6315 return __builtin_strstr (a, b);
6316 }
6317 EOF
6318 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; };
6324 then
6325 libc_cv_gcc_builtin_redirection=yes
6326 else
6327 libc_cv_gcc_builtin_redirection=no
6328 fi
6329 rm -f conftest*
6330 fi
6331 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
6332 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
6333 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_BUILTIN_REDIRECTION 1
6336 _ACEOF
6337
6338 fi
6339
6340 echo "$as_me:$LINENO: checking for local label subtraction" >&5
6341 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
6342 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 cat > conftest.c <<EOF
6346 #line $LINENO "configure"
6347 int foo (int a)
6348 {
6349 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
6350 void *p = &&l1 + ar[a];
6351 goto *p;
6352 l1:
6353 return 1;
6354 l2:
6355 return 2;
6356 }
6357 EOF
6358 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6359 -o conftest conftest.c -lgcc >&5'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 libc_cv_gcc_subtract_local_labels=yes
6366 else
6367 libc_cv_gcc_subtract_local_labels=no
6368 fi
6369 rm -f conftest*
6370 fi
6371 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
6372 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
6373 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_SUBTRACT_LOCAL_LABELS 1
6376 _ACEOF
6377
6378 fi
6379
6380 if test "x$use__thread" != xno; then
6381 echo "$as_me:$LINENO: checking for __thread" >&5
6382 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
6383 if test "${libc_cv_gcc___thread+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 cat > conftest.c <<\EOF
6387 __thread int a = 42;
6388 EOF
6389 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 libc_cv_gcc___thread=yes
6396 else
6397 libc_cv_gcc___thread=no
6398 fi
6399 rm -f conftest*
6400 fi
6401 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
6402 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
6403 if test "$libc_cv_gcc___thread" = yes; then
6404 cat >>confdefs.h <<\_ACEOF
6405 #define HAVE___THREAD 1
6406 _ACEOF
6407
6408 fi
6409 else
6410 libc_cv_gcc___thread=no
6411 fi
6412
6413 if test "$libc_cv_gcc___thread" = yes; then
6414 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
6415 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
6416 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 cat > conftest.c <<\EOF
6420 extern __thread int a __attribute__((tls_model ("initial-exec")));
6421 EOF
6422 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 libc_cv_gcc_tls_model_attr=yes
6429 else
6430 libc_cv_gcc_tls_model_attr=no
6431 fi
6432 rm -f conftest*
6433 fi
6434 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
6435 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
6436 if test "$libc_cv_gcc_tls_model_attr" = yes; then
6437 cat >>confdefs.h <<\_ACEOF
6438 #define HAVE_TLS_MODEL_ATTRIBUTE 1
6439 _ACEOF
6440
6441 fi
6442 fi
6443
6444 echo "$as_me:$LINENO: checking for libgd" >&5
6445 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
6446 if test "$with_gd" != "no"; then
6447 old_CFLAGS="$CFLAGS"
6448 CFLAGS="$CFLAGS $libgd_include"
6449 old_LDFLAGS="$LDFLAGS"
6450 LDFLAGS="$LDFLAGS $libgd_ldflags"
6451 old_LIBS="$LIBS"
6452 LIBS="$LIBS -lgd -lpng -lz -lm"
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <gd.h>
6461 int
6462 main ()
6463 {
6464 gdImagePng (0, 0)
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 LIBGD=yes
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 LIBGD=no
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 CFLAGS="$old_CFLAGS"
6490 LDFLAGS="$old_LDFLAGS"
6491 LIBS="$old_LIBS"
6492 else
6493 LIBGD=no
6494 fi
6495 echo "$as_me:$LINENO: result: $LIBGD" >&5
6496 echo "${ECHO_T}$LIBGD" >&6
6497
6498
6499
6500 echo "$as_me:$LINENO: checking for egrep" >&5
6501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6502 if test "${ac_cv_prog_egrep+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6506 then ac_cv_prog_egrep='grep -E'
6507 else ac_cv_prog_egrep='egrep'
6508 fi
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6512 EGREP=$ac_cv_prog_egrep
6513
6514
6515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6517 if test "${ac_cv_header_stdc+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line $LINENO "configure"
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #include <stdlib.h>
6528 #include <stdarg.h>
6529 #include <string.h>
6530 #include <float.h>
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 ac_cv_header_stdc=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557 ac_cv_header_stdc=no
6558 fi
6559 rm -f conftest.$ac_objext conftest.$ac_ext
6560
6561 if test $ac_cv_header_stdc = yes; then
6562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <string.h>
6571
6572 _ACEOF
6573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6574 $EGREP "memchr" >/dev/null 2>&1; then
6575 :
6576 else
6577 ac_cv_header_stdc=no
6578 fi
6579 rm -f conftest*
6580
6581 fi
6582
6583 if test $ac_cv_header_stdc = yes; then
6584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line $LINENO "configure"
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include <stdlib.h>
6593
6594 _ACEOF
6595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6596 $EGREP "free" >/dev/null 2>&1; then
6597 :
6598 else
6599 ac_cv_header_stdc=no
6600 fi
6601 rm -f conftest*
6602
6603 fi
6604
6605 if test $ac_cv_header_stdc = yes; then
6606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6607 if test "$cross_compiling" = yes; then
6608 :
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 #line $LINENO "configure"
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #include <ctype.h>
6618 #if ((' ' & 0x0FF) == 0x020)
6619 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6620 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6621 #else
6622 # define ISLOWER(c) \
6623 (('a' <= (c) && (c) <= 'i') \
6624 || ('j' <= (c) && (c) <= 'r') \
6625 || ('s' <= (c) && (c) <= 'z'))
6626 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6627 #endif
6628
6629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6630 int
6631 main ()
6632 {
6633 int i;
6634 for (i = 0; i < 256; i++)
6635 if (XOR (islower (i), ISLOWER (i))
6636 || toupper (i) != TOUPPER (i))
6637 exit(2);
6638 exit (0);
6639 }
6640 _ACEOF
6641 rm -f conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 :
6653 else
6654 echo "$as_me: program exited with status $ac_status" >&5
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 ( exit $ac_status )
6659 ac_cv_header_stdc=no
6660 fi
6661 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6662 fi
6663 fi
6664 fi
6665 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6666 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6667 if test $ac_cv_header_stdc = yes; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define STDC_HEADERS 1
6671 _ACEOF
6672
6673 fi
6674
6675 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6686 inttypes.h stdint.h unistd.h
6687 do
6688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6689 echo "$as_me:$LINENO: checking for $ac_header" >&5
6690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 cat >conftest.$ac_ext <<_ACEOF
6695 #line $LINENO "configure"
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 $ac_includes_default
6702
6703 #include <$ac_header>
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 eval "$as_ac_Header=yes"
6718 else
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 eval "$as_ac_Header=no"
6723 fi
6724 rm -f conftest.$ac_objext conftest.$ac_ext
6725 fi
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6729 cat >>confdefs.h <<_ACEOF
6730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6731 _ACEOF
6732
6733 fi
6734
6735 done
6736
6737
6738 echo "$as_me:$LINENO: checking for long double" >&5
6739 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6740 if test "${ac_cv_type_long_double+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 #line $LINENO "configure"
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 int
6752 main ()
6753 {
6754 if ((long double *) 0)
6755 return 0;
6756 if (sizeof (long double))
6757 return 0;
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -s conftest.$ac_objext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_type_long_double=yes
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ac_cv_type_long_double=no
6780 fi
6781 rm -f conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6784 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6785
6786 echo "$as_me:$LINENO: checking size of long double" >&5
6787 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6788 if test "${ac_cv_sizeof_long_double+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 if test "$ac_cv_type_long_double" = yes; then
6792 # The cast to unsigned long works around a bug in the HP C Compiler
6793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6795 # This bug is HP SR number 8606223364.
6796 if test "$cross_compiling" = yes; then
6797 # Depending upon the size, compute the lo and hi bounds.
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 int
6807 main ()
6808 {
6809 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6810 test_array [0] = 0
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_lo=0 ac_mid=0
6829 while :; do
6830 cat >conftest.$ac_ext <<_ACEOF
6831 #line $LINENO "configure"
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 $ac_includes_default
6838 int
6839 main ()
6840 {
6841 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6842 test_array [0] = 0
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_hi=$ac_mid; break
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_lo=`expr $ac_mid + 1`
6866 if test $ac_lo -le $ac_mid; then
6867 ac_lo= ac_hi=
6868 break
6869 fi
6870 ac_mid=`expr 2 '*' $ac_mid + 1`
6871 fi
6872 rm -f conftest.$ac_objext conftest.$ac_ext
6873 done
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 cat >conftest.$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6886 int
6887 main ()
6888 {
6889 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6890 test_array [0] = 0
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_hi=-1 ac_mid=-1
6909 while :; do
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line $LINENO "configure"
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 $ac_includes_default
6918 int
6919 main ()
6920 {
6921 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6922 test_array [0] = 0
6923
6924 ;
6925 return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 ac_lo=$ac_mid; break
6941 else
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6944
6945 ac_hi=`expr '(' $ac_mid ')' - 1`
6946 if test $ac_mid -le $ac_hi; then
6947 ac_lo= ac_hi=
6948 break
6949 fi
6950 ac_mid=`expr 2 '*' $ac_mid`
6951 fi
6952 rm -f conftest.$ac_objext conftest.$ac_ext
6953 done
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_lo= ac_hi=
6959 fi
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 # Binary search between lo and hi bounds.
6964 while test "x$ac_lo" != "x$ac_hi"; do
6965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6966 cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 int
6975 main ()
6976 {
6977 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6978 test_array [0] = 0
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -s conftest.$ac_objext'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_hi=$ac_mid
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_lo=`expr '(' $ac_mid ')' + 1`
7002 fi
7003 rm -f conftest.$ac_objext conftest.$ac_ext
7004 done
7005 case $ac_lo in
7006 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7008 See \`config.log' for more details." >&5
7009 echo "$as_me: error: cannot compute sizeof (long double), 77
7010 See \`config.log' for more details." >&2;}
7011 { (exit 1); exit 1; }; } ;;
7012 esac
7013 else
7014 if test "$cross_compiling" = yes; then
7015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7016 See \`config.log' for more details." >&5
7017 echo "$as_me: error: cannot run test program while cross compiling
7018 See \`config.log' for more details." >&2;}
7019 { (exit 1); exit 1; }; }
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 #line $LINENO "configure"
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029 long longval () { return (long) (sizeof (long double)); }
7030 unsigned long ulongval () { return (long) (sizeof (long double)); }
7031 #include <stdio.h>
7032 #include <stdlib.h>
7033 int
7034 main ()
7035 {
7036
7037 FILE *f = fopen ("conftest.val", "w");
7038 if (! f)
7039 exit (1);
7040 if (((long) (sizeof (long double))) < 0)
7041 {
7042 long i = longval ();
7043 if (i != ((long) (sizeof (long double))))
7044 exit (1);
7045 fprintf (f, "%ld\n", i);
7046 }
7047 else
7048 {
7049 unsigned long i = ulongval ();
7050 if (i != ((long) (sizeof (long double))))
7051 exit (1);
7052 fprintf (f, "%lu\n", i);
7053 }
7054 exit (ferror (f) || fclose (f) != 0);
7055
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 ac_cv_sizeof_long_double=`cat conftest.val`
7072 else
7073 echo "$as_me: program exited with status $ac_status" >&5
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ( exit $ac_status )
7078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7079 See \`config.log' for more details." >&5
7080 echo "$as_me: error: cannot compute sizeof (long double), 77
7081 See \`config.log' for more details." >&2;}
7082 { (exit 1); exit 1; }; }
7083 fi
7084 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7085 fi
7086 fi
7087 rm -f conftest.val
7088 else
7089 ac_cv_sizeof_long_double=0
7090 fi
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7093 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7094 cat >>confdefs.h <<_ACEOF
7095 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7096 _ACEOF
7097
7098
7099 sizeof_long_double=$ac_cv_sizeof_long_double
7100
7101
7102 ### End of automated tests.
7103 ### Now run sysdeps configure fragments.
7104
7105 # They also can set these variables.
7106 use_ldconfig=no
7107 ldd_rewrite_script=no
7108 libc_cv_sysconfdir=$sysconfdir
7109 libc_cv_gcc_unwind_find_fde=no
7110 libc_cv_idn=no
7111
7112 # Iterate over all the sysdep directories we will use, running their
7113 # configure fragments, and looking for a uname implementation.
7114 uname=
7115 for dir in $sysnames; do
7116 case $dir in
7117 /*) dest=$dir ;;
7118 *) dest=$srcdir/$dir ;;
7119 esac
7120 if test -r $dest/configure; then
7121 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
7122 echo "${ECHO_T}running configure fragment for $dir" >&6
7123 . $dest/configure
7124 fi
7125
7126 if test -z "$uname"; then
7127 if test -r $dest/uname.c ||
7128 test -r $dest/uname.S ||
7129 { test -r $dest/syscalls.list &&
7130 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7131 uname=$dir
7132 fi
7133 fi
7134 done
7135
7136 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7137 cat >>confdefs.h <<\_ACEOF
7138 #define EXPORT_UNWIND_FIND_FDE 1
7139 _ACEOF
7140
7141 fi
7142
7143
7144 # If we will use the generic uname implementation, we must figure out what
7145 # it will say by examining the system, and write the results in config-name.h.
7146 if test "$uname" = "sysdeps/generic"; then
7147
7148 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7149 if test $uname_sysname != $config_os; then
7150 config_release=`echo $config_os | sed s/$uname_sysname//`
7151 fi
7152
7153 echo "$as_me:$LINENO: checking OS release for uname" >&5
7154 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
7155 if test "${libc_cv_uname_release+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 if test -r /vmunix; then
7159 kernel_id=`strings /vmunix | grep UNIX`
7160 elif test -r /dynix; then
7161 kernel_id=`strings /dynix | grep DYNIX`
7162 else
7163 kernel_id=
7164 fi
7165
7166 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
7167 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7168 != x$config_release; then
7169 # The configuration release is a substring of the kernel release.
7170 libc_cv_uname_release=$kernel_release
7171 elif test x$config_release != x; then
7172 libc_cv_uname_release=$config_release
7173 elif test x$kernel_release != x; then
7174 libc_cv_uname_release=$kernel_release
7175 else
7176 libc_cv_uname_release=unknown
7177 fi
7178 fi
7179 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
7180 echo "${ECHO_T}$libc_cv_uname_release" >&6
7181 uname_release="$libc_cv_uname_release"
7182
7183 echo "$as_me:$LINENO: checking OS version for uname" >&5
7184 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
7185 if test "${libc_cv_uname_version+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 if test -r /vmunix; then
7189 kernel_id=`strings /vmunix | grep UNIX`
7190 elif test -r /dynix; then
7191 kernel_id=`strings /dynix | grep DYNIX`
7192 else
7193 kernel_id=
7194 fi
7195
7196 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
7197 if test -n "$kernel_version"; then
7198 libc_cv_uname_version="$kernel_version"
7199 else
7200 libc_cv_uname_version=unknown
7201 fi
7202 fi
7203 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
7204 echo "${ECHO_T}$libc_cv_uname_version" >&6
7205 uname_version="$libc_cv_uname_version"
7206
7207 config_uname=config-name.h:config-name.in
7208 else
7209 # For non-generic uname, we don't need to create config-name.h at all.
7210 config_uname=
7211 fi
7212
7213 cat >>confdefs.h <<\_ACEOF
7214 #define USE_IN_LIBIO 1
7215 _ACEOF
7216
7217
7218 # Test for old glibc 2.0.x headers so that they can be removed properly
7219 # Search only in includedir.
7220 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
7221 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
7222 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7223 then
7224 old_glibc_headers=yes
7225 else
7226 old_glibc_headers=no
7227 fi
7228 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
7229 echo "${ECHO_T}$old_glibc_headers" >&6
7230 if test ${old_glibc_headers} = yes; then
7231 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7232 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
7234 echo "$as_me: WARNING: *** be removed." >&2;}
7235 fi
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 if test $gnu_ld = yes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_GNU_LD 1
7251 _ACEOF
7252
7253 fi
7254 if test $gnu_as = yes; then
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_GNU_AS 1
7257 _ACEOF
7258
7259 fi
7260 if test $elf = yes; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define HAVE_ELF 1
7263 _ACEOF
7264
7265 fi
7266 if test $xcoff = yes; then
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_XCOFF 1
7269 _ACEOF
7270
7271 fi
7272
7273
7274
7275 if test $shared = default; then
7276 if test $gnu_ld = yes; then
7277 shared=$elf
7278 else
7279 # For now we do not assume shared libs are available. In future more
7280 # tests might become available.
7281 shared=no
7282 fi
7283 fi
7284
7285 if test x"$libc_cv_idn" = xyes; then
7286 cat >>confdefs.h <<\_ACEOF
7287 #define HAVE_LIBIDN 1
7288 _ACEOF
7289
7290 fi
7291
7292 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
7293 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
7294 if test "${pic_default+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 pic_default=yes
7298 cat > conftest.c <<EOF
7299 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7300 # error PIC is default.
7301 #endif
7302 EOF
7303 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7304 pic_default=no
7305 fi
7306 rm -f conftest.*
7307 fi
7308 echo "$as_me:$LINENO: result: $pic_default" >&5
7309 echo "${ECHO_T}$pic_default" >&6
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 case "$add_ons" in
7321 *door*) linux_doors=yes ;;
7322 *) linux_doors=no ;;
7323 esac
7324
7325
7326
7327
7328 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7329 config_makefile=
7330 else
7331 config_makefile=Makefile
7332 fi
7333
7334 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7335 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7336
7337
7338
7339 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
7340
7341 ac_config_commands="$ac_config_commands default"
7342
7343 cat >confcache <<\_ACEOF
7344 # This file is a shell script that caches the results of configure
7345 # tests run on this system so they can be shared between configure
7346 # scripts and configure runs, see configure's option --config-cache.
7347 # It is not useful on other systems. If it contains results you don't
7348 # want to keep, you may remove or edit it.
7349 #
7350 # config.status only pays attention to the cache file if you give it
7351 # the --recheck option to rerun configure.
7352 #
7353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7355 # following values.
7356
7357 _ACEOF
7358
7359 # The following way of writing the cache mishandles newlines in values,
7360 # but we know of no workaround that is simple, portable, and efficient.
7361 # So, don't put newlines in cache variables' values.
7362 # Ultrix sh set writes to stderr and can't be redirected directly,
7363 # and sets the high bit in the cache file unless we assign to the vars.
7364 {
7365 (set) 2>&1 |
7366 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7367 *ac_space=\ *)
7368 # `set' does not quote correctly, so add quotes (double-quote
7369 # substitution turns \\\\ into \\, and sed turns \\ into \).
7370 sed -n \
7371 "s/'/'\\\\''/g;
7372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7373 ;;
7374 *)
7375 # `set' quotes correctly as required by POSIX, so do not add quotes.
7376 sed -n \
7377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7378 ;;
7379 esac;
7380 } |
7381 sed '
7382 t clear
7383 : clear
7384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7385 t end
7386 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7387 : end' >>confcache
7388 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7389 if test -w $cache_file; then
7390 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7391 cat confcache >$cache_file
7392 else
7393 echo "not updating unwritable cache $cache_file"
7394 fi
7395 fi
7396 rm -f confcache
7397
7398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7399 # Let make expand exec_prefix.
7400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7401
7402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7404 # trailing colons and then remove the whole line if VPATH becomes empty
7405 # (actually we leave an empty line to preserve line numbers).
7406 if test "x$srcdir" = x.; then
7407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7408 s/:*\$(srcdir):*/:/;
7409 s/:*\${srcdir}:*/:/;
7410 s/:*@srcdir@:*/:/;
7411 s/^\([^=]*=[ ]*\):*/\1/;
7412 s/:*$//;
7413 s/^[^=]*=[ ]*$//;
7414 }'
7415 fi
7416
7417 DEFS=-DHAVE_CONFIG_H
7418
7419 ac_libobjs=
7420 ac_ltlibobjs=
7421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7422 # 1. Remove the extension, and $U if already installed.
7423 ac_i=`echo "$ac_i" |
7424 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7425 # 2. Add them.
7426 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7427 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7428 done
7429 LIBOBJS=$ac_libobjs
7430
7431 LTLIBOBJS=$ac_ltlibobjs
7432
7433
7434
7435 : ${CONFIG_STATUS=./config.status}
7436 ac_clean_files_save=$ac_clean_files
7437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7438 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7439 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7440 cat >$CONFIG_STATUS <<_ACEOF
7441 #! $SHELL
7442 # Generated by $as_me.
7443 # Run this file to recreate the current configuration.
7444 # Compiler output produced by configure, useful for debugging
7445 # configure, is in config.log if it exists.
7446
7447 debug=false
7448 ac_cs_recheck=false
7449 ac_cs_silent=false
7450 SHELL=\${CONFIG_SHELL-$SHELL}
7451 _ACEOF
7452
7453 cat >>$CONFIG_STATUS <<\_ACEOF
7454 ## --------------------- ##
7455 ## M4sh Initialization. ##
7456 ## --------------------- ##
7457
7458 # Be Bourne compatible
7459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7460 emulate sh
7461 NULLCMD=:
7462 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7463 # is contrary to our usage. Disable this feature.
7464 alias -g '${1+"$@"}'='"$@"'
7465 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7466 set -o posix
7467 fi
7468
7469 # Support unset when possible.
7470 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7471 as_unset=unset
7472 else
7473 as_unset=false
7474 fi
7475
7476
7477 # Work around bugs in pre-3.0 UWIN ksh.
7478 $as_unset ENV MAIL MAILPATH
7479 PS1='$ '
7480 PS2='> '
7481 PS4='+ '
7482
7483 # NLS nuisances.
7484 for as_var in \
7485 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7486 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7487 LC_TELEPHONE LC_TIME
7488 do
7489 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7490 eval $as_var=C; export $as_var
7491 else
7492 $as_unset $as_var
7493 fi
7494 done
7495
7496 # Required to use basename.
7497 if expr a : '\(a\)' >/dev/null 2>&1; then
7498 as_expr=expr
7499 else
7500 as_expr=false
7501 fi
7502
7503 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7504 as_basename=basename
7505 else
7506 as_basename=false
7507 fi
7508
7509
7510 # Name of the executable.
7511 as_me=`$as_basename "$0" ||
7512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7513 X"$0" : 'X\(//\)$' \| \
7514 X"$0" : 'X\(/\)$' \| \
7515 . : '\(.\)' 2>/dev/null ||
7516 echo X/"$0" |
7517 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7518 /^X\/\(\/\/\)$/{ s//\1/; q; }
7519 /^X\/\(\/\).*/{ s//\1/; q; }
7520 s/.*/./; q'`
7521
7522
7523 # PATH needs CR, and LINENO needs CR and PATH.
7524 # Avoid depending upon Character Ranges.
7525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7528 as_cr_digits='0123456789'
7529 as_cr_alnum=$as_cr_Letters$as_cr_digits
7530
7531 # The user is always right.
7532 if test "${PATH_SEPARATOR+set}" != set; then
7533 echo "#! /bin/sh" >conf$$.sh
7534 echo "exit 0" >>conf$$.sh
7535 chmod +x conf$$.sh
7536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7537 PATH_SEPARATOR=';'
7538 else
7539 PATH_SEPARATOR=:
7540 fi
7541 rm -f conf$$.sh
7542 fi
7543
7544
7545 as_lineno_1=$LINENO
7546 as_lineno_2=$LINENO
7547 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7548 test "x$as_lineno_1" != "x$as_lineno_2" &&
7549 test "x$as_lineno_3" = "x$as_lineno_2" || {
7550 # Find who we are. Look in the path if we contain no path at all
7551 # relative or not.
7552 case $0 in
7553 *[\\/]* ) as_myself=$0 ;;
7554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7560 done
7561
7562 ;;
7563 esac
7564 # We did not find ourselves, most probably we were run as `sh COMMAND'
7565 # in which case we are not to be found in the path.
7566 if test "x$as_myself" = x; then
7567 as_myself=$0
7568 fi
7569 if test ! -f "$as_myself"; then
7570 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7571 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7572 { (exit 1); exit 1; }; }
7573 fi
7574 case $CONFIG_SHELL in
7575 '')
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7578 do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for as_base in sh bash ksh sh5; do
7582 case $as_dir in
7583 /*)
7584 if ("$as_dir/$as_base" -c '
7585 as_lineno_1=$LINENO
7586 as_lineno_2=$LINENO
7587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7588 test "x$as_lineno_1" != "x$as_lineno_2" &&
7589 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7590 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7591 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7592 CONFIG_SHELL=$as_dir/$as_base
7593 export CONFIG_SHELL
7594 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7595 fi;;
7596 esac
7597 done
7598 done
7599 ;;
7600 esac
7601
7602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7603 # uniformly replaced by the line number. The first 'sed' inserts a
7604 # line-number line before each line; the second 'sed' does the real
7605 # work. The second script uses 'N' to pair each line-number line
7606 # with the numbered line, and appends trailing '-' during
7607 # substitution so that $LINENO is not a special case at line end.
7608 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7609 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7610 sed '=' <$as_myself |
7611 sed '
7612 N
7613 s,$,-,
7614 : loop
7615 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7616 t loop
7617 s,-$,,
7618 s,^['$as_cr_digits']*\n,,
7619 ' >$as_me.lineno &&
7620 chmod +x $as_me.lineno ||
7621 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7622 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7623 { (exit 1); exit 1; }; }
7624
7625 # Don't try to exec as it changes $[0], causing all sort of problems
7626 # (the dirname of $[0] is not the place where we might find the
7627 # original and so on. Autoconf is especially sensible to this).
7628 . ./$as_me.lineno
7629 # Exit status is that of the last command.
7630 exit
7631 }
7632
7633
7634 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7635 *c*,-n*) ECHO_N= ECHO_C='
7636 ' ECHO_T=' ' ;;
7637 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7638 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7639 esac
7640
7641 if expr a : '\(a\)' >/dev/null 2>&1; then
7642 as_expr=expr
7643 else
7644 as_expr=false
7645 fi
7646
7647 rm -f conf$$ conf$$.exe conf$$.file
7648 echo >conf$$.file
7649 if ln -s conf$$.file conf$$ 2>/dev/null; then
7650 # We could just check for DJGPP; but this test a) works b) is more generic
7651 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7652 if test -f conf$$.exe; then
7653 # Don't use ln at all; we don't have any links
7654 as_ln_s='cp -p'
7655 else
7656 as_ln_s='ln -s'
7657 fi
7658 elif ln conf$$.file conf$$ 2>/dev/null; then
7659 as_ln_s=ln
7660 else
7661 as_ln_s='cp -p'
7662 fi
7663 rm -f conf$$ conf$$.exe conf$$.file
7664
7665 if mkdir -p . 2>/dev/null; then
7666 as_mkdir_p=:
7667 else
7668 as_mkdir_p=false
7669 fi
7670
7671 as_executable_p="test -f"
7672
7673 # Sed expression to map a string onto a valid CPP name.
7674 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7675
7676 # Sed expression to map a string onto a valid variable name.
7677 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7678
7679
7680 # IFS
7681 # We need space, tab and new line, in precisely that order.
7682 as_nl='
7683 '
7684 IFS=" $as_nl"
7685
7686 # CDPATH.
7687 $as_unset CDPATH
7688
7689 exec 6>&1
7690
7691 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7692 # report actual input values of CONFIG_FILES etc. instead of their
7693 # values after options handling. Logging --version etc. is OK.
7694 exec 5>>config.log
7695 {
7696 echo
7697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7698 ## Running $as_me. ##
7699 _ASBOX
7700 } >&5
7701 cat >&5 <<_CSEOF
7702
7703 This file was extended by GNU C Library $as_me (see version.h), which was
7704 generated by GNU Autoconf 2.57. Invocation command line was
7705
7706 CONFIG_FILES = $CONFIG_FILES
7707 CONFIG_HEADERS = $CONFIG_HEADERS
7708 CONFIG_LINKS = $CONFIG_LINKS
7709 CONFIG_COMMANDS = $CONFIG_COMMANDS
7710 $ $0 $@
7711
7712 _CSEOF
7713 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7714 echo >&5
7715 _ACEOF
7716
7717 # Files that config.status was made for.
7718 if test -n "$ac_config_files"; then
7719 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7720 fi
7721
7722 if test -n "$ac_config_headers"; then
7723 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7724 fi
7725
7726 if test -n "$ac_config_links"; then
7727 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7728 fi
7729
7730 if test -n "$ac_config_commands"; then
7731 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7732 fi
7733
7734 cat >>$CONFIG_STATUS <<\_ACEOF
7735
7736 ac_cs_usage="\
7737 \`$as_me' instantiates files from templates according to the
7738 current configuration.
7739
7740 Usage: $0 [OPTIONS] [FILE]...
7741
7742 -h, --help print this help, then exit
7743 -V, --version print version number, then exit
7744 -q, --quiet do not print progress messages
7745 -d, --debug don't remove temporary files
7746 --recheck update $as_me by reconfiguring in the same conditions
7747 --file=FILE[:TEMPLATE]
7748 instantiate the configuration file FILE
7749 --header=FILE[:TEMPLATE]
7750 instantiate the configuration header FILE
7751
7752 Configuration files:
7753 $config_files
7754
7755 Configuration headers:
7756 $config_headers
7757
7758 Configuration commands:
7759 $config_commands
7760
7761 Report bugs to <bug-autoconf@gnu.org>."
7762 _ACEOF
7763
7764 cat >>$CONFIG_STATUS <<_ACEOF
7765 ac_cs_version="\\
7766 GNU C Library config.status (see version.h)
7767 configured by $0, generated by GNU Autoconf 2.57,
7768 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7769
7770 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7771 Free Software Foundation, Inc.
7772 This config.status script is free software; the Free Software Foundation
7773 gives unlimited permission to copy, distribute and modify it."
7774 srcdir=$srcdir
7775 INSTALL="$INSTALL"
7776 _ACEOF
7777
7778 cat >>$CONFIG_STATUS <<\_ACEOF
7779 # If no file are specified by the user, then we need to provide default
7780 # value. By we need to know if files were specified by the user.
7781 ac_need_defaults=:
7782 while test $# != 0
7783 do
7784 case $1 in
7785 --*=*)
7786 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7787 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7788 ac_shift=:
7789 ;;
7790 -*)
7791 ac_option=$1
7792 ac_optarg=$2
7793 ac_shift=shift
7794 ;;
7795 *) # This is not an option, so the user has probably given explicit
7796 # arguments.
7797 ac_option=$1
7798 ac_need_defaults=false;;
7799 esac
7800
7801 case $ac_option in
7802 # Handling of the options.
7803 _ACEOF
7804 cat >>$CONFIG_STATUS <<\_ACEOF
7805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7806 ac_cs_recheck=: ;;
7807 --version | --vers* | -V )
7808 echo "$ac_cs_version"; exit 0 ;;
7809 --he | --h)
7810 # Conflict between --help and --header
7811 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7812 Try \`$0 --help' for more information." >&5
7813 echo "$as_me: error: ambiguous option: $1
7814 Try \`$0 --help' for more information." >&2;}
7815 { (exit 1); exit 1; }; };;
7816 --help | --hel | -h )
7817 echo "$ac_cs_usage"; exit 0 ;;
7818 --debug | --d* | -d )
7819 debug=: ;;
7820 --file | --fil | --fi | --f )
7821 $ac_shift
7822 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7823 ac_need_defaults=false;;
7824 --header | --heade | --head | --hea )
7825 $ac_shift
7826 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7827 ac_need_defaults=false;;
7828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7830 ac_cs_silent=: ;;
7831
7832 # This is an error.
7833 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7834 Try \`$0 --help' for more information." >&5
7835 echo "$as_me: error: unrecognized option: $1
7836 Try \`$0 --help' for more information." >&2;}
7837 { (exit 1); exit 1; }; } ;;
7838
7839 *) ac_config_targets="$ac_config_targets $1" ;;
7840
7841 esac
7842 shift
7843 done
7844
7845 ac_configure_extra_args=
7846
7847 if $ac_cs_silent; then
7848 exec 6>/dev/null
7849 ac_configure_extra_args="$ac_configure_extra_args --silent"
7850 fi
7851
7852 _ACEOF
7853 cat >>$CONFIG_STATUS <<_ACEOF
7854 if \$ac_cs_recheck; then
7855 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7856 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7857 fi
7858
7859 _ACEOF
7860
7861 cat >>$CONFIG_STATUS <<_ACEOF
7862 #
7863 # INIT-COMMANDS section.
7864 #
7865
7866 config_vars='$config_vars'
7867
7868 _ACEOF
7869
7870
7871
7872 cat >>$CONFIG_STATUS <<\_ACEOF
7873 for ac_config_target in $ac_config_targets
7874 do
7875 case "$ac_config_target" in
7876 # Handling of arguments.
7877 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7878 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7879 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7880 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7881 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7882 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7883 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7884 { (exit 1); exit 1; }; };;
7885 esac
7886 done
7887
7888 # If the user did not use the arguments to specify the items to instantiate,
7889 # then the envvar interface is used. Set only those that are not.
7890 # We use the long form for the default assignment because of an extremely
7891 # bizarre bug on SunOS 4.1.3.
7892 if $ac_need_defaults; then
7893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7896 fi
7897
7898 # Have a temporary directory for convenience. Make it in the build tree
7899 # simply because there is no reason to put it here, and in addition,
7900 # creating and moving files from /tmp can sometimes cause problems.
7901 # Create a temporary directory, and hook for its removal unless debugging.
7902 $debug ||
7903 {
7904 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7905 trap '{ (exit 1); exit 1; }' 1 2 13 15
7906 }
7907
7908 # Create a (secure) tmp directory for tmp files.
7909
7910 {
7911 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7912 test -n "$tmp" && test -d "$tmp"
7913 } ||
7914 {
7915 tmp=./confstat$$-$RANDOM
7916 (umask 077 && mkdir $tmp)
7917 } ||
7918 {
7919 echo "$me: cannot create a temporary directory in ." >&2
7920 { (exit 1); exit 1; }
7921 }
7922
7923 _ACEOF
7924
7925 cat >>$CONFIG_STATUS <<_ACEOF
7926
7927 #
7928 # CONFIG_FILES section.
7929 #
7930
7931 # No need to generate the scripts if there are no CONFIG_FILES.
7932 # This happens for instance when ./config.status config.h
7933 if test -n "\$CONFIG_FILES"; then
7934 # Protect against being on the right side of a sed subst in config.status.
7935 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7936 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7937 s,@SHELL@,$SHELL,;t t
7938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7944 s,@exec_prefix@,$exec_prefix,;t t
7945 s,@prefix@,$prefix,;t t
7946 s,@program_transform_name@,$program_transform_name,;t t
7947 s,@bindir@,$bindir,;t t
7948 s,@sbindir@,$sbindir,;t t
7949 s,@libexecdir@,$libexecdir,;t t
7950 s,@datadir@,$datadir,;t t
7951 s,@sysconfdir@,$sysconfdir,;t t
7952 s,@sharedstatedir@,$sharedstatedir,;t t
7953 s,@localstatedir@,$localstatedir,;t t
7954 s,@libdir@,$libdir,;t t
7955 s,@includedir@,$includedir,;t t
7956 s,@oldincludedir@,$oldincludedir,;t t
7957 s,@infodir@,$infodir,;t t
7958 s,@mandir@,$mandir,;t t
7959 s,@build_alias@,$build_alias,;t t
7960 s,@host_alias@,$host_alias,;t t
7961 s,@target_alias@,$target_alias,;t t
7962 s,@DEFS@,$DEFS,;t t
7963 s,@ECHO_C@,$ECHO_C,;t t
7964 s,@ECHO_N@,$ECHO_N,;t t
7965 s,@ECHO_T@,$ECHO_T,;t t
7966 s,@LIBS@,$LIBS,;t t
7967 s,@with_fp@,$with_fp,;t t
7968 s,@with_cvs@,$with_cvs,;t t
7969 s,@enable_check_abi@,$enable_check_abi,;t t
7970 s,@oldest_abi@,$oldest_abi,;t t
7971 s,@bindnow@,$bindnow,;t t
7972 s,@force_install@,$force_install,;t t
7973 s,@all_warnings@,$all_warnings,;t t
7974 s,@build@,$build,;t t
7975 s,@build_cpu@,$build_cpu,;t t
7976 s,@build_vendor@,$build_vendor,;t t
7977 s,@build_os@,$build_os,;t t
7978 s,@host@,$host,;t t
7979 s,@host_cpu@,$host_cpu,;t t
7980 s,@host_vendor@,$host_vendor,;t t
7981 s,@host_os@,$host_os,;t t
7982 s,@subdirs@,$subdirs,;t t
7983 s,@add_ons@,$add_ons,;t t
7984 s,@base_machine@,$base_machine,;t t
7985 s,@sysnames@,$sysnames,;t t
7986 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7987 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7988 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7989 s,@LN_S@,$LN_S,;t t
7990 s,@CC@,$CC,;t t
7991 s,@CFLAGS@,$CFLAGS,;t t
7992 s,@LDFLAGS@,$LDFLAGS,;t t
7993 s,@CPPFLAGS@,$CPPFLAGS,;t t
7994 s,@ac_ct_CC@,$ac_ct_CC,;t t
7995 s,@OBJEXT@,$OBJEXT,;t t
7996 s,@BUILD_CC@,$BUILD_CC,;t t
7997 s,@cross_compiling@,$cross_compiling,;t t
7998 s,@CPP@,$CPP,;t t
7999 s,@CXX@,$CXX,;t t
8000 s,@CXXFLAGS@,$CXXFLAGS,;t t
8001 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8002 s,@AR@,$AR,;t t
8003 s,@OBJDUMP@,$OBJDUMP,;t t
8004 s,@RANLIB@,$RANLIB,;t t
8005 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8006 s,@MIG@,$MIG,;t t
8007 s,@AS@,$AS,;t t
8008 s,@LD@,$LD,;t t
8009 s,@PWD_P@,$PWD_P,;t t
8010 s,@MAKE@,$MAKE,;t t
8011 s,@MSGFMT@,$MSGFMT,;t t
8012 s,@MAKEINFO@,$MAKEINFO,;t t
8013 s,@SED@,$SED,;t t
8014 s,@AUTOCONF@,$AUTOCONF,;t t
8015 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
8016 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
8017 s,@BASH@,$BASH,;t t
8018 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
8019 s,@KSH@,$KSH,;t t
8020 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
8021 s,@AWK@,$AWK,;t t
8022 s,@PERL@,$PERL,;t t
8023 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8024 s,@BISON@,$BISON,;t t
8025 s,@VERSIONING@,$VERSIONING,;t t
8026 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
8027 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
8028 s,@libc_cv_cc_with_libunwind@,$libc_cv_cc_with_libunwind,;t t
8029 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
8030 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
8031 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
8032 s,@libc_cv_z_relro@,$libc_cv_z_relro,;t t
8033 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
8034 s,@libc_cv_libgcc_s_suffix@,$libc_cv_libgcc_s_suffix,;t t
8035 s,@libc_cv_as_needed@,$libc_cv_as_needed,;t t
8036 s,@ASFLAGS_config@,$ASFLAGS_config,;t t
8037 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
8038 s,@libc_cv_z_execstack@,$libc_cv_z_execstack,;t t
8039 s,@libc_cv_fpie@,$libc_cv_fpie,;t t
8040 s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t
8041 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
8042 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
8043 s,@no_whole_archive@,$no_whole_archive,;t t
8044 s,@exceptions@,$exceptions,;t t
8045 s,@LIBGD@,$LIBGD,;t t
8046 s,@EGREP@,$EGREP,;t t
8047 s,@sizeof_long_double@,$sizeof_long_double,;t t
8048 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
8049 s,@uname_sysname@,$uname_sysname,;t t
8050 s,@uname_release@,$uname_release,;t t
8051 s,@uname_version@,$uname_version,;t t
8052 s,@old_glibc_headers@,$old_glibc_headers,;t t
8053 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
8054 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
8055 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
8056 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
8057 s,@libc_cv_forced_unwind@,$libc_cv_forced_unwind,;t t
8058 s,@use_ldconfig@,$use_ldconfig,;t t
8059 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
8060 s,@gnu_ld@,$gnu_ld,;t t
8061 s,@gnu_as@,$gnu_as,;t t
8062 s,@elf@,$elf,;t t
8063 s,@xcoff@,$xcoff,;t t
8064 s,@static@,$static,;t t
8065 s,@shared@,$shared,;t t
8066 s,@pic_default@,$pic_default,;t t
8067 s,@profile@,$profile,;t t
8068 s,@omitfp@,$omitfp,;t t
8069 s,@bounded@,$bounded,;t t
8070 s,@static_nss@,$static_nss,;t t
8071 s,@nopic_initfini@,$nopic_initfini,;t t
8072 s,@DEFINES@,$DEFINES,;t t
8073 s,@linux_doors@,$linux_doors,;t t
8074 s,@mach_interface_list@,$mach_interface_list,;t t
8075 s,@VERSION@,$VERSION,;t t
8076 s,@RELEASE@,$RELEASE,;t t
8077 s,@LIBOBJS@,$LIBOBJS,;t t
8078 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8079 CEOF
8080
8081 _ACEOF
8082
8083 cat >>$CONFIG_STATUS <<\_ACEOF
8084 # Split the substitutions into bite-sized pieces for seds with
8085 # small command number limits, like on Digital OSF/1 and HP-UX.
8086 ac_max_sed_lines=48
8087 ac_sed_frag=1 # Number of current file.
8088 ac_beg=1 # First line for current file.
8089 ac_end=$ac_max_sed_lines # Line after last line for current file.
8090 ac_more_lines=:
8091 ac_sed_cmds=
8092 while $ac_more_lines; do
8093 if test $ac_beg -gt 1; then
8094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8095 else
8096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8097 fi
8098 if test ! -s $tmp/subs.frag; then
8099 ac_more_lines=false
8100 else
8101 # The purpose of the label and of the branching condition is to
8102 # speed up the sed processing (if there are no `@' at all, there
8103 # is no need to browse any of the substitutions).
8104 # These are the two extra sed commands mentioned above.
8105 (echo ':t
8106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8107 if test -z "$ac_sed_cmds"; then
8108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8109 else
8110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8111 fi
8112 ac_sed_frag=`expr $ac_sed_frag + 1`
8113 ac_beg=$ac_end
8114 ac_end=`expr $ac_end + $ac_max_sed_lines`
8115 fi
8116 done
8117 if test -z "$ac_sed_cmds"; then
8118 ac_sed_cmds=cat
8119 fi
8120 fi # test -n "$CONFIG_FILES"
8121
8122 _ACEOF
8123 cat >>$CONFIG_STATUS <<\_ACEOF
8124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8126 case $ac_file in
8127 - | *:- | *:-:* ) # input from stdin
8128 cat >$tmp/stdin
8129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8133 * ) ac_file_in=$ac_file.in ;;
8134 esac
8135
8136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8139 X"$ac_file" : 'X\(//\)[^/]' \| \
8140 X"$ac_file" : 'X\(//\)$' \| \
8141 X"$ac_file" : 'X\(/\)' \| \
8142 . : '\(.\)' 2>/dev/null ||
8143 echo X"$ac_file" |
8144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8146 /^X\(\/\/\)$/{ s//\1/; q; }
8147 /^X\(\/\).*/{ s//\1/; q; }
8148 s/.*/./; q'`
8149 { if $as_mkdir_p; then
8150 mkdir -p "$ac_dir"
8151 else
8152 as_dir="$ac_dir"
8153 as_dirs=
8154 while test ! -d "$as_dir"; do
8155 as_dirs="$as_dir $as_dirs"
8156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8158 X"$as_dir" : 'X\(//\)[^/]' \| \
8159 X"$as_dir" : 'X\(//\)$' \| \
8160 X"$as_dir" : 'X\(/\)' \| \
8161 . : '\(.\)' 2>/dev/null ||
8162 echo X"$as_dir" |
8163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8165 /^X\(\/\/\)$/{ s//\1/; q; }
8166 /^X\(\/\).*/{ s//\1/; q; }
8167 s/.*/./; q'`
8168 done
8169 test ! -n "$as_dirs" || mkdir $as_dirs
8170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8172 { (exit 1); exit 1; }; }; }
8173
8174 ac_builddir=.
8175
8176 if test "$ac_dir" != .; then
8177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8178 # A "../" for each directory in $ac_dir_suffix.
8179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8180 else
8181 ac_dir_suffix= ac_top_builddir=
8182 fi
8183
8184 case $srcdir in
8185 .) # No --srcdir option. We are building in place.
8186 ac_srcdir=.
8187 if test -z "$ac_top_builddir"; then
8188 ac_top_srcdir=.
8189 else
8190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8191 fi ;;
8192 [\\/]* | ?:[\\/]* ) # Absolute path.
8193 ac_srcdir=$srcdir$ac_dir_suffix;
8194 ac_top_srcdir=$srcdir ;;
8195 *) # Relative path.
8196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8198 esac
8199 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8200 # absolute.
8201 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8202 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8203 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8204 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8205
8206
8207 case $INSTALL in
8208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8209 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8210 esac
8211
8212 if test x"$ac_file" != x-; then
8213 { echo "$as_me:$LINENO: creating $ac_file" >&5
8214 echo "$as_me: creating $ac_file" >&6;}
8215 rm -f "$ac_file"
8216 fi
8217 # Let's still pretend it is `configure' which instantiates (i.e., don't
8218 # use $as_me), people would be surprised to read:
8219 # /* config.h. Generated by config.status. */
8220 if test x"$ac_file" = x-; then
8221 configure_input=
8222 else
8223 configure_input="$ac_file. "
8224 fi
8225 configure_input=$configure_input"Generated from `echo $ac_file_in |
8226 sed 's,.*/,,'` by configure."
8227
8228 # First look for the input files in the build tree, otherwise in the
8229 # src tree.
8230 ac_file_inputs=`IFS=:
8231 for f in $ac_file_in; do
8232 case $f in
8233 -) echo $tmp/stdin ;;
8234 [\\/$]*)
8235 # Absolute (can't be DOS-style, as IFS=:)
8236 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8237 echo "$as_me: error: cannot find input file: $f" >&2;}
8238 { (exit 1); exit 1; }; }
8239 echo $f;;
8240 *) # Relative
8241 if test -f "$f"; then
8242 # Build tree
8243 echo $f
8244 elif test -f "$srcdir/$f"; then
8245 # Source tree
8246 echo $srcdir/$f
8247 else
8248 # /dev/null tree
8249 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8250 echo "$as_me: error: cannot find input file: $f" >&2;}
8251 { (exit 1); exit 1; }; }
8252 fi;;
8253 esac
8254 done` || { (exit 1); exit 1; }
8255 _ACEOF
8256 cat >>$CONFIG_STATUS <<_ACEOF
8257 sed "$ac_vpsub
8258 $extrasub
8259 _ACEOF
8260 cat >>$CONFIG_STATUS <<\_ACEOF
8261 :t
8262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8263 s,@configure_input@,$configure_input,;t t
8264 s,@srcdir@,$ac_srcdir,;t t
8265 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8266 s,@top_srcdir@,$ac_top_srcdir,;t t
8267 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8268 s,@builddir@,$ac_builddir,;t t
8269 s,@abs_builddir@,$ac_abs_builddir,;t t
8270 s,@top_builddir@,$ac_top_builddir,;t t
8271 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8272 s,@INSTALL@,$ac_INSTALL,;t t
8273 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8274 rm -f $tmp/stdin
8275 if test x"$ac_file" != x-; then
8276 mv $tmp/out $ac_file
8277 else
8278 cat $tmp/out
8279 rm -f $tmp/out
8280 fi
8281
8282 done
8283 _ACEOF
8284 cat >>$CONFIG_STATUS <<\_ACEOF
8285
8286 #
8287 # CONFIG_HEADER section.
8288 #
8289
8290 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8291 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8292 #
8293 # ac_d sets the value in "#define NAME VALUE" lines.
8294 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8295 ac_dB='[ ].*$,\1#\2'
8296 ac_dC=' '
8297 ac_dD=',;t'
8298 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8299 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8300 ac_uB='$,\1#\2define\3'
8301 ac_uC=' '
8302 ac_uD=',;t'
8303
8304 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8306 case $ac_file in
8307 - | *:- | *:-:* ) # input from stdin
8308 cat >$tmp/stdin
8309 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8311 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8313 * ) ac_file_in=$ac_file.in ;;
8314 esac
8315
8316 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8317 echo "$as_me: creating $ac_file" >&6;}
8318
8319 # First look for the input files in the build tree, otherwise in the
8320 # src tree.
8321 ac_file_inputs=`IFS=:
8322 for f in $ac_file_in; do
8323 case $f in
8324 -) echo $tmp/stdin ;;
8325 [\\/$]*)
8326 # Absolute (can't be DOS-style, as IFS=:)
8327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8328 echo "$as_me: error: cannot find input file: $f" >&2;}
8329 { (exit 1); exit 1; }; }
8330 echo $f;;
8331 *) # Relative
8332 if test -f "$f"; then
8333 # Build tree
8334 echo $f
8335 elif test -f "$srcdir/$f"; then
8336 # Source tree
8337 echo $srcdir/$f
8338 else
8339 # /dev/null tree
8340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8341 echo "$as_me: error: cannot find input file: $f" >&2;}
8342 { (exit 1); exit 1; }; }
8343 fi;;
8344 esac
8345 done` || { (exit 1); exit 1; }
8346 # Remove the trailing spaces.
8347 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8348
8349 _ACEOF
8350
8351 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8352 # `conftest.undefs', that substitutes the proper values into
8353 # config.h.in to produce config.h. The first handles `#define'
8354 # templates, and the second `#undef' templates.
8355 # And first: Protect against being on the right side of a sed subst in
8356 # config.status. Protect against being in an unquoted here document
8357 # in config.status.
8358 rm -f conftest.defines conftest.undefs
8359 # Using a here document instead of a string reduces the quoting nightmare.
8360 # Putting comments in sed scripts is not portable.
8361 #
8362 # `end' is used to avoid that the second main sed command (meant for
8363 # 0-ary CPP macros) applies to n-ary macro definitions.
8364 # See the Autoconf documentation for `clear'.
8365 cat >confdef2sed.sed <<\_ACEOF
8366 s/[\\&,]/\\&/g
8367 s,[\\$`],\\&,g
8368 t clear
8369 : clear
8370 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8371 t end
8372 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8373 : end
8374 _ACEOF
8375 # If some macros were called several times there might be several times
8376 # the same #defines, which is useless. Nevertheless, we may not want to
8377 # sort them, since we want the *last* AC-DEFINE to be honored.
8378 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8379 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8380 rm -f confdef2sed.sed
8381
8382 # This sed command replaces #undef with comments. This is necessary, for
8383 # example, in the case of _POSIX_SOURCE, which is predefined and required
8384 # on some systems where configure will not decide to define it.
8385 cat >>conftest.undefs <<\_ACEOF
8386 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8387 _ACEOF
8388
8389 # Break up conftest.defines because some shells have a limit on the size
8390 # of here documents, and old seds have small limits too (100 cmds).
8391 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8392 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8393 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8394 echo ' :' >>$CONFIG_STATUS
8395 rm -f conftest.tail
8396 while grep . conftest.defines >/dev/null
8397 do
8398 # Write a limited-size here document to $tmp/defines.sed.
8399 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8400 # Speed up: don't consider the non `#define' lines.
8401 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8402 # Work around the forget-to-reset-the-flag bug.
8403 echo 't clr' >>$CONFIG_STATUS
8404 echo ': clr' >>$CONFIG_STATUS
8405 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8406 echo 'CEOF
8407 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8408 rm -f $tmp/in
8409 mv $tmp/out $tmp/in
8410 ' >>$CONFIG_STATUS
8411 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8412 rm -f conftest.defines
8413 mv conftest.tail conftest.defines
8414 done
8415 rm -f conftest.defines
8416 echo ' fi # grep' >>$CONFIG_STATUS
8417 echo >>$CONFIG_STATUS
8418
8419 # Break up conftest.undefs because some shells have a limit on the size
8420 # of here documents, and old seds have small limits too (100 cmds).
8421 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8422 rm -f conftest.tail
8423 while grep . conftest.undefs >/dev/null
8424 do
8425 # Write a limited-size here document to $tmp/undefs.sed.
8426 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8427 # Speed up: don't consider the non `#undef'
8428 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8429 # Work around the forget-to-reset-the-flag bug.
8430 echo 't clr' >>$CONFIG_STATUS
8431 echo ': clr' >>$CONFIG_STATUS
8432 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8433 echo 'CEOF
8434 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8435 rm -f $tmp/in
8436 mv $tmp/out $tmp/in
8437 ' >>$CONFIG_STATUS
8438 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8439 rm -f conftest.undefs
8440 mv conftest.tail conftest.undefs
8441 done
8442 rm -f conftest.undefs
8443
8444 cat >>$CONFIG_STATUS <<\_ACEOF
8445 # Let's still pretend it is `configure' which instantiates (i.e., don't
8446 # use $as_me), people would be surprised to read:
8447 # /* config.h. Generated by config.status. */
8448 if test x"$ac_file" = x-; then
8449 echo "/* Generated by configure. */" >$tmp/config.h
8450 else
8451 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8452 fi
8453 cat $tmp/in >>$tmp/config.h
8454 rm -f $tmp/in
8455 if test x"$ac_file" != x-; then
8456 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8457 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8458 echo "$as_me: $ac_file is unchanged" >&6;}
8459 else
8460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8462 X"$ac_file" : 'X\(//\)[^/]' \| \
8463 X"$ac_file" : 'X\(//\)$' \| \
8464 X"$ac_file" : 'X\(/\)' \| \
8465 . : '\(.\)' 2>/dev/null ||
8466 echo X"$ac_file" |
8467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8469 /^X\(\/\/\)$/{ s//\1/; q; }
8470 /^X\(\/\).*/{ s//\1/; q; }
8471 s/.*/./; q'`
8472 { if $as_mkdir_p; then
8473 mkdir -p "$ac_dir"
8474 else
8475 as_dir="$ac_dir"
8476 as_dirs=
8477 while test ! -d "$as_dir"; do
8478 as_dirs="$as_dir $as_dirs"
8479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8481 X"$as_dir" : 'X\(//\)[^/]' \| \
8482 X"$as_dir" : 'X\(//\)$' \| \
8483 X"$as_dir" : 'X\(/\)' \| \
8484 . : '\(.\)' 2>/dev/null ||
8485 echo X"$as_dir" |
8486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8488 /^X\(\/\/\)$/{ s//\1/; q; }
8489 /^X\(\/\).*/{ s//\1/; q; }
8490 s/.*/./; q'`
8491 done
8492 test ! -n "$as_dirs" || mkdir $as_dirs
8493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8495 { (exit 1); exit 1; }; }; }
8496
8497 rm -f $ac_file
8498 mv $tmp/config.h $ac_file
8499 fi
8500 else
8501 cat $tmp/config.h
8502 rm -f $tmp/config.h
8503 fi
8504 done
8505 _ACEOF
8506 cat >>$CONFIG_STATUS <<\_ACEOF
8507
8508 #
8509 # CONFIG_COMMANDS section.
8510 #
8511 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8512 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8513 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8514 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8516 X"$ac_dest" : 'X\(//\)[^/]' \| \
8517 X"$ac_dest" : 'X\(//\)$' \| \
8518 X"$ac_dest" : 'X\(/\)' \| \
8519 . : '\(.\)' 2>/dev/null ||
8520 echo X"$ac_dest" |
8521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8523 /^X\(\/\/\)$/{ s//\1/; q; }
8524 /^X\(\/\).*/{ s//\1/; q; }
8525 s/.*/./; q'`
8526 ac_builddir=.
8527
8528 if test "$ac_dir" != .; then
8529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8530 # A "../" for each directory in $ac_dir_suffix.
8531 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8532 else
8533 ac_dir_suffix= ac_top_builddir=
8534 fi
8535
8536 case $srcdir in
8537 .) # No --srcdir option. We are building in place.
8538 ac_srcdir=.
8539 if test -z "$ac_top_builddir"; then
8540 ac_top_srcdir=.
8541 else
8542 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8543 fi ;;
8544 [\\/]* | ?:[\\/]* ) # Absolute path.
8545 ac_srcdir=$srcdir$ac_dir_suffix;
8546 ac_top_srcdir=$srcdir ;;
8547 *) # Relative path.
8548 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8549 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8550 esac
8551 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8552 # absolute.
8553 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8554 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8555 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8556 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8557
8558
8559 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8560 echo "$as_me: executing $ac_dest commands" >&6;}
8561 case $ac_dest in
8562 default )
8563 case $CONFIG_FILES in *config.make*)
8564 echo "$config_vars" >> config.make;;
8565 esac
8566 test -d bits || mkdir bits ;;
8567 esac
8568 done
8569 _ACEOF
8570
8571 cat >>$CONFIG_STATUS <<\_ACEOF
8572
8573 { (exit 0); exit 0; }
8574 _ACEOF
8575 chmod +x $CONFIG_STATUS
8576 ac_clean_files=$ac_clean_files_save
8577
8578
8579 # configure is writing to config.log, and then calls config.status.
8580 # config.status does its own redirection, appending to config.log.
8581 # Unfortunately, on DOS this fails, as config.log is still kept open
8582 # by configure, so config.status won't be able to write to it; its
8583 # output is simply discarded. So we exec the FD to /dev/null,
8584 # effectively closing config.log, so it can be properly (re)opened and
8585 # appended to by config.status. When coming back to configure, we
8586 # need to make the FD available again.
8587 if test "$no_create" != yes; then
8588 ac_cs_success=:
8589 ac_config_status_args=
8590 test "$silent" = yes &&
8591 ac_config_status_args="$ac_config_status_args --quiet"
8592 exec 5>/dev/null
8593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8594 exec 5>>config.log
8595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8596 # would make configure fail if this is the last instruction.
8597 $ac_cs_success || { (exit 1); exit 1; }
8598 fi
8599
8600 #
8601 # CONFIG_SUBDIRS section.
8602 #
8603 if test "$no_recursion" != yes; then
8604
8605 # Remove --cache-file and --srcdir arguments so they do not pile up.
8606 ac_sub_configure_args=
8607 ac_prev=
8608 for ac_arg in $ac_configure_args; do
8609 if test -n "$ac_prev"; then
8610 ac_prev=
8611 continue
8612 fi
8613 case $ac_arg in
8614 -cache-file | --cache-file | --cache-fil | --cache-fi \
8615 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8616 ac_prev=cache_file ;;
8617 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8618 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8619 | --c=*)
8620 ;;
8621 --config-cache | -C)
8622 ;;
8623 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8624 ac_prev=srcdir ;;
8625 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8626 ;;
8627 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8628 ac_prev=prefix ;;
8629 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8630 ;;
8631 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8632 esac
8633 done
8634
8635 # Always prepend --prefix to ensure using the same prefix
8636 # in subdir configurations.
8637 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8638
8639 ac_popdir=`pwd`
8640 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8641
8642 # Do not complain, so a configure script can configure whichever
8643 # parts of a large source tree are present.
8644 test -d $srcdir/$ac_dir || continue
8645
8646 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8647 echo "$as_me: configuring in $ac_dir" >&6;}
8648 { if $as_mkdir_p; then
8649 mkdir -p "$ac_dir"
8650 else
8651 as_dir="$ac_dir"
8652 as_dirs=
8653 while test ! -d "$as_dir"; do
8654 as_dirs="$as_dir $as_dirs"
8655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8657 X"$as_dir" : 'X\(//\)[^/]' \| \
8658 X"$as_dir" : 'X\(//\)$' \| \
8659 X"$as_dir" : 'X\(/\)' \| \
8660 . : '\(.\)' 2>/dev/null ||
8661 echo X"$as_dir" |
8662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8664 /^X\(\/\/\)$/{ s//\1/; q; }
8665 /^X\(\/\).*/{ s//\1/; q; }
8666 s/.*/./; q'`
8667 done
8668 test ! -n "$as_dirs" || mkdir $as_dirs
8669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8670 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8671 { (exit 1); exit 1; }; }; }
8672
8673 ac_builddir=.
8674
8675 if test "$ac_dir" != .; then
8676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8677 # A "../" for each directory in $ac_dir_suffix.
8678 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8679 else
8680 ac_dir_suffix= ac_top_builddir=
8681 fi
8682
8683 case $srcdir in
8684 .) # No --srcdir option. We are building in place.
8685 ac_srcdir=.
8686 if test -z "$ac_top_builddir"; then
8687 ac_top_srcdir=.
8688 else
8689 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8690 fi ;;
8691 [\\/]* | ?:[\\/]* ) # Absolute path.
8692 ac_srcdir=$srcdir$ac_dir_suffix;
8693 ac_top_srcdir=$srcdir ;;
8694 *) # Relative path.
8695 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8696 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8697 esac
8698 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8699 # absolute.
8700 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8701 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8702 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8703 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8704
8705
8706 cd $ac_dir
8707
8708 # Check for guested configure; otherwise get Cygnus style configure.
8709 if test -f $ac_srcdir/configure.gnu; then
8710 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8711 elif test -f $ac_srcdir/configure; then
8712 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8713 elif test -f $ac_srcdir/configure.in; then
8714 ac_sub_configure=$ac_configure
8715 else
8716 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8717 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8718 ac_sub_configure=
8719 fi
8720
8721 # The recursion is here.
8722 if test -n "$ac_sub_configure"; then
8723 # Make the cache file name correct relative to the subdirectory.
8724 case $cache_file in
8725 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8726 *) # Relative path.
8727 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8728 esac
8729
8730 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8731 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8732 # The eval makes quoting arguments work.
8733 eval $ac_sub_configure $ac_sub_configure_args \
8734 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8735 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8736 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8737 { (exit 1); exit 1; }; }
8738 fi
8739
8740 cd $ac_popdir
8741 done
8742 fi
8743