libfuncs.h (LTI_synchronize): New libfunc_index.
[official-gcc.git] / libiberty / configure
blob50e9ba3699e1eb1aa036c3a0f5fa050796b9daa2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
314 ac_pwd=`pwd`
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-maintainer-mode
849 enable make rules and dependencies not useful
850 (and sometimes confusing) to the casual installer
851 --enable-multilib build many library versions (default)
852 --enable-install-libiberty Install headers for end users
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
858 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
859 --with-cross-host=HOST Configuring with a cross compiler
860 --with-newlib Configuring with newlib
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
913 case "$ac_dir" in
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
931 case $ac_srcdir in
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 esac;;
945 esac
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 cd $ac_popdir
963 done
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
984 $ $0 $@
986 _ACEOF
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 _ASUNAME
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1020 } >&5
1022 cat >&5 <<_ACEOF
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1029 _ACEOF
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1044 for ac_arg
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1091 echo
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 esac;
1114 echo
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1215 done
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 # differences in whitespace do not lead to failure.
1256 ac_old_val_w=`echo x $ac_old_val`
1257 ac_new_val_w=`echo x $ac_new_val`
1258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 ac_cache_corrupted=:
1262 else
1263 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1264 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1265 eval $ac_var=\$ac_old_val
1267 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1268 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1269 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1270 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1285 done
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1288 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 # This works around the fact that libtool configuration may change LD
1326 # for this particular configuration, but some shells, instead of
1327 # keeping the changes in LD private, export them just because LD is
1328 # exported. We don't use libtool yet, but some day we might, so...
1329 ORIGINAL_LD_FOR_MULTILIBS=$LD
1332 # Check whether --with-target-subdir or --without-target-subdir was given.
1333 if test "${with_target_subdir+set}" = set; then
1334 withval="$with_target_subdir"
1338 # Check whether --with-build-subdir or --without-build-subdir was given.
1339 if test "${with_build_subdir+set}" = set; then
1340 withval="$with_build_subdir"
1344 # Check whether --with-cross-host or --without-cross-host was given.
1345 if test "${with_cross_host+set}" = set; then
1346 withval="$with_cross_host"
1350 # Check whether --with-newlib or --without-newlib was given.
1351 if test "${with_newlib+set}" = set; then
1352 withval="$with_newlib"
1356 if test "${srcdir}" = "."; then
1357 if test -n "${with_build_subdir}"; then
1358 libiberty_topdir="${srcdir}/../.."
1359 with_target_subdir=
1360 elif test -z "${with_target_subdir}"; then
1361 libiberty_topdir="${srcdir}/.."
1362 else
1363 if test "${with_target_subdir}" != "."; then
1364 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1365 else
1366 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1369 else
1370 libiberty_topdir="${srcdir}/.."
1373 ac_aux_dir=
1374 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1375 if 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/install.sh; then
1380 ac_aux_dir=$ac_dir
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1382 break
1383 elif test -f $ac_dir/shtool; then
1384 ac_aux_dir=$ac_dir
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1386 break
1388 done
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1401 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1402 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1403 if test "${enable_maintainer_mode+set}" = set; then
1404 enableval="$enable_maintainer_mode"
1405 maintainer_mode=$enableval
1406 else
1407 maintainer_mode=no
1410 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1411 echo "${ECHO_T}$maintainer_mode" >&6
1413 if test "$maintainer_mode" = "yes"; then
1414 MAINT=''
1415 NOTMAINT='#'
1416 else
1417 MAINT='#'
1418 NOTMAINT=''
1421 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1422 # rely on it - libiberty is built before texinfo.
1423 # Extract the first word of "makeinfo", so it can be a program name with args.
1424 set dummy makeinfo; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430 if test -n "$MAKEINFO"; then
1431 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1432 else
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1436 IFS=$as_save_IFS
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_prog_MAKEINFO="makeinfo"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 break 2
1444 done
1445 done
1449 MAKEINFO=$ac_cv_prog_MAKEINFO
1450 if test -n "$MAKEINFO"; then
1451 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1452 echo "${ECHO_T}$MAKEINFO" >&6
1453 else
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1458 if test "x$MAKEINFO" = "x"; then
1459 MAKEINFO="@echo makeinfo missing; true"
1460 BUILD_INFO=
1461 else
1462 BUILD_INFO=info
1463 case "$MAKEINFO" in
1464 */missing\ makeinfo*)
1465 BUILD_INFO=
1466 { echo "$as_me:$LINENO: WARNING:
1467 *** Makeinfo is missing. Info documentation will not be built." >&5
1468 echo "$as_me: WARNING:
1469 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1472 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1473 x*\ [1-3].* )
1474 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1475 BUILD_INFO=
1476 { echo "$as_me:$LINENO: WARNING:
1477 *** Makeinfo is too old. Info documentation will not be built." >&5
1478 echo "$as_me: WARNING:
1479 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1481 esac
1483 esac
1488 # Extract the first word of "perl", so it can be a program name with args.
1489 set dummy perl; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_PERL+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 if test -n "$PERL"; then
1496 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1497 else
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_PERL="perl"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1509 done
1510 done
1514 PERL=$ac_cv_prog_PERL
1515 if test -n "$PERL"; then
1516 echo "$as_me:$LINENO: result: $PERL" >&5
1517 echo "${ECHO_T}$PERL" >&6
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1523 if test x"$PERL" = x""; then
1524 HAVE_PERL='#'
1525 else
1526 HAVE_PERL=''
1530 # Make sure we can run config.sub.
1531 $ac_config_sub sun4 >/dev/null 2>&1 ||
1532 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: checking build system type" >&5
1537 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538 if test "${ac_cv_build+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541 ac_cv_build_alias=$build_alias
1542 test -z "$ac_cv_build_alias" &&
1543 ac_cv_build_alias=`$ac_config_guess`
1544 test -z "$ac_cv_build_alias" &&
1545 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547 { (exit 1); exit 1; }; }
1548 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551 { (exit 1); exit 1; }; }
1554 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555 echo "${ECHO_T}$ac_cv_build" >&6
1556 build=$ac_cv_build
1557 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562 echo "$as_me:$LINENO: checking host system type" >&5
1563 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564 if test "${ac_cv_host+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 ac_cv_host_alias=$host_alias
1568 test -z "$ac_cv_host_alias" &&
1569 ac_cv_host_alias=$ac_cv_build_alias
1570 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577 echo "${ECHO_T}$ac_cv_host" >&6
1578 host=$ac_cv_host
1579 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 if test -n "$ac_tool_prefix"; then
1587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}ar; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_AR+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 if test -n "$AR"; then
1595 ac_cv_prog_AR="$AR" # Let the user override the test.
1596 else
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_AR="${ac_tool_prefix}ar"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 break 2
1608 done
1609 done
1613 AR=$ac_cv_prog_AR
1614 if test -n "$AR"; then
1615 echo "$as_me:$LINENO: result: $AR" >&5
1616 echo "${ECHO_T}$AR" >&6
1617 else
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1623 if test -z "$ac_cv_prog_AR"; then
1624 ac_ct_AR=$AR
1625 # Extract the first word of "ar", so it can be a program name with args.
1626 set dummy ar; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 if test -n "$ac_ct_AR"; then
1633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_AR="ar"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1646 done
1647 done
1651 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1652 if test -n "$ac_ct_AR"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1654 echo "${ECHO_T}$ac_ct_AR" >&6
1655 else
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1660 AR=$ac_ct_AR
1661 else
1662 AR="$ac_cv_prog_AR"
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_RANLIB+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 if test -n "$RANLIB"; then
1674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1675 else
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1687 done
1688 done
1692 RANLIB=$ac_cv_prog_RANLIB
1693 if test -n "$RANLIB"; then
1694 echo "$as_me:$LINENO: result: $RANLIB" >&5
1695 echo "${ECHO_T}$RANLIB" >&6
1696 else
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1702 if test -z "$ac_cv_prog_RANLIB"; then
1703 ac_ct_RANLIB=$RANLIB
1704 # Extract the first word of "ranlib", so it can be a program name with args.
1705 set dummy ranlib; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$ac_ct_RANLIB"; then
1712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_ac_ct_RANLIB="ranlib"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1725 done
1726 done
1728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1732 if test -n "$ac_ct_RANLIB"; then
1733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 RANLIB=$ac_ct_RANLIB
1741 else
1742 RANLIB="$ac_cv_prog_RANLIB"
1746 # Add --enable-multilib to configure.
1747 # Default to --enable-multilib
1748 # Check whether --enable-multilib or --disable-multilib was given.
1749 if test "${enable_multilib+set}" = set; then
1750 enableval="$enable_multilib"
1751 case "$enableval" in
1752 yes) multilib=yes ;;
1753 no) multilib=no ;;
1754 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1755 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1756 { (exit 1); exit 1; }; } ;;
1757 esac
1758 else
1759 multilib=yes
1762 # Even if the default multilib is not a cross compilation,
1763 # it may be that some of the other multilibs are.
1764 if test $cross_compiling = no && test $multilib = yes \
1765 && test "x${with_multisubdir}" != x ; then
1766 cross_compiling=maybe
1770 ac_ext=c
1771 ac_cpp='$CPP $CPPFLAGS'
1772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775 if test -n "$ac_tool_prefix"; then
1776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1778 echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780 if test "${ac_cv_prog_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1797 done
1798 done
1802 CC=$ac_cv_prog_CC
1803 if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805 echo "${ECHO_T}$CC" >&6
1806 else
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1812 if test -z "$ac_cv_prog_CC"; then
1813 ac_ct_CC=$CC
1814 # Extract the first word of "gcc", so it can be a program name with args.
1815 set dummy gcc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$ac_ct_CC"; then
1822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_ac_ct_CC="gcc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1835 done
1836 done
1840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841 if test -n "$ac_ct_CC"; then
1842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1843 echo "${ECHO_T}$ac_ct_CC" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 CC=$ac_ct_CC
1850 else
1851 CC="$ac_cv_prog_CC"
1854 if test -z "$CC"; then
1855 if test -n "$ac_tool_prefix"; then
1856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1857 set dummy ${ac_tool_prefix}cc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_CC="${ac_tool_prefix}cc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1877 done
1878 done
1882 CC=$ac_cv_prog_CC
1883 if test -n "$CC"; then
1884 echo "$as_me:$LINENO: result: $CC" >&5
1885 echo "${ECHO_T}$CC" >&6
1886 else
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1892 if test -z "$ac_cv_prog_CC"; then
1893 ac_ct_CC=$CC
1894 # Extract the first word of "cc", so it can be a program name with args.
1895 set dummy cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="cc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 CC=$ac_ct_CC
1930 else
1931 CC="$ac_cv_prog_CC"
1935 if test -z "$CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 ac_prog_rejected=no
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1955 ac_prog_rejected=yes
1956 continue
1958 ac_cv_prog_CC="cc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1962 done
1963 done
1965 if test $ac_prog_rejected = yes; then
1966 # We found a bogon in the path, so make sure we never use it.
1967 set dummy $ac_cv_prog_CC
1968 shift
1969 if test $# != 0; then
1970 # We chose a different compiler from the bogus one.
1971 # However, it has the same basename, so the bogon will be chosen
1972 # first if we set CC to just the basename; use the full file name.
1973 shift
1974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1979 CC=$ac_cv_prog_CC
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1983 else
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1989 if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1991 for ac_prog in cl
1993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2014 done
2015 done
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2028 test -n "$CC" && break
2029 done
2031 if test -z "$CC"; then
2032 ac_ct_CC=$CC
2033 for ac_prog in cl
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2056 done
2057 done
2061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062 if test -n "$ac_ct_CC"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064 echo "${ECHO_T}$ac_ct_CC" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$ac_ct_CC" && break
2071 done
2073 CC=$ac_ct_CC
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }; }
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO:" \
2089 "checking for C compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2092 (eval $ac_compiler --version </dev/null >&5) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2097 (eval $ac_compiler -v </dev/null >&5) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2102 (eval $ac_compiler -V </dev/null >&5) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2115 main ()
2119 return 0;
2121 _ACEOF
2122 # FIXME: Cleanup?
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124 (eval $ac_link) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 gcc_no_link=no
2129 else
2130 gcc_no_link=yes
2133 if test x$gcc_no_link = xyes; then
2134 # Setting cross_compile will disable run tests; it will
2135 # also disable AC_CHECK_FILE but that's generally
2136 # correct if we can't link.
2137 cross_compiling=yes
2138 EXEEXT=
2139 else
2140 cat >conftest.$ac_ext <<_ACEOF
2141 /* confdefs.h. */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2148 main ()
2152 return 0;
2154 _ACEOF
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2159 # of exeext.
2160 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164 (eval $ac_link_default) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Find the output, starting from the most likely. This scheme is
2169 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170 # resort.
2172 # Be careful to initialize this variable, since it used to be cached.
2173 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174 ac_cv_exeext=
2175 # b.out is created by i960 compilers.
2176 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178 test -f "$ac_file" || continue
2179 case $ac_file in
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2182 conftest.$ac_ext )
2183 # This is the source file.
2185 [ab].out )
2186 # We found the default executable, but exeext='' is most
2187 # certainly right.
2188 break;;
2189 *.* )
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # FIXME: I believe we export ac_cv_exeext for Libtool,
2192 # but it would be cool to find out if it's true. Does anybody
2193 # maintain Libtool? --akim.
2194 export ac_cv_exeext
2195 break;;
2197 break;;
2198 esac
2199 done
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2205 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }; }
2213 ac_exeext=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
2235 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2236 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }; }
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 # `rm'.
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2272 case $ac_file in
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 export ac_cv_exeext
2276 break;;
2277 * ) break;;
2278 esac
2279 done
2280 else
2281 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2282 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }; }
2290 rm -f conftest$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h. */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2311 main ()
2315 return 0;
2317 _ACEOF
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 break;;
2329 esac
2330 done
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2336 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2365 #ifndef __GNUC__
2366 choke me
2367 #endif
2370 return 0;
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 ac_compiler_gnu=yes
2396 else
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 ac_compiler_gnu=no
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2425 main ()
2429 return 0;
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cc_g=yes
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_cv_prog_cc_g=no
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2469 CFLAGS="-g -O2"
2470 else
2471 CFLAGS="-g"
2473 else
2474 if test "$GCC" = yes; then
2475 CFLAGS="-O2"
2476 else
2477 CFLAGS=
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h. */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501 char **p;
2502 int i;
2504 return p[i];
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2508 char *s;
2509 va_list v;
2510 va_start (v,p);
2511 s = g (p, va_arg (v,int));
2512 va_end (v);
2513 return s;
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2532 main ()
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2536 return 0;
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2585 case "x$ac_cv_prog_cc_stdc" in
2586 x|xno)
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601 choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2627 '' \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2632 'void exit (int);'
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h. */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 $ac_declaration
2641 #include <stdlib.h>
2643 main ()
2645 exit (42);
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 continue
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 $ac_declaration
2688 main ()
2690 exit (42);
2692 return 0;
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 break
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2750 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2751 # On Suns, sometimes $CPP names a directory.
2752 if test -n "$CPP" && test -d "$CPP"; then
2753 CPP=
2755 if test -z "$CPP"; then
2756 if test "${ac_cv_prog_CPP+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 # Double quotes because CPP needs to be expanded
2760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2762 ac_preproc_ok=false
2763 for ac_c_preproc_warn_flag in '' yes
2765 # Use a header file that comes with gcc, so configuring glibc
2766 # with a fresh cross-compiler works.
2767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768 # <limits.h> exists even on freestanding compilers.
2769 # On the NeXT, cc -E runs the code through the compiler's parser,
2770 # not just through cpp. "Syntax error" is here to catch this case.
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #ifdef __STDC__
2778 # include <limits.h>
2779 #else
2780 # include <assert.h>
2781 #endif
2782 Syntax error
2783 _ACEOF
2784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } >/dev/null; then
2792 if test -s conftest.err; then
2793 ac_cpp_err=$ac_c_preproc_warn_flag
2794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2795 else
2796 ac_cpp_err=
2798 else
2799 ac_cpp_err=yes
2801 if test -z "$ac_cpp_err"; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 # Broken: fails on valid input.
2808 continue
2810 rm -f conftest.err conftest.$ac_ext
2812 # OK, works on sane cases. Now check whether non-existent headers
2813 # can be detected and how.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <ac_nonexistent.h>
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_c_preproc_warn_flag
2832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2833 else
2834 ac_cpp_err=
2836 else
2837 ac_cpp_err=yes
2839 if test -z "$ac_cpp_err"; then
2840 # Broken: success on invalid input.
2841 continue
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Passes both tests.
2847 ac_preproc_ok=:
2848 break
2850 rm -f conftest.err conftest.$ac_ext
2852 done
2853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854 rm -f conftest.err conftest.$ac_ext
2855 if $ac_preproc_ok; then
2856 break
2859 done
2860 ac_cv_prog_CPP=$CPP
2863 CPP=$ac_cv_prog_CPP
2864 else
2865 ac_cv_prog_CPP=$CPP
2867 echo "$as_me:$LINENO: result: $CPP" >&5
2868 echo "${ECHO_T}$CPP" >&6
2869 ac_preproc_ok=false
2870 for ac_c_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2964 else
2965 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2966 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968 See \`config.log' for more details." >&5
2969 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&2;}
2971 { (exit 1); exit 1; }; }; }
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 ac_c_preproc_warn_flag=yes
2984 ac_libiberty_warn_cflags=
2985 save_CFLAGS="$CFLAGS"
2986 for option in -W -Wall -Wwrite-strings -Wc++-compat \
2987 -Wstrict-prototypes; do
2988 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2990 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2991 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2992 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 CFLAGS="$option"
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3004 main ()
3008 return 0;
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 eval "$as_acx_Woption=yes"
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 eval "$as_acx_Woption=no"
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3044 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3045 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3046 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3049 done
3050 CFLAGS="$save_CFLAGS"
3052 if test "$GCC" = yes; then
3053 echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3054 echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3055 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 save_CFLAGS="$CFLAGS"
3059 CFLAGS="-pedantic "
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 acx_cv_prog_cc_pedantic_=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 acx_cv_prog_cc_pedantic_=no
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 CFLAGS="$save_CFLAGS"
3107 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3108 echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3109 if test $acx_cv_prog_cc_pedantic_ = yes; then
3110 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3118 if test "x$CC" != xcc; then
3119 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3120 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3121 else
3122 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3123 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3125 set dummy $CC; ac_cc=`echo $2 |
3126 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3138 main ()
3142 return 0;
3144 _ACEOF
3145 # Make sure it works both with $CC and with simple cc.
3146 # We do the test twice because some compilers refuse to overwrite an
3147 # existing .o file with -o, though they will create one.
3148 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3149 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); };
3159 then
3160 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3161 if test "x$CC" != xcc; then
3162 # Test first that cc exists at all.
3163 if { ac_try='cc -c conftest.$ac_ext >&5'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3170 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); };
3180 then
3181 # cc works too.
3183 else
3184 # cc exists but doesn't like -o.
3185 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3189 else
3190 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3192 rm -f conftest*
3195 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 else
3199 echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3202 cat >>confdefs.h <<\_ACEOF
3203 #define NO_MINUS_C_MINUS_O 1
3204 _ACEOF
3208 # autoconf is lame and doesn't give us any substitution variable for this.
3209 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3210 NO_MINUS_C_MINUS_O=yes
3211 else
3212 OUTPUT_OPTION='-o $@'
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 main ()
3232 /* FIXME: Include the comments suggested by Paul. */
3233 #ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3257 *t++ = 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3277 #endif
3280 return 0;
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 ac_cv_c_const=no
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3318 cat >>confdefs.h <<\_ACEOF
3319 #define const
3320 _ACEOF
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 ac_cv_c_inline=no
3330 for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #ifndef __cplusplus
3338 typedef int foo_t;
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3341 #endif
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 done
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3380 case $ac_cv_c_inline in
3381 inline | yes) ;;
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388 #ifndef __cplusplus
3389 #define inline $ac_val
3390 #endif
3391 _ACEOF
3393 esac
3395 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3396 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3397 if test "${ac_cv_c_bigendian+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 # See if sys/param.h defines the BYTE_ORDER macro.
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <sys/types.h>
3408 #include <sys/param.h>
3411 main ()
3413 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3414 bogus endian macros
3415 #endif
3418 return 0;
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 # It does; now see whether it defined to BIG_ENDIAN or not.
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <sys/types.h>
3451 #include <sys/param.h>
3454 main ()
3456 #if BYTE_ORDER != BIG_ENDIAN
3457 not big endian
3458 #endif
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_c_bigendian=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_cv_c_bigendian=no
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # It does not; compile a test program.
3499 if test "$cross_compiling" = yes; then
3500 # try to guess the endianness by grepping values into an object file
3501 ac_cv_c_bigendian=unknown
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3509 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3510 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3511 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3512 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3513 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3515 main ()
3517 _ascii (); _ebcdic ();
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3545 ac_cv_c_bigendian=yes
3547 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3548 if test "$ac_cv_c_bigendian" = unknown; then
3549 ac_cv_c_bigendian=no
3550 else
3551 # finding both strings is unlikely to happen, but who knows?
3552 ac_cv_c_bigendian=unknown
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561 else
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 main ()
3571 /* Are we little or big endian? From Harbison&Steele. */
3572 union
3574 long l;
3575 char c[sizeof (long)];
3576 } u;
3577 u.l = 1;
3578 exit (u.c[sizeof (long) - 1] == 1);
3580 _ACEOF
3581 rm -f conftest$ac_exeext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583 (eval $ac_link) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_c_bigendian=no
3593 else
3594 echo "$as_me: program exited with status $ac_status" >&5
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ( exit $ac_status )
3599 ac_cv_c_bigendian=yes
3601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3607 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3608 case $ac_cv_c_bigendian in
3609 yes)
3611 cat >>confdefs.h <<\_ACEOF
3612 #define WORDS_BIGENDIAN 1
3613 _ACEOF
3618 { { echo "$as_me:$LINENO: error: unknown endianness
3619 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3620 echo "$as_me: error: unknown endianness
3621 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3622 { (exit 1); exit 1; }; } ;;
3623 esac
3628 ac_config_headers="$ac_config_headers config.h:config.in"
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3638 # AIX /bin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 # Account for people who put trailing slashes in PATH elements.
3657 case $as_dir/ in
3658 ./ | .// | /cC/* | \
3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3661 /usr/ucb/* ) ;;
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3665 # by default.
3666 for ac_prog in ginstall scoinst install; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3677 else
3678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3679 break 3
3682 done
3683 done
3685 esac
3686 done
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL=$ac_cv_path_install
3692 else
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3712 # Don't build the shared library for build.
3713 if [ -n "${with_build_subdir}" ]; then
3714 enable_shared=no
3717 frag=
3718 case "${host}" in
3719 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3720 frag=mh-aix ;;
3721 *-*-cxux7*) frag=mh-cxux7 ;;
3722 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
3723 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
3724 i370-*-opened*) frag=mh-openedition ;;
3725 i[34567]86-*-windows*) frag=mh-windows ;;
3726 esac
3728 if [ -n "${frag}" ]; then
3729 frag=${libiberty_topdir}/libiberty/config/$frag
3732 # If they didn't specify --enable-shared, don't generate shared libs.
3733 case "${enable_shared}" in
3734 yes) shared=yes ;;
3735 no) shared=no ;;
3736 "") shared=no ;;
3737 *) shared=yes ;;
3738 esac
3739 if [ "${shared}" = "yes" ]; then
3740 case "${host}" in
3741 *-*-cygwin*) ;;
3742 alpha*-*-linux*) PICFLAG=-fPIC ;;
3743 arm*-*-*) PICFLAG=-fPIC ;;
3744 hppa*-*-*) PICFLAG=-fPIC ;;
3745 i370-*-*) PICFLAG=-fPIC ;;
3746 ia64-*-*) PICFLAG=-fpic ;;
3747 i[34567]86-*-* | x86_64-*-*)
3748 PICFLAG=-fpic ;;
3749 m68k-*-*) PICFLAG=-fpic ;;
3750 mips*-*-linux) PICFLAG=-fPIC ;;
3751 powerpc*-*-aix*) ;;
3752 powerpc*-*-*) PICFLAG=-fPIC ;;
3753 sparc*-*-*) case "${CFLAGS}" in
3754 *-fpic* ) PICFLAG=-fpic ;;
3755 * ) PICFLAG=-fPIC ;;
3756 esac ;;
3757 s390*-*-*) PICFLAG=-fpic ;;
3758 esac
3762 echo "# Warning: this fragment is automatically generated" > temp-frag
3764 if [ -n "${frag}" ] && [ -f "${frag}" ]; then
3765 echo "Appending ${frag} to xhost-mkfrag"
3766 echo "# Following fragment copied from ${frag}" >> temp-frag
3767 cat ${frag} >> temp-frag
3770 # record if we want to build shared libs.
3771 if [ "${shared}" = "yes" ]; then
3772 echo enable_shared = yes >> temp-frag
3773 else
3774 echo enable_shared = no >> temp-frag
3777 frag=xhost-mkfrag
3778 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3780 host_makefile_frag=${frag}
3783 # It's OK to check for header files. Although the compiler may not be
3784 # able to link anything, it had better be able to at least compile
3785 # something.
3811 for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 echo "$as_me:$LINENO: checking for $ac_header" >&5
3815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <$ac_header>
3826 _ACEOF
3827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null; then
3835 if test -s conftest.err; then
3836 ac_cpp_err=$ac_c_preproc_warn_flag
3837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3838 else
3839 ac_cpp_err=
3841 else
3842 ac_cpp_err=yes
3844 if test -z "$ac_cpp_err"; then
3845 eval "$as_ac_Header=yes"
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 eval "$as_ac_Header=no"
3852 rm -f conftest.err conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3857 cat >>confdefs.h <<_ACEOF
3858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859 _ACEOF
3862 done
3864 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3865 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3866 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <sys/types.h>
3876 #include <sys/wait.h>
3877 #ifndef WEXITSTATUS
3878 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3879 #endif
3880 #ifndef WIFEXITED
3881 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3882 #endif
3885 main ()
3887 int s;
3888 wait (&s);
3889 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3891 return 0;
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_header_sys_wait_h=yes
3917 else
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_cv_header_sys_wait_h=no
3923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3925 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3926 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3927 if test $ac_cv_header_sys_wait_h = yes; then
3929 cat >>confdefs.h <<\_ACEOF
3930 #define HAVE_SYS_WAIT_H 1
3931 _ACEOF
3935 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3937 if test "${ac_cv_header_time+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <sys/types.h>
3947 #include <sys/time.h>
3948 #include <time.h>
3951 main ()
3953 if ((struct tm *) 0)
3954 return 0;
3956 return 0;
3958 _ACEOF
3959 rm -f conftest.$ac_objext
3960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961 (eval $ac_compile) 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -z "$ac_c_werror_flag"
3969 || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_cv_header_time=yes
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_time=no
3988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3991 echo "${ECHO_T}$ac_cv_header_time" >&6
3992 if test $ac_cv_header_time = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define TIME_WITH_SYS_TIME 1
3996 _ACEOF
4001 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4002 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4003 if test "${libiberty_cv_declare_errno+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <errno.h>
4014 main ()
4016 int x = errno;
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 libiberty_cv_declare_errno=no
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 libiberty_cv_declare_errno=yes
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4053 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4054 if test $libiberty_cv_declare_errno = yes
4055 then
4056 cat >>confdefs.h <<\_ACEOF
4057 #define NEED_DECLARATION_ERRNO 1
4058 _ACEOF
4063 # Determine the size of an int for struct fibnode.
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4070 then ac_cv_prog_egrep='grep -E'
4071 else ac_cv_prog_egrep='egrep'
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP=$ac_cv_prog_egrep
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <stdlib.h>
4091 #include <stdarg.h>
4092 #include <string.h>
4093 #include <float.h>
4096 main ()
4100 return 0;
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_header_stdc=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_cv_header_stdc=no
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <string.h>
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "memchr" >/dev/null 2>&1; then
4148 else
4149 ac_cv_header_stdc=no
4151 rm -f conftest*
4155 if test $ac_cv_header_stdc = yes; then
4156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <stdlib.h>
4165 _ACEOF
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev/null 2>&1; then
4169 else
4170 ac_cv_header_stdc=no
4172 rm -f conftest*
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then
4180 else
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #include <ctype.h>
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 #else
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 main ()
4203 int i;
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4207 exit(2);
4208 exit (0);
4210 _ACEOF
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4223 else
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 ( exit $ac_status )
4229 ac_cv_header_stdc=no
4231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4239 cat >>confdefs.h <<\_ACEOF
4240 #define STDC_HEADERS 1
4241 _ACEOF
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256 inttypes.h stdint.h unistd.h
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <$ac_header>
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null; then
4280 if test -s conftest.err; then
4281 ac_cpp_err=$ac_c_preproc_warn_flag
4282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283 else
4284 ac_cpp_err=
4286 else
4287 ac_cpp_err=yes
4289 if test -z "$ac_cpp_err"; then
4290 eval "$as_ac_Header=yes"
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 eval "$as_ac_Header=no"
4297 rm -f conftest.err conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4307 done
4310 echo "$as_me:$LINENO: checking for int" >&5
4311 echo $ECHO_N "checking for int... $ECHO_C" >&6
4312 if test "${ac_cv_type_int+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 $ac_includes_default
4323 main ()
4325 if ((int *) 0)
4326 return 0;
4327 if (sizeof (int))
4328 return 0;
4330 return 0;
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_type_int=yes
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_type_int=no
4362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4364 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4365 echo "${ECHO_T}$ac_cv_type_int" >&6
4367 echo "$as_me:$LINENO: checking size of int" >&5
4368 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4369 if test "${ac_cv_sizeof_int+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 if test "$ac_cv_type_int" = yes; then
4373 # The cast to unsigned long works around a bug in the HP C Compiler
4374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4376 # This bug is HP SR number 8606223364.
4377 if test "$cross_compiling" = yes; then
4378 # Depending upon the size, compute the lo and hi bounds.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 $ac_includes_default
4387 main ()
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4390 test_array [0] = 0
4393 return 0;
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_lo=0 ac_mid=0
4419 while :; do
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4428 main ()
4430 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4431 test_array [0] = 0
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_hi=$ac_mid; break
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 ac_lo=`expr $ac_mid + 1`
4465 if test $ac_lo -le $ac_mid; then
4466 ac_lo= ac_hi=
4467 break
4469 ac_mid=`expr 2 '*' $ac_mid + 1`
4471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4472 done
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 $ac_includes_default
4485 main ()
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4488 test_array [0] = 0
4491 return 0;
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_hi=-1 ac_mid=-1
4517 while :; do
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4526 main ()
4528 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4529 test_array [0] = 0
4532 return 0;
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_lo=$ac_mid; break
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 ac_hi=`expr '(' $ac_mid ')' - 1`
4563 if test $ac_mid -le $ac_hi; then
4564 ac_lo= ac_hi=
4565 break
4567 ac_mid=`expr 2 '*' $ac_mid`
4569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570 done
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_lo= ac_hi=
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580 # Binary search between lo and hi bounds.
4581 while test "x$ac_lo" != "x$ac_hi"; do
4582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4591 main ()
4593 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4594 test_array [0] = 0
4597 return 0;
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_hi=$ac_mid
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_lo=`expr '(' $ac_mid ')' + 1`
4629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 done
4631 case $ac_lo in
4632 ?*) ac_cv_sizeof_int=$ac_lo;;
4633 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4634 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot compute sizeof (int), 77
4638 See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }; } ;;
4640 esac
4641 else
4642 if test "$cross_compiling" = yes; then
4643 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: cannot run test program while cross compiling
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }; }
4650 else
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4658 long longval () { return (long) (sizeof (int)); }
4659 unsigned long ulongval () { return (long) (sizeof (int)); }
4660 #include <stdio.h>
4661 #include <stdlib.h>
4663 main ()
4666 FILE *f = fopen ("conftest.val", "w");
4667 if (! f)
4668 exit (1);
4669 if (((long) (sizeof (int))) < 0)
4671 long i = longval ();
4672 if (i != ((long) (sizeof (int))))
4673 exit (1);
4674 fprintf (f, "%ld\n", i);
4676 else
4678 unsigned long i = ulongval ();
4679 if (i != ((long) (sizeof (int))))
4680 exit (1);
4681 fprintf (f, "%lu\n", i);
4683 exit (ferror (f) || fclose (f) != 0);
4686 return 0;
4688 _ACEOF
4689 rm -f conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_cv_sizeof_int=`cat conftest.val`
4701 else
4702 echo "$as_me: program exited with status $ac_status" >&5
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ( exit $ac_status )
4707 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4708 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4710 See \`config.log' for more details." >&5
4711 echo "$as_me: error: cannot compute sizeof (int), 77
4712 See \`config.log' for more details." >&2;}
4713 { (exit 1); exit 1; }; }; }
4715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4718 rm -f conftest.val
4719 else
4720 ac_cv_sizeof_int=0
4723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4724 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4725 cat >>confdefs.h <<_ACEOF
4726 #define SIZEOF_INT $ac_cv_sizeof_int
4727 _ACEOF
4731 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4732 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4733 if test "${ac_cv_type_uintptr_t+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 $ac_includes_default
4744 main ()
4746 if ((uintptr_t *) 0)
4747 return 0;
4748 if (sizeof (uintptr_t))
4749 return 0;
4751 return 0;
4753 _ACEOF
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_type_uintptr_t=yes
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 ac_cv_type_uintptr_t=no
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4786 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4787 if test $ac_cv_type_uintptr_t = yes; then
4789 else
4791 cat >>confdefs.h <<_ACEOF
4792 #define uintptr_t unsigned long
4793 _ACEOF
4798 # Look for a 64-bit type.
4799 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4800 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4801 if test "${liberty_cv_uint64+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #ifdef HAVE_STDINT_H
4811 #include <stdint.h>
4812 #endif
4814 main ()
4816 extern uint64_t foo;
4818 return 0;
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 liberty_cv_uint64=uint64_t
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #ifdef HAVE_LIMITS_H
4855 #include <limits.h>
4856 #endif
4857 #ifndef CHAR_BIT
4858 #define CHAR_BIT 8
4859 #endif
4861 main ()
4863 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4865 return 0;
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
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); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 liberty_cv_uint64="unsigned long"
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 #ifdef HAVE_LIMITS_H
4902 #include <limits.h>
4903 #endif
4904 #ifndef CHAR_BIT
4905 #define CHAR_BIT 8
4906 #endif
4908 main ()
4910 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4912 return 0;
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 liberty_cv_uint64="unsigned long long"
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 liberty_cv_uint64=none
4944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4952 echo "${ECHO_T}$liberty_cv_uint64" >&6
4953 if test "$liberty_cv_uint64" != none; then
4955 cat >>confdefs.h <<_ACEOF
4956 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4957 _ACEOF
4961 # Given the above check, we always have uintptr_t or a fallback
4962 # definition. So define HAVE_UINTPTR_T in case any imported code
4963 # relies on it.
4965 cat >>confdefs.h <<\_ACEOF
4966 #define HAVE_UINTPTR_T 1
4967 _ACEOF
4970 echo "$as_me:$LINENO: checking for pid_t" >&5
4971 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4972 if test "${ac_cv_type_pid_t+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4983 main ()
4985 if ((pid_t *) 0)
4986 return 0;
4987 if (sizeof (pid_t))
4988 return 0;
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_type_pid_t=yes
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ac_cv_type_pid_t=no
5022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5025 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5026 if test $ac_cv_type_pid_t = yes; then
5028 else
5030 cat >>confdefs.h <<_ACEOF
5031 #define pid_t int
5032 _ACEOF
5037 # This is the list of functions which libiberty will provide if they
5038 # are not available on the host.
5040 funcs="asprintf"
5041 funcs="$funcs atexit"
5042 funcs="$funcs basename"
5043 funcs="$funcs bcmp"
5044 funcs="$funcs bcopy"
5045 funcs="$funcs bsearch"
5046 funcs="$funcs bzero"
5047 funcs="$funcs calloc"
5048 funcs="$funcs clock"
5049 funcs="$funcs ffs"
5050 funcs="$funcs getcwd"
5051 funcs="$funcs getpagesize"
5052 funcs="$funcs gettimeofday"
5053 funcs="$funcs index"
5054 funcs="$funcs insque"
5055 funcs="$funcs memchr"
5056 funcs="$funcs memcmp"
5057 funcs="$funcs memcpy"
5058 funcs="$funcs memmove"
5059 funcs="$funcs mempcpy"
5060 funcs="$funcs memset"
5061 funcs="$funcs mkstemps"
5062 funcs="$funcs putenv"
5063 funcs="$funcs random"
5064 funcs="$funcs rename"
5065 funcs="$funcs rindex"
5066 funcs="$funcs setenv"
5067 funcs="$funcs snprintf"
5068 funcs="$funcs sigsetmask"
5069 funcs="$funcs stpcpy"
5070 funcs="$funcs stpncpy"
5071 funcs="$funcs strcasecmp"
5072 funcs="$funcs strchr"
5073 funcs="$funcs strdup"
5074 funcs="$funcs strncasecmp"
5075 funcs="$funcs strndup"
5076 funcs="$funcs strrchr"
5077 funcs="$funcs strstr"
5078 funcs="$funcs strtod"
5079 funcs="$funcs strtol"
5080 funcs="$funcs strtoul"
5081 funcs="$funcs strverscmp"
5082 funcs="$funcs tmpnam"
5083 funcs="$funcs vasprintf"
5084 funcs="$funcs vfprintf"
5085 funcs="$funcs vprintf"
5086 funcs="$funcs vsnprintf"
5087 funcs="$funcs vsprintf"
5088 funcs="$funcs waitpid"
5090 # Also in the old function.def file: alloca, vfork, getopt.
5092 vars="sys_errlist sys_nerr sys_siglist"
5094 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5095 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5096 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5098 # These are neither executed nor required, but they help keep
5099 # autoheader happy without adding a bunch of text to acconfig.h.
5100 if test "x" = "y"; then
5170 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5171 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5172 memmove mempcpy memset putenv random rename rindex sigsetmask \
5173 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5174 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5175 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5176 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5177 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5178 realpath canonicalize_file_name __fsetlocking
5180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181 echo "$as_me:$LINENO: checking for $ac_func" >&5
5182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_var+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test x$gcc_no_link = xyes; then
5187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5189 { (exit 1); exit 1; }; }
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 /* System header to define __stub macros and hopefully few prototypes,
5198 which can conflict with char $ac_func (); below.
5199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 <limits.h> exists even on freestanding compilers. Under hpux,
5201 including <limits.h> includes <sys/time.h> and causes problems
5202 checking for functions defined therein. */
5203 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 #ifdef __cplusplus
5210 extern "C"
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char $ac_func ();
5216 /* The GNU C library defines this for functions which it implements
5217 to always fail with ENOSYS. Some functions are actually named
5218 something starting with __ and the normal name is an alias. */
5219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220 choke me
5221 #else
5222 char (*f) () = $ac_func;
5223 #endif
5224 #ifdef __cplusplus
5226 #endif
5229 main ()
5231 return f != $ac_func;
5233 return 0;
5235 _ACEOF
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest$ac_exeext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 eval "$as_ac_var=yes"
5259 else
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 eval "$as_ac_var=no"
5265 rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270 if test `eval echo '${'$as_ac_var'}'` = yes; then
5271 cat >>confdefs.h <<_ACEOF
5272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5273 _ACEOF
5276 done
5278 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5279 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5280 if test "${ac_cv_have_decl_basename+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h. */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5291 main ()
5293 #ifndef basename
5294 char *p = (char *) basename;
5295 #endif
5298 return 0;
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_have_decl_basename=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_have_decl_basename=no
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5333 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5334 if test $ac_cv_have_decl_basename = yes; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define HAVE_DECL_BASENAME 1
5338 _ACEOF
5341 else
5342 cat >>confdefs.h <<_ACEOF
5343 #define HAVE_DECL_BASENAME 0
5344 _ACEOF
5348 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5349 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5350 if test "${ac_cv_have_decl_ffs+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5361 main ()
5363 #ifndef ffs
5364 char *p = (char *) ffs;
5365 #endif
5368 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_have_decl_ffs=yes
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 ac_cv_have_decl_ffs=no
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5403 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5404 if test $ac_cv_have_decl_ffs = yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define HAVE_DECL_FFS 1
5408 _ACEOF
5411 else
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_DECL_FFS 0
5414 _ACEOF
5418 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5419 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5420 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5431 main ()
5433 #ifndef asprintf
5434 char *p = (char *) asprintf;
5435 #endif
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_have_decl_asprintf=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_cv_have_decl_asprintf=no
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5473 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5474 if test $ac_cv_have_decl_asprintf = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_DECL_ASPRINTF 1
5478 _ACEOF
5481 else
5482 cat >>confdefs.h <<_ACEOF
5483 #define HAVE_DECL_ASPRINTF 0
5484 _ACEOF
5488 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5489 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5490 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_includes_default
5501 main ()
5503 #ifndef vasprintf
5504 char *p = (char *) vasprintf;
5505 #endif
5508 return 0;
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513 (eval $ac_compile) 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_c_werror_flag"
5521 || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_have_decl_vasprintf=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_cv_have_decl_vasprintf=no
5540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5543 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5544 if test $ac_cv_have_decl_vasprintf = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_DECL_VASPRINTF 1
5548 _ACEOF
5551 else
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_DECL_VASPRINTF 0
5554 _ACEOF
5558 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5559 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5560 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5571 main ()
5573 #ifndef snprintf
5574 char *p = (char *) snprintf;
5575 #endif
5578 return 0;
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_have_decl_snprintf=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_cv_have_decl_snprintf=no
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5613 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5614 if test $ac_cv_have_decl_snprintf = yes; then
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_DECL_SNPRINTF 1
5618 _ACEOF
5621 else
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_DECL_SNPRINTF 0
5624 _ACEOF
5628 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5629 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5630 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5641 main ()
5643 #ifndef vsnprintf
5644 char *p = (char *) vsnprintf;
5645 #endif
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_have_decl_vsnprintf=yes
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_cv_have_decl_vsnprintf=no
5680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5683 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5684 if test $ac_cv_have_decl_vsnprintf = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE_DECL_VSNPRINTF 1
5688 _ACEOF
5691 else
5692 cat >>confdefs.h <<_ACEOF
5693 #define HAVE_DECL_VSNPRINTF 0
5694 _ACEOF
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_SYS_ERRLIST 1
5703 _ACEOF
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_SYS_NERR 1
5708 _ACEOF
5711 cat >>confdefs.h <<\_ACEOF
5712 #define HAVE_SYS_SIGLIST 1
5713 _ACEOF
5717 # For each of these functions, if the host does not provide the
5718 # function we want to put FN.o in LIBOBJS, and if the host does
5719 # provide the function, we want to define HAVE_FN in config.h.
5721 setobjs=
5722 CHECK=
5723 target_header_dir=
5724 if test -n "${with_target_subdir}"; then
5726 # We are being configured as a target library. AC_REPLACE_FUNCS
5727 # may not work correctly, because the compiler may not be able to
5728 # link executables. Note that we may still be being configured
5729 # native.
5731 # If we are being configured for newlib, we know which functions
5732 # newlib provide and which ones we will be expected to provide.
5734 if test "x${with_newlib}" = "xyes"; then
5735 case $LIBOBJS in
5736 "asprintf.$ac_objext" | \
5737 *" asprintf.$ac_objext" | \
5738 "asprintf.$ac_objext "* | \
5739 *" asprintf.$ac_objext "* ) ;;
5740 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5741 esac
5743 case $LIBOBJS in
5744 "basename.$ac_objext" | \
5745 *" basename.$ac_objext" | \
5746 "basename.$ac_objext "* | \
5747 *" basename.$ac_objext "* ) ;;
5748 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5749 esac
5751 case $LIBOBJS in
5752 "insque.$ac_objext" | \
5753 *" insque.$ac_objext" | \
5754 "insque.$ac_objext "* | \
5755 *" insque.$ac_objext "* ) ;;
5756 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5757 esac
5759 case $LIBOBJS in
5760 "random.$ac_objext" | \
5761 *" random.$ac_objext" | \
5762 "random.$ac_objext "* | \
5763 *" random.$ac_objext "* ) ;;
5764 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5765 esac
5767 case $LIBOBJS in
5768 "strdup.$ac_objext" | \
5769 *" strdup.$ac_objext" | \
5770 "strdup.$ac_objext "* | \
5771 *" strdup.$ac_objext "* ) ;;
5772 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5773 esac
5775 case $LIBOBJS in
5776 "vasprintf.$ac_objext" | \
5777 *" vasprintf.$ac_objext" | \
5778 "vasprintf.$ac_objext "* | \
5779 *" vasprintf.$ac_objext "* ) ;;
5780 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5781 esac
5784 for f in $funcs; do
5785 case "$f" in
5786 asprintf | basename | insque | random | strdup | vasprintf)
5789 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790 cat >>confdefs.h <<_ACEOF
5791 #define $n 1
5792 _ACEOF
5795 esac
5796 done
5798 # newlib doesnt provide any of the variables in $vars, so we
5799 # dont have to check them here.
5801 # Of the functions in $checkfuncs, newlib only has strerror.
5802 cat >>confdefs.h <<\_ACEOF
5803 #define HAVE_STRERROR 1
5804 _ACEOF
5807 setobjs=yes
5811 # If we are being configured for Mingw, we know which functions
5812 # Mingw provides and which ones we will be expected to provide.
5814 case "${host}" in
5815 *-*-mingw*)
5816 case $LIBOBJS in
5817 "asprintf.$ac_objext" | \
5818 *" asprintf.$ac_objext" | \
5819 "asprintf.$ac_objext "* | \
5820 *" asprintf.$ac_objext "* ) ;;
5821 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5822 esac
5824 case $LIBOBJS in
5825 "basename.$ac_objext" | \
5826 *" basename.$ac_objext" | \
5827 "basename.$ac_objext "* | \
5828 *" basename.$ac_objext "* ) ;;
5829 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5830 esac
5832 case $LIBOBJS in
5833 "bcmp.$ac_objext" | \
5834 *" bcmp.$ac_objext" | \
5835 "bcmp.$ac_objext "* | \
5836 *" bcmp.$ac_objext "* ) ;;
5837 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
5838 esac
5840 case $LIBOBJS in
5841 "bcopy.$ac_objext" | \
5842 *" bcopy.$ac_objext" | \
5843 "bcopy.$ac_objext "* | \
5844 *" bcopy.$ac_objext "* ) ;;
5845 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
5846 esac
5848 case $LIBOBJS in
5849 "bzero.$ac_objext" | \
5850 *" bzero.$ac_objext" | \
5851 "bzero.$ac_objext "* | \
5852 *" bzero.$ac_objext "* ) ;;
5853 *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
5854 esac
5856 case $LIBOBJS in
5857 "clock.$ac_objext" | \
5858 *" clock.$ac_objext" | \
5859 "clock.$ac_objext "* | \
5860 *" clock.$ac_objext "* ) ;;
5861 *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
5862 esac
5864 case $LIBOBJS in
5865 "ffs.$ac_objext" | \
5866 *" ffs.$ac_objext" | \
5867 "ffs.$ac_objext "* | \
5868 *" ffs.$ac_objext "* ) ;;
5869 *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
5870 esac
5872 case $LIBOBJS in
5873 "getpagesize.$ac_objext" | \
5874 *" getpagesize.$ac_objext" | \
5875 "getpagesize.$ac_objext "* | \
5876 *" getpagesize.$ac_objext "* ) ;;
5877 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5878 esac
5880 case $LIBOBJS in
5881 "index.$ac_objext" | \
5882 *" index.$ac_objext" | \
5883 "index.$ac_objext "* | \
5884 *" index.$ac_objext "* ) ;;
5885 *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
5886 esac
5888 case $LIBOBJS in
5889 "insque.$ac_objext" | \
5890 *" insque.$ac_objext" | \
5891 "insque.$ac_objext "* | \
5892 *" insque.$ac_objext "* ) ;;
5893 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5894 esac
5896 case $LIBOBJS in
5897 "mempcpy.$ac_objext" | \
5898 *" mempcpy.$ac_objext" | \
5899 "mempcpy.$ac_objext "* | \
5900 *" mempcpy.$ac_objext "* ) ;;
5901 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
5902 esac
5904 case $LIBOBJS in
5905 "mkstemps.$ac_objext" | \
5906 *" mkstemps.$ac_objext" | \
5907 "mkstemps.$ac_objext "* | \
5908 *" mkstemps.$ac_objext "* ) ;;
5909 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
5910 esac
5912 case $LIBOBJS in
5913 "random.$ac_objext" | \
5914 *" random.$ac_objext" | \
5915 "random.$ac_objext "* | \
5916 *" random.$ac_objext "* ) ;;
5917 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5918 esac
5920 case $LIBOBJS in
5921 "rindex.$ac_objext" | \
5922 *" rindex.$ac_objext" | \
5923 "rindex.$ac_objext "* | \
5924 *" rindex.$ac_objext "* ) ;;
5925 *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
5926 esac
5928 case $LIBOBJS in
5929 "sigsetmask.$ac_objext" | \
5930 *" sigsetmask.$ac_objext" | \
5931 "sigsetmask.$ac_objext "* | \
5932 *" sigsetmask.$ac_objext "* ) ;;
5933 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
5934 esac
5936 case $LIBOBJS in
5937 "stpcpy.$ac_objext" | \
5938 *" stpcpy.$ac_objext" | \
5939 "stpcpy.$ac_objext "* | \
5940 *" stpcpy.$ac_objext "* ) ;;
5941 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
5942 esac
5944 case $LIBOBJS in
5945 "stpncpy.$ac_objext" | \
5946 *" stpncpy.$ac_objext" | \
5947 "stpncpy.$ac_objext "* | \
5948 *" stpncpy.$ac_objext "* ) ;;
5949 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
5950 esac
5952 case $LIBOBJS in
5953 "strndup.$ac_objext" | \
5954 *" strndup.$ac_objext" | \
5955 "strndup.$ac_objext "* | \
5956 *" strndup.$ac_objext "* ) ;;
5957 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
5958 esac
5960 case $LIBOBJS in
5961 "strverscmp.$ac_objext" | \
5962 *" strverscmp.$ac_objext" | \
5963 "strverscmp.$ac_objext "* | \
5964 *" strverscmp.$ac_objext "* ) ;;
5965 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
5966 esac
5968 case $LIBOBJS in
5969 "vasprintf.$ac_objext" | \
5970 *" vasprintf.$ac_objext" | \
5971 "vasprintf.$ac_objext "* | \
5972 *" vasprintf.$ac_objext "* ) ;;
5973 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5974 esac
5976 case $LIBOBJS in
5977 "waitpid.$ac_objext" | \
5978 *" waitpid.$ac_objext" | \
5979 "waitpid.$ac_objext "* | \
5980 *" waitpid.$ac_objext "* ) ;;
5981 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5982 esac
5985 for f in $funcs; do
5986 case "$f" in
5987 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
5990 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991 cat >>confdefs.h <<_ACEOF
5992 #define $n 1
5993 _ACEOF
5996 esac
5997 done
5999 # Mingw doesnt provide any of the variables in $vars, so we
6000 # dont have to check them here.
6002 # Of the functions in $checkfuncs, Mingw only has strerror.
6003 cat >>confdefs.h <<\_ACEOF
6004 #define HAVE_STRERROR 1
6005 _ACEOF
6008 setobjs=yes
6011 esac
6013 # We may wish to install the target headers somewhere.
6014 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6015 if test "${enable_install_libiberty+set}" = set; then
6016 enableval="$enable_install_libiberty"
6017 enable_install_libiberty=$enableval
6018 else
6019 enable_install_libiberty=no
6021 # Option parsed, now set things appropriately.
6022 case x"$enable_install_libiberty" in
6023 xyes|x)
6024 target_header_dir=libiberty
6026 xno)
6027 target_header_dir=
6030 # This could be sanity-checked in various ways...
6031 target_header_dir="${enable_install_libiberty}"
6033 esac
6036 else
6038 # Not a target library, so we set things up to run the test suite.
6039 CHECK=really-check
6046 case "${host}" in
6047 *-*-cygwin* | *-*-mingw*)
6048 cat >>confdefs.h <<\_ACEOF
6049 #define HAVE_SYS_ERRLIST 1
6050 _ACEOF
6052 cat >>confdefs.h <<\_ACEOF
6053 #define HAVE_SYS_NERR 1
6054 _ACEOF
6057 esac
6059 if test -z "${setobjs}"; then
6060 case "${host}" in
6062 *-*-vxworks*)
6063 # Handle VxWorks configuration specially, since on VxWorks the
6064 # libraries are actually on the target board, not in the file
6065 # system.
6066 case $LIBOBJS in
6067 "basename.$ac_objext" | \
6068 *" basename.$ac_objext" | \
6069 "basename.$ac_objext "* | \
6070 *" basename.$ac_objext "* ) ;;
6071 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
6072 esac
6074 case $LIBOBJS in
6075 "getpagesize.$ac_objext" | \
6076 *" getpagesize.$ac_objext" | \
6077 "getpagesize.$ac_objext "* | \
6078 *" getpagesize.$ac_objext "* ) ;;
6079 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
6080 esac
6082 case $LIBOBJS in
6083 "insque.$ac_objext" | \
6084 *" insque.$ac_objext" | \
6085 "insque.$ac_objext "* | \
6086 *" insque.$ac_objext "* ) ;;
6087 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
6088 esac
6090 case $LIBOBJS in
6091 "random.$ac_objext" | \
6092 *" random.$ac_objext" | \
6093 "random.$ac_objext "* | \
6094 *" random.$ac_objext "* ) ;;
6095 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6096 esac
6098 case $LIBOBJS in
6099 "strcasecmp.$ac_objext" | \
6100 *" strcasecmp.$ac_objext" | \
6101 "strcasecmp.$ac_objext "* | \
6102 *" strcasecmp.$ac_objext "* ) ;;
6103 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
6104 esac
6106 case $LIBOBJS in
6107 "strncasecmp.$ac_objext" | \
6108 *" strncasecmp.$ac_objext" | \
6109 "strncasecmp.$ac_objext "* | \
6110 *" strncasecmp.$ac_objext "* ) ;;
6111 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
6112 esac
6114 case $LIBOBJS in
6115 "strdup.$ac_objext" | \
6116 *" strdup.$ac_objext" | \
6117 "strdup.$ac_objext "* | \
6118 *" strdup.$ac_objext "* ) ;;
6119 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
6120 esac
6122 case $LIBOBJS in
6123 "vfork.$ac_objext" | \
6124 *" vfork.$ac_objext" | \
6125 "vfork.$ac_objext "* | \
6126 *" vfork.$ac_objext "* ) ;;
6127 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6128 esac
6130 case $LIBOBJS in
6131 "waitpid.$ac_objext" | \
6132 *" waitpid.$ac_objext" | \
6133 "waitpid.$ac_objext "* | \
6134 *" waitpid.$ac_objext "* ) ;;
6135 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6136 esac
6138 case $LIBOBJS in
6139 "vasprintf.$ac_objext" | \
6140 *" vasprintf.$ac_objext" | \
6141 "vasprintf.$ac_objext "* | \
6142 *" vasprintf.$ac_objext "* ) ;;
6143 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6144 esac
6146 for f in $funcs; do
6147 case "$f" in
6148 basename | getpagesize | insque | random | strcasecmp)
6150 strncasecmp | strdup | vfork | waitpid | vasprintf)
6153 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6154 cat >>confdefs.h <<_ACEOF
6155 #define $n 1
6156 _ACEOF
6159 esac
6160 done
6162 # VxWorks doesn't provide any of the variables in $vars, so we
6163 # don't have to check them here.
6165 # Of the functions in $checkfuncs, VxWorks only has strerror.
6166 cat >>confdefs.h <<\_ACEOF
6167 #define HAVE_STRERROR 1
6168 _ACEOF
6171 setobjs=yes
6174 *-*-msdosdjgpp)
6175 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6176 getcwd getpagesize getrusage gettimeofday \
6177 index insque memchr memcmp memcpy memmove memset psignal \
6178 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6179 strchr strdup strerror strncasecmp strrchr strstr strtod \
6180 strtol strtoul sysconf times tmpnam vfprintf vprintf \
6181 vsprintf waitpid
6183 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >>confdefs.h <<_ACEOF
6185 #define $n 1
6186 _ACEOF
6188 done
6191 setobjs=yes
6194 esac
6197 if test -z "${setobjs}"; then
6199 case "${host}" in
6201 *-*-cygwin*)
6202 # The Cygwin library actually uses a couple of files from
6203 # libiberty when it is built. If we are building a native
6204 # Cygwin, and we run the tests, we will appear to have these
6205 # files. However, when we go on to build winsup, we will wind up
6206 # with a library which does not have the files, since they should
6207 # have come from libiberty.
6209 # We handle this by removing the functions the winsup library
6210 # provides from our shell variables, so that they appear to be
6211 # missing.
6213 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6215 if test -n "${with_target_subdir}"
6216 then
6217 funcs="`echo $funcs | sed -e 's/random//'`"
6218 case $LIBOBJS in
6219 "random.$ac_objext" | \
6220 *" random.$ac_objext" | \
6221 "random.$ac_objext "* | \
6222 *" random.$ac_objext "* ) ;;
6223 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6224 esac
6226 vars="`echo $vars | sed -e 's/sys_siglist//'`"
6227 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6231 *-*-mingw32*)
6232 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6233 # macros, so the test below won't find them.
6234 libiberty_cv_var_sys_nerr=yes
6235 libiberty_cv_var_sys_errlist=yes
6238 *-*-msdosdjgpp*)
6239 # vfork and fork are stubs.
6240 ac_cv_func_vfork_works=no
6243 *-*-uwin*)
6244 # Under some versions of uwin, vfork is notoriously buggy and the test
6245 # can hang configure; on other versions, vfork exists just as a stub.
6246 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6247 ac_cv_func_vfork_works=no
6248 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6249 # macros (actually, these are imported from a DLL, but the end effect
6250 # is the same), so the test below won't find them.
6251 libiberty_cv_var_sys_nerr=yes
6252 libiberty_cv_var_sys_errlist=yes
6255 *-*-*vms*)
6256 # Under VMS, vfork works very different than on Unix. The standard test
6257 # won't work, and it isn't easily adaptable. It makes more sense to
6258 # just force it.
6259 ac_cv_func_vfork_works=yes
6262 esac
6264 # We haven't set the list of objects yet. Use the standard autoconf
6265 # tests. This will only work if the compiler works.
6266 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6267 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6268 if test "${ac_cv_search_strerror+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 ac_func_search_save_LIBS=$LIBS
6272 ac_cv_search_strerror=no
6273 if test x$gcc_no_link = xyes; then
6274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6276 { (exit 1); exit 1; }; }
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 #ifdef __cplusplus
6287 extern "C"
6288 #endif
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291 char strerror ();
6293 main ()
6295 strerror ();
6297 return 0;
6299 _ACEOF
6300 rm -f conftest.$ac_objext conftest$ac_exeext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_search_strerror="none required"
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6328 rm -f conftest.err conftest.$ac_objext \
6329 conftest$ac_exeext conftest.$ac_ext
6330 if test "$ac_cv_search_strerror" = no; then
6331 for ac_lib in cposix; do
6332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6333 if test x$gcc_no_link = xyes; then
6334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6336 { (exit 1); exit 1; }; }
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6346 #ifdef __cplusplus
6347 extern "C"
6348 #endif
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6351 char strerror ();
6353 main ()
6355 strerror ();
6357 return 0;
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362 (eval $ac_link) 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_search_strerror="-l$ac_lib"
6383 break
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6389 rm -f conftest.err conftest.$ac_objext \
6390 conftest$ac_exeext conftest.$ac_ext
6391 done
6393 LIBS=$ac_func_search_save_LIBS
6395 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6396 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6397 if test "$ac_cv_search_strerror" != no; then
6398 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6403 for ac_func in $funcs
6405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6406 echo "$as_me:$LINENO: checking for $ac_func" >&5
6407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_var+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 if test x$gcc_no_link = xyes; then
6412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6414 { (exit 1); exit 1; }; }
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func (); below.
6424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6425 <limits.h> exists even on freestanding compilers. Under hpux,
6426 including <limits.h> includes <sys/time.h> and causes problems
6427 checking for functions defined therein. */
6428 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6429 # include <limits.h>
6430 #else
6431 # include <assert.h>
6432 #endif
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 #ifdef __cplusplus
6435 extern "C"
6437 #endif
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440 char $ac_func ();
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445 choke me
6446 #else
6447 char (*f) () = $ac_func;
6448 #endif
6449 #ifdef __cplusplus
6451 #endif
6454 main ()
6456 return f != $ac_func;
6458 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 eval "$as_ac_var=yes"
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 eval "$as_ac_var=no"
6490 rm -f conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6495 if test `eval echo '${'$as_ac_var'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6498 _ACEOF
6500 else
6501 case $LIBOBJS in
6502 "$ac_func.$ac_objext" | \
6503 *" $ac_func.$ac_objext" | \
6504 "$ac_func.$ac_objext "* | \
6505 *" $ac_func.$ac_objext "* ) ;;
6506 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6507 esac
6510 done
6513 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6514 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6515 if test "${ac_cv_os_cray+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #if defined(CRAY) && ! defined(CRAY2)
6525 webecray
6526 #else
6527 wenotbecray
6528 #endif
6530 _ACEOF
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "webecray" >/dev/null 2>&1; then
6533 ac_cv_os_cray=yes
6534 else
6535 ac_cv_os_cray=no
6537 rm -f conftest*
6540 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6541 echo "${ECHO_T}$ac_cv_os_cray" >&6
6542 if test $ac_cv_os_cray = yes; then
6543 for ac_func in _getb67 GETB67 getb67; do
6544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6545 echo "$as_me:$LINENO: checking for $ac_func" >&5
6546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_var+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 if test x$gcc_no_link = xyes; then
6551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6553 { (exit 1); exit 1; }; }
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 /* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char $ac_func (); below.
6563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564 <limits.h> exists even on freestanding compilers. Under hpux,
6565 including <limits.h> includes <sys/time.h> and causes problems
6566 checking for functions defined therein. */
6567 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6568 # include <limits.h>
6569 #else
6570 # include <assert.h>
6571 #endif
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 #ifdef __cplusplus
6574 extern "C"
6576 #endif
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char $ac_func ();
6580 /* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584 choke me
6585 #else
6586 char (*f) () = $ac_func;
6587 #endif
6588 #ifdef __cplusplus
6590 #endif
6593 main ()
6595 return f != $ac_func;
6597 return 0;
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag"
6610 || test ! -s conftest.err'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; } &&
6616 { ac_try='test -s conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 eval "$as_ac_var=yes"
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 eval "$as_ac_var=no"
6629 rm -f conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
6632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6634 if test `eval echo '${'$as_ac_var'}'` = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define CRAY_STACKSEG_END $ac_func
6638 _ACEOF
6639 break
6642 done
6645 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6646 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6647 if test "${ac_cv_c_stack_direction+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 if test "$cross_compiling" = yes; then
6651 ac_cv_c_stack_direction=0
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 find_stack_direction ()
6661 static char *addr = 0;
6662 auto char dummy;
6663 if (addr == 0)
6665 addr = &dummy;
6666 return find_stack_direction ();
6668 else
6669 return (&dummy > addr) ? 1 : -1;
6671 main ()
6673 exit (find_stack_direction() < 0);
6675 _ACEOF
6676 rm -f conftest$ac_exeext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_c_stack_direction=1
6688 else
6689 echo "$as_me: program exited with status $ac_status" >&5
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ( exit $ac_status )
6694 ac_cv_c_stack_direction=-1
6696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6700 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6702 cat >>confdefs.h <<_ACEOF
6703 #define STACK_DIRECTION $ac_cv_c_stack_direction
6704 _ACEOF
6709 for ac_header in unistd.h vfork.h
6711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <$ac_header>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev/null; then
6733 if test -s conftest.err; then
6734 ac_cpp_err=$ac_c_preproc_warn_flag
6735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736 else
6737 ac_cpp_err=
6739 else
6740 ac_cpp_err=yes
6742 if test -z "$ac_cpp_err"; then
6743 eval "$as_ac_Header=yes"
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 eval "$as_ac_Header=no"
6750 rm -f conftest.err conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6755 cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757 _ACEOF
6760 done
6764 for ac_func in fork vfork
6766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6767 echo "$as_me:$LINENO: checking for $ac_func" >&5
6768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6769 if eval "test \"\${$as_ac_var+set}\" = set"; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test x$gcc_no_link = xyes; then
6773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6775 { (exit 1); exit 1; }; }
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. Under hpux,
6787 including <limits.h> includes <sys/time.h> and causes problems
6788 checking for functions defined therein. */
6789 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6790 # include <limits.h>
6791 #else
6792 # include <assert.h>
6793 #endif
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 #ifdef __cplusplus
6796 extern "C"
6798 #endif
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6801 char $ac_func ();
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6806 choke me
6807 #else
6808 char (*f) () = $ac_func;
6809 #endif
6810 #ifdef __cplusplus
6812 #endif
6815 main ()
6817 return f != $ac_func;
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 eval "$as_ac_var=yes"
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 eval "$as_ac_var=no"
6851 rm -f conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6856 if test `eval echo '${'$as_ac_var'}'` = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6859 _ACEOF
6862 done
6864 if test "x$ac_cv_func_fork" = xyes; then
6865 echo "$as_me:$LINENO: checking for working fork" >&5
6866 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6867 if test "${ac_cv_func_fork_works+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 if test "$cross_compiling" = yes; then
6871 ac_cv_func_fork_works=cross
6872 else
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* By Ruediger Kuhlmann. */
6875 #include <sys/types.h>
6876 #if HAVE_UNISTD_H
6877 # include <unistd.h>
6878 #endif
6879 /* Some systems only have a dummy stub for fork() */
6880 int main ()
6882 if (fork() < 0)
6883 exit (1);
6884 exit (0);
6886 _ACEOF
6887 rm -f conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_func_fork_works=yes
6899 else
6900 echo "$as_me: program exited with status $ac_status" >&5
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ( exit $ac_status )
6905 ac_cv_func_fork_works=no
6907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6910 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6911 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6913 else
6914 ac_cv_func_fork_works=$ac_cv_func_fork
6916 if test "x$ac_cv_func_fork_works" = xcross; then
6917 case $host in
6918 *-*-amigaos* | *-*-msdosdjgpp*)
6919 # Override, as these systems have only a dummy fork() stub
6920 ac_cv_func_fork_works=no
6923 ac_cv_func_fork_works=yes
6925 esac
6926 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6927 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6929 ac_cv_func_vfork_works=$ac_cv_func_vfork
6930 if test "x$ac_cv_func_vfork" = xyes; then
6931 echo "$as_me:$LINENO: checking for working vfork" >&5
6932 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6933 if test "${ac_cv_func_vfork_works+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 if test "$cross_compiling" = yes; then
6937 ac_cv_func_vfork_works=cross
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 /* Thanks to Paul Eggert for this test. */
6946 #include <stdio.h>
6947 #include <stdlib.h>
6948 #include <sys/types.h>
6949 #include <sys/stat.h>
6950 #include <sys/wait.h>
6951 #if HAVE_UNISTD_H
6952 # include <unistd.h>
6953 #endif
6954 #if HAVE_VFORK_H
6955 # include <vfork.h>
6956 #endif
6957 /* On some sparc systems, changes by the child to local and incoming
6958 argument registers are propagated back to the parent. The compiler
6959 is told about this with #include <vfork.h>, but some compilers
6960 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6961 static variable whose address is put into a register that is
6962 clobbered by the vfork. */
6963 static void
6964 #ifdef __cplusplus
6965 sparc_address_test (int arg)
6966 # else
6967 sparc_address_test (arg) int arg;
6968 #endif
6970 static pid_t child;
6971 if (!child) {
6972 child = vfork ();
6973 if (child < 0) {
6974 perror ("vfork");
6975 _exit(2);
6977 if (!child) {
6978 arg = getpid();
6979 write(-1, "", 0);
6980 _exit (arg);
6986 main ()
6988 pid_t parent = getpid ();
6989 pid_t child;
6991 sparc_address_test (0);
6993 child = vfork ();
6995 if (child == 0) {
6996 /* Here is another test for sparc vfork register problems. This
6997 test uses lots of local variables, at least as many local
6998 variables as main has allocated so far including compiler
6999 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7000 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7001 reuse the register of parent for one of the local variables,
7002 since it will think that parent can't possibly be used any more
7003 in this routine. Assigning to the local variable will thus
7004 munge parent in the parent process. */
7005 pid_t
7006 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7007 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7008 /* Convince the compiler that p..p7 are live; otherwise, it might
7009 use the same hardware register for all 8 local variables. */
7010 if (p != p1 || p != p2 || p != p3 || p != p4
7011 || p != p5 || p != p6 || p != p7)
7012 _exit(1);
7014 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7015 from child file descriptors. If the child closes a descriptor
7016 before it execs or exits, this munges the parent's descriptor
7017 as well. Test for this by closing stdout in the child. */
7018 _exit(close(fileno(stdout)) != 0);
7019 } else {
7020 int status;
7021 struct stat st;
7023 while (wait(&status) != child)
7025 exit(
7026 /* Was there some problem with vforking? */
7027 child < 0
7029 /* Did the child fail? (This shouldn't happen.) */
7030 || status
7032 /* Did the vfork/compiler bug occur? */
7033 || parent != getpid()
7035 /* Did the file descriptor bug occur? */
7036 || fstat(fileno(stdout), &st) != 0
7040 _ACEOF
7041 rm -f conftest$ac_exeext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043 (eval $ac_link) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_func_vfork_works=yes
7053 else
7054 echo "$as_me: program exited with status $ac_status" >&5
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ( exit $ac_status )
7059 ac_cv_func_vfork_works=no
7061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7065 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7068 if test "x$ac_cv_func_fork_works" = xcross; then
7069 ac_cv_func_vfork_works=$ac_cv_func_vfork
7070 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7071 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7074 if test "x$ac_cv_func_vfork_works" = xyes; then
7076 cat >>confdefs.h <<\_ACEOF
7077 #define HAVE_WORKING_VFORK 1
7078 _ACEOF
7080 else
7082 cat >>confdefs.h <<\_ACEOF
7083 #define vfork fork
7084 _ACEOF
7087 if test "x$ac_cv_func_fork_works" = xyes; then
7089 cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_WORKING_FORK 1
7091 _ACEOF
7095 if test $ac_cv_func_vfork_works = no; then
7096 case $LIBOBJS in
7097 "vfork.$ac_objext" | \
7098 *" vfork.$ac_objext" | \
7099 "vfork.$ac_objext "* | \
7100 *" vfork.$ac_objext "* ) ;;
7101 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
7102 esac
7105 # We only need _doprnt if we might use it to implement v*printf.
7106 if test $ac_cv_func_vprintf != yes \
7107 || test $ac_cv_func_vfprintf != yes \
7108 || test $ac_cv_func_vsprintf != yes; then
7110 for ac_func in _doprnt
7112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7113 echo "$as_me:$LINENO: checking for $ac_func" >&5
7114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7115 if eval "test \"\${$as_ac_var+set}\" = set"; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 if test x$gcc_no_link = xyes; then
7119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7121 { (exit 1); exit 1; }; }
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 /* System header to define __stub macros and hopefully few prototypes,
7130 which can conflict with char $ac_func (); below.
7131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132 <limits.h> exists even on freestanding compilers. Under hpux,
7133 including <limits.h> includes <sys/time.h> and causes problems
7134 checking for functions defined therein. */
7135 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7136 # include <limits.h>
7137 #else
7138 # include <assert.h>
7139 #endif
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 #ifdef __cplusplus
7142 extern "C"
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7147 char $ac_func ();
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 char (*f) () = $ac_func;
7155 #endif
7156 #ifdef __cplusplus
7158 #endif
7161 main ()
7163 return f != $ac_func;
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 eval "$as_ac_var=yes"
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 eval "$as_ac_var=no"
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203 cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 _ACEOF
7207 else
7208 case $LIBOBJS in
7209 "$ac_func.$ac_objext" | \
7210 *" $ac_func.$ac_objext" | \
7211 "$ac_func.$ac_objext "* | \
7212 *" $ac_func.$ac_objext "* ) ;;
7213 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7214 esac
7217 done
7220 else
7222 for ac_func in _doprnt
7224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 if test x$gcc_no_link = xyes; then
7231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7233 { (exit 1); exit 1; }; }
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 /* System header to define __stub macros and hopefully few prototypes,
7242 which can conflict with char $ac_func (); below.
7243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7244 <limits.h> exists even on freestanding compilers. Under hpux,
7245 including <limits.h> includes <sys/time.h> and causes problems
7246 checking for functions defined therein. */
7247 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7248 # include <limits.h>
7249 #else
7250 # include <assert.h>
7251 #endif
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 #ifdef __cplusplus
7254 extern "C"
7256 #endif
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char $ac_func ();
7260 /* The GNU C library defines this for functions which it implements
7261 to always fail with ENOSYS. Some functions are actually named
7262 something starting with __ and the normal name is an alias. */
7263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 choke me
7265 #else
7266 char (*f) () = $ac_func;
7267 #endif
7268 #ifdef __cplusplus
7270 #endif
7273 main ()
7275 return f != $ac_func;
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282 (eval $ac_link) 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest$ac_exeext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 eval "$as_ac_var=yes"
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 eval "$as_ac_var=no"
7309 rm -f conftest.err conftest.$ac_objext \
7310 conftest$ac_exeext conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7314 if test `eval echo '${'$as_ac_var'}'` = yes; then
7315 cat >>confdefs.h <<_ACEOF
7316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7317 _ACEOF
7320 done
7324 for v in $vars; do
7325 echo "$as_me:$LINENO: checking for $v" >&5
7326 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7327 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 if test x$gcc_no_link = xyes; then
7331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7333 { (exit 1); exit 1; }; }
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h. */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 int *p;
7343 main ()
7345 extern int $v []; p = $v;
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 eval "libiberty_cv_var_$v=yes"
7373 else
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 eval "libiberty_cv_var_$v=no"
7379 rm -f conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7383 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7384 echo "$as_me:$LINENO: result: yes" >&5
7385 echo "${ECHO_T}yes" >&6
7386 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >>confdefs.h <<_ACEOF
7388 #define $n 1
7389 _ACEOF
7391 else
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7395 done
7397 # special check for _system_configuration because AIX <4.3.2 do not
7398 # contain the `physmem' member.
7399 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7400 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <sys/systemcfg.h>
7409 main ()
7411 double x = _system_configuration.physmem;
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE__SYSTEM_CONFIGURATION 1
7443 _ACEOF
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455 for ac_func in $checkfuncs
7457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7458 echo "$as_me:$LINENO: checking for $ac_func" >&5
7459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7460 if eval "test \"\${$as_ac_var+set}\" = set"; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 if test x$gcc_no_link = xyes; then
7464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7466 { (exit 1); exit 1; }; }
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char $ac_func (); below.
7476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 <limits.h> exists even on freestanding compilers. Under hpux,
7478 including <limits.h> includes <sys/time.h> and causes problems
7479 checking for functions defined therein. */
7480 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7489 #endif
7490 /* We use char because int might match the return type of a gcc2
7491 builtin and then its argument prototype would still apply. */
7492 char $ac_func ();
7493 /* The GNU C library defines this for functions which it implements
7494 to always fail with ENOSYS. Some functions are actually named
7495 something starting with __ and the normal name is an alias. */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 choke me
7498 #else
7499 char (*f) () = $ac_func;
7500 #endif
7501 #ifdef __cplusplus
7503 #endif
7506 main ()
7508 return f != $ac_func;
7510 return 0;
7512 _ACEOF
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 eval "$as_ac_var=yes"
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 eval "$as_ac_var=no"
7542 rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7547 if test `eval echo '${'$as_ac_var'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7550 _ACEOF
7553 done
7555 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7556 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7557 if test "${ac_cv_have_decl_basename+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7568 main ()
7570 #ifndef basename
7571 char *p = (char *) basename;
7572 #endif
7575 return 0;
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -z "$ac_c_werror_flag"
7588 || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_have_decl_basename=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_have_decl_basename=no
7607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7610 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7611 if test $ac_cv_have_decl_basename = yes; then
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_DECL_BASENAME 1
7615 _ACEOF
7618 else
7619 cat >>confdefs.h <<_ACEOF
7620 #define HAVE_DECL_BASENAME 0
7621 _ACEOF
7625 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7626 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7627 if test "${ac_cv_have_decl_ffs+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7638 main ()
7640 #ifndef ffs
7641 char *p = (char *) ffs;
7642 #endif
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_have_decl_ffs=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_have_decl_ffs=no
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7680 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7681 if test $ac_cv_have_decl_ffs = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684 #define HAVE_DECL_FFS 1
7685 _ACEOF
7688 else
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_DECL_FFS 0
7691 _ACEOF
7695 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7696 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7697 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h. */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 $ac_includes_default
7708 main ()
7710 #ifndef asprintf
7711 char *p = (char *) asprintf;
7712 #endif
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag"
7728 || test ! -s conftest.err'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try='test -s conftest.$ac_objext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_have_decl_asprintf=yes
7741 else
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7745 ac_cv_have_decl_asprintf=no
7747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7750 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7751 if test $ac_cv_have_decl_asprintf = yes; then
7753 cat >>confdefs.h <<_ACEOF
7754 #define HAVE_DECL_ASPRINTF 1
7755 _ACEOF
7758 else
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_ASPRINTF 0
7761 _ACEOF
7765 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7766 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7767 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7778 main ()
7780 #ifndef vasprintf
7781 char *p = (char *) vasprintf;
7782 #endif
7785 return 0;
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 (eval $ac_try) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_cv_have_decl_vasprintf=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_cv_have_decl_vasprintf=no
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7820 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7821 if test $ac_cv_have_decl_vasprintf = yes; then
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_DECL_VASPRINTF 1
7825 _ACEOF
7828 else
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE_DECL_VASPRINTF 0
7831 _ACEOF
7835 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7836 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7837 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 $ac_includes_default
7848 main ()
7850 #ifndef snprintf
7851 char *p = (char *) snprintf;
7852 #endif
7855 return 0;
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860 (eval $ac_compile) 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_have_decl_snprintf=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_have_decl_snprintf=no
7887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7891 if test $ac_cv_have_decl_snprintf = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_DECL_SNPRINTF 1
7895 _ACEOF
7898 else
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_SNPRINTF 0
7901 _ACEOF
7905 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7906 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7907 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h. */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 $ac_includes_default
7918 main ()
7920 #ifndef vsnprintf
7921 char *p = (char *) vsnprintf;
7922 #endif
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag"
7938 || test ! -s conftest.err'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest.$ac_objext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_have_decl_vsnprintf=yes
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 ac_cv_have_decl_vsnprintf=no
7957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7960 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7961 if test $ac_cv_have_decl_vsnprintf = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_DECL_VSNPRINTF 1
7965 _ACEOF
7968 else
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_DECL_VSNPRINTF 0
7971 _ACEOF
7977 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7978 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7979 if test "${ac_cv_have_decl_calloc+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_includes_default
7990 main ()
7992 #ifndef calloc
7993 char *p = (char *) calloc;
7994 #endif
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try='test -z "$ac_c_werror_flag"
8010 || test ! -s conftest.err'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest.$ac_objext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_have_decl_calloc=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_have_decl_calloc=no
8029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8032 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8033 if test $ac_cv_have_decl_calloc = yes; then
8035 cat >>confdefs.h <<_ACEOF
8036 #define HAVE_DECL_CALLOC 1
8037 _ACEOF
8040 else
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_DECL_CALLOC 0
8043 _ACEOF
8047 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8048 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8049 if test "${ac_cv_have_decl_getenv+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_includes_default
8060 main ()
8062 #ifndef getenv
8063 char *p = (char *) getenv;
8064 #endif
8067 return 0;
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try='test -z "$ac_c_werror_flag"
8080 || test ! -s conftest.err'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_have_decl_getenv=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_have_decl_getenv=no
8099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8102 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8103 if test $ac_cv_have_decl_getenv = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106 #define HAVE_DECL_GETENV 1
8107 _ACEOF
8110 else
8111 cat >>confdefs.h <<_ACEOF
8112 #define HAVE_DECL_GETENV 0
8113 _ACEOF
8117 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8118 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8119 if test "${ac_cv_have_decl_getopt+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8130 main ()
8132 #ifndef getopt
8133 char *p = (char *) getopt;
8134 #endif
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_have_decl_getopt=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_cv_have_decl_getopt=no
8169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8171 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8172 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8173 if test $ac_cv_have_decl_getopt = yes; then
8175 cat >>confdefs.h <<_ACEOF
8176 #define HAVE_DECL_GETOPT 1
8177 _ACEOF
8180 else
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_DECL_GETOPT 0
8183 _ACEOF
8187 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8188 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8189 if test "${ac_cv_have_decl_malloc+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 $ac_includes_default
8200 main ()
8202 #ifndef malloc
8203 char *p = (char *) malloc;
8204 #endif
8207 return 0;
8209 _ACEOF
8210 rm -f conftest.$ac_objext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212 (eval $ac_compile) 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_have_decl_malloc=yes
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_have_decl_malloc=no
8239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8242 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8243 if test $ac_cv_have_decl_malloc = yes; then
8245 cat >>confdefs.h <<_ACEOF
8246 #define HAVE_DECL_MALLOC 1
8247 _ACEOF
8250 else
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_DECL_MALLOC 0
8253 _ACEOF
8257 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8258 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8259 if test "${ac_cv_have_decl_realloc+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8270 main ()
8272 #ifndef realloc
8273 char *p = (char *) realloc;
8274 #endif
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_have_decl_realloc=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_have_decl_realloc=no
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8312 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8313 if test $ac_cv_have_decl_realloc = yes; then
8315 cat >>confdefs.h <<_ACEOF
8316 #define HAVE_DECL_REALLOC 1
8317 _ACEOF
8320 else
8321 cat >>confdefs.h <<_ACEOF
8322 #define HAVE_DECL_REALLOC 0
8323 _ACEOF
8327 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8328 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8329 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8340 main ()
8342 #ifndef sbrk
8343 char *p = (char *) sbrk;
8344 #endif
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag"
8360 || test ! -s conftest.err'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; } &&
8366 { ac_try='test -s conftest.$ac_objext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_have_decl_sbrk=yes
8373 else
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_cv_have_decl_sbrk=no
8379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8382 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8383 if test $ac_cv_have_decl_sbrk = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define HAVE_DECL_SBRK 1
8387 _ACEOF
8390 else
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL_SBRK 0
8393 _ACEOF
8399 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8400 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8412 main ()
8414 #ifndef strverscmp
8415 char *p = (char *) strverscmp;
8416 #endif
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8424 (eval $ac_compile) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_have_decl_strverscmp=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_have_decl_strverscmp=no
8451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8454 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8455 if test $ac_cv_have_decl_strverscmp = yes; then
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_DECL_STRVERSCMP 1
8459 _ACEOF
8462 else
8463 cat >>confdefs.h <<_ACEOF
8464 #define HAVE_DECL_STRVERSCMP 0
8465 _ACEOF
8471 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8472 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8473 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8483 #include "confdefs.h"
8484 #include <stdio.h>
8485 #ifdef HAVE_STRING_H
8486 #include <string.h>
8487 #else
8488 #ifdef HAVE_STRINGS_H
8489 #include <strings.h>
8490 #endif
8491 #endif
8492 #ifdef HAVE_STDLIB_H
8493 #include <stdlib.h>
8494 #endif
8495 #ifdef HAVE_UNISTD_H
8496 #include <unistd.h>
8497 #endif
8499 main ()
8501 char *(*pfn) = (char *(*)) canonicalize_file_name
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 libiberty_cv_decl_needed_canonicalize_file_name=no
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 libiberty_cv_decl_needed_canonicalize_file_name=yes
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8539 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8540 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8542 cat >>confdefs.h <<\_ACEOF
8543 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8544 _ACEOF
8550 # Figure out which version of pexecute to use.
8551 case "${host}" in
8552 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
8553 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
8554 *-*-msdos*) pexecute=./pex-msdos.o ;;
8555 *) pexecute=./pex-unix.o ;;
8556 esac
8559 if test x$gcc_no_link = xyes; then
8560 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8561 ac_cv_func_mmap_fixed_mapped=no
8564 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8567 for ac_header in stdlib.h unistd.h
8569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 #include <$ac_header>
8582 _ACEOF
8583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } >/dev/null; then
8591 if test -s conftest.err; then
8592 ac_cpp_err=$ac_c_preproc_warn_flag
8593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8594 else
8595 ac_cpp_err=
8597 else
8598 ac_cpp_err=yes
8600 if test -z "$ac_cpp_err"; then
8601 eval "$as_ac_Header=yes"
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 eval "$as_ac_Header=no"
8608 rm -f conftest.err conftest.$ac_ext
8610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8613 cat >>confdefs.h <<_ACEOF
8614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615 _ACEOF
8618 done
8621 for ac_func in getpagesize
8623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624 echo "$as_me:$LINENO: checking for $ac_func" >&5
8625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8626 if eval "test \"\${$as_ac_var+set}\" = set"; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 if test x$gcc_no_link = xyes; then
8630 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8631 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8632 { (exit 1); exit 1; }; }
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 /* System header to define __stub macros and hopefully few prototypes,
8641 which can conflict with char $ac_func (); below.
8642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643 <limits.h> exists even on freestanding compilers. Under hpux,
8644 including <limits.h> includes <sys/time.h> and causes problems
8645 checking for functions defined therein. */
8646 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8647 # include <limits.h>
8648 #else
8649 # include <assert.h>
8650 #endif
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 #ifdef __cplusplus
8653 extern "C"
8655 #endif
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658 char $ac_func ();
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663 choke me
8664 #else
8665 char (*f) () = $ac_func;
8666 #endif
8667 #ifdef __cplusplus
8669 #endif
8672 main ()
8674 return f != $ac_func;
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 eval "$as_ac_var=yes"
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 eval "$as_ac_var=no"
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713 if test `eval echo '${'$as_ac_var'}'` = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8716 _ACEOF
8719 done
8721 echo "$as_me:$LINENO: checking for working mmap" >&5
8722 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8723 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 if test "$cross_compiling" = yes; then
8727 ac_cv_func_mmap_fixed_mapped=no
8728 else
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 $ac_includes_default
8736 /* malloc might have been renamed as rpl_malloc. */
8737 #undef malloc
8739 /* Thanks to Mike Haertel and Jim Avera for this test.
8740 Here is a matrix of mmap possibilities:
8741 mmap private not fixed
8742 mmap private fixed at somewhere currently unmapped
8743 mmap private fixed at somewhere already mapped
8744 mmap shared not fixed
8745 mmap shared fixed at somewhere currently unmapped
8746 mmap shared fixed at somewhere already mapped
8747 For private mappings, we should verify that changes cannot be read()
8748 back from the file, nor mmap's back from the file at a different
8749 address. (There have been systems where private was not correctly
8750 implemented like the infamous i386 svr4.0, and systems where the
8751 VM page cache was not coherent with the file system buffer cache
8752 like early versions of FreeBSD and possibly contemporary NetBSD.)
8753 For shared mappings, we should conversely verify that changes get
8754 propagated back to all the places they're supposed to be.
8756 Grep wants private fixed already mapped.
8757 The main things grep needs to know about mmap are:
8758 * does it exist and is it safe to write into the mmap'd area
8759 * how to use it (BSD variants) */
8761 #include <fcntl.h>
8762 #include <sys/mman.h>
8764 #if !STDC_HEADERS && !HAVE_STDLIB_H
8765 char *malloc ();
8766 #endif
8768 /* This mess was copied from the GNU getpagesize.h. */
8769 #if !HAVE_GETPAGESIZE
8770 /* Assume that all systems that can run configure have sys/param.h. */
8771 # if !HAVE_SYS_PARAM_H
8772 # define HAVE_SYS_PARAM_H 1
8773 # endif
8775 # ifdef _SC_PAGESIZE
8776 # define getpagesize() sysconf(_SC_PAGESIZE)
8777 # else /* no _SC_PAGESIZE */
8778 # if HAVE_SYS_PARAM_H
8779 # include <sys/param.h>
8780 # ifdef EXEC_PAGESIZE
8781 # define getpagesize() EXEC_PAGESIZE
8782 # else /* no EXEC_PAGESIZE */
8783 # ifdef NBPG
8784 # define getpagesize() NBPG * CLSIZE
8785 # ifndef CLSIZE
8786 # define CLSIZE 1
8787 # endif /* no CLSIZE */
8788 # else /* no NBPG */
8789 # ifdef NBPC
8790 # define getpagesize() NBPC
8791 # else /* no NBPC */
8792 # ifdef PAGESIZE
8793 # define getpagesize() PAGESIZE
8794 # endif /* PAGESIZE */
8795 # endif /* no NBPC */
8796 # endif /* no NBPG */
8797 # endif /* no EXEC_PAGESIZE */
8798 # else /* no HAVE_SYS_PARAM_H */
8799 # define getpagesize() 8192 /* punt totally */
8800 # endif /* no HAVE_SYS_PARAM_H */
8801 # endif /* no _SC_PAGESIZE */
8803 #endif /* no HAVE_GETPAGESIZE */
8806 main ()
8808 char *data, *data2, *data3;
8809 int i, pagesize;
8810 int fd;
8812 pagesize = getpagesize ();
8814 /* First, make a file with some known garbage in it. */
8815 data = (char *) malloc (pagesize);
8816 if (!data)
8817 exit (1);
8818 for (i = 0; i < pagesize; ++i)
8819 *(data + i) = rand ();
8820 umask (0);
8821 fd = creat ("conftest.mmap", 0600);
8822 if (fd < 0)
8823 exit (1);
8824 if (write (fd, data, pagesize) != pagesize)
8825 exit (1);
8826 close (fd);
8828 /* Next, try to mmap the file at a fixed address which already has
8829 something else allocated at it. If we can, also make sure that
8830 we see the same garbage. */
8831 fd = open ("conftest.mmap", O_RDWR);
8832 if (fd < 0)
8833 exit (1);
8834 data2 = (char *) malloc (2 * pagesize);
8835 if (!data2)
8836 exit (1);
8837 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8838 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8839 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8840 exit (1);
8841 for (i = 0; i < pagesize; ++i)
8842 if (*(data + i) != *(data2 + i))
8843 exit (1);
8845 /* Finally, make sure that changes to the mapped area do not
8846 percolate back to the file as seen by read(). (This is a bug on
8847 some variants of i386 svr4.0.) */
8848 for (i = 0; i < pagesize; ++i)
8849 *(data2 + i) = *(data2 + i) + 1;
8850 data3 = (char *) malloc (pagesize);
8851 if (!data3)
8852 exit (1);
8853 if (read (fd, data3, pagesize) != pagesize)
8854 exit (1);
8855 for (i = 0; i < pagesize; ++i)
8856 if (*(data + i) != *(data3 + i))
8857 exit (1);
8858 close (fd);
8859 exit (0);
8861 _ACEOF
8862 rm -f conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_func_mmap_fixed_mapped=yes
8874 else
8875 echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ( exit $ac_status )
8880 ac_cv_func_mmap_fixed_mapped=no
8882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8885 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8886 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_MMAP 1
8891 _ACEOF
8894 rm -f conftest.mmap
8898 echo "$as_me:$LINENO: checking for working strncmp" >&5
8899 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8900 if test "${ac_cv_func_strncmp_works+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 if test "$cross_compiling" = yes; then
8904 ac_cv_func_strncmp_works=no
8905 else
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Test by Jim Wilson and Kaveh Ghazi.
8914 Check whether strncmp reads past the end of its string parameters. */
8915 #include <sys/types.h>
8917 #ifdef HAVE_FCNTL_H
8918 #include <fcntl.h>
8919 #endif
8921 #ifdef HAVE_SYS_MMAN_H
8922 #include <sys/mman.h>
8923 #endif
8925 #ifndef MAP_ANON
8926 #ifdef MAP_ANONYMOUS
8927 #define MAP_ANON MAP_ANONYMOUS
8928 #else
8929 #define MAP_ANON MAP_FILE
8930 #endif
8931 #endif
8933 #ifndef MAP_FILE
8934 #define MAP_FILE 0
8935 #endif
8936 #ifndef O_RDONLY
8937 #define O_RDONLY 0
8938 #endif
8940 #define MAP_LEN 0x10000
8942 main ()
8944 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8945 char *p;
8946 int dev_zero;
8948 dev_zero = open ("/dev/zero", O_RDONLY);
8949 if (dev_zero < 0)
8950 exit (1);
8952 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8953 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8954 if (p == (char *)-1)
8955 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8956 MAP_ANON|MAP_PRIVATE, -1, 0);
8957 if (p == (char *)-1)
8958 exit (2);
8959 else
8961 char *string = "__si_type_info";
8962 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8963 char *r = (char *) p + 0xe;
8965 strcpy (q, string);
8966 strcpy (r, string);
8967 strncmp (r, q, 14);
8969 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8970 exit (0);
8973 _ACEOF
8974 rm -f conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_func_strncmp_works=yes
8986 else
8987 echo "$as_me: program exited with status $ac_status" >&5
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ( exit $ac_status )
8992 ac_cv_func_strncmp_works=no
8994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8996 rm -f core core.* *.core
8998 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8999 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
9000 if test $ac_cv_func_strncmp_works = no ; then
9001 case $LIBOBJS in
9002 "strncmp.$ac_objext" | \
9003 *" strncmp.$ac_objext" | \
9004 "strncmp.$ac_objext "* | \
9005 *" strncmp.$ac_objext "* ) ;;
9006 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
9007 esac
9012 # Install a library built with a cross compiler in $(tooldir) rather
9013 # than $(libdir).
9014 if test -z "${with_cross_host}"; then
9015 INSTALL_DEST=libdir
9016 else
9017 INSTALL_DEST=tooldir
9022 L=""
9023 for l in x $LIBOBJS; do
9024 case $l in
9025 x) ;;
9026 *) L="$L ./$l" ;;
9027 esac
9028 done
9029 LIBOBJS="$L"
9035 # We need multilib support, but only if configuring for the target.
9036 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
9038 ac_config_commands="$ac_config_commands default"
9040 cat >confcache <<\_ACEOF
9041 # This file is a shell script that caches the results of configure
9042 # tests run on this system so they can be shared between configure
9043 # scripts and configure runs, see configure's option --config-cache.
9044 # It is not useful on other systems. If it contains results you don't
9045 # want to keep, you may remove or edit it.
9047 # config.status only pays attention to the cache file if you give it
9048 # the --recheck option to rerun configure.
9050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9052 # following values.
9054 _ACEOF
9056 # The following way of writing the cache mishandles newlines in values,
9057 # but we know of no workaround that is simple, portable, and efficient.
9058 # So, don't put newlines in cache variables' values.
9059 # Ultrix sh set writes to stderr and can't be redirected directly,
9060 # and sets the high bit in the cache file unless we assign to the vars.
9062 (set) 2>&1 |
9063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9064 *ac_space=\ *)
9065 # `set' does not quote correctly, so add quotes (double-quote
9066 # substitution turns \\\\ into \\, and sed turns \\ into \).
9067 sed -n \
9068 "s/'/'\\\\''/g;
9069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9072 # `set' quotes correctly as required by POSIX, so do not add quotes.
9073 sed -n \
9074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9076 esac;
9078 sed '
9079 t clear
9080 : clear
9081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9082 t end
9083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9084 : end' >>confcache
9085 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9086 if test -w $cache_file; then
9087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9088 cat confcache >$cache_file
9089 else
9090 echo "not updating unwritable cache $cache_file"
9093 rm -f confcache
9095 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9096 # Let make expand exec_prefix.
9097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9099 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9100 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9101 # trailing colons and then remove the whole line if VPATH becomes empty
9102 # (actually we leave an empty line to preserve line numbers).
9103 if test "x$srcdir" = x.; then
9104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9105 s/:*\$(srcdir):*/:/;
9106 s/:*\${srcdir}:*/:/;
9107 s/:*@srcdir@:*/:/;
9108 s/^\([^=]*=[ ]*\):*/\1/;
9109 s/:*$//;
9110 s/^[^=]*=[ ]*$//;
9114 DEFS=-DHAVE_CONFIG_H
9116 ac_libobjs=
9117 ac_ltlibobjs=
9118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9119 # 1. Remove the extension, and $U if already installed.
9120 ac_i=`echo "$ac_i" |
9121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9122 # 2. Add them.
9123 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9124 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9125 done
9126 LIBOBJS=$ac_libobjs
9128 LTLIBOBJS=$ac_ltlibobjs
9132 : ${CONFIG_STATUS=./config.status}
9133 ac_clean_files_save=$ac_clean_files
9134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9135 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9136 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9137 cat >$CONFIG_STATUS <<_ACEOF
9138 #! $SHELL
9139 # Generated by $as_me.
9140 # Run this file to recreate the current configuration.
9141 # Compiler output produced by configure, useful for debugging
9142 # configure, is in config.log if it exists.
9144 debug=false
9145 ac_cs_recheck=false
9146 ac_cs_silent=false
9147 SHELL=\${CONFIG_SHELL-$SHELL}
9148 _ACEOF
9150 cat >>$CONFIG_STATUS <<\_ACEOF
9151 ## --------------------- ##
9152 ## M4sh Initialization. ##
9153 ## --------------------- ##
9155 # Be Bourne compatible
9156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9157 emulate sh
9158 NULLCMD=:
9159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9160 # is contrary to our usage. Disable this feature.
9161 alias -g '${1+"$@"}'='"$@"'
9162 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9163 set -o posix
9165 DUALCASE=1; export DUALCASE # for MKS sh
9167 # Support unset when possible.
9168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9169 as_unset=unset
9170 else
9171 as_unset=false
9175 # Work around bugs in pre-3.0 UWIN ksh.
9176 $as_unset ENV MAIL MAILPATH
9177 PS1='$ '
9178 PS2='> '
9179 PS4='+ '
9181 # NLS nuisances.
9182 for as_var in \
9183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9185 LC_TELEPHONE LC_TIME
9187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9188 eval $as_var=C; export $as_var
9189 else
9190 $as_unset $as_var
9192 done
9194 # Required to use basename.
9195 if expr a : '\(a\)' >/dev/null 2>&1; then
9196 as_expr=expr
9197 else
9198 as_expr=false
9201 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9202 as_basename=basename
9203 else
9204 as_basename=false
9208 # Name of the executable.
9209 as_me=`$as_basename "$0" ||
9210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9211 X"$0" : 'X\(//\)$' \| \
9212 X"$0" : 'X\(/\)$' \| \
9213 . : '\(.\)' 2>/dev/null ||
9214 echo X/"$0" |
9215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9216 /^X\/\(\/\/\)$/{ s//\1/; q; }
9217 /^X\/\(\/\).*/{ s//\1/; q; }
9218 s/.*/./; q'`
9221 # PATH needs CR, and LINENO needs CR and PATH.
9222 # Avoid depending upon Character Ranges.
9223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9226 as_cr_digits='0123456789'
9227 as_cr_alnum=$as_cr_Letters$as_cr_digits
9229 # The user is always right.
9230 if test "${PATH_SEPARATOR+set}" != set; then
9231 echo "#! /bin/sh" >conf$$.sh
9232 echo "exit 0" >>conf$$.sh
9233 chmod +x conf$$.sh
9234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9235 PATH_SEPARATOR=';'
9236 else
9237 PATH_SEPARATOR=:
9239 rm -f conf$$.sh
9243 as_lineno_1=$LINENO
9244 as_lineno_2=$LINENO
9245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9246 test "x$as_lineno_1" != "x$as_lineno_2" &&
9247 test "x$as_lineno_3" = "x$as_lineno_2" || {
9248 # Find who we are. Look in the path if we contain no path at all
9249 # relative or not.
9250 case $0 in
9251 *[\\/]* ) as_myself=$0 ;;
9252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9258 done
9261 esac
9262 # We did not find ourselves, most probably we were run as `sh COMMAND'
9263 # in which case we are not to be found in the path.
9264 if test "x$as_myself" = x; then
9265 as_myself=$0
9267 if test ! -f "$as_myself"; then
9268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9269 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9270 { (exit 1); exit 1; }; }
9272 case $CONFIG_SHELL in
9274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9277 IFS=$as_save_IFS
9278 test -z "$as_dir" && as_dir=.
9279 for as_base in sh bash ksh sh5; do
9280 case $as_dir in
9282 if ("$as_dir/$as_base" -c '
9283 as_lineno_1=$LINENO
9284 as_lineno_2=$LINENO
9285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9286 test "x$as_lineno_1" != "x$as_lineno_2" &&
9287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9290 CONFIG_SHELL=$as_dir/$as_base
9291 export CONFIG_SHELL
9292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9293 fi;;
9294 esac
9295 done
9296 done
9298 esac
9300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9301 # uniformly replaced by the line number. The first 'sed' inserts a
9302 # line-number line before each line; the second 'sed' does the real
9303 # work. The second script uses 'N' to pair each line-number line
9304 # with the numbered line, and appends trailing '-' during
9305 # substitution so that $LINENO is not a special case at line end.
9306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9308 sed '=' <$as_myself |
9309 sed '
9311 s,$,-,
9312 : loop
9313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9314 t loop
9315 s,-$,,
9316 s,^['$as_cr_digits']*\n,,
9317 ' >$as_me.lineno &&
9318 chmod +x $as_me.lineno ||
9319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9320 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9321 { (exit 1); exit 1; }; }
9323 # Don't try to exec as it changes $[0], causing all sort of problems
9324 # (the dirname of $[0] is not the place where we might find the
9325 # original and so on. Autoconf is especially sensible to this).
9326 . ./$as_me.lineno
9327 # Exit status is that of the last command.
9328 exit
9332 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9333 *c*,-n*) ECHO_N= ECHO_C='
9334 ' ECHO_T=' ' ;;
9335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9337 esac
9339 if expr a : '\(a\)' >/dev/null 2>&1; then
9340 as_expr=expr
9341 else
9342 as_expr=false
9345 rm -f conf$$ conf$$.exe conf$$.file
9346 echo >conf$$.file
9347 if ln -s conf$$.file conf$$ 2>/dev/null; then
9348 # We could just check for DJGPP; but this test a) works b) is more generic
9349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9350 if test -f conf$$.exe; then
9351 # Don't use ln at all; we don't have any links
9352 as_ln_s='cp -p'
9353 else
9354 as_ln_s='ln -s'
9356 elif ln conf$$.file conf$$ 2>/dev/null; then
9357 as_ln_s=ln
9358 else
9359 as_ln_s='cp -p'
9361 rm -f conf$$ conf$$.exe conf$$.file
9363 if mkdir -p . 2>/dev/null; then
9364 as_mkdir_p=:
9365 else
9366 test -d ./-p && rmdir ./-p
9367 as_mkdir_p=false
9370 as_executable_p="test -f"
9372 # Sed expression to map a string onto a valid CPP name.
9373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9375 # Sed expression to map a string onto a valid variable name.
9376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9379 # IFS
9380 # We need space, tab and new line, in precisely that order.
9381 as_nl='
9383 IFS=" $as_nl"
9385 # CDPATH.
9386 $as_unset CDPATH
9388 exec 6>&1
9390 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9391 # report actual input values of CONFIG_FILES etc. instead of their
9392 # values after options handling. Logging --version etc. is OK.
9393 exec 5>>config.log
9395 echo
9396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9397 ## Running $as_me. ##
9398 _ASBOX
9399 } >&5
9400 cat >&5 <<_CSEOF
9402 This file was extended by $as_me, which was
9403 generated by GNU Autoconf 2.59. Invocation command line was
9405 CONFIG_FILES = $CONFIG_FILES
9406 CONFIG_HEADERS = $CONFIG_HEADERS
9407 CONFIG_LINKS = $CONFIG_LINKS
9408 CONFIG_COMMANDS = $CONFIG_COMMANDS
9409 $ $0 $@
9411 _CSEOF
9412 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9413 echo >&5
9414 _ACEOF
9416 # Files that config.status was made for.
9417 if test -n "$ac_config_files"; then
9418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9421 if test -n "$ac_config_headers"; then
9422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9425 if test -n "$ac_config_links"; then
9426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9429 if test -n "$ac_config_commands"; then
9430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9433 cat >>$CONFIG_STATUS <<\_ACEOF
9435 ac_cs_usage="\
9436 \`$as_me' instantiates files from templates according to the
9437 current configuration.
9439 Usage: $0 [OPTIONS] [FILE]...
9441 -h, --help print this help, then exit
9442 -V, --version print version number, then exit
9443 -q, --quiet do not print progress messages
9444 -d, --debug don't remove temporary files
9445 --recheck update $as_me by reconfiguring in the same conditions
9446 --file=FILE[:TEMPLATE]
9447 instantiate the configuration file FILE
9448 --header=FILE[:TEMPLATE]
9449 instantiate the configuration header FILE
9451 Configuration files:
9452 $config_files
9454 Configuration headers:
9455 $config_headers
9457 Configuration commands:
9458 $config_commands
9460 Report bugs to <bug-autoconf@gnu.org>."
9461 _ACEOF
9463 cat >>$CONFIG_STATUS <<_ACEOF
9464 ac_cs_version="\\
9465 config.status
9466 configured by $0, generated by GNU Autoconf 2.59,
9467 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9469 Copyright (C) 2003 Free Software Foundation, Inc.
9470 This config.status script is free software; the Free Software Foundation
9471 gives unlimited permission to copy, distribute and modify it."
9472 srcdir=$srcdir
9473 INSTALL="$INSTALL"
9474 _ACEOF
9476 cat >>$CONFIG_STATUS <<\_ACEOF
9477 # If no file are specified by the user, then we need to provide default
9478 # value. By we need to know if files were specified by the user.
9479 ac_need_defaults=:
9480 while test $# != 0
9482 case $1 in
9483 --*=*)
9484 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9485 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9486 ac_shift=:
9489 ac_option=$1
9490 ac_optarg=$2
9491 ac_shift=shift
9493 *) # This is not an option, so the user has probably given explicit
9494 # arguments.
9495 ac_option=$1
9496 ac_need_defaults=false;;
9497 esac
9499 case $ac_option in
9500 # Handling of the options.
9501 _ACEOF
9502 cat >>$CONFIG_STATUS <<\_ACEOF
9503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9504 ac_cs_recheck=: ;;
9505 --version | --vers* | -V )
9506 echo "$ac_cs_version"; exit 0 ;;
9507 --he | --h)
9508 # Conflict between --help and --header
9509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9510 Try \`$0 --help' for more information." >&5
9511 echo "$as_me: error: ambiguous option: $1
9512 Try \`$0 --help' for more information." >&2;}
9513 { (exit 1); exit 1; }; };;
9514 --help | --hel | -h )
9515 echo "$ac_cs_usage"; exit 0 ;;
9516 --debug | --d* | -d )
9517 debug=: ;;
9518 --file | --fil | --fi | --f )
9519 $ac_shift
9520 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9521 ac_need_defaults=false;;
9522 --header | --heade | --head | --hea )
9523 $ac_shift
9524 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9525 ac_need_defaults=false;;
9526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9528 ac_cs_silent=: ;;
9530 # This is an error.
9531 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9532 Try \`$0 --help' for more information." >&5
9533 echo "$as_me: error: unrecognized option: $1
9534 Try \`$0 --help' for more information." >&2;}
9535 { (exit 1); exit 1; }; } ;;
9537 *) ac_config_targets="$ac_config_targets $1" ;;
9539 esac
9540 shift
9541 done
9543 ac_configure_extra_args=
9545 if $ac_cs_silent; then
9546 exec 6>/dev/null
9547 ac_configure_extra_args="$ac_configure_extra_args --silent"
9550 _ACEOF
9551 cat >>$CONFIG_STATUS <<_ACEOF
9552 if \$ac_cs_recheck; then
9553 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9554 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9557 _ACEOF
9559 cat >>$CONFIG_STATUS <<_ACEOF
9561 # INIT-COMMANDS section.
9564 srcdir=${srcdir}
9565 host=${host}
9566 target=${target}
9567 with_target_subdir=${with_target_subdir}
9568 with_multisubdir=${with_multisubdir}
9569 ac_configure_args="--enable-multilib ${ac_configure_args}"
9570 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9571 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9572 libiberty_topdir=${libiberty_topdir}
9575 _ACEOF
9579 cat >>$CONFIG_STATUS <<\_ACEOF
9580 for ac_config_target in $ac_config_targets
9582 case "$ac_config_target" in
9583 # Handling of arguments.
9584 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9585 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9586 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9587 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9588 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9589 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9590 { (exit 1); exit 1; }; };;
9591 esac
9592 done
9594 # If the user did not use the arguments to specify the items to instantiate,
9595 # then the envvar interface is used. Set only those that are not.
9596 # We use the long form for the default assignment because of an extremely
9597 # bizarre bug on SunOS 4.1.3.
9598 if $ac_need_defaults; then
9599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9604 # Have a temporary directory for convenience. Make it in the build tree
9605 # simply because there is no reason to put it here, and in addition,
9606 # creating and moving files from /tmp can sometimes cause problems.
9607 # Create a temporary directory, and hook for its removal unless debugging.
9608 $debug ||
9610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9611 trap '{ (exit 1); exit 1; }' 1 2 13 15
9614 # Create a (secure) tmp directory for tmp files.
9617 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9618 test -n "$tmp" && test -d "$tmp"
9619 } ||
9621 tmp=./confstat$$-$RANDOM
9622 (umask 077 && mkdir $tmp)
9623 } ||
9625 echo "$me: cannot create a temporary directory in ." >&2
9626 { (exit 1); exit 1; }
9629 _ACEOF
9631 cat >>$CONFIG_STATUS <<_ACEOF
9634 # CONFIG_FILES section.
9637 # No need to generate the scripts if there are no CONFIG_FILES.
9638 # This happens for instance when ./config.status config.h
9639 if test -n "\$CONFIG_FILES"; then
9640 # Protect against being on the right side of a sed subst in config.status.
9641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9643 s,@SHELL@,$SHELL,;t t
9644 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9645 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9646 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9647 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9648 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9649 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9650 s,@exec_prefix@,$exec_prefix,;t t
9651 s,@prefix@,$prefix,;t t
9652 s,@program_transform_name@,$program_transform_name,;t t
9653 s,@bindir@,$bindir,;t t
9654 s,@sbindir@,$sbindir,;t t
9655 s,@libexecdir@,$libexecdir,;t t
9656 s,@datadir@,$datadir,;t t
9657 s,@sysconfdir@,$sysconfdir,;t t
9658 s,@sharedstatedir@,$sharedstatedir,;t t
9659 s,@localstatedir@,$localstatedir,;t t
9660 s,@libdir@,$libdir,;t t
9661 s,@includedir@,$includedir,;t t
9662 s,@oldincludedir@,$oldincludedir,;t t
9663 s,@infodir@,$infodir,;t t
9664 s,@mandir@,$mandir,;t t
9665 s,@build_alias@,$build_alias,;t t
9666 s,@host_alias@,$host_alias,;t t
9667 s,@target_alias@,$target_alias,;t t
9668 s,@DEFS@,$DEFS,;t t
9669 s,@ECHO_C@,$ECHO_C,;t t
9670 s,@ECHO_N@,$ECHO_N,;t t
9671 s,@ECHO_T@,$ECHO_T,;t t
9672 s,@LIBS@,$LIBS,;t t
9673 s,@libiberty_topdir@,$libiberty_topdir,;t t
9674 s,@MAINT@,$MAINT,;t t
9675 s,@NOTMAINT@,$NOTMAINT,;t t
9676 s,@MAKEINFO@,$MAKEINFO,;t t
9677 s,@BUILD_INFO@,$BUILD_INFO,;t t
9678 s,@PERL@,$PERL,;t t
9679 s,@HAVE_PERL@,$HAVE_PERL,;t t
9680 s,@build@,$build,;t t
9681 s,@build_cpu@,$build_cpu,;t t
9682 s,@build_vendor@,$build_vendor,;t t
9683 s,@build_os@,$build_os,;t t
9684 s,@host@,$host,;t t
9685 s,@host_cpu@,$host_cpu,;t t
9686 s,@host_vendor@,$host_vendor,;t t
9687 s,@host_os@,$host_os,;t t
9688 s,@AR@,$AR,;t t
9689 s,@ac_ct_AR@,$ac_ct_AR,;t t
9690 s,@RANLIB@,$RANLIB,;t t
9691 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9692 s,@CC@,$CC,;t t
9693 s,@CFLAGS@,$CFLAGS,;t t
9694 s,@LDFLAGS@,$LDFLAGS,;t t
9695 s,@CPPFLAGS@,$CPPFLAGS,;t t
9696 s,@ac_ct_CC@,$ac_ct_CC,;t t
9697 s,@EXEEXT@,$EXEEXT,;t t
9698 s,@OBJEXT@,$OBJEXT,;t t
9699 s,@CPP@,$CPP,;t t
9700 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9701 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9702 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9704 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9705 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9706 s,@PICFLAG@,$PICFLAG,;t t
9707 s,@EGREP@,$EGREP,;t t
9708 s,@LIBOBJS@,$LIBOBJS,;t t
9709 s,@CHECK@,$CHECK,;t t
9710 s,@target_header_dir@,$target_header_dir,;t t
9711 s,@pexecute@,$pexecute,;t t
9712 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9713 s,@datarootdir@,$datarootdir,;t t
9714 s,@docdir@,$docdir,;t t
9715 s,@htmldir@,$htmldir,;t t
9716 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9717 /@host_makefile_frag@/r $host_makefile_frag
9718 s,@host_makefile_frag@,,;t t
9719 CEOF
9721 _ACEOF
9723 cat >>$CONFIG_STATUS <<\_ACEOF
9724 # Split the substitutions into bite-sized pieces for seds with
9725 # small command number limits, like on Digital OSF/1 and HP-UX.
9726 ac_max_sed_lines=48
9727 ac_sed_frag=1 # Number of current file.
9728 ac_beg=1 # First line for current file.
9729 ac_end=$ac_max_sed_lines # Line after last line for current file.
9730 ac_more_lines=:
9731 ac_sed_cmds=
9732 while $ac_more_lines; do
9733 if test $ac_beg -gt 1; then
9734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9735 else
9736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9738 if test ! -s $tmp/subs.frag; then
9739 ac_more_lines=false
9740 else
9741 # The purpose of the label and of the branching condition is to
9742 # speed up the sed processing (if there are no `@' at all, there
9743 # is no need to browse any of the substitutions).
9744 # These are the two extra sed commands mentioned above.
9745 (echo ':t
9746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9747 if test -z "$ac_sed_cmds"; then
9748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9749 else
9750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9752 ac_sed_frag=`expr $ac_sed_frag + 1`
9753 ac_beg=$ac_end
9754 ac_end=`expr $ac_end + $ac_max_sed_lines`
9756 done
9757 if test -z "$ac_sed_cmds"; then
9758 ac_sed_cmds=cat
9760 fi # test -n "$CONFIG_FILES"
9762 _ACEOF
9763 cat >>$CONFIG_STATUS <<\_ACEOF
9764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9766 case $ac_file in
9767 - | *:- | *:-:* ) # input from stdin
9768 cat >$tmp/stdin
9769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9773 * ) ac_file_in=$ac_file.in ;;
9774 esac
9776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9777 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779 X"$ac_file" : 'X\(//\)[^/]' \| \
9780 X"$ac_file" : 'X\(//\)$' \| \
9781 X"$ac_file" : 'X\(/\)' \| \
9782 . : '\(.\)' 2>/dev/null ||
9783 echo X"$ac_file" |
9784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9786 /^X\(\/\/\)$/{ s//\1/; q; }
9787 /^X\(\/\).*/{ s//\1/; q; }
9788 s/.*/./; q'`
9789 { if $as_mkdir_p; then
9790 mkdir -p "$ac_dir"
9791 else
9792 as_dir="$ac_dir"
9793 as_dirs=
9794 while test ! -d "$as_dir"; do
9795 as_dirs="$as_dir $as_dirs"
9796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9798 X"$as_dir" : 'X\(//\)[^/]' \| \
9799 X"$as_dir" : 'X\(//\)$' \| \
9800 X"$as_dir" : 'X\(/\)' \| \
9801 . : '\(.\)' 2>/dev/null ||
9802 echo X"$as_dir" |
9803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9805 /^X\(\/\/\)$/{ s//\1/; q; }
9806 /^X\(\/\).*/{ s//\1/; q; }
9807 s/.*/./; q'`
9808 done
9809 test ! -n "$as_dirs" || mkdir $as_dirs
9810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9812 { (exit 1); exit 1; }; }; }
9814 ac_builddir=.
9816 if test "$ac_dir" != .; then
9817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9818 # A "../" for each directory in $ac_dir_suffix.
9819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9820 else
9821 ac_dir_suffix= ac_top_builddir=
9824 case $srcdir in
9825 .) # No --srcdir option. We are building in place.
9826 ac_srcdir=.
9827 if test -z "$ac_top_builddir"; then
9828 ac_top_srcdir=.
9829 else
9830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9831 fi ;;
9832 [\\/]* | ?:[\\/]* ) # Absolute path.
9833 ac_srcdir=$srcdir$ac_dir_suffix;
9834 ac_top_srcdir=$srcdir ;;
9835 *) # Relative path.
9836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9838 esac
9840 # Do not use `cd foo && pwd` to compute absolute paths, because
9841 # the directories may not exist.
9842 case `pwd` in
9843 .) ac_abs_builddir="$ac_dir";;
9845 case "$ac_dir" in
9846 .) ac_abs_builddir=`pwd`;;
9847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9849 esac;;
9850 esac
9851 case $ac_abs_builddir in
9852 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9854 case ${ac_top_builddir}. in
9855 .) ac_abs_top_builddir=$ac_abs_builddir;;
9856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9858 esac;;
9859 esac
9860 case $ac_abs_builddir in
9861 .) ac_abs_srcdir=$ac_srcdir;;
9863 case $ac_srcdir in
9864 .) ac_abs_srcdir=$ac_abs_builddir;;
9865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9867 esac;;
9868 esac
9869 case $ac_abs_builddir in
9870 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9872 case $ac_top_srcdir in
9873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9876 esac;;
9877 esac
9880 case $INSTALL in
9881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9882 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9883 esac
9885 if test x"$ac_file" != x-; then
9886 { echo "$as_me:$LINENO: creating $ac_file" >&5
9887 echo "$as_me: creating $ac_file" >&6;}
9888 rm -f "$ac_file"
9890 # Let's still pretend it is `configure' which instantiates (i.e., don't
9891 # use $as_me), people would be surprised to read:
9892 # /* config.h. Generated by config.status. */
9893 if test x"$ac_file" = x-; then
9894 configure_input=
9895 else
9896 configure_input="$ac_file. "
9898 configure_input=$configure_input"Generated from `echo $ac_file_in |
9899 sed 's,.*/,,'` by configure."
9901 # First look for the input files in the build tree, otherwise in the
9902 # src tree.
9903 ac_file_inputs=`IFS=:
9904 for f in $ac_file_in; do
9905 case $f in
9906 -) echo $tmp/stdin ;;
9907 [\\/$]*)
9908 # Absolute (can't be DOS-style, as IFS=:)
9909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9910 echo "$as_me: error: cannot find input file: $f" >&2;}
9911 { (exit 1); exit 1; }; }
9912 echo "$f";;
9913 *) # Relative
9914 if test -f "$f"; then
9915 # Build tree
9916 echo "$f"
9917 elif test -f "$srcdir/$f"; then
9918 # Source tree
9919 echo "$srcdir/$f"
9920 else
9921 # /dev/null tree
9922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9923 echo "$as_me: error: cannot find input file: $f" >&2;}
9924 { (exit 1); exit 1; }; }
9925 fi;;
9926 esac
9927 done` || { (exit 1); exit 1; }
9928 _ACEOF
9929 cat >>$CONFIG_STATUS <<_ACEOF
9930 sed "$ac_vpsub
9931 $extrasub
9932 _ACEOF
9933 cat >>$CONFIG_STATUS <<\_ACEOF
9935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9936 s,@configure_input@,$configure_input,;t t
9937 s,@srcdir@,$ac_srcdir,;t t
9938 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9939 s,@top_srcdir@,$ac_top_srcdir,;t t
9940 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9941 s,@builddir@,$ac_builddir,;t t
9942 s,@abs_builddir@,$ac_abs_builddir,;t t
9943 s,@top_builddir@,$ac_top_builddir,;t t
9944 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9945 s,@INSTALL@,$ac_INSTALL,;t t
9946 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9947 rm -f $tmp/stdin
9948 if test x"$ac_file" != x-; then
9949 mv $tmp/out $ac_file
9950 else
9951 cat $tmp/out
9952 rm -f $tmp/out
9955 done
9956 _ACEOF
9957 cat >>$CONFIG_STATUS <<\_ACEOF
9960 # CONFIG_HEADER section.
9963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9966 # ac_d sets the value in "#define NAME VALUE" lines.
9967 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9968 ac_dB='[ ].*$,\1#\2'
9969 ac_dC=' '
9970 ac_dD=',;t'
9971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9972 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9973 ac_uB='$,\1#\2define\3'
9974 ac_uC=' '
9975 ac_uD=',;t'
9977 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9979 case $ac_file in
9980 - | *:- | *:-:* ) # input from stdin
9981 cat >$tmp/stdin
9982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9986 * ) ac_file_in=$ac_file.in ;;
9987 esac
9989 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9990 echo "$as_me: creating $ac_file" >&6;}
9992 # First look for the input files in the build tree, otherwise in the
9993 # src tree.
9994 ac_file_inputs=`IFS=:
9995 for f in $ac_file_in; do
9996 case $f in
9997 -) echo $tmp/stdin ;;
9998 [\\/$]*)
9999 # Absolute (can't be DOS-style, as IFS=:)
10000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10001 echo "$as_me: error: cannot find input file: $f" >&2;}
10002 { (exit 1); exit 1; }; }
10003 # Do quote $f, to prevent DOS paths from being IFS'd.
10004 echo "$f";;
10005 *) # Relative
10006 if test -f "$f"; then
10007 # Build tree
10008 echo "$f"
10009 elif test -f "$srcdir/$f"; then
10010 # Source tree
10011 echo "$srcdir/$f"
10012 else
10013 # /dev/null tree
10014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10015 echo "$as_me: error: cannot find input file: $f" >&2;}
10016 { (exit 1); exit 1; }; }
10017 fi;;
10018 esac
10019 done` || { (exit 1); exit 1; }
10020 # Remove the trailing spaces.
10021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10023 _ACEOF
10025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10026 # `conftest.undefs', that substitutes the proper values into
10027 # config.h.in to produce config.h. The first handles `#define'
10028 # templates, and the second `#undef' templates.
10029 # And first: Protect against being on the right side of a sed subst in
10030 # config.status. Protect against being in an unquoted here document
10031 # in config.status.
10032 rm -f conftest.defines conftest.undefs
10033 # Using a here document instead of a string reduces the quoting nightmare.
10034 # Putting comments in sed scripts is not portable.
10036 # `end' is used to avoid that the second main sed command (meant for
10037 # 0-ary CPP macros) applies to n-ary macro definitions.
10038 # See the Autoconf documentation for `clear'.
10039 cat >confdef2sed.sed <<\_ACEOF
10040 s/[\\&,]/\\&/g
10041 s,[\\$`],\\&,g
10042 t clear
10043 : clear
10044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10045 t end
10046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10047 : end
10048 _ACEOF
10049 # If some macros were called several times there might be several times
10050 # the same #defines, which is useless. Nevertheless, we may not want to
10051 # sort them, since we want the *last* AC-DEFINE to be honored.
10052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10054 rm -f confdef2sed.sed
10056 # This sed command replaces #undef with comments. This is necessary, for
10057 # example, in the case of _POSIX_SOURCE, which is predefined and required
10058 # on some systems where configure will not decide to define it.
10059 cat >>conftest.undefs <<\_ACEOF
10060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10061 _ACEOF
10063 # Break up conftest.defines because some shells have a limit on the size
10064 # of here documents, and old seds have small limits too (100 cmds).
10065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10068 echo ' :' >>$CONFIG_STATUS
10069 rm -f conftest.tail
10070 while grep . conftest.defines >/dev/null
10072 # Write a limited-size here document to $tmp/defines.sed.
10073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10074 # Speed up: don't consider the non `#define' lines.
10075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10076 # Work around the forget-to-reset-the-flag bug.
10077 echo 't clr' >>$CONFIG_STATUS
10078 echo ': clr' >>$CONFIG_STATUS
10079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10080 echo 'CEOF
10081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10082 rm -f $tmp/in
10083 mv $tmp/out $tmp/in
10084 ' >>$CONFIG_STATUS
10085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10086 rm -f conftest.defines
10087 mv conftest.tail conftest.defines
10088 done
10089 rm -f conftest.defines
10090 echo ' fi # grep' >>$CONFIG_STATUS
10091 echo >>$CONFIG_STATUS
10093 # Break up conftest.undefs because some shells have a limit on the size
10094 # of here documents, and old seds have small limits too (100 cmds).
10095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10096 rm -f conftest.tail
10097 while grep . conftest.undefs >/dev/null
10099 # Write a limited-size here document to $tmp/undefs.sed.
10100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10101 # Speed up: don't consider the non `#undef'
10102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10103 # Work around the forget-to-reset-the-flag bug.
10104 echo 't clr' >>$CONFIG_STATUS
10105 echo ': clr' >>$CONFIG_STATUS
10106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10107 echo 'CEOF
10108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10109 rm -f $tmp/in
10110 mv $tmp/out $tmp/in
10111 ' >>$CONFIG_STATUS
10112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10113 rm -f conftest.undefs
10114 mv conftest.tail conftest.undefs
10115 done
10116 rm -f conftest.undefs
10118 cat >>$CONFIG_STATUS <<\_ACEOF
10119 # Let's still pretend it is `configure' which instantiates (i.e., don't
10120 # use $as_me), people would be surprised to read:
10121 # /* config.h. Generated by config.status. */
10122 if test x"$ac_file" = x-; then
10123 echo "/* Generated by configure. */" >$tmp/config.h
10124 else
10125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10127 cat $tmp/in >>$tmp/config.h
10128 rm -f $tmp/in
10129 if test x"$ac_file" != x-; then
10130 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10132 echo "$as_me: $ac_file is unchanged" >&6;}
10133 else
10134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10136 X"$ac_file" : 'X\(//\)[^/]' \| \
10137 X"$ac_file" : 'X\(//\)$' \| \
10138 X"$ac_file" : 'X\(/\)' \| \
10139 . : '\(.\)' 2>/dev/null ||
10140 echo X"$ac_file" |
10141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10143 /^X\(\/\/\)$/{ s//\1/; q; }
10144 /^X\(\/\).*/{ s//\1/; q; }
10145 s/.*/./; q'`
10146 { if $as_mkdir_p; then
10147 mkdir -p "$ac_dir"
10148 else
10149 as_dir="$ac_dir"
10150 as_dirs=
10151 while test ! -d "$as_dir"; do
10152 as_dirs="$as_dir $as_dirs"
10153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$as_dir" : 'X\(//\)[^/]' \| \
10156 X"$as_dir" : 'X\(//\)$' \| \
10157 X"$as_dir" : 'X\(/\)' \| \
10158 . : '\(.\)' 2>/dev/null ||
10159 echo X"$as_dir" |
10160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162 /^X\(\/\/\)$/{ s//\1/; q; }
10163 /^X\(\/\).*/{ s//\1/; q; }
10164 s/.*/./; q'`
10165 done
10166 test ! -n "$as_dirs" || mkdir $as_dirs
10167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10169 { (exit 1); exit 1; }; }; }
10171 rm -f $ac_file
10172 mv $tmp/config.h $ac_file
10174 else
10175 cat $tmp/config.h
10176 rm -f $tmp/config.h
10178 done
10179 _ACEOF
10180 cat >>$CONFIG_STATUS <<\_ACEOF
10183 # CONFIG_COMMANDS section.
10185 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10190 X"$ac_dest" : 'X\(//\)[^/]' \| \
10191 X"$ac_dest" : 'X\(//\)$' \| \
10192 X"$ac_dest" : 'X\(/\)' \| \
10193 . : '\(.\)' 2>/dev/null ||
10194 echo X"$ac_dest" |
10195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10197 /^X\(\/\/\)$/{ s//\1/; q; }
10198 /^X\(\/\).*/{ s//\1/; q; }
10199 s/.*/./; q'`
10200 { if $as_mkdir_p; then
10201 mkdir -p "$ac_dir"
10202 else
10203 as_dir="$ac_dir"
10204 as_dirs=
10205 while test ! -d "$as_dir"; do
10206 as_dirs="$as_dir $as_dirs"
10207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10209 X"$as_dir" : 'X\(//\)[^/]' \| \
10210 X"$as_dir" : 'X\(//\)$' \| \
10211 X"$as_dir" : 'X\(/\)' \| \
10212 . : '\(.\)' 2>/dev/null ||
10213 echo X"$as_dir" |
10214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10216 /^X\(\/\/\)$/{ s//\1/; q; }
10217 /^X\(\/\).*/{ s//\1/; q; }
10218 s/.*/./; q'`
10219 done
10220 test ! -n "$as_dirs" || mkdir $as_dirs
10221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10223 { (exit 1); exit 1; }; }; }
10225 ac_builddir=.
10227 if test "$ac_dir" != .; then
10228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10229 # A "../" for each directory in $ac_dir_suffix.
10230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10231 else
10232 ac_dir_suffix= ac_top_builddir=
10235 case $srcdir in
10236 .) # No --srcdir option. We are building in place.
10237 ac_srcdir=.
10238 if test -z "$ac_top_builddir"; then
10239 ac_top_srcdir=.
10240 else
10241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10242 fi ;;
10243 [\\/]* | ?:[\\/]* ) # Absolute path.
10244 ac_srcdir=$srcdir$ac_dir_suffix;
10245 ac_top_srcdir=$srcdir ;;
10246 *) # Relative path.
10247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10249 esac
10251 # Do not use `cd foo && pwd` to compute absolute paths, because
10252 # the directories may not exist.
10253 case `pwd` in
10254 .) ac_abs_builddir="$ac_dir";;
10256 case "$ac_dir" in
10257 .) ac_abs_builddir=`pwd`;;
10258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10260 esac;;
10261 esac
10262 case $ac_abs_builddir in
10263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10265 case ${ac_top_builddir}. in
10266 .) ac_abs_top_builddir=$ac_abs_builddir;;
10267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10269 esac;;
10270 esac
10271 case $ac_abs_builddir in
10272 .) ac_abs_srcdir=$ac_srcdir;;
10274 case $ac_srcdir in
10275 .) ac_abs_srcdir=$ac_abs_builddir;;
10276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10278 esac;;
10279 esac
10280 case $ac_abs_builddir in
10281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10283 case $ac_top_srcdir in
10284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10287 esac;;
10288 esac
10291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10292 echo "$as_me: executing $ac_dest commands" >&6;}
10293 case $ac_dest in
10294 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10295 if test -n "$CONFIG_FILES"; then
10296 if test -n "${with_target_subdir}"; then
10297 # FIXME: We shouldn't need to set ac_file
10298 ac_file=Makefile
10299 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
10300 . ${libiberty_topdir}/config-ml.in
10302 fi ;;
10303 esac
10304 done
10305 _ACEOF
10307 cat >>$CONFIG_STATUS <<\_ACEOF
10309 { (exit 0); exit 0; }
10310 _ACEOF
10311 chmod +x $CONFIG_STATUS
10312 ac_clean_files=$ac_clean_files_save
10315 # configure is writing to config.log, and then calls config.status.
10316 # config.status does its own redirection, appending to config.log.
10317 # Unfortunately, on DOS this fails, as config.log is still kept open
10318 # by configure, so config.status won't be able to write to it; its
10319 # output is simply discarded. So we exec the FD to /dev/null,
10320 # effectively closing config.log, so it can be properly (re)opened and
10321 # appended to by config.status. When coming back to configure, we
10322 # need to make the FD available again.
10323 if test "$no_create" != yes; then
10324 ac_cs_success=:
10325 ac_config_status_args=
10326 test "$silent" = yes &&
10327 ac_config_status_args="$ac_config_status_args --quiet"
10328 exec 5>/dev/null
10329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10330 exec 5>>config.log
10331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10332 # would make configure fail if this is the last instruction.
10333 $ac_cs_success || { (exit 1); exit 1; }