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