2004-04-22 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / libiberty / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
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"
311
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 EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-install-libiberty Install headers for end users
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
856 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd $ac_popdir
961 done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
971 _ACEOF
972 exit 0
973 fi
974 exec 5>config.log
975 cat >&5 <<_ACEOF
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
978
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
981
982 $ $0 $@
983
984 _ACEOF
985 {
986 cat <<_ASUNAME
987 ## --------- ##
988 ## Platform. ##
989 ## --------- ##
990
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
996
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
999
1000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1007
1008 _ASUNAME
1009
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 for as_dir in $PATH
1012 do
1013 IFS=$as_save_IFS
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1016 done
1017
1018 } >&5
1019
1020 cat >&5 <<_ACEOF
1021
1022
1023 ## ----------- ##
1024 ## Core tests. ##
1025 ## ----------- ##
1026
1027 _ACEOF
1028
1029
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_configure_args=
1036 ac_configure_args0=
1037 ac_configure_args1=
1038 ac_sep=
1039 ac_must_keep_next=false
1040 for ac_pass in 1 2
1041 do
1042 for ac_arg
1043 do
1044 case $ac_arg in
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 continue ;;
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 esac
1052 case $ac_pass in
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054 2)
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1058 else
1059 case $ac_arg in
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 esac
1067 ;;
1068 -* ) ac_must_keep_next=true ;;
1069 esac
1070 fi
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1073 ac_sep=" "
1074 ;;
1075 esac
1076 done
1077 done
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1088 {
1089 echo
1090
1091 cat <<\_ASBOX
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1095 _ASBOX
1096 echo
1097 # The following way of writing the cache mishandles newlines in values,
1098 {
1099 (set) 2>&1 |
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 *ac_space=\ *)
1102 sed -n \
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 ;;
1106 *)
1107 sed -n \
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ;;
1110 esac;
1111 }
1112 echo
1113
1114 cat <<\_ASBOX
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_vars
1121 do
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1126
1127 if test -n "$ac_subst_files"; then
1128 cat <<\_ASBOX
1129 ## ------------- ##
1130 ## Output files. ##
1131 ## ------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_files
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140 fi
1141
1142 if test -s confdefs.h; then
1143 cat <<\_ASBOX
1144 ## ----------- ##
1145 ## confdefs.h. ##
1146 ## ----------- ##
1147 _ASBOX
1148 echo
1149 sed "/^$/d" confdefs.h | sort
1150 echo
1151 fi
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1155 } >&5
1156 rm -f core *.core &&
1157 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158 exit $exit_status
1159 ' 0
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 done
1163 ac_signal=0
1164
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 echo >confdefs.h
1169
1170 # Predefined preprocessor variables.
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 _ACEOF
1195
1196
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202 else
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 fi
1205 fi
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's/^/| /' "$ac_site_file" >&5
1211 . "$ac_site_file"
1212 fi
1213 done
1214
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1221 case $cache_file in
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1224 esac
1225 fi
1226 else
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1229 >$cache_file
1230 fi
1231
1232 # Check that the precious variables saved in the cache have kept the same
1233 # value.
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1242 set,)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,set)
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1250 ,);;
1251 *)
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1260 fi;;
1261 esac
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1264 case $ac_new_val in
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1268 esac
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272 esac
1273 fi
1274 done
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1281 fi
1282
1283 ac_ext=c
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308 # This works around the fact that libtool configuration may change LD
1309 # for this particular configuration, but some shells, instead of
1310 # keeping the changes in LD private, export them just because LD is
1311 # exported. We don't use libtool yet, but some day we might, so...
1312 ORIGINAL_LD_FOR_MULTILIBS=$LD
1313
1314
1315 # Check whether --with-target-subdir or --without-target-subdir was given.
1316 if test "${with_target_subdir+set}" = set; then
1317 withval="$with_target_subdir"
1318
1319 fi;
1320
1321 # Check whether --with-build-subdir or --without-build-subdir was given.
1322 if test "${with_build_subdir+set}" = set; then
1323 withval="$with_build_subdir"
1324
1325 fi;
1326
1327 # Check whether --with-cross-host or --without-cross-host was given.
1328 if test "${with_cross_host+set}" = set; then
1329 withval="$with_cross_host"
1330
1331 fi;
1332
1333 # Check whether --with-newlib or --without-newlib was given.
1334 if test "${with_newlib+set}" = set; then
1335 withval="$with_newlib"
1336
1337 fi;
1338
1339 if test "${srcdir}" = "."; then
1340 if test -n "${with_build_subdir}"; then
1341 libiberty_topdir="${srcdir}/../.."
1342 with_target_subdir=
1343 elif test -z "${with_target_subdir}"; then
1344 libiberty_topdir="${srcdir}/.."
1345 else
1346 if test "${with_target_subdir}" != "."; then
1347 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1348 else
1349 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1350 fi
1351 fi
1352 else
1353 libiberty_topdir="${srcdir}/.."
1354 fi
1355
1356 ac_aux_dir=
1357 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1358 if test -f $ac_dir/install-sh; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/install-sh -c"
1361 break
1362 elif test -f $ac_dir/install.sh; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/install.sh -c"
1365 break
1366 elif test -f $ac_dir/shtool; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/shtool install -c"
1369 break
1370 fi
1371 done
1372 if test -z "$ac_aux_dir"; then
1373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1374 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1378 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1379 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1380
1381
1382
1383 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1384 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1385 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1386 if test "${enable_maintainer_mode+set}" = set; then
1387 enableval="$enable_maintainer_mode"
1388 maintainer_mode=$enableval
1389 else
1390 maintainer_mode=no
1391 fi;
1392
1393 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1394 echo "${ECHO_T}$maintainer_mode" >&6
1395
1396 if test "$maintainer_mode" = "yes"; then
1397 MAINT=''
1398 NOTMAINT='#'
1399 else
1400 MAINT='#'
1401 NOTMAINT=''
1402 fi
1403
1404 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1405 # rely on it - libiberty is built before texinfo.
1406 # Extract the first word of "makeinfo", so it can be a program name with args.
1407 set dummy makeinfo; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 if test -n "$MAKEINFO"; then
1414 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1415 else
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 for as_dir in $PATH
1418 do
1419 IFS=$as_save_IFS
1420 test -z "$as_dir" && as_dir=.
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1423 ac_cv_prog_MAKEINFO="makeinfo"
1424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 break 2
1426 fi
1427 done
1428 done
1429
1430 fi
1431 fi
1432 MAKEINFO=$ac_cv_prog_MAKEINFO
1433 if test -n "$MAKEINFO"; then
1434 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1435 echo "${ECHO_T}$MAKEINFO" >&6
1436 else
1437 echo "$as_me:$LINENO: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1439 fi
1440
1441 if test "x$MAKEINFO" = "x"; then
1442 MAKEINFO="@echo makeinfo missing; true"
1443 BUILD_INFO=
1444 else
1445 BUILD_INFO=info
1446 case "$MAKEINFO" in
1447 */missing\ makeinfo*)
1448 BUILD_INFO=
1449 { echo "$as_me:$LINENO: WARNING:
1450 *** Makeinfo is missing. Info documentation will not be built." >&5
1451 echo "$as_me: WARNING:
1452 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1453 ;;
1454 *)
1455 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1456 x*\ [1-3].* )
1457 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1458 BUILD_INFO=
1459 { echo "$as_me:$LINENO: WARNING:
1460 *** Makeinfo is too old. Info documentation will not be built." >&5
1461 echo "$as_me: WARNING:
1462 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1463 ;;
1464 esac
1465 ;;
1466 esac
1467 fi
1468
1469
1470
1471 # Extract the first word of "perl", so it can be a program name with args.
1472 set dummy perl; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_PERL+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 if test -n "$PERL"; then
1479 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_PERL="perl"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1491 fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 PERL=$ac_cv_prog_PERL
1498 if test -n "$PERL"; then
1499 echo "$as_me:$LINENO: result: $PERL" >&5
1500 echo "${ECHO_T}$PERL" >&6
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 if test x"$PERL" = x""; then
1507 HAVE_PERL='#'
1508 else
1509 HAVE_PERL=''
1510 fi
1511
1512
1513 # Make sure we can run config.sub.
1514 $ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519 echo "$as_me:$LINENO: checking build system type" >&5
1520 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521 if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 ac_cv_build_alias=$build_alias
1525 test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527 test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1535
1536 fi
1537 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538 echo "${ECHO_T}$ac_cv_build" >&6
1539 build=$ac_cv_build
1540 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545 echo "$as_me:$LINENO: checking host system type" >&5
1546 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547 if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 ac_cv_host_alias=$host_alias
1551 test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558 fi
1559 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560 echo "${ECHO_T}$ac_cv_host" >&6
1561 host=$ac_cv_host
1562 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567
1568
1569 if test -n "$ac_tool_prefix"; then
1570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1571 set dummy ${ac_tool_prefix}ar; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_AR+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 if test -n "$AR"; then
1578 ac_cv_prog_AR="$AR" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_AR="${ac_tool_prefix}ar"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1590 fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 AR=$ac_cv_prog_AR
1597 if test -n "$AR"; then
1598 echo "$as_me:$LINENO: result: $AR" >&5
1599 echo "${ECHO_T}$AR" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605 fi
1606 if test -z "$ac_cv_prog_AR"; then
1607 ac_ct_AR=$AR
1608 # Extract the first word of "ar", so it can be a program name with args.
1609 set dummy ar; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 if test -n "$ac_ct_AR"; then
1616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_ac_ct_AR="ar"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1635 if test -n "$ac_ct_AR"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1637 echo "${ECHO_T}$ac_ct_AR" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 AR=$ac_ct_AR
1644 else
1645 AR="$ac_cv_prog_AR"
1646 fi
1647
1648 if test -n "$ac_tool_prefix"; then
1649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_RANLIB+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 if test -n "$RANLIB"; then
1657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 break 2
1669 fi
1670 done
1671 done
1672
1673 fi
1674 fi
1675 RANLIB=$ac_cv_prog_RANLIB
1676 if test -n "$RANLIB"; then
1677 echo "$as_me:$LINENO: result: $RANLIB" >&5
1678 echo "${ECHO_T}$RANLIB" >&6
1679 else
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 fi
1683
1684 fi
1685 if test -z "$ac_cv_prog_RANLIB"; then
1686 ac_ct_RANLIB=$RANLIB
1687 # Extract the first word of "ranlib", so it can be a program name with args.
1688 set dummy ranlib; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$ac_ct_RANLIB"; then
1695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_ac_ct_RANLIB="ranlib"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708 done
1709 done
1710
1711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1712 fi
1713 fi
1714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1715 if test -n "$ac_ct_RANLIB"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 RANLIB=$ac_ct_RANLIB
1724 else
1725 RANLIB="$ac_cv_prog_RANLIB"
1726 fi
1727
1728
1729
1730 ac_ext=c
1731 ac_cpp='$CPP $CPPFLAGS'
1732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735 if test -n "$ac_tool_prefix"; then
1736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1756 fi
1757 done
1758 done
1759
1760 fi
1761 fi
1762 CC=$ac_cv_prog_CC
1763 if test -n "$CC"; then
1764 echo "$as_me:$LINENO: result: $CC" >&5
1765 echo "${ECHO_T}$CC" >&6
1766 else
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 fi
1770
1771 fi
1772 if test -z "$ac_cv_prog_CC"; then
1773 ac_ct_CC=$CC
1774 # Extract the first word of "gcc", so it can be a program name with args.
1775 set dummy gcc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$ac_ct_CC"; then
1782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_ac_ct_CC="gcc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1794 fi
1795 done
1796 done
1797
1798 fi
1799 fi
1800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1801 if test -n "$ac_ct_CC"; then
1802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1803 echo "${ECHO_T}$ac_ct_CC" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1807 fi
1808
1809 CC=$ac_ct_CC
1810 else
1811 CC="$ac_cv_prog_CC"
1812 fi
1813
1814 if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}cc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}cc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853 ac_ct_CC=$CC
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="cc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889 CC=$ac_ct_CC
1890 else
1891 CC="$ac_cv_prog_CC"
1892 fi
1893
1894 fi
1895 if test -z "$CC"; then
1896 # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 ac_prog_rejected=no
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915 ac_prog_rejected=yes
1916 continue
1917 fi
1918 ac_cv_prog_CC="cc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 if test $ac_prog_rejected = yes; then
1926 # We found a bogon in the path, so make sure we never use it.
1927 set dummy $ac_cv_prog_CC
1928 shift
1929 if test $# != 0; then
1930 # We chose a different compiler from the bogus one.
1931 # However, it has the same basename, so the bogon will be chosen
1932 # first if we set CC to just the basename; use the full file name.
1933 shift
1934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1935 fi
1936 fi
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$CC"; then
1950 if test -n "$ac_tool_prefix"; then
1951 for ac_prog in cl
1952 do
1953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976
1977 fi
1978 fi
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
1986 fi
1987
1988 test -n "$CC" && break
1989 done
1990 fi
1991 if test -z "$CC"; then
1992 ac_ct_CC=$CC
1993 for ac_prog in cl
1994 do
1995 # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_CC="$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2015 fi
2016 done
2017 done
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 test -n "$ac_ct_CC" && break
2031 done
2032
2033 CC=$ac_ct_CC
2034 fi
2035
2036 fi
2037
2038
2039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: no acceptable C compiler found in \$PATH
2042 See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2044
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047 "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050 (eval $ac_compiler --version </dev/null >&5) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055 (eval $ac_compiler -v </dev/null >&5) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060 (eval $ac_compiler -V </dev/null >&5) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2064
2065 cat >conftest.$ac_ext <<_ACEOF
2066 /* confdefs.h. */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2071
2072 int
2073 main ()
2074 {
2075
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 # FIXME: Cleanup?
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082 (eval $ac_link) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 gcc_no_link=no
2087 else
2088 gcc_no_link=yes
2089 fi
2090
2091 if test x$gcc_no_link = xyes; then
2092 # Setting cross_compile will disable run tests; it will
2093 # also disable AC_CHECK_FILE but that's generally
2094 # correct if we can't link.
2095 cross_compiling=yes
2096 EXEEXT=
2097 else
2098 cat >conftest.$ac_ext <<_ACEOF
2099 /* confdefs.h. */
2100 _ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2104
2105 int
2106 main ()
2107 {
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2117 # of exeext.
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128 # resort.
2129
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 ac_cv_exeext=
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 do
2136 test -f "$ac_file" || continue
2137 case $ac_file in
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139 ;;
2140 conftest.$ac_ext )
2141 # This is the source file.
2142 ;;
2143 [ab].out )
2144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
2147 *.* )
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
2154 * )
2155 break;;
2156 esac
2157 done
2158 else
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2167 fi
2168
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2172
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200 fi
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2203
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2212
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 # `rm'.
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2226 case $ac_file in
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229 export ac_cv_exeext
2230 break;;
2231 * ) break;;
2232 esac
2233 done
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2240 fi
2241
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2248 ac_exeext=$EXEEXT
2249 fi
2250 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2251 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2252 if test "${ac_cv_objext+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261
2262 int
2263 main ()
2264 {
2265
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 rm -f conftest.o conftest.obj
2271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2280 break;;
2281 esac
2282 done
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293
2294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 fi
2296 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2297 echo "${ECHO_T}$ac_cv_objext" >&6
2298 OBJEXT=$ac_cv_objext
2299 ac_objext=$OBJEXT
2300 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2301 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2302 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h. */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2311
2312 int
2313 main ()
2314 {
2315 #ifndef __GNUC__
2316 choke me
2317 #endif
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2326 ac_status=$?
2327 grep -v '^ *+' conftest.er1 >conftest.err
2328 rm -f conftest.er1
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_compiler_gnu=yes
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_compiler_gnu=no
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2354
2355 fi
2356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2361 CFLAGS="-g"
2362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2373
2374 int
2375 main ()
2376 {
2377
2378 ;
2379 return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_cv_prog_cc_g=yes
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_cv_prog_cc_g=no
2410 fi
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 fi
2413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2415 if test "$ac_test_CFLAGS" = set; then
2416 CFLAGS=$ac_save_CFLAGS
2417 elif test $ac_cv_prog_cc_g = yes; then
2418 if test "$GCC" = yes; then
2419 CFLAGS="-g -O2"
2420 else
2421 CFLAGS="-g"
2422 fi
2423 else
2424 if test "$GCC" = yes; then
2425 CFLAGS="-O2"
2426 else
2427 CFLAGS=
2428 fi
2429 fi
2430 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2431 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2432 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435 ac_cv_prog_cc_stdc=no
2436 ac_save_CC=$CC
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443 #include <stdarg.h>
2444 #include <stdio.h>
2445 #include <sys/types.h>
2446 #include <sys/stat.h>
2447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2448 struct buf { int x; };
2449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450 static char *e (p, i)
2451 char **p;
2452 int i;
2453 {
2454 return p[i];
2455 }
2456 static char *f (char * (*g) (char **, int), char **p, ...)
2457 {
2458 char *s;
2459 va_list v;
2460 va_start (v,p);
2461 s = g (p, va_arg (v,int));
2462 va_end (v);
2463 return s;
2464 }
2465
2466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2467 function prototypes and stuff, but not '\xHH' hex character constants.
2468 These don't provoke an error unfortunately, instead are silently treated
2469 as 'x'. The following induces an error, until -std1 is added to get
2470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2471 array size at least. It's necessary to write '\x00'==0 to get something
2472 that's true only with -std1. */
2473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 int argc;
2480 char **argv;
2481 int
2482 main ()
2483 {
2484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX -qlanglvl=ansi
2492 # Ultrix and OSF/1 -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions -Aa -D_HPUX_SOURCE
2495 # SVR4 -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 do
2498 CC="$ac_save_CC $ac_arg"
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_prog_cc_stdc=$ac_arg
2522 break
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext
2529 done
2530 rm -f conftest.$ac_ext conftest.$ac_objext
2531 CC=$ac_save_CC
2532
2533 fi
2534
2535 case "x$ac_cv_prog_cc_stdc" in
2536 x|xno)
2537 echo "$as_me:$LINENO: result: none needed" >&5
2538 echo "${ECHO_T}none needed" >&6 ;;
2539 *)
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2542 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 esac
2544
2545 # Some people use a C++ compiler to compile C. Since we use `exit',
2546 # in C++ we need to declare it. In case someone uses the same compiler
2547 # for both compiling C and C++ we need to have the C++ compiler decide
2548 # the declaration of exit, since it's the most demanding environment.
2549 cat >conftest.$ac_ext <<_ACEOF
2550 #ifndef __cplusplus
2551 choke me
2552 #endif
2553 _ACEOF
2554 rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 for ac_declaration in \
2577 '' \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2582 'void exit (int);'
2583 do
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2590 $ac_declaration
2591 #include <stdlib.h>
2592 int
2593 main ()
2594 {
2595 exit (42);
2596 ;
2597 return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 :
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 continue
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636 $ac_declaration
2637 int
2638 main ()
2639 {
2640 exit (42);
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 break
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 done
2675 rm -f conftest*
2676 if test -n "$ac_declaration"; then
2677 echo '#ifdef __cplusplus' >>confdefs.h
2678 echo $ac_declaration >>confdefs.h
2679 echo '#endif' >>confdefs.h
2680 fi
2681
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 fi
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2701 # On Suns, sometimes $CPP names a directory.
2702 if test -n "$CPP" && test -d "$CPP"; then
2703 CPP=
2704 fi
2705 if test -z "$CPP"; then
2706 if test "${ac_cv_prog_CPP+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 # Double quotes because CPP needs to be expanded
2710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2711 do
2712 ac_preproc_ok=false
2713 for ac_c_preproc_warn_flag in '' yes
2714 do
2715 # Use a header file that comes with gcc, so configuring glibc
2716 # with a fresh cross-compiler works.
2717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2718 # <limits.h> exists even on freestanding compilers.
2719 # On the NeXT, cc -E runs the code through the compiler's parser,
2720 # not just through cpp. "Syntax error" is here to catch this case.
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #ifdef __STDC__
2728 # include <limits.h>
2729 #else
2730 # include <assert.h>
2731 #endif
2732 Syntax error
2733 _ACEOF
2734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2745 else
2746 ac_cpp_err=
2747 fi
2748 else
2749 ac_cpp_err=yes
2750 fi
2751 if test -z "$ac_cpp_err"; then
2752 :
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 # Broken: fails on valid input.
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_ext
2761
2762 # OK, works on sane cases. Now check whether non-existent headers
2763 # can be detected and how.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770 #include <ac_nonexistent.h>
2771 _ACEOF
2772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } >/dev/null; then
2780 if test -s conftest.err; then
2781 ac_cpp_err=$ac_c_preproc_warn_flag
2782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2783 else
2784 ac_cpp_err=
2785 fi
2786 else
2787 ac_cpp_err=yes
2788 fi
2789 if test -z "$ac_cpp_err"; then
2790 # Broken: success on invalid input.
2791 continue
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 # Passes both tests.
2797 ac_preproc_ok=:
2798 break
2799 fi
2800 rm -f conftest.err conftest.$ac_ext
2801
2802 done
2803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2804 rm -f conftest.err conftest.$ac_ext
2805 if $ac_preproc_ok; then
2806 break
2807 fi
2808
2809 done
2810 ac_cv_prog_CPP=$CPP
2811
2812 fi
2813 CPP=$ac_cv_prog_CPP
2814 else
2815 ac_cv_prog_CPP=$CPP
2816 fi
2817 echo "$as_me:$LINENO: result: $CPP" >&5
2818 echo "${ECHO_T}$CPP" >&6
2819 ac_preproc_ok=false
2820 for ac_c_preproc_warn_flag in '' yes
2821 do
2822 # Use a header file that comes with gcc, so configuring glibc
2823 # with a fresh cross-compiler works.
2824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825 # <limits.h> exists even on freestanding compilers.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #ifdef __STDC__
2835 # include <limits.h>
2836 #else
2837 # include <assert.h>
2838 #endif
2839 Syntax error
2840 _ACEOF
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } >/dev/null; then
2849 if test -s conftest.err; then
2850 ac_cpp_err=$ac_c_preproc_warn_flag
2851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2852 else
2853 ac_cpp_err=
2854 fi
2855 else
2856 ac_cpp_err=yes
2857 fi
2858 if test -z "$ac_cpp_err"; then
2859 :
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 # Broken: fails on valid input.
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869 # OK, works on sane cases. Now check whether non-existent headers
2870 # can be detected and how.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #include <ac_nonexistent.h>
2878 _ACEOF
2879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } >/dev/null; then
2887 if test -s conftest.err; then
2888 ac_cpp_err=$ac_c_preproc_warn_flag
2889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890 else
2891 ac_cpp_err=
2892 fi
2893 else
2894 ac_cpp_err=yes
2895 fi
2896 if test -z "$ac_cpp_err"; then
2897 # Broken: success on invalid input.
2898 continue
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 # Passes both tests.
2904 ac_preproc_ok=:
2905 break
2906 fi
2907 rm -f conftest.err conftest.$ac_ext
2908
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2913 :
2914 else
2915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2920 fi
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927
2928
2929 ac_c_preproc_warn_flag=yes
2930
2931 if test x$GCC = xyes; then
2932 ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
2933 fi
2934
2935
2936 if test "x$CC" != xcc; then
2937 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2938 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2939 else
2940 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2941 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2942 fi
2943 set dummy $CC; ac_cc=`echo $2 |
2944 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2945 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954
2955 int
2956 main ()
2957 {
2958
2959 ;
2960 return 0;
2961 }
2962 _ACEOF
2963 # Make sure it works both with $CC and with simple cc.
2964 # We do the test twice because some compilers refuse to overwrite an
2965 # existing .o file with -o, though they will create one.
2966 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2967 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); };
2977 then
2978 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2979 if test "x$CC" != xcc; then
2980 # Test first that cc exists at all.
2981 if { ac_try='cc -c conftest.$ac_ext >&5'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2988 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); };
2998 then
2999 # cc works too.
3000 :
3001 else
3002 # cc exists but doesn't like -o.
3003 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3004 fi
3005 fi
3006 fi
3007 else
3008 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3009 fi
3010 rm -f conftest*
3011
3012 fi
3013 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3014 echo "$as_me:$LINENO: result: yes" >&5
3015 echo "${ECHO_T}yes" >&6
3016 else
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019
3020 cat >>confdefs.h <<\_ACEOF
3021 #define NO_MINUS_C_MINUS_O 1
3022 _ACEOF
3023
3024 fi
3025
3026 # autoconf is lame and doesn't give us any substitution variable for this.
3027 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3028 NO_MINUS_C_MINUS_O=yes
3029 else
3030 OUTPUT_OPTION='-o $@'
3031 fi
3032
3033
3034
3035
3036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3038 if test "${ac_cv_c_const+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047
3048 int
3049 main ()
3050 {
3051 /* FIXME: Include the comments suggested by Paul. */
3052 #ifndef __cplusplus
3053 /* Ultrix mips cc rejects this. */
3054 typedef int charset[2];
3055 const charset x;
3056 /* SunOS 4.1.1 cc rejects this. */
3057 char const *const *ccp;
3058 char **p;
3059 /* NEC SVR4.0.2 mips cc rejects this. */
3060 struct point {int x, y;};
3061 static struct point const zero = {0,0};
3062 /* AIX XL C 1.02.0.0 rejects this.
3063 It does not let you subtract one const X* pointer from another in
3064 an arm of an if-expression whose if-part is not a constant
3065 expression */
3066 const char *g = "string";
3067 ccp = &g + (g ? g-g : 0);
3068 /* HPUX 7.0 cc rejects these. */
3069 ++ccp;
3070 p = (char**) ccp;
3071 ccp = (char const *const *) p;
3072 { /* SCO 3.2v4 cc rejects this. */
3073 char *t;
3074 char const *s = 0 ? (char *) 0 : (char const *) 0;
3075
3076 *t++ = 0;
3077 }
3078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3079 int x[] = {25, 17};
3080 const int *foo = &x[0];
3081 ++foo;
3082 }
3083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3084 typedef const int *iptr;
3085 iptr p = 0;
3086 ++p;
3087 }
3088 { /* AIX XL C 1.02.0.0 rejects this saying
3089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3090 struct s { int j; const int *ap[3]; };
3091 struct s *b; b->j = 5;
3092 }
3093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3094 const int foo = 10;
3095 }
3096 #endif
3097
3098 ;
3099 return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_c_const=yes
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_cv_c_const=no
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 fi
3133 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3134 echo "${ECHO_T}$ac_cv_c_const" >&6
3135 if test $ac_cv_c_const = no; then
3136
3137 cat >>confdefs.h <<\_ACEOF
3138 #define const
3139 _ACEOF
3140
3141 fi
3142
3143 echo "$as_me:$LINENO: checking for inline" >&5
3144 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3145 if test "${ac_cv_c_inline+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 ac_cv_c_inline=no
3149 for ac_kw in inline __inline__ __inline; do
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #ifndef __cplusplus
3157 typedef int foo_t;
3158 static $ac_kw foo_t static_foo () {return 0; }
3159 $ac_kw foo_t foo () {return 0; }
3160 #endif
3161
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag"
3173 || test ! -s conftest.err'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_c_inline=$ac_kw; break
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 done
3193
3194 fi
3195 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3196 echo "${ECHO_T}$ac_cv_c_inline" >&6
3197
3198
3199 case $ac_cv_c_inline in
3200 inline | yes) ;;
3201 *)
3202 case $ac_cv_c_inline in
3203 no) ac_val=;;
3204 *) ac_val=$ac_cv_c_inline;;
3205 esac
3206 cat >>confdefs.h <<_ACEOF
3207 #ifndef __cplusplus
3208 #define inline $ac_val
3209 #endif
3210 _ACEOF
3211 ;;
3212 esac
3213
3214 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3215 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3216 if test "${ac_cv_c_bigendian+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 ac_cv_c_bigendian=unknown
3220 # See if sys/param.h defines the BYTE_ORDER macro.
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 #include <sys/param.h>
3229 int
3230 main ()
3231 {
3232
3233 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3234 bogus endian macros
3235 #endif
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag"
3250 || test ! -s conftest.err'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 # It does; now see whether it defined to BIG_ENDIAN or not.
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <sys/types.h>
3270 #include <sys/param.h>
3271 int
3272 main ()
3273 {
3274
3275 #if BYTE_ORDER != BIG_ENDIAN
3276 not big endian
3277 #endif
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_c_bigendian=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 ac_cv_c_bigendian=no
3310 fi
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 fi
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test $ac_cv_c_bigendian = unknown; then
3319 if test "$cross_compiling" = yes; then
3320 echo $ac_n "cross-compiling... " 2>&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 main () {
3329 /* Are we little or big endian? From Harbison&Steele. */
3330 union
3331 {
3332 long l;
3333 char c[sizeof (long)];
3334 } u;
3335 u.l = 1;
3336 exit (u.c[sizeof (long) - 1] == 1);
3337 }
3338 _ACEOF
3339 rm -f conftest$ac_exeext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_c_bigendian=no
3351 else
3352 echo "$as_me: program exited with status $ac_status" >&5
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ( exit $ac_status )
3357 ac_cv_c_bigendian=yes
3358 fi
3359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 fi
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3365 if test $ac_cv_c_bigendian = unknown; then
3366 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
3367 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
3368
3369 cat >conftest.c <<EOF
3370 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3371 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3372 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3373 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3374 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3375 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3376 int main() { _ascii (); _ebcdic (); return 0; }
3377 EOF
3378 if test -f conftest.c ; then
3379 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
3380 if test `grep -l BIGenDianSyS conftest.o` ; then
3381 echo $ac_n ' big endian probe OK, ' 1>&6
3382 ac_cv_c_bigendian=yes
3383 fi
3384 if test `grep -l LiTTleEnDian conftest.o` ; then
3385 echo $ac_n ' little endian probe OK, ' 1>&6
3386 if test $ac_cv_c_bigendian = yes ; then
3387 ac_cv_c_bigendian=unknown;
3388 else
3389 ac_cv_c_bigendian=no
3390 fi
3391 fi
3392 echo $ac_n 'guessing bigendian ... ' >&6
3393 fi
3394 fi
3395 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3397 fi
3398 if test $ac_cv_c_bigendian = yes; then
3399
3400 cat >>confdefs.h <<\_ACEOF
3401 #define WORDS_BIGENDIAN 1
3402 _ACEOF
3403
3404
3405 cat >>confdefs.h <<\_ACEOF
3406 #define HOST_WORDS_BIG_ENDIAN 1
3407 _ACEOF
3408
3409 BYTEORDER=4321
3410 else
3411 BYTEORDER=1234
3412 fi
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define BYTEORDER $BYTEORDER
3416 _ACEOF
3417
3418 if test $ac_cv_c_bigendian = unknown; then
3419 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
3420 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
3421 { (exit 1); exit 1; }; }
3422 fi
3423
3424
3425
3426
3427 ac_config_headers="$ac_config_headers config.h:config.in"
3428
3429
3430
3431 # Find a good install program. We prefer a C program (faster),
3432 # so one script is as good as another. But avoid the broken or
3433 # incompatible versions:
3434 # SysV /etc/install, /usr/sbin/install
3435 # SunOS /usr/etc/install
3436 # IRIX /sbin/install
3437 # AIX /bin/install
3438 # AmigaOS /C/install, which installs bootblocks on floppy discs
3439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3442 # OS/2's system install, which has a completely different semantic
3443 # ./install, which can be erroneously created by make from ./install.sh.
3444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3446 if test -z "$INSTALL"; then
3447 if test "${ac_cv_path_install+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 # Account for people who put trailing slashes in PATH elements.
3456 case $as_dir/ in
3457 ./ | .// | /cC/* | \
3458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3460 /usr/ucb/* ) ;;
3461 *)
3462 # OSF1 and SCO ODT 3.0 have their own names for install.
3463 # Don't use installbsd from OSF since it installs stuff as root
3464 # by default.
3465 for ac_prog in ginstall scoinst install; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3468 if test $ac_prog = install &&
3469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3470 # AIX install. It has an incompatible calling convention.
3471 :
3472 elif test $ac_prog = install &&
3473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3474 # program-specific install script used by HP pwplus--don't use.
3475 :
3476 else
3477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3478 break 3
3479 fi
3480 fi
3481 done
3482 done
3483 ;;
3484 esac
3485 done
3486
3487
3488 fi
3489 if test "${ac_cv_path_install+set}" = set; then
3490 INSTALL=$ac_cv_path_install
3491 else
3492 # As a last resort, use the slow shell script. We don't cache a
3493 # path for INSTALL within a source directory, because that will
3494 # break other packages using the cache if that directory is
3495 # removed, or if the path is relative.
3496 INSTALL=$ac_install_sh
3497 fi
3498 fi
3499 echo "$as_me:$LINENO: result: $INSTALL" >&5
3500 echo "${ECHO_T}$INSTALL" >&6
3501
3502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3503 # It thinks the first close brace ends the variable substitution.
3504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3505
3506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3507
3508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3509
3510
3511 . ${srcdir}/config.table
3512 host_makefile_frag=${frag}
3513
3514
3515 # It's OK to check for header files. Although the compiler may not be
3516 # able to link anything, it had better be able to at least compile
3517 # something.
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541 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
3542 do
3543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include <$ac_header>
3556 _ACEOF
3557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3570 fi
3571 else
3572 ac_cpp_err=yes
3573 fi
3574 if test -z "$ac_cpp_err"; then
3575 eval "$as_ac_Header=yes"
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 eval "$as_ac_Header=no"
3581 fi
3582 rm -f conftest.err conftest.$ac_ext
3583 fi
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587 cat >>confdefs.h <<_ACEOF
3588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 _ACEOF
3590
3591 fi
3592 done
3593
3594 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3595 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3596 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #include <sys/types.h>
3606 #include <sys/wait.h>
3607 #ifndef WEXITSTATUS
3608 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3609 #endif
3610 #ifndef WIFEXITED
3611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3612 #endif
3613
3614 int
3615 main ()
3616 {
3617 int s;
3618 wait (&s);
3619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_header_sys_wait_h=yes
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 ac_cv_header_sys_wait_h=no
3652 fi
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3656 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3657 if test $ac_cv_header_sys_wait_h = yes; then
3658
3659 cat >>confdefs.h <<\_ACEOF
3660 #define HAVE_SYS_WAIT_H 1
3661 _ACEOF
3662
3663 fi
3664
3665 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3666 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3667 if test "${ac_cv_header_time+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/time.h>
3678 #include <time.h>
3679
3680 int
3681 main ()
3682 {
3683 if ((struct tm *) 0)
3684 return 0;
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_header_time=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_header_time=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3721 echo "${ECHO_T}$ac_cv_header_time" >&6
3722 if test $ac_cv_header_time = yes; then
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define TIME_WITH_SYS_TIME 1
3726 _ACEOF
3727
3728 fi
3729
3730
3731 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3732 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3733 if test "${libiberty_cv_declare_errno+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <errno.h>
3743 int
3744 main ()
3745 {
3746 int x = errno;
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 libiberty_cv_declare_errno=no
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 libiberty_cv_declare_errno=yes
3779 fi
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 fi
3782 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3783 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3784 if test $libiberty_cv_declare_errno = yes
3785 then
3786 cat >>confdefs.h <<\_ACEOF
3787 #define NEED_DECLARATION_ERRNO 1
3788 _ACEOF
3789
3790 fi
3791
3792
3793 echo "$as_me:$LINENO: checking for egrep" >&5
3794 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3795 if test "${ac_cv_prog_egrep+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3799 then ac_cv_prog_egrep='grep -E'
3800 else ac_cv_prog_egrep='egrep'
3801 fi
3802 fi
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3804 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3805 EGREP=$ac_cv_prog_egrep
3806
3807
3808 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_header_stdc=yes
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862
3863 if test $ac_cv_header_stdc = yes; then
3864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <string.h>
3872
3873 _ACEOF
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 $EGREP "memchr" >/dev/null 2>&1; then
3876 :
3877 else
3878 ac_cv_header_stdc=no
3879 fi
3880 rm -f conftest*
3881
3882 fi
3883
3884 if test $ac_cv_header_stdc = yes; then
3885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <stdlib.h>
3893
3894 _ACEOF
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 $EGREP "free" >/dev/null 2>&1; then
3897 :
3898 else
3899 ac_cv_header_stdc=no
3900 fi
3901 rm -f conftest*
3902
3903 fi
3904
3905 if test $ac_cv_header_stdc = yes; then
3906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3907 if test "$cross_compiling" = yes; then
3908 :
3909 else
3910 cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h. */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #include <ctype.h>
3917 #if ((' ' & 0x0FF) == 0x020)
3918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920 #else
3921 # define ISLOWER(c) \
3922 (('a' <= (c) && (c) <= 'i') \
3923 || ('j' <= (c) && (c) <= 'r') \
3924 || ('s' <= (c) && (c) <= 'z'))
3925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926 #endif
3927
3928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929 int
3930 main ()
3931 {
3932 int i;
3933 for (i = 0; i < 256; i++)
3934 if (XOR (islower (i), ISLOWER (i))
3935 || toupper (i) != TOUPPER (i))
3936 exit(2);
3937 exit (0);
3938 }
3939 _ACEOF
3940 rm -f conftest$ac_exeext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 :
3952 else
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 ( exit $ac_status )
3958 ac_cv_header_stdc=no
3959 fi
3960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3961 fi
3962 fi
3963 fi
3964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3966 if test $ac_cv_header_stdc = yes; then
3967
3968 cat >>confdefs.h <<\_ACEOF
3969 #define STDC_HEADERS 1
3970 _ACEOF
3971
3972 fi
3973
3974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985 inttypes.h stdint.h unistd.h
3986 do
3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988 echo "$as_me:$LINENO: checking for $ac_header" >&5
3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <$ac_header>
4000 _ACEOF
4001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 else
4013 ac_cpp_err=
4014 fi
4015 else
4016 ac_cpp_err=yes
4017 fi
4018 if test -z "$ac_cpp_err"; then
4019 eval "$as_ac_Header=yes"
4020 else
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 eval "$as_ac_Header=no"
4025 fi
4026 rm -f conftest.err conftest.$ac_ext
4027 fi
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4031 cat >>confdefs.h <<_ACEOF
4032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4033 _ACEOF
4034
4035 fi
4036 done
4037
4038
4039 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4040 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4041 if test "${ac_cv_type_uintptr_t+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4051 int
4052 main ()
4053 {
4054 if ((uintptr_t *) 0)
4055 return 0;
4056 if (sizeof (uintptr_t))
4057 return 0;
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_cv_type_uintptr_t=yes
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 ac_cv_type_uintptr_t=no
4090 fi
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4094 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4095 if test $ac_cv_type_uintptr_t = yes; then
4096 :
4097 else
4098
4099 cat >>confdefs.h <<_ACEOF
4100 #define uintptr_t unsigned long
4101 _ACEOF
4102
4103 fi
4104
4105 # Given the above check, we always have uintptr_t or a fallback
4106 # definition. So define HAVE_UINTPTR_T in case any imported code
4107 # relies on it.
4108
4109 cat >>confdefs.h <<\_ACEOF
4110 #define HAVE_UINTPTR_T 1
4111 _ACEOF
4112
4113
4114 echo "$as_me:$LINENO: checking for pid_t" >&5
4115 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4116 if test "${ac_cv_type_pid_t+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 $ac_includes_default
4126 int
4127 main ()
4128 {
4129 if ((pid_t *) 0)
4130 return 0;
4131 if (sizeof (pid_t))
4132 return 0;
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_cv_type_pid_t=yes
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_cv_type_pid_t=no
4165 fi
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4169 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4170 if test $ac_cv_type_pid_t = yes; then
4171 :
4172 else
4173
4174 cat >>confdefs.h <<_ACEOF
4175 #define pid_t int
4176 _ACEOF
4177
4178 fi
4179
4180
4181 # This is the list of functions which libiberty will provide if they
4182 # are not available on the host.
4183
4184 funcs="asprintf"
4185 funcs="$funcs atexit"
4186 funcs="$funcs basename"
4187 funcs="$funcs bcmp"
4188 funcs="$funcs bcopy"
4189 funcs="$funcs bsearch"
4190 funcs="$funcs bzero"
4191 funcs="$funcs calloc"
4192 funcs="$funcs clock"
4193 funcs="$funcs ffs"
4194 funcs="$funcs getcwd"
4195 funcs="$funcs getpagesize"
4196 funcs="$funcs index"
4197 funcs="$funcs insque"
4198 funcs="$funcs memchr"
4199 funcs="$funcs memcmp"
4200 funcs="$funcs memcpy"
4201 funcs="$funcs memmove"
4202 funcs="$funcs mempcpy"
4203 funcs="$funcs memset"
4204 funcs="$funcs mkstemps"
4205 funcs="$funcs putenv"
4206 funcs="$funcs random"
4207 funcs="$funcs rename"
4208 funcs="$funcs rindex"
4209 funcs="$funcs setenv"
4210 funcs="$funcs snprintf"
4211 funcs="$funcs sigsetmask"
4212 funcs="$funcs stpcpy"
4213 funcs="$funcs stpncpy"
4214 funcs="$funcs strcasecmp"
4215 funcs="$funcs strchr"
4216 funcs="$funcs strdup"
4217 funcs="$funcs strncasecmp"
4218 funcs="$funcs strrchr"
4219 funcs="$funcs strstr"
4220 funcs="$funcs strtod"
4221 funcs="$funcs strtol"
4222 funcs="$funcs strtoul"
4223 funcs="$funcs tmpnam"
4224 funcs="$funcs vasprintf"
4225 funcs="$funcs vfprintf"
4226 funcs="$funcs vprintf"
4227 funcs="$funcs vsnprintf"
4228 funcs="$funcs vsprintf"
4229 funcs="$funcs waitpid"
4230
4231 # Also in the old function.def file: alloca, vfork, getopt.
4232
4233 vars="sys_errlist sys_nerr sys_siglist"
4234
4235 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4236 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4237 checkfuncs="$checkfuncs getsysinfo table sysctl"
4238
4239 # These are neither executed nor required, but they help keep
4240 # autoheader happy without adding a bunch of text to acconfig.h.
4241 if test "x" = "y"; then
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4306 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
4307 memmove mempcpy memset putenv random rename rindex sigsetmask \
4308 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
4309 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4310 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4311 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4312 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
4313 realpath canonicalize_file_name
4314 do
4315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4316 echo "$as_me:$LINENO: checking for $ac_func" >&5
4317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_var+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 if test x$gcc_no_link = xyes; then
4322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4324 { (exit 1); exit 1; }; }
4325 fi
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char $ac_func (); below.
4334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 <limits.h> exists even on freestanding compilers. Under hpux,
4336 including <limits.h> includes <sys/time.h> and causes problems
4337 checking for functions defined therein. */
4338 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 #ifdef __cplusplus
4345 extern "C"
4346 {
4347 #endif
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4350 char $ac_func ();
4351 /* The GNU C library defines this for functions which it implements
4352 to always fail with ENOSYS. Some functions are actually named
4353 something starting with __ and the normal name is an alias. */
4354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4355 choke me
4356 #else
4357 char (*f) () = $ac_func;
4358 #endif
4359 #ifdef __cplusplus
4360 }
4361 #endif
4362
4363 int
4364 main ()
4365 {
4366 return f != $ac_func;
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest$ac_exeext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 eval "$as_ac_var=yes"
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 eval "$as_ac_var=no"
4399 fi
4400 rm -f conftest.err conftest.$ac_objext \
4401 conftest$ac_exeext conftest.$ac_ext
4402 fi
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4405 if test `eval echo '${'$as_ac_var'}'` = yes; then
4406 cat >>confdefs.h <<_ACEOF
4407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411 done
4412
4413
4414 cat >>confdefs.h <<\_ACEOF
4415 #define HAVE_SYS_ERRLIST 1
4416 _ACEOF
4417
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define HAVE_SYS_NERR 1
4421 _ACEOF
4422
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define HAVE_SYS_SIGLIST 1
4426 _ACEOF
4427
4428 fi
4429
4430 # For each of these functions, if the host does not provide the
4431 # function we want to put FN.o in LIBOBJS, and if the host does
4432 # provide the function, we want to define HAVE_FN in config.h.
4433
4434 setobjs=
4435 CHECK=
4436 target_header_dir=
4437 if test -n "${with_target_subdir}"; then
4438
4439 # We are being configured as a target library. AC_REPLACE_FUNCS
4440 # may not work correctly, because the compiler may not be able to
4441 # link executables. Note that we may still be being configured
4442 # native.
4443
4444 # If we are being configured for newlib, we know which functions
4445 # newlib provide and which ones we will be expected to provide.
4446
4447 if test "x${with_newlib}" = "xyes"; then
4448 case $LIBOBJS in
4449 "asprintf.$ac_objext" | \
4450 *" asprintf.$ac_objext" | \
4451 "asprintf.$ac_objext "* | \
4452 *" asprintf.$ac_objext "* ) ;;
4453 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
4454 esac
4455
4456 case $LIBOBJS in
4457 "basename.$ac_objext" | \
4458 *" basename.$ac_objext" | \
4459 "basename.$ac_objext "* | \
4460 *" basename.$ac_objext "* ) ;;
4461 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
4462 esac
4463
4464 case $LIBOBJS in
4465 "insque.$ac_objext" | \
4466 *" insque.$ac_objext" | \
4467 "insque.$ac_objext "* | \
4468 *" insque.$ac_objext "* ) ;;
4469 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
4470 esac
4471
4472 case $LIBOBJS in
4473 "random.$ac_objext" | \
4474 *" random.$ac_objext" | \
4475 "random.$ac_objext "* | \
4476 *" random.$ac_objext "* ) ;;
4477 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4478 esac
4479
4480 case $LIBOBJS in
4481 "strdup.$ac_objext" | \
4482 *" strdup.$ac_objext" | \
4483 "strdup.$ac_objext "* | \
4484 *" strdup.$ac_objext "* ) ;;
4485 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
4486 esac
4487
4488 case $LIBOBJS in
4489 "vasprintf.$ac_objext" | \
4490 *" vasprintf.$ac_objext" | \
4491 "vasprintf.$ac_objext "* | \
4492 *" vasprintf.$ac_objext "* ) ;;
4493 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
4494 esac
4495
4496
4497 for f in $funcs; do
4498 case "$f" in
4499 asprintf | basename | insque | random | strdup | vasprintf)
4500 ;;
4501 *)
4502 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4503 cat >>confdefs.h <<_ACEOF
4504 #define $n 1
4505 _ACEOF
4506
4507 ;;
4508 esac
4509 done
4510
4511 # newlib doesnt provide any of the variables in $vars, so we
4512 # dont have to check them here.
4513
4514 # Of the functions in $checkfuncs, newlib only has strerror.
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_STRERROR 1
4517 EOF
4518
4519
4520 setobjs=yes
4521
4522 fi
4523
4524 # We may wish to install the target headers somewhere.
4525 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
4526 if test "${enable_install_libiberty+set}" = set; then
4527 enableval="$enable_install_libiberty"
4528 enable_install_libiberty=$enableval
4529 else
4530 enable_install_libiberty=no
4531 fi;
4532 # Option parsed, now set things appropriately.
4533 case x"$enable_install_libiberty" in
4534 xyes|x)
4535 target_header_dir=libiberty
4536 ;;
4537 xno)
4538 target_header_dir=
4539 ;;
4540 *)
4541 # This could be sanity-checked in various ways...
4542 target_header_dir="${enable_install_libiberty}"
4543 ;;
4544 esac
4545
4546
4547 else
4548
4549 # Not a target library, so we set things up to run the test suite.
4550 CHECK=check-cplus-dem
4551
4552 fi
4553
4554
4555
4556
4557 case "${host}" in
4558 *-*-cygwin* | *-*-mingw*)
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_SYS_ERRLIST 1
4561 EOF
4562
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_SYS_NERR 1
4565 EOF
4566
4567 ;;
4568 esac
4569
4570 if test -z "${setobjs}"; then
4571 case "${host}" in
4572
4573 *-*-vxworks*)
4574 # Handle VxWorks configuration specially, since on VxWorks the
4575 # libraries are actually on the target board, not in the file
4576 # system.
4577 case $LIBOBJS in
4578 "basename.$ac_objext" | \
4579 *" basename.$ac_objext" | \
4580 "basename.$ac_objext "* | \
4581 *" basename.$ac_objext "* ) ;;
4582 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
4583 esac
4584
4585 case $LIBOBJS in
4586 "getpagesize.$ac_objext" | \
4587 *" getpagesize.$ac_objext" | \
4588 "getpagesize.$ac_objext "* | \
4589 *" getpagesize.$ac_objext "* ) ;;
4590 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
4591 esac
4592
4593 case $LIBOBJS in
4594 "insque.$ac_objext" | \
4595 *" insque.$ac_objext" | \
4596 "insque.$ac_objext "* | \
4597 *" insque.$ac_objext "* ) ;;
4598 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
4599 esac
4600
4601 case $LIBOBJS in
4602 "random.$ac_objext" | \
4603 *" random.$ac_objext" | \
4604 "random.$ac_objext "* | \
4605 *" random.$ac_objext "* ) ;;
4606 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4607 esac
4608
4609 case $LIBOBJS in
4610 "strcasecmp.$ac_objext" | \
4611 *" strcasecmp.$ac_objext" | \
4612 "strcasecmp.$ac_objext "* | \
4613 *" strcasecmp.$ac_objext "* ) ;;
4614 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
4615 esac
4616
4617 case $LIBOBJS in
4618 "strncasecmp.$ac_objext" | \
4619 *" strncasecmp.$ac_objext" | \
4620 "strncasecmp.$ac_objext "* | \
4621 *" strncasecmp.$ac_objext "* ) ;;
4622 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
4623 esac
4624
4625 case $LIBOBJS in
4626 "strdup.$ac_objext" | \
4627 *" strdup.$ac_objext" | \
4628 "strdup.$ac_objext "* | \
4629 *" strdup.$ac_objext "* ) ;;
4630 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
4631 esac
4632
4633 case $LIBOBJS in
4634 "vfork.$ac_objext" | \
4635 *" vfork.$ac_objext" | \
4636 "vfork.$ac_objext "* | \
4637 *" vfork.$ac_objext "* ) ;;
4638 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
4639 esac
4640
4641 case $LIBOBJS in
4642 "waitpid.$ac_objext" | \
4643 *" waitpid.$ac_objext" | \
4644 "waitpid.$ac_objext "* | \
4645 *" waitpid.$ac_objext "* ) ;;
4646 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
4647 esac
4648
4649 case $LIBOBJS in
4650 "vasprintf.$ac_objext" | \
4651 *" vasprintf.$ac_objext" | \
4652 "vasprintf.$ac_objext "* | \
4653 *" vasprintf.$ac_objext "* ) ;;
4654 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
4655 esac
4656
4657 for f in $funcs; do
4658 case "$f" in
4659 basename | getpagesize | insque | random | strcasecmp)
4660 ;;
4661 strncasecmp | strdup | vfork | waitpid | vasprintf)
4662 ;;
4663 *)
4664 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4665 cat >>confdefs.h <<_ACEOF
4666 #define $n 1
4667 _ACEOF
4668
4669 ;;
4670 esac
4671 done
4672
4673 # VxWorks doesn't provide any of the variables in $vars, so we
4674 # don't have to check them here.
4675
4676 # Of the functions in $checkfuncs, VxWorks only has strerror.
4677 cat >> confdefs.h <<\EOF
4678 #define HAVE_STRERROR 1
4679 EOF
4680
4681
4682 setobjs=yes
4683 ;;
4684
4685 esac
4686 fi
4687
4688 if test -z "${setobjs}"; then
4689
4690 case "${host}" in
4691
4692 *-*-cygwin*)
4693 # The Cygwin library actually uses a couple of files from
4694 # libiberty when it is built. If we are building a native
4695 # Cygwin, and we run the tests, we will appear to have these
4696 # files. However, when we go on to build winsup, we will wind up
4697 # with a library which does not have the files, since they should
4698 # have come from libiberty.
4699
4700 # We handle this by removing the functions the winsup library
4701 # provides from our shell variables, so that they appear to be
4702 # missing.
4703
4704 # DJ - only if we're *building* cygwin, not just building *with* cygwin
4705
4706 if test -n "${with_target_subdir}"
4707 then
4708 funcs="`echo $funcs | sed -e 's/random//'`"
4709 case $LIBOBJS in
4710 "random.$ac_objext" | \
4711 *" random.$ac_objext" | \
4712 "random.$ac_objext "* | \
4713 *" random.$ac_objext "* ) ;;
4714 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
4715 esac
4716
4717 vars="`echo $vars | sed -e 's/sys_siglist//'`"
4718 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
4719 fi
4720 ;;
4721
4722 *-*-mingw32*)
4723 # Under mingw32, sys_nerr and sys_errlist exist, but they are
4724 # macros, so the test below won't find them.
4725 libiberty_cv_var_sys_nerr=yes
4726 libiberty_cv_var_sys_errlist=yes
4727 ;;
4728
4729 *-*-uwin*)
4730 # Under some versions of uwin, vfork is notoriously buggy and the test
4731 # can hang configure; on other versions, vfork exists just as a stub.
4732 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
4733 ac_cv_func_vfork_works=no
4734 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
4735 # macros (actually, these are imported from a DLL, but the end effect
4736 # is the same), so the test below won't find them.
4737 libiberty_cv_var_sys_nerr=yes
4738 libiberty_cv_var_sys_errlist=yes
4739 ;;
4740
4741 *-*-*vms*)
4742 # Under VMS, vfork works very different than on Unix. The standard test
4743 # won't work, and it isn't easily adaptable. It makes more sense to
4744 # just force it.
4745 ac_cv_func_vfork_works=yes
4746 ;;
4747
4748 esac
4749
4750 # We haven't set the list of objects yet. Use the standard autoconf
4751 # tests. This will only work if the compiler works.
4752 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4753 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4754 if test "${ac_cv_search_strerror+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 ac_func_search_save_LIBS=$LIBS
4758 ac_cv_search_strerror=no
4759 if test x$gcc_no_link = xyes; then
4760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4762 { (exit 1); exit 1; }; }
4763 fi
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 #ifdef __cplusplus
4773 extern "C"
4774 #endif
4775 /* We use char because int might match the return type of a gcc2
4776 builtin and then its argument prototype would still apply. */
4777 char strerror ();
4778 int
4779 main ()
4780 {
4781 strerror ();
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest$ac_exeext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_search_strerror="none required"
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 fi
4814 rm -f conftest.err conftest.$ac_objext \
4815 conftest$ac_exeext conftest.$ac_ext
4816 if test "$ac_cv_search_strerror" = no; then
4817 for ac_lib in cposix; do
4818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4819 if test x$gcc_no_link = xyes; then
4820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4822 { (exit 1); exit 1; }; }
4823 fi
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 #ifdef __cplusplus
4833 extern "C"
4834 #endif
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4837 char strerror ();
4838 int
4839 main ()
4840 {
4841 strerror ();
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext conftest$ac_exeext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848 (eval $ac_link) 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest$ac_exeext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_search_strerror="-l$ac_lib"
4869 break
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 fi
4875 rm -f conftest.err conftest.$ac_objext \
4876 conftest$ac_exeext conftest.$ac_ext
4877 done
4878 fi
4879 LIBS=$ac_func_search_save_LIBS
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4882 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4883 if test "$ac_cv_search_strerror" != no; then
4884 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4885
4886 fi
4887
4888
4889 for ac_func in $funcs
4890 do
4891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4892 echo "$as_me:$LINENO: checking for $ac_func" >&5
4893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4894 if eval "test \"\${$as_ac_var+set}\" = set"; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897 if test x$gcc_no_link = xyes; then
4898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4900 { (exit 1); exit 1; }; }
4901 fi
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func (); below.
4910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 <limits.h> exists even on freestanding compilers. Under hpux,
4912 including <limits.h> includes <sys/time.h> and causes problems
4913 checking for functions defined therein. */
4914 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4915 # include <limits.h>
4916 #else
4917 # include <assert.h>
4918 #endif
4919 /* Override any gcc2 internal prototype to avoid an error. */
4920 #ifdef __cplusplus
4921 extern "C"
4922 {
4923 #endif
4924 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */
4926 char $ac_func ();
4927 /* The GNU C library defines this for functions which it implements
4928 to always fail with ENOSYS. Some functions are actually named
4929 something starting with __ and the normal name is an alias. */
4930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931 choke me
4932 #else
4933 char (*f) () = $ac_func;
4934 #endif
4935 #ifdef __cplusplus
4936 }
4937 #endif
4938
4939 int
4940 main ()
4941 {
4942 return f != $ac_func;
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext conftest$ac_exeext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 eval "$as_ac_var=yes"
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 eval "$as_ac_var=no"
4975 fi
4976 rm -f conftest.err conftest.$ac_objext \
4977 conftest$ac_exeext conftest.$ac_ext
4978 fi
4979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4981 if test `eval echo '${'$as_ac_var'}'` = yes; then
4982 cat >>confdefs.h <<_ACEOF
4983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4984 _ACEOF
4985
4986 else
4987 case $LIBOBJS in
4988 "$ac_func.$ac_objext" | \
4989 *" $ac_func.$ac_objext" | \
4990 "$ac_func.$ac_objext "* | \
4991 *" $ac_func.$ac_objext "* ) ;;
4992 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4993 esac
4994
4995 fi
4996 done
4997
4998
4999 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
5000 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
5001 if test "${ac_cv_os_cray+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 #if defined(CRAY) && ! defined(CRAY2)
5011 webecray
5012 #else
5013 wenotbecray
5014 #endif
5015
5016 _ACEOF
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "webecray" >/dev/null 2>&1; then
5019 ac_cv_os_cray=yes
5020 else
5021 ac_cv_os_cray=no
5022 fi
5023 rm -f conftest*
5024
5025 fi
5026 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5027 echo "${ECHO_T}$ac_cv_os_cray" >&6
5028 if test $ac_cv_os_cray = yes; then
5029 for ac_func in _getb67 GETB67 getb67; do
5030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5031 echo "$as_me:$LINENO: checking for $ac_func" >&5
5032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_var+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test x$gcc_no_link = xyes; then
5037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5039 { (exit 1); exit 1; }; }
5040 fi
5041 cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h. */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 /* System header to define __stub macros and hopefully few prototypes,
5048 which can conflict with char $ac_func (); below.
5049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 <limits.h> exists even on freestanding compilers. Under hpux,
5051 including <limits.h> includes <sys/time.h> and causes problems
5052 checking for functions defined therein. */
5053 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 #ifdef __cplusplus
5060 extern "C"
5061 {
5062 #endif
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5065 char $ac_func ();
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5070 choke me
5071 #else
5072 char (*f) () = $ac_func;
5073 #endif
5074 #ifdef __cplusplus
5075 }
5076 #endif
5077
5078 int
5079 main ()
5080 {
5081 return f != $ac_func;
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 eval "$as_ac_var=yes"
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 eval "$as_ac_var=no"
5114 fi
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5117 fi
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5120 if test `eval echo '${'$as_ac_var'}'` = yes; then
5121
5122 cat >>confdefs.h <<_ACEOF
5123 #define CRAY_STACKSEG_END $ac_func
5124 _ACEOF
5125 break
5126 fi
5127
5128 done
5129 fi
5130
5131 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5132 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5133 if test "${ac_cv_c_stack_direction+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 if test "$cross_compiling" = yes; then
5137 ac_cv_c_stack_direction=0
5138 else
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 find_stack_direction ()
5146 {
5147 static char *addr = 0;
5148 auto char dummy;
5149 if (addr == 0)
5150 {
5151 addr = &dummy;
5152 return find_stack_direction ();
5153 }
5154 else
5155 return (&dummy > addr) ? 1 : -1;
5156 }
5157 main ()
5158 {
5159 exit (find_stack_direction() < 0);
5160 }
5161 _ACEOF
5162 rm -f conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_c_stack_direction=1
5174 else
5175 echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 ( exit $ac_status )
5180 ac_cv_c_stack_direction=-1
5181 fi
5182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5183 fi
5184 fi
5185 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5186 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define STACK_DIRECTION $ac_cv_c_stack_direction
5190 _ACEOF
5191
5192
5193
5194
5195 for ac_header in unistd.h vfork.h
5196 do
5197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198 echo "$as_me:$LINENO: checking for $ac_header" >&5
5199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <$ac_header>
5210 _ACEOF
5211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5222 else
5223 ac_cpp_err=
5224 fi
5225 else
5226 ac_cpp_err=yes
5227 fi
5228 if test -z "$ac_cpp_err"; then
5229 eval "$as_ac_Header=yes"
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 eval "$as_ac_Header=no"
5235 fi
5236 rm -f conftest.err conftest.$ac_ext
5237 fi
5238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5241 cat >>confdefs.h <<_ACEOF
5242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5243 _ACEOF
5244
5245 fi
5246 done
5247
5248
5249
5250 for ac_func in fork vfork
5251 do
5252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test x$gcc_no_link = xyes; then
5259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5261 { (exit 1); exit 1; }; }
5262 fi
5263 cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h. */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 /* System header to define __stub macros and hopefully few prototypes,
5270 which can conflict with char $ac_func (); below.
5271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 <limits.h> exists even on freestanding compilers. Under hpux,
5273 including <limits.h> includes <sys/time.h> and causes problems
5274 checking for functions defined therein. */
5275 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5276 # include <limits.h>
5277 #else
5278 # include <assert.h>
5279 #endif
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 #ifdef __cplusplus
5282 extern "C"
5283 {
5284 #endif
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5287 char $ac_func ();
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5292 choke me
5293 #else
5294 char (*f) () = $ac_func;
5295 #endif
5296 #ifdef __cplusplus
5297 }
5298 #endif
5299
5300 int
5301 main ()
5302 {
5303 return f != $ac_func;
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 eval "$as_ac_var=yes"
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 eval "$as_ac_var=no"
5336 fi
5337 rm -f conftest.err conftest.$ac_objext \
5338 conftest$ac_exeext conftest.$ac_ext
5339 fi
5340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5342 if test `eval echo '${'$as_ac_var'}'` = yes; then
5343 cat >>confdefs.h <<_ACEOF
5344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5345 _ACEOF
5346
5347 fi
5348 done
5349
5350 if test "x$ac_cv_func_fork" = xyes; then
5351 echo "$as_me:$LINENO: checking for working fork" >&5
5352 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5353 if test "${ac_cv_func_fork_works+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 if test "$cross_compiling" = yes; then
5357 ac_cv_func_fork_works=cross
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* By Ruediger Kuhlmann. */
5361 #include <sys/types.h>
5362 #if HAVE_UNISTD_H
5363 # include <unistd.h>
5364 #endif
5365 /* Some systems only have a dummy stub for fork() */
5366 int main ()
5367 {
5368 if (fork() < 0)
5369 exit (1);
5370 exit (0);
5371 }
5372 _ACEOF
5373 rm -f conftest$ac_exeext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_func_fork_works=yes
5385 else
5386 echo "$as_me: program exited with status $ac_status" >&5
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ( exit $ac_status )
5391 ac_cv_func_fork_works=no
5392 fi
5393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5394 fi
5395 fi
5396 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5397 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5398
5399 else
5400 ac_cv_func_fork_works=$ac_cv_func_fork
5401 fi
5402 if test "x$ac_cv_func_fork_works" = xcross; then
5403 case $host in
5404 *-*-amigaos* | *-*-msdosdjgpp*)
5405 # Override, as these systems have only a dummy fork() stub
5406 ac_cv_func_fork_works=no
5407 ;;
5408 *)
5409 ac_cv_func_fork_works=yes
5410 ;;
5411 esac
5412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5413 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5414 fi
5415 ac_cv_func_vfork_works=$ac_cv_func_vfork
5416 if test "x$ac_cv_func_vfork" = xyes; then
5417 echo "$as_me:$LINENO: checking for working vfork" >&5
5418 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5419 if test "${ac_cv_func_vfork_works+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 if test "$cross_compiling" = yes; then
5423 ac_cv_func_vfork_works=cross
5424 else
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 /* Thanks to Paul Eggert for this test. */
5432 #include <stdio.h>
5433 #include <stdlib.h>
5434 #include <sys/types.h>
5435 #include <sys/stat.h>
5436 #include <sys/wait.h>
5437 #if HAVE_UNISTD_H
5438 # include <unistd.h>
5439 #endif
5440 #if HAVE_VFORK_H
5441 # include <vfork.h>
5442 #endif
5443 /* On some sparc systems, changes by the child to local and incoming
5444 argument registers are propagated back to the parent. The compiler
5445 is told about this with #include <vfork.h>, but some compilers
5446 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5447 static variable whose address is put into a register that is
5448 clobbered by the vfork. */
5449 static void
5450 #ifdef __cplusplus
5451 sparc_address_test (int arg)
5452 # else
5453 sparc_address_test (arg) int arg;
5454 #endif
5455 {
5456 static pid_t child;
5457 if (!child) {
5458 child = vfork ();
5459 if (child < 0) {
5460 perror ("vfork");
5461 _exit(2);
5462 }
5463 if (!child) {
5464 arg = getpid();
5465 write(-1, "", 0);
5466 _exit (arg);
5467 }
5468 }
5469 }
5470
5471 int
5472 main ()
5473 {
5474 pid_t parent = getpid ();
5475 pid_t child;
5476
5477 sparc_address_test (0);
5478
5479 child = vfork ();
5480
5481 if (child == 0) {
5482 /* Here is another test for sparc vfork register problems. This
5483 test uses lots of local variables, at least as many local
5484 variables as main has allocated so far including compiler
5485 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5486 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5487 reuse the register of parent for one of the local variables,
5488 since it will think that parent can't possibly be used any more
5489 in this routine. Assigning to the local variable will thus
5490 munge parent in the parent process. */
5491 pid_t
5492 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5493 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5494 /* Convince the compiler that p..p7 are live; otherwise, it might
5495 use the same hardware register for all 8 local variables. */
5496 if (p != p1 || p != p2 || p != p3 || p != p4
5497 || p != p5 || p != p6 || p != p7)
5498 _exit(1);
5499
5500 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5501 from child file descriptors. If the child closes a descriptor
5502 before it execs or exits, this munges the parent's descriptor
5503 as well. Test for this by closing stdout in the child. */
5504 _exit(close(fileno(stdout)) != 0);
5505 } else {
5506 int status;
5507 struct stat st;
5508
5509 while (wait(&status) != child)
5510 ;
5511 exit(
5512 /* Was there some problem with vforking? */
5513 child < 0
5514
5515 /* Did the child fail? (This shouldn't happen.) */
5516 || status
5517
5518 /* Did the vfork/compiler bug occur? */
5519 || parent != getpid()
5520
5521 /* Did the file descriptor bug occur? */
5522 || fstat(fileno(stdout), &st) != 0
5523 );
5524 }
5525 }
5526 _ACEOF
5527 rm -f conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_func_vfork_works=yes
5539 else
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 ( exit $ac_status )
5545 ac_cv_func_vfork_works=no
5546 fi
5547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 fi
5550 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5551 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5552
5553 fi;
5554 if test "x$ac_cv_func_fork_works" = xcross; then
5555 ac_cv_func_vfork_works=$ac_cv_func_vfork
5556 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5557 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5558 fi
5559
5560 if test "x$ac_cv_func_vfork_works" = xyes; then
5561
5562 cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_WORKING_VFORK 1
5564 _ACEOF
5565
5566 else
5567
5568 cat >>confdefs.h <<\_ACEOF
5569 #define vfork fork
5570 _ACEOF
5571
5572 fi
5573 if test "x$ac_cv_func_fork_works" = xyes; then
5574
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_WORKING_FORK 1
5577 _ACEOF
5578
5579 fi
5580
5581 if test $ac_cv_func_vfork_works = no; then
5582 case $LIBOBJS in
5583 "vfork.$ac_objext" | \
5584 *" vfork.$ac_objext" | \
5585 "vfork.$ac_objext "* | \
5586 *" vfork.$ac_objext "* ) ;;
5587 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5588 esac
5589
5590 fi
5591 # We only need _doprnt if we might use it to implement v*printf.
5592 if test $ac_cv_func_vprintf != yes \
5593 || test $ac_cv_func_vfprintf != yes \
5594 || test $ac_cv_func_vsprintf != yes; then
5595
5596 for ac_func in _doprnt
5597 do
5598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_func" >&5
5600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_var+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 if test x$gcc_no_link = xyes; then
5605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5607 { (exit 1); exit 1; }; }
5608 fi
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func (); below.
5617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5618 <limits.h> exists even on freestanding compilers. Under hpux,
5619 including <limits.h> includes <sys/time.h> and causes problems
5620 checking for functions defined therein. */
5621 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5622 # include <limits.h>
5623 #else
5624 # include <assert.h>
5625 #endif
5626 /* Override any gcc2 internal prototype to avoid an error. */
5627 #ifdef __cplusplus
5628 extern "C"
5629 {
5630 #endif
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633 char $ac_func ();
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5638 choke me
5639 #else
5640 char (*f) () = $ac_func;
5641 #endif
5642 #ifdef __cplusplus
5643 }
5644 #endif
5645
5646 int
5647 main ()
5648 {
5649 return f != $ac_func;
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 eval "$as_ac_var=yes"
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 eval "$as_ac_var=no"
5682 fi
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 fi
5686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5688 if test `eval echo '${'$as_ac_var'}'` = yes; then
5689 cat >>confdefs.h <<_ACEOF
5690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5691 _ACEOF
5692
5693 else
5694 case $LIBOBJS in
5695 "$ac_func.$ac_objext" | \
5696 *" $ac_func.$ac_objext" | \
5697 "$ac_func.$ac_objext "* | \
5698 *" $ac_func.$ac_objext "* ) ;;
5699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5700 esac
5701
5702 fi
5703 done
5704
5705
5706 else
5707
5708 for ac_func in _doprnt
5709 do
5710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5711 echo "$as_me:$LINENO: checking for $ac_func" >&5
5712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5713 if eval "test \"\${$as_ac_var+set}\" = set"; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 if test x$gcc_no_link = xyes; then
5717 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5719 { (exit 1); exit 1; }; }
5720 fi
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func (); below.
5729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 <limits.h> exists even on freestanding compilers. Under hpux,
5731 including <limits.h> includes <sys/time.h> and causes problems
5732 checking for functions defined therein. */
5733 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5734 # include <limits.h>
5735 #else
5736 # include <assert.h>
5737 #endif
5738 /* Override any gcc2 internal prototype to avoid an error. */
5739 #ifdef __cplusplus
5740 extern "C"
5741 {
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5745 char $ac_func ();
5746 /* The GNU C library defines this for functions which it implements
5747 to always fail with ENOSYS. Some functions are actually named
5748 something starting with __ and the normal name is an alias. */
5749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5750 choke me
5751 #else
5752 char (*f) () = $ac_func;
5753 #endif
5754 #ifdef __cplusplus
5755 }
5756 #endif
5757
5758 int
5759 main ()
5760 {
5761 return f != $ac_func;
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 eval "$as_ac_var=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 eval "$as_ac_var=no"
5794 fi
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 fi
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5800 if test `eval echo '${'$as_ac_var'}'` = yes; then
5801 cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5803 _ACEOF
5804
5805 fi
5806 done
5807
5808 fi
5809
5810 for v in $vars; do
5811 echo "$as_me:$LINENO: checking for $v" >&5
5812 echo $ECHO_N "checking for $v... $ECHO_C" >&6
5813 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 if test x$gcc_no_link = xyes; then
5817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5819 { (exit 1); exit 1; }; }
5820 fi
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 int *p;
5828 int
5829 main ()
5830 {
5831 extern int $v []; p = $v;
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 (eval $ac_try) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 eval "libiberty_cv_var_$v=yes"
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 eval "libiberty_cv_var_$v=no"
5864 fi
5865 rm -f conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 fi
5868
5869 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
5870 echo "$as_me:$LINENO: result: yes" >&5
5871 echo "${ECHO_T}yes" >&6
5872 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >>confdefs.h <<_ACEOF
5874 #define $n 1
5875 _ACEOF
5876
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881 done
5882
5883 # special check for _system_configuration because AIX <4.3.2 do not
5884 # contain the `physmem' member.
5885 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5886 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5887 cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/systemcfg.h>
5894 int
5895 main ()
5896 {
5897 double x = _system_configuration.physmem;
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904 (eval $ac_compile) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag"
5912 || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest.$ac_objext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925 echo "${ECHO_T}yes" >&6
5926
5927 cat >>confdefs.h <<\_ACEOF
5928 #define HAVE__SYSTEM_CONFIGURATION 1
5929 _ACEOF
5930
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5937 fi
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939
5940
5941 for ac_func in $checkfuncs
5942 do
5943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5944 echo "$as_me:$LINENO: checking for $ac_func" >&5
5945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_var+set}\" = set"; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 if test x$gcc_no_link = xyes; then
5950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5952 { (exit 1); exit 1; }; }
5953 fi
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func (); below.
5962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963 <limits.h> exists even on freestanding compilers. Under hpux,
5964 including <limits.h> includes <sys/time.h> and causes problems
5965 checking for functions defined therein. */
5966 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5967 # include <limits.h>
5968 #else
5969 # include <assert.h>
5970 #endif
5971 /* Override any gcc2 internal prototype to avoid an error. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 {
5975 #endif
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5978 char $ac_func ();
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5983 choke me
5984 #else
5985 char (*f) () = $ac_func;
5986 #endif
5987 #ifdef __cplusplus
5988 }
5989 #endif
5990
5991 int
5992 main ()
5993 {
5994 return f != $ac_func;
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 eval "$as_ac_var=yes"
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 eval "$as_ac_var=no"
6027 fi
6028 rm -f conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6033 if test `eval echo '${'$as_ac_var'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6036 _ACEOF
6037
6038 fi
6039 done
6040
6041 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
6042 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
6043 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052
6053 #include "confdefs.h"
6054 #include <stdio.h>
6055 #ifdef HAVE_STRING_H
6056 #include <string.h>
6057 #else
6058 #ifdef HAVE_STRINGS_H
6059 #include <strings.h>
6060 #endif
6061 #endif
6062 #ifdef HAVE_STDLIB_H
6063 #include <stdlib.h>
6064 #endif
6065 #ifdef HAVE_UNISTD_H
6066 #include <unistd.h>
6067 #endif
6068 int
6069 main ()
6070 {
6071 char *(*pfn) = (char *(*)) canonicalize_file_name
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 libiberty_cv_decl_needed_canonicalize_file_name=no
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 libiberty_cv_decl_needed_canonicalize_file_name=yes
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107
6108 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6109 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
6110 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6111
6112 cat >>confdefs.h <<\_ACEOF
6113 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6114 _ACEOF
6115
6116 fi
6117
6118 fi
6119
6120 # Figure out which version of pexecute to use.
6121 case "${host}" in
6122 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
6123 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
6124 *-*-msdos*) pexecute=./pex-msdos.o ;;
6125 *-*-os2-emx*) pexecute=./pex-os2.o ;;
6126 *) pexecute=./pex-unix.o ;;
6127 esac
6128
6129
6130 if test x$gcc_no_link = xyes; then
6131 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6132 ac_cv_func_mmap_fixed_mapped=no
6133 fi
6134 fi
6135 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6136
6137
6138 for ac_header in stdlib.h unistd.h
6139 do
6140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6141 echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <$ac_header>
6153 _ACEOF
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } >/dev/null; then
6162 if test -s conftest.err; then
6163 ac_cpp_err=$ac_c_preproc_warn_flag
6164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6165 else
6166 ac_cpp_err=
6167 fi
6168 else
6169 ac_cpp_err=yes
6170 fi
6171 if test -z "$ac_cpp_err"; then
6172 eval "$as_ac_Header=yes"
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 eval "$as_ac_Header=no"
6178 fi
6179 rm -f conftest.err conftest.$ac_ext
6180 fi
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6184 cat >>confdefs.h <<_ACEOF
6185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6186 _ACEOF
6187
6188 fi
6189 done
6190
6191
6192 for ac_func in getpagesize
6193 do
6194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6195 echo "$as_me:$LINENO: checking for $ac_func" >&5
6196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6197 if eval "test \"\${$as_ac_var+set}\" = set"; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 if test x$gcc_no_link = xyes; then
6201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6203 { (exit 1); exit 1; }; }
6204 fi
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func (); below.
6213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 <limits.h> exists even on freestanding compilers. Under hpux,
6215 including <limits.h> includes <sys/time.h> and causes problems
6216 checking for functions defined therein. */
6217 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6218 # include <limits.h>
6219 #else
6220 # include <assert.h>
6221 #endif
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 #ifdef __cplusplus
6224 extern "C"
6225 {
6226 #endif
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char $ac_func ();
6230 /* The GNU C library defines this for functions which it implements
6231 to always fail with ENOSYS. Some functions are actually named
6232 something starting with __ and the normal name is an alias. */
6233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6234 choke me
6235 #else
6236 char (*f) () = $ac_func;
6237 #endif
6238 #ifdef __cplusplus
6239 }
6240 #endif
6241
6242 int
6243 main ()
6244 {
6245 return f != $ac_func;
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 eval "$as_ac_var=yes"
6273 else
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 eval "$as_ac_var=no"
6278 fi
6279 rm -f conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 fi
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6287 _ACEOF
6288
6289 fi
6290 done
6291
6292 echo "$as_me:$LINENO: checking for working mmap" >&5
6293 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 if test "$cross_compiling" = yes; then
6298 ac_cv_func_mmap_fixed_mapped=no
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307 /* malloc might have been renamed as rpl_malloc. */
6308 #undef malloc
6309
6310 /* Thanks to Mike Haertel and Jim Avera for this test.
6311 Here is a matrix of mmap possibilities:
6312 mmap private not fixed
6313 mmap private fixed at somewhere currently unmapped
6314 mmap private fixed at somewhere already mapped
6315 mmap shared not fixed
6316 mmap shared fixed at somewhere currently unmapped
6317 mmap shared fixed at somewhere already mapped
6318 For private mappings, we should verify that changes cannot be read()
6319 back from the file, nor mmap's back from the file at a different
6320 address. (There have been systems where private was not correctly
6321 implemented like the infamous i386 svr4.0, and systems where the
6322 VM page cache was not coherent with the file system buffer cache
6323 like early versions of FreeBSD and possibly contemporary NetBSD.)
6324 For shared mappings, we should conversely verify that changes get
6325 propagated back to all the places they're supposed to be.
6326
6327 Grep wants private fixed already mapped.
6328 The main things grep needs to know about mmap are:
6329 * does it exist and is it safe to write into the mmap'd area
6330 * how to use it (BSD variants) */
6331
6332 #include <fcntl.h>
6333 #include <sys/mman.h>
6334
6335 #if !STDC_HEADERS && !HAVE_STDLIB_H
6336 char *malloc ();
6337 #endif
6338
6339 /* This mess was copied from the GNU getpagesize.h. */
6340 #if !HAVE_GETPAGESIZE
6341 /* Assume that all systems that can run configure have sys/param.h. */
6342 # if !HAVE_SYS_PARAM_H
6343 # define HAVE_SYS_PARAM_H 1
6344 # endif
6345
6346 # ifdef _SC_PAGESIZE
6347 # define getpagesize() sysconf(_SC_PAGESIZE)
6348 # else /* no _SC_PAGESIZE */
6349 # if HAVE_SYS_PARAM_H
6350 # include <sys/param.h>
6351 # ifdef EXEC_PAGESIZE
6352 # define getpagesize() EXEC_PAGESIZE
6353 # else /* no EXEC_PAGESIZE */
6354 # ifdef NBPG
6355 # define getpagesize() NBPG * CLSIZE
6356 # ifndef CLSIZE
6357 # define CLSIZE 1
6358 # endif /* no CLSIZE */
6359 # else /* no NBPG */
6360 # ifdef NBPC
6361 # define getpagesize() NBPC
6362 # else /* no NBPC */
6363 # ifdef PAGESIZE
6364 # define getpagesize() PAGESIZE
6365 # endif /* PAGESIZE */
6366 # endif /* no NBPC */
6367 # endif /* no NBPG */
6368 # endif /* no EXEC_PAGESIZE */
6369 # else /* no HAVE_SYS_PARAM_H */
6370 # define getpagesize() 8192 /* punt totally */
6371 # endif /* no HAVE_SYS_PARAM_H */
6372 # endif /* no _SC_PAGESIZE */
6373
6374 #endif /* no HAVE_GETPAGESIZE */
6375
6376 int
6377 main ()
6378 {
6379 char *data, *data2, *data3;
6380 int i, pagesize;
6381 int fd;
6382
6383 pagesize = getpagesize ();
6384
6385 /* First, make a file with some known garbage in it. */
6386 data = (char *) malloc (pagesize);
6387 if (!data)
6388 exit (1);
6389 for (i = 0; i < pagesize; ++i)
6390 *(data + i) = rand ();
6391 umask (0);
6392 fd = creat ("conftest.mmap", 0600);
6393 if (fd < 0)
6394 exit (1);
6395 if (write (fd, data, pagesize) != pagesize)
6396 exit (1);
6397 close (fd);
6398
6399 /* Next, try to mmap the file at a fixed address which already has
6400 something else allocated at it. If we can, also make sure that
6401 we see the same garbage. */
6402 fd = open ("conftest.mmap", O_RDWR);
6403 if (fd < 0)
6404 exit (1);
6405 data2 = (char *) malloc (2 * pagesize);
6406 if (!data2)
6407 exit (1);
6408 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6409 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6410 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6411 exit (1);
6412 for (i = 0; i < pagesize; ++i)
6413 if (*(data + i) != *(data2 + i))
6414 exit (1);
6415
6416 /* Finally, make sure that changes to the mapped area do not
6417 percolate back to the file as seen by read(). (This is a bug on
6418 some variants of i386 svr4.0.) */
6419 for (i = 0; i < pagesize; ++i)
6420 *(data2 + i) = *(data2 + i) + 1;
6421 data3 = (char *) malloc (pagesize);
6422 if (!data3)
6423 exit (1);
6424 if (read (fd, data3, pagesize) != pagesize)
6425 exit (1);
6426 for (i = 0; i < pagesize; ++i)
6427 if (*(data + i) != *(data3 + i))
6428 exit (1);
6429 close (fd);
6430 exit (0);
6431 }
6432 _ACEOF
6433 rm -f conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_func_mmap_fixed_mapped=yes
6445 else
6446 echo "$as_me: program exited with status $ac_status" >&5
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ( exit $ac_status )
6451 ac_cv_func_mmap_fixed_mapped=no
6452 fi
6453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6454 fi
6455 fi
6456 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6457 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6458 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6459
6460 cat >>confdefs.h <<\_ACEOF
6461 #define HAVE_MMAP 1
6462 _ACEOF
6463
6464 fi
6465 rm -f conftest.mmap
6466
6467 fi
6468
6469 echo "$as_me:$LINENO: checking for working strncmp" >&5
6470 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
6471 if test "${ac_cv_func_strncmp_works+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 if test "$cross_compiling" = yes; then
6475 ac_cv_func_strncmp_works=no
6476 else
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483
6484 /* Test by Jim Wilson and Kaveh Ghazi.
6485 Check whether strncmp reads past the end of its string parameters. */
6486 #include <sys/types.h>
6487
6488 #ifdef HAVE_FCNTL_H
6489 #include <fcntl.h>
6490 #endif
6491
6492 #ifdef HAVE_SYS_MMAN_H
6493 #include <sys/mman.h>
6494 #endif
6495
6496 #ifndef MAP_ANON
6497 #ifdef MAP_ANONYMOUS
6498 #define MAP_ANON MAP_ANONYMOUS
6499 #else
6500 #define MAP_ANON MAP_FILE
6501 #endif
6502 #endif
6503
6504 #ifndef MAP_FILE
6505 #define MAP_FILE 0
6506 #endif
6507 #ifndef O_RDONLY
6508 #define O_RDONLY 0
6509 #endif
6510
6511 #define MAP_LEN 0x10000
6512
6513 main ()
6514 {
6515 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
6516 char *p;
6517 int dev_zero;
6518
6519 dev_zero = open ("/dev/zero", O_RDONLY);
6520 if (dev_zero < 0)
6521 exit (1);
6522
6523 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6524 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
6525 if (p == (char *)-1)
6526 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
6527 MAP_ANON|MAP_PRIVATE, -1, 0);
6528 if (p == (char *)-1)
6529 exit (2);
6530 else
6531 {
6532 char *string = "__si_type_info";
6533 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
6534 char *r = (char *) p + 0xe;
6535
6536 strcpy (q, string);
6537 strcpy (r, string);
6538 strncmp (r, q, 14);
6539 }
6540 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
6541 exit (0);
6542 }
6543
6544 _ACEOF
6545 rm -f conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_func_strncmp_works=yes
6557 else
6558 echo "$as_me: program exited with status $ac_status" >&5
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ( exit $ac_status )
6563 ac_cv_func_strncmp_works=no
6564 fi
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 rm -f core core.* *.core
6568 fi
6569 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
6570 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
6571 if test $ac_cv_func_strncmp_works = no ; then
6572 case $LIBOBJS in
6573 "strncmp.$ac_objext" | \
6574 *" strncmp.$ac_objext" | \
6575 "strncmp.$ac_objext "* | \
6576 *" strncmp.$ac_objext "* ) ;;
6577 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
6578 esac
6579
6580 fi
6581
6582
6583 # Install a library built with a cross compiler in $(tooldir) rather
6584 # than $(libdir).
6585 if test -z "${with_cross_host}"; then
6586 INSTALL_DEST=libdir
6587 else
6588 INSTALL_DEST=tooldir
6589 fi
6590
6591
6592
6593 L=""
6594 for l in x $LIBOBJS; do
6595 case $l in
6596 x) ;;
6597 *) L="$L ./$l" ;;
6598 esac
6599 done
6600 LIBOBJS="$L"
6601
6602 # We need multilib support, but only if configuring for the target.
6603 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
6604 ac_config_commands="$ac_config_commands default"
6605 cat >confcache <<\_ACEOF
6606 # This file is a shell script that caches the results of configure
6607 # tests run on this system so they can be shared between configure
6608 # scripts and configure runs, see configure's option --config-cache.
6609 # It is not useful on other systems. If it contains results you don't
6610 # want to keep, you may remove or edit it.
6611 #
6612 # config.status only pays attention to the cache file if you give it
6613 # the --recheck option to rerun configure.
6614 #
6615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6617 # following values.
6618
6619 _ACEOF
6620
6621 # The following way of writing the cache mishandles newlines in values,
6622 # but we know of no workaround that is simple, portable, and efficient.
6623 # So, don't put newlines in cache variables' values.
6624 # Ultrix sh set writes to stderr and can't be redirected directly,
6625 # and sets the high bit in the cache file unless we assign to the vars.
6626 {
6627 (set) 2>&1 |
6628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6629 *ac_space=\ *)
6630 # `set' does not quote correctly, so add quotes (double-quote
6631 # substitution turns \\\\ into \\, and sed turns \\ into \).
6632 sed -n \
6633 "s/'/'\\\\''/g;
6634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6635 ;;
6636 *)
6637 # `set' quotes correctly as required by POSIX, so do not add quotes.
6638 sed -n \
6639 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6640 ;;
6641 esac;
6642 } |
6643 sed '
6644 t clear
6645 : clear
6646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6647 t end
6648 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6649 : end' >>confcache
6650 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6651 if test -w $cache_file; then
6652 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6653 cat confcache >$cache_file
6654 else
6655 echo "not updating unwritable cache $cache_file"
6656 fi
6657 fi
6658 rm -f confcache
6659
6660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6661 # Let make expand exec_prefix.
6662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6663
6664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6666 # trailing colons and then remove the whole line if VPATH becomes empty
6667 # (actually we leave an empty line to preserve line numbers).
6668 if test "x$srcdir" = x.; then
6669 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6670 s/:*\$(srcdir):*/:/;
6671 s/:*\${srcdir}:*/:/;
6672 s/:*@srcdir@:*/:/;
6673 s/^\([^=]*=[ ]*\):*/\1/;
6674 s/:*$//;
6675 s/^[^=]*=[ ]*$//;
6676 }'
6677 fi
6678
6679 DEFS=-DHAVE_CONFIG_H
6680
6681 ac_libobjs=
6682 ac_ltlibobjs=
6683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6684 # 1. Remove the extension, and $U if already installed.
6685 ac_i=`echo "$ac_i" |
6686 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6687 # 2. Add them.
6688 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6689 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6690 done
6691 LIBOBJS=$ac_libobjs
6692
6693 LTLIBOBJS=$ac_ltlibobjs
6694
6695
6696
6697 : ${CONFIG_STATUS=./config.status}
6698 ac_clean_files_save=$ac_clean_files
6699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6702 cat >$CONFIG_STATUS <<_ACEOF
6703 #! $SHELL
6704 # Generated by $as_me.
6705 # Run this file to recreate the current configuration.
6706 # Compiler output produced by configure, useful for debugging
6707 # configure, is in config.log if it exists.
6708
6709 debug=false
6710 ac_cs_recheck=false
6711 ac_cs_silent=false
6712 SHELL=\${CONFIG_SHELL-$SHELL}
6713 _ACEOF
6714
6715 cat >>$CONFIG_STATUS <<\_ACEOF
6716 ## --------------------- ##
6717 ## M4sh Initialization. ##
6718 ## --------------------- ##
6719
6720 # Be Bourne compatible
6721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6722 emulate sh
6723 NULLCMD=:
6724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6725 # is contrary to our usage. Disable this feature.
6726 alias -g '${1+"$@"}'='"$@"'
6727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6728 set -o posix
6729 fi
6730 DUALCASE=1; export DUALCASE # for MKS sh
6731
6732 # Support unset when possible.
6733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6734 as_unset=unset
6735 else
6736 as_unset=false
6737 fi
6738
6739
6740 # Work around bugs in pre-3.0 UWIN ksh.
6741 $as_unset ENV MAIL MAILPATH
6742 PS1='$ '
6743 PS2='> '
6744 PS4='+ '
6745
6746 # NLS nuisances.
6747 for as_var in \
6748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6750 LC_TELEPHONE LC_TIME
6751 do
6752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6753 eval $as_var=C; export $as_var
6754 else
6755 $as_unset $as_var
6756 fi
6757 done
6758
6759 # Required to use basename.
6760 if expr a : '\(a\)' >/dev/null 2>&1; then
6761 as_expr=expr
6762 else
6763 as_expr=false
6764 fi
6765
6766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6767 as_basename=basename
6768 else
6769 as_basename=false
6770 fi
6771
6772
6773 # Name of the executable.
6774 as_me=`$as_basename "$0" ||
6775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6776 X"$0" : 'X\(//\)$' \| \
6777 X"$0" : 'X\(/\)$' \| \
6778 . : '\(.\)' 2>/dev/null ||
6779 echo X/"$0" |
6780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6781 /^X\/\(\/\/\)$/{ s//\1/; q; }
6782 /^X\/\(\/\).*/{ s//\1/; q; }
6783 s/.*/./; q'`
6784
6785
6786 # PATH needs CR, and LINENO needs CR and PATH.
6787 # Avoid depending upon Character Ranges.
6788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6791 as_cr_digits='0123456789'
6792 as_cr_alnum=$as_cr_Letters$as_cr_digits
6793
6794 # The user is always right.
6795 if test "${PATH_SEPARATOR+set}" != set; then
6796 echo "#! /bin/sh" >conf$$.sh
6797 echo "exit 0" >>conf$$.sh
6798 chmod +x conf$$.sh
6799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6800 PATH_SEPARATOR=';'
6801 else
6802 PATH_SEPARATOR=:
6803 fi
6804 rm -f conf$$.sh
6805 fi
6806
6807
6808 as_lineno_1=$LINENO
6809 as_lineno_2=$LINENO
6810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6811 test "x$as_lineno_1" != "x$as_lineno_2" &&
6812 test "x$as_lineno_3" = "x$as_lineno_2" || {
6813 # Find who we are. Look in the path if we contain no path at all
6814 # relative or not.
6815 case $0 in
6816 *[\\/]* ) as_myself=$0 ;;
6817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6823 done
6824
6825 ;;
6826 esac
6827 # We did not find ourselves, most probably we were run as `sh COMMAND'
6828 # in which case we are not to be found in the path.
6829 if test "x$as_myself" = x; then
6830 as_myself=$0
6831 fi
6832 if test ! -f "$as_myself"; then
6833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6835 { (exit 1); exit 1; }; }
6836 fi
6837 case $CONFIG_SHELL in
6838 '')
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for as_base in sh bash ksh sh5; do
6845 case $as_dir in
6846 /*)
6847 if ("$as_dir/$as_base" -c '
6848 as_lineno_1=$LINENO
6849 as_lineno_2=$LINENO
6850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6851 test "x$as_lineno_1" != "x$as_lineno_2" &&
6852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6855 CONFIG_SHELL=$as_dir/$as_base
6856 export CONFIG_SHELL
6857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6858 fi;;
6859 esac
6860 done
6861 done
6862 ;;
6863 esac
6864
6865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6866 # uniformly replaced by the line number. The first 'sed' inserts a
6867 # line-number line before each line; the second 'sed' does the real
6868 # work. The second script uses 'N' to pair each line-number line
6869 # with the numbered line, and appends trailing '-' during
6870 # substitution so that $LINENO is not a special case at line end.
6871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6873 sed '=' <$as_myself |
6874 sed '
6875 N
6876 s,$,-,
6877 : loop
6878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6879 t loop
6880 s,-$,,
6881 s,^['$as_cr_digits']*\n,,
6882 ' >$as_me.lineno &&
6883 chmod +x $as_me.lineno ||
6884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6886 { (exit 1); exit 1; }; }
6887
6888 # Don't try to exec as it changes $[0], causing all sort of problems
6889 # (the dirname of $[0] is not the place where we might find the
6890 # original and so on. Autoconf is especially sensible to this).
6891 . ./$as_me.lineno
6892 # Exit status is that of the last command.
6893 exit
6894 }
6895
6896
6897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6898 *c*,-n*) ECHO_N= ECHO_C='
6899 ' ECHO_T=' ' ;;
6900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6902 esac
6903
6904 if expr a : '\(a\)' >/dev/null 2>&1; then
6905 as_expr=expr
6906 else
6907 as_expr=false
6908 fi
6909
6910 rm -f conf$$ conf$$.exe conf$$.file
6911 echo >conf$$.file
6912 if ln -s conf$$.file conf$$ 2>/dev/null; then
6913 # We could just check for DJGPP; but this test a) works b) is more generic
6914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6915 if test -f conf$$.exe; then
6916 # Don't use ln at all; we don't have any links
6917 as_ln_s='cp -p'
6918 else
6919 as_ln_s='ln -s'
6920 fi
6921 elif ln conf$$.file conf$$ 2>/dev/null; then
6922 as_ln_s=ln
6923 else
6924 as_ln_s='cp -p'
6925 fi
6926 rm -f conf$$ conf$$.exe conf$$.file
6927
6928 if mkdir -p . 2>/dev/null; then
6929 as_mkdir_p=:
6930 else
6931 test -d ./-p && rmdir ./-p
6932 as_mkdir_p=false
6933 fi
6934
6935 as_executable_p="test -f"
6936
6937 # Sed expression to map a string onto a valid CPP name.
6938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6939
6940 # Sed expression to map a string onto a valid variable name.
6941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6942
6943
6944 # IFS
6945 # We need space, tab and new line, in precisely that order.
6946 as_nl='
6947 '
6948 IFS=" $as_nl"
6949
6950 # CDPATH.
6951 $as_unset CDPATH
6952
6953 exec 6>&1
6954
6955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6956 # report actual input values of CONFIG_FILES etc. instead of their
6957 # values after options handling. Logging --version etc. is OK.
6958 exec 5>>config.log
6959 {
6960 echo
6961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6962 ## Running $as_me. ##
6963 _ASBOX
6964 } >&5
6965 cat >&5 <<_CSEOF
6966
6967 This file was extended by $as_me, which was
6968 generated by GNU Autoconf 2.59. Invocation command line was
6969
6970 CONFIG_FILES = $CONFIG_FILES
6971 CONFIG_HEADERS = $CONFIG_HEADERS
6972 CONFIG_LINKS = $CONFIG_LINKS
6973 CONFIG_COMMANDS = $CONFIG_COMMANDS
6974 $ $0 $@
6975
6976 _CSEOF
6977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6978 echo >&5
6979 _ACEOF
6980
6981 # Files that config.status was made for.
6982 if test -n "$ac_config_files"; then
6983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6984 fi
6985
6986 if test -n "$ac_config_headers"; then
6987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6988 fi
6989
6990 if test -n "$ac_config_links"; then
6991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6992 fi
6993
6994 if test -n "$ac_config_commands"; then
6995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6996 fi
6997
6998 cat >>$CONFIG_STATUS <<\_ACEOF
6999
7000 ac_cs_usage="\
7001 \`$as_me' instantiates files from templates according to the
7002 current configuration.
7003
7004 Usage: $0 [OPTIONS] [FILE]...
7005
7006 -h, --help print this help, then exit
7007 -V, --version print version number, then exit
7008 -q, --quiet do not print progress messages
7009 -d, --debug don't remove temporary files
7010 --recheck update $as_me by reconfiguring in the same conditions
7011 --file=FILE[:TEMPLATE]
7012 instantiate the configuration file FILE
7013 --header=FILE[:TEMPLATE]
7014 instantiate the configuration header FILE
7015
7016 Configuration files:
7017 $config_files
7018
7019 Configuration headers:
7020 $config_headers
7021
7022 Configuration commands:
7023 $config_commands
7024
7025 Report bugs to <bug-autoconf@gnu.org>."
7026 _ACEOF
7027
7028 cat >>$CONFIG_STATUS <<_ACEOF
7029 ac_cs_version="\\
7030 config.status
7031 configured by $0, generated by GNU Autoconf 2.59,
7032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7033
7034 Copyright (C) 2003 Free Software Foundation, Inc.
7035 This config.status script is free software; the Free Software Foundation
7036 gives unlimited permission to copy, distribute and modify it."
7037 srcdir=$srcdir
7038 INSTALL="$INSTALL"
7039 _ACEOF
7040
7041 cat >>$CONFIG_STATUS <<\_ACEOF
7042 # If no file are specified by the user, then we need to provide default
7043 # value. By we need to know if files were specified by the user.
7044 ac_need_defaults=:
7045 while test $# != 0
7046 do
7047 case $1 in
7048 --*=*)
7049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7051 ac_shift=:
7052 ;;
7053 -*)
7054 ac_option=$1
7055 ac_optarg=$2
7056 ac_shift=shift
7057 ;;
7058 *) # This is not an option, so the user has probably given explicit
7059 # arguments.
7060 ac_option=$1
7061 ac_need_defaults=false;;
7062 esac
7063
7064 case $ac_option in
7065 # Handling of the options.
7066 _ACEOF
7067 cat >>$CONFIG_STATUS <<\_ACEOF
7068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7069 ac_cs_recheck=: ;;
7070 --version | --vers* | -V )
7071 echo "$ac_cs_version"; exit 0 ;;
7072 --he | --h)
7073 # Conflict between --help and --header
7074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7075 Try \`$0 --help' for more information." >&5
7076 echo "$as_me: error: ambiguous option: $1
7077 Try \`$0 --help' for more information." >&2;}
7078 { (exit 1); exit 1; }; };;
7079 --help | --hel | -h )
7080 echo "$ac_cs_usage"; exit 0 ;;
7081 --debug | --d* | -d )
7082 debug=: ;;
7083 --file | --fil | --fi | --f )
7084 $ac_shift
7085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7086 ac_need_defaults=false;;
7087 --header | --heade | --head | --hea )
7088 $ac_shift
7089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7090 ac_need_defaults=false;;
7091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7093 ac_cs_silent=: ;;
7094
7095 # This is an error.
7096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7097 Try \`$0 --help' for more information." >&5
7098 echo "$as_me: error: unrecognized option: $1
7099 Try \`$0 --help' for more information." >&2;}
7100 { (exit 1); exit 1; }; } ;;
7101
7102 *) ac_config_targets="$ac_config_targets $1" ;;
7103
7104 esac
7105 shift
7106 done
7107
7108 ac_configure_extra_args=
7109
7110 if $ac_cs_silent; then
7111 exec 6>/dev/null
7112 ac_configure_extra_args="$ac_configure_extra_args --silent"
7113 fi
7114
7115 _ACEOF
7116 cat >>$CONFIG_STATUS <<_ACEOF
7117 if \$ac_cs_recheck; then
7118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7120 fi
7121
7122 _ACEOF
7123
7124 cat >>$CONFIG_STATUS <<_ACEOF
7125 #
7126 # INIT-COMMANDS section.
7127 #
7128
7129 srcdir=${srcdir}
7130 host=${host}
7131 target=${target}
7132 with_target_subdir=${with_target_subdir}
7133 with_build_subdir=${with_build_subdir}
7134 with_multisubdir=${with_multisubdir}
7135 ac_configure_args="--enable-multilib ${ac_configure_args}"
7136 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7137 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
7138 libiberty_topdir=${libiberty_topdir}
7139
7140
7141 _ACEOF
7142
7143
7144
7145 cat >>$CONFIG_STATUS <<\_ACEOF
7146 for ac_config_target in $ac_config_targets
7147 do
7148 case "$ac_config_target" in
7149 # Handling of arguments.
7150 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7151 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7152 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7153 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7156 { (exit 1); exit 1; }; };;
7157 esac
7158 done
7159
7160 # If the user did not use the arguments to specify the items to instantiate,
7161 # then the envvar interface is used. Set only those that are not.
7162 # We use the long form for the default assignment because of an extremely
7163 # bizarre bug on SunOS 4.1.3.
7164 if $ac_need_defaults; then
7165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7168 fi
7169
7170 # Have a temporary directory for convenience. Make it in the build tree
7171 # simply because there is no reason to put it here, and in addition,
7172 # creating and moving files from /tmp can sometimes cause problems.
7173 # Create a temporary directory, and hook for its removal unless debugging.
7174 $debug ||
7175 {
7176 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7177 trap '{ (exit 1); exit 1; }' 1 2 13 15
7178 }
7179
7180 # Create a (secure) tmp directory for tmp files.
7181
7182 {
7183 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7184 test -n "$tmp" && test -d "$tmp"
7185 } ||
7186 {
7187 tmp=./confstat$$-$RANDOM
7188 (umask 077 && mkdir $tmp)
7189 } ||
7190 {
7191 echo "$me: cannot create a temporary directory in ." >&2
7192 { (exit 1); exit 1; }
7193 }
7194
7195 _ACEOF
7196
7197 cat >>$CONFIG_STATUS <<_ACEOF
7198
7199 #
7200 # CONFIG_FILES section.
7201 #
7202
7203 # No need to generate the scripts if there are no CONFIG_FILES.
7204 # This happens for instance when ./config.status config.h
7205 if test -n "\$CONFIG_FILES"; then
7206 # Protect against being on the right side of a sed subst in config.status.
7207 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7208 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7209 s,@SHELL@,$SHELL,;t t
7210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7216 s,@exec_prefix@,$exec_prefix,;t t
7217 s,@prefix@,$prefix,;t t
7218 s,@program_transform_name@,$program_transform_name,;t t
7219 s,@bindir@,$bindir,;t t
7220 s,@sbindir@,$sbindir,;t t
7221 s,@libexecdir@,$libexecdir,;t t
7222 s,@datadir@,$datadir,;t t
7223 s,@sysconfdir@,$sysconfdir,;t t
7224 s,@sharedstatedir@,$sharedstatedir,;t t
7225 s,@localstatedir@,$localstatedir,;t t
7226 s,@libdir@,$libdir,;t t
7227 s,@includedir@,$includedir,;t t
7228 s,@oldincludedir@,$oldincludedir,;t t
7229 s,@infodir@,$infodir,;t t
7230 s,@mandir@,$mandir,;t t
7231 s,@build_alias@,$build_alias,;t t
7232 s,@host_alias@,$host_alias,;t t
7233 s,@target_alias@,$target_alias,;t t
7234 s,@DEFS@,$DEFS,;t t
7235 s,@ECHO_C@,$ECHO_C,;t t
7236 s,@ECHO_N@,$ECHO_N,;t t
7237 s,@ECHO_T@,$ECHO_T,;t t
7238 s,@LIBS@,$LIBS,;t t
7239 s,@libiberty_topdir@,$libiberty_topdir,;t t
7240 s,@MAINT@,$MAINT,;t t
7241 s,@NOTMAINT@,$NOTMAINT,;t t
7242 s,@MAKEINFO@,$MAKEINFO,;t t
7243 s,@BUILD_INFO@,$BUILD_INFO,;t t
7244 s,@PERL@,$PERL,;t t
7245 s,@HAVE_PERL@,$HAVE_PERL,;t t
7246 s,@build@,$build,;t t
7247 s,@build_cpu@,$build_cpu,;t t
7248 s,@build_vendor@,$build_vendor,;t t
7249 s,@build_os@,$build_os,;t t
7250 s,@host@,$host,;t t
7251 s,@host_cpu@,$host_cpu,;t t
7252 s,@host_vendor@,$host_vendor,;t t
7253 s,@host_os@,$host_os,;t t
7254 s,@AR@,$AR,;t t
7255 s,@ac_ct_AR@,$ac_ct_AR,;t t
7256 s,@RANLIB@,$RANLIB,;t t
7257 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7258 s,@CC@,$CC,;t t
7259 s,@CFLAGS@,$CFLAGS,;t t
7260 s,@LDFLAGS@,$LDFLAGS,;t t
7261 s,@CPPFLAGS@,$CPPFLAGS,;t t
7262 s,@ac_ct_CC@,$ac_ct_CC,;t t
7263 s,@EXEEXT@,$EXEEXT,;t t
7264 s,@OBJEXT@,$OBJEXT,;t t
7265 s,@CPP@,$CPP,;t t
7266 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
7267 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
7268 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
7269 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7270 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7271 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7272 s,@EGREP@,$EGREP,;t t
7273 s,@LIBOBJS@,$LIBOBJS,;t t
7274 s,@CHECK@,$CHECK,;t t
7275 s,@target_header_dir@,$target_header_dir,;t t
7276 s,@pexecute@,$pexecute,;t t
7277 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
7278 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7279 /@host_makefile_frag@/r $host_makefile_frag
7280 s,@host_makefile_frag@,,;t t
7281 CEOF
7282
7283 _ACEOF
7284
7285 cat >>$CONFIG_STATUS <<\_ACEOF
7286 # Split the substitutions into bite-sized pieces for seds with
7287 # small command number limits, like on Digital OSF/1 and HP-UX.
7288 ac_max_sed_lines=48
7289 ac_sed_frag=1 # Number of current file.
7290 ac_beg=1 # First line for current file.
7291 ac_end=$ac_max_sed_lines # Line after last line for current file.
7292 ac_more_lines=:
7293 ac_sed_cmds=
7294 while $ac_more_lines; do
7295 if test $ac_beg -gt 1; then
7296 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7297 else
7298 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7299 fi
7300 if test ! -s $tmp/subs.frag; then
7301 ac_more_lines=false
7302 else
7303 # The purpose of the label and of the branching condition is to
7304 # speed up the sed processing (if there are no `@' at all, there
7305 # is no need to browse any of the substitutions).
7306 # These are the two extra sed commands mentioned above.
7307 (echo ':t
7308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7309 if test -z "$ac_sed_cmds"; then
7310 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7311 else
7312 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7313 fi
7314 ac_sed_frag=`expr $ac_sed_frag + 1`
7315 ac_beg=$ac_end
7316 ac_end=`expr $ac_end + $ac_max_sed_lines`
7317 fi
7318 done
7319 if test -z "$ac_sed_cmds"; then
7320 ac_sed_cmds=cat
7321 fi
7322 fi # test -n "$CONFIG_FILES"
7323
7324 _ACEOF
7325 cat >>$CONFIG_STATUS <<\_ACEOF
7326 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7328 case $ac_file in
7329 - | *:- | *:-:* ) # input from stdin
7330 cat >$tmp/stdin
7331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7335 * ) ac_file_in=$ac_file.in ;;
7336 esac
7337
7338 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7341 X"$ac_file" : 'X\(//\)[^/]' \| \
7342 X"$ac_file" : 'X\(//\)$' \| \
7343 X"$ac_file" : 'X\(/\)' \| \
7344 . : '\(.\)' 2>/dev/null ||
7345 echo X"$ac_file" |
7346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7348 /^X\(\/\/\)$/{ s//\1/; q; }
7349 /^X\(\/\).*/{ s//\1/; q; }
7350 s/.*/./; q'`
7351 { if $as_mkdir_p; then
7352 mkdir -p "$ac_dir"
7353 else
7354 as_dir="$ac_dir"
7355 as_dirs=
7356 while test ! -d "$as_dir"; do
7357 as_dirs="$as_dir $as_dirs"
7358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7360 X"$as_dir" : 'X\(//\)[^/]' \| \
7361 X"$as_dir" : 'X\(//\)$' \| \
7362 X"$as_dir" : 'X\(/\)' \| \
7363 . : '\(.\)' 2>/dev/null ||
7364 echo X"$as_dir" |
7365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7367 /^X\(\/\/\)$/{ s//\1/; q; }
7368 /^X\(\/\).*/{ s//\1/; q; }
7369 s/.*/./; q'`
7370 done
7371 test ! -n "$as_dirs" || mkdir $as_dirs
7372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7374 { (exit 1); exit 1; }; }; }
7375
7376 ac_builddir=.
7377
7378 if test "$ac_dir" != .; then
7379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7380 # A "../" for each directory in $ac_dir_suffix.
7381 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7382 else
7383 ac_dir_suffix= ac_top_builddir=
7384 fi
7385
7386 case $srcdir in
7387 .) # No --srcdir option. We are building in place.
7388 ac_srcdir=.
7389 if test -z "$ac_top_builddir"; then
7390 ac_top_srcdir=.
7391 else
7392 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7393 fi ;;
7394 [\\/]* | ?:[\\/]* ) # Absolute path.
7395 ac_srcdir=$srcdir$ac_dir_suffix;
7396 ac_top_srcdir=$srcdir ;;
7397 *) # Relative path.
7398 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7399 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7400 esac
7401
7402 # Do not use `cd foo && pwd` to compute absolute paths, because
7403 # the directories may not exist.
7404 case `pwd` in
7405 .) ac_abs_builddir="$ac_dir";;
7406 *)
7407 case "$ac_dir" in
7408 .) ac_abs_builddir=`pwd`;;
7409 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7410 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7411 esac;;
7412 esac
7413 case $ac_abs_builddir in
7414 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7415 *)
7416 case ${ac_top_builddir}. in
7417 .) ac_abs_top_builddir=$ac_abs_builddir;;
7418 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7419 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7420 esac;;
7421 esac
7422 case $ac_abs_builddir in
7423 .) ac_abs_srcdir=$ac_srcdir;;
7424 *)
7425 case $ac_srcdir in
7426 .) ac_abs_srcdir=$ac_abs_builddir;;
7427 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7428 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7429 esac;;
7430 esac
7431 case $ac_abs_builddir in
7432 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7433 *)
7434 case $ac_top_srcdir in
7435 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7436 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7437 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7438 esac;;
7439 esac
7440
7441
7442 case $INSTALL in
7443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7444 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7445 esac
7446
7447 if test x"$ac_file" != x-; then
7448 { echo "$as_me:$LINENO: creating $ac_file" >&5
7449 echo "$as_me: creating $ac_file" >&6;}
7450 rm -f "$ac_file"
7451 fi
7452 # Let's still pretend it is `configure' which instantiates (i.e., don't
7453 # use $as_me), people would be surprised to read:
7454 # /* config.h. Generated by config.status. */
7455 if test x"$ac_file" = x-; then
7456 configure_input=
7457 else
7458 configure_input="$ac_file. "
7459 fi
7460 configure_input=$configure_input"Generated from `echo $ac_file_in |
7461 sed 's,.*/,,'` by configure."
7462
7463 # First look for the input files in the build tree, otherwise in the
7464 # src tree.
7465 ac_file_inputs=`IFS=:
7466 for f in $ac_file_in; do
7467 case $f in
7468 -) echo $tmp/stdin ;;
7469 [\\/$]*)
7470 # Absolute (can't be DOS-style, as IFS=:)
7471 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7472 echo "$as_me: error: cannot find input file: $f" >&2;}
7473 { (exit 1); exit 1; }; }
7474 echo "$f";;
7475 *) # Relative
7476 if test -f "$f"; then
7477 # Build tree
7478 echo "$f"
7479 elif test -f "$srcdir/$f"; then
7480 # Source tree
7481 echo "$srcdir/$f"
7482 else
7483 # /dev/null tree
7484 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7485 echo "$as_me: error: cannot find input file: $f" >&2;}
7486 { (exit 1); exit 1; }; }
7487 fi;;
7488 esac
7489 done` || { (exit 1); exit 1; }
7490 _ACEOF
7491 cat >>$CONFIG_STATUS <<_ACEOF
7492 sed "$ac_vpsub
7493 $extrasub
7494 _ACEOF
7495 cat >>$CONFIG_STATUS <<\_ACEOF
7496 :t
7497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7498 s,@configure_input@,$configure_input,;t t
7499 s,@srcdir@,$ac_srcdir,;t t
7500 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7501 s,@top_srcdir@,$ac_top_srcdir,;t t
7502 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7503 s,@builddir@,$ac_builddir,;t t
7504 s,@abs_builddir@,$ac_abs_builddir,;t t
7505 s,@top_builddir@,$ac_top_builddir,;t t
7506 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7507 s,@INSTALL@,$ac_INSTALL,;t t
7508 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7509 rm -f $tmp/stdin
7510 if test x"$ac_file" != x-; then
7511 mv $tmp/out $ac_file
7512 else
7513 cat $tmp/out
7514 rm -f $tmp/out
7515 fi
7516
7517 done
7518 _ACEOF
7519 cat >>$CONFIG_STATUS <<\_ACEOF
7520
7521 #
7522 # CONFIG_HEADER section.
7523 #
7524
7525 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7526 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7527 #
7528 # ac_d sets the value in "#define NAME VALUE" lines.
7529 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7530 ac_dB='[ ].*$,\1#\2'
7531 ac_dC=' '
7532 ac_dD=',;t'
7533 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7534 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7535 ac_uB='$,\1#\2define\3'
7536 ac_uC=' '
7537 ac_uD=',;t'
7538
7539 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7540 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7541 case $ac_file in
7542 - | *:- | *:-:* ) # input from stdin
7543 cat >$tmp/stdin
7544 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7546 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7548 * ) ac_file_in=$ac_file.in ;;
7549 esac
7550
7551 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7552 echo "$as_me: creating $ac_file" >&6;}
7553
7554 # First look for the input files in the build tree, otherwise in the
7555 # src tree.
7556 ac_file_inputs=`IFS=:
7557 for f in $ac_file_in; do
7558 case $f in
7559 -) echo $tmp/stdin ;;
7560 [\\/$]*)
7561 # Absolute (can't be DOS-style, as IFS=:)
7562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7563 echo "$as_me: error: cannot find input file: $f" >&2;}
7564 { (exit 1); exit 1; }; }
7565 # Do quote $f, to prevent DOS paths from being IFS'd.
7566 echo "$f";;
7567 *) # Relative
7568 if test -f "$f"; then
7569 # Build tree
7570 echo "$f"
7571 elif test -f "$srcdir/$f"; then
7572 # Source tree
7573 echo "$srcdir/$f"
7574 else
7575 # /dev/null tree
7576 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7577 echo "$as_me: error: cannot find input file: $f" >&2;}
7578 { (exit 1); exit 1; }; }
7579 fi;;
7580 esac
7581 done` || { (exit 1); exit 1; }
7582 # Remove the trailing spaces.
7583 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7584
7585 _ACEOF
7586
7587 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7588 # `conftest.undefs', that substitutes the proper values into
7589 # config.h.in to produce config.h. The first handles `#define'
7590 # templates, and the second `#undef' templates.
7591 # And first: Protect against being on the right side of a sed subst in
7592 # config.status. Protect against being in an unquoted here document
7593 # in config.status.
7594 rm -f conftest.defines conftest.undefs
7595 # Using a here document instead of a string reduces the quoting nightmare.
7596 # Putting comments in sed scripts is not portable.
7597 #
7598 # `end' is used to avoid that the second main sed command (meant for
7599 # 0-ary CPP macros) applies to n-ary macro definitions.
7600 # See the Autoconf documentation for `clear'.
7601 cat >confdef2sed.sed <<\_ACEOF
7602 s/[\\&,]/\\&/g
7603 s,[\\$`],\\&,g
7604 t clear
7605 : clear
7606 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7607 t end
7608 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7609 : end
7610 _ACEOF
7611 # If some macros were called several times there might be several times
7612 # the same #defines, which is useless. Nevertheless, we may not want to
7613 # sort them, since we want the *last* AC-DEFINE to be honored.
7614 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7615 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7616 rm -f confdef2sed.sed
7617
7618 # This sed command replaces #undef with comments. This is necessary, for
7619 # example, in the case of _POSIX_SOURCE, which is predefined and required
7620 # on some systems where configure will not decide to define it.
7621 cat >>conftest.undefs <<\_ACEOF
7622 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7623 _ACEOF
7624
7625 # Break up conftest.defines because some shells have a limit on the size
7626 # of here documents, and old seds have small limits too (100 cmds).
7627 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7628 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7629 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7630 echo ' :' >>$CONFIG_STATUS
7631 rm -f conftest.tail
7632 while grep . conftest.defines >/dev/null
7633 do
7634 # Write a limited-size here document to $tmp/defines.sed.
7635 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7636 # Speed up: don't consider the non `#define' lines.
7637 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7638 # Work around the forget-to-reset-the-flag bug.
7639 echo 't clr' >>$CONFIG_STATUS
7640 echo ': clr' >>$CONFIG_STATUS
7641 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7642 echo 'CEOF
7643 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7644 rm -f $tmp/in
7645 mv $tmp/out $tmp/in
7646 ' >>$CONFIG_STATUS
7647 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7648 rm -f conftest.defines
7649 mv conftest.tail conftest.defines
7650 done
7651 rm -f conftest.defines
7652 echo ' fi # grep' >>$CONFIG_STATUS
7653 echo >>$CONFIG_STATUS
7654
7655 # Break up conftest.undefs because some shells have a limit on the size
7656 # of here documents, and old seds have small limits too (100 cmds).
7657 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7658 rm -f conftest.tail
7659 while grep . conftest.undefs >/dev/null
7660 do
7661 # Write a limited-size here document to $tmp/undefs.sed.
7662 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7663 # Speed up: don't consider the non `#undef'
7664 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7665 # Work around the forget-to-reset-the-flag bug.
7666 echo 't clr' >>$CONFIG_STATUS
7667 echo ': clr' >>$CONFIG_STATUS
7668 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7669 echo 'CEOF
7670 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7671 rm -f $tmp/in
7672 mv $tmp/out $tmp/in
7673 ' >>$CONFIG_STATUS
7674 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7675 rm -f conftest.undefs
7676 mv conftest.tail conftest.undefs
7677 done
7678 rm -f conftest.undefs
7679
7680 cat >>$CONFIG_STATUS <<\_ACEOF
7681 # Let's still pretend it is `configure' which instantiates (i.e., don't
7682 # use $as_me), people would be surprised to read:
7683 # /* config.h. Generated by config.status. */
7684 if test x"$ac_file" = x-; then
7685 echo "/* Generated by configure. */" >$tmp/config.h
7686 else
7687 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7688 fi
7689 cat $tmp/in >>$tmp/config.h
7690 rm -f $tmp/in
7691 if test x"$ac_file" != x-; then
7692 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7693 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7694 echo "$as_me: $ac_file is unchanged" >&6;}
7695 else
7696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7698 X"$ac_file" : 'X\(//\)[^/]' \| \
7699 X"$ac_file" : 'X\(//\)$' \| \
7700 X"$ac_file" : 'X\(/\)' \| \
7701 . : '\(.\)' 2>/dev/null ||
7702 echo X"$ac_file" |
7703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7705 /^X\(\/\/\)$/{ s//\1/; q; }
7706 /^X\(\/\).*/{ s//\1/; q; }
7707 s/.*/./; q'`
7708 { if $as_mkdir_p; then
7709 mkdir -p "$ac_dir"
7710 else
7711 as_dir="$ac_dir"
7712 as_dirs=
7713 while test ! -d "$as_dir"; do
7714 as_dirs="$as_dir $as_dirs"
7715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7717 X"$as_dir" : 'X\(//\)[^/]' \| \
7718 X"$as_dir" : 'X\(//\)$' \| \
7719 X"$as_dir" : 'X\(/\)' \| \
7720 . : '\(.\)' 2>/dev/null ||
7721 echo X"$as_dir" |
7722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7724 /^X\(\/\/\)$/{ s//\1/; q; }
7725 /^X\(\/\).*/{ s//\1/; q; }
7726 s/.*/./; q'`
7727 done
7728 test ! -n "$as_dirs" || mkdir $as_dirs
7729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7731 { (exit 1); exit 1; }; }; }
7732
7733 rm -f $ac_file
7734 mv $tmp/config.h $ac_file
7735 fi
7736 else
7737 cat $tmp/config.h
7738 rm -f $tmp/config.h
7739 fi
7740 done
7741 _ACEOF
7742 cat >>$CONFIG_STATUS <<\_ACEOF
7743
7744 #
7745 # CONFIG_COMMANDS section.
7746 #
7747 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7748 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7749 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7750 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7752 X"$ac_dest" : 'X\(//\)[^/]' \| \
7753 X"$ac_dest" : 'X\(//\)$' \| \
7754 X"$ac_dest" : 'X\(/\)' \| \
7755 . : '\(.\)' 2>/dev/null ||
7756 echo X"$ac_dest" |
7757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7759 /^X\(\/\/\)$/{ s//\1/; q; }
7760 /^X\(\/\).*/{ s//\1/; q; }
7761 s/.*/./; q'`
7762 { if $as_mkdir_p; then
7763 mkdir -p "$ac_dir"
7764 else
7765 as_dir="$ac_dir"
7766 as_dirs=
7767 while test ! -d "$as_dir"; do
7768 as_dirs="$as_dir $as_dirs"
7769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$as_dir" : 'X\(//\)[^/]' \| \
7772 X"$as_dir" : 'X\(//\)$' \| \
7773 X"$as_dir" : 'X\(/\)' \| \
7774 . : '\(.\)' 2>/dev/null ||
7775 echo X"$as_dir" |
7776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7778 /^X\(\/\/\)$/{ s//\1/; q; }
7779 /^X\(\/\).*/{ s//\1/; q; }
7780 s/.*/./; q'`
7781 done
7782 test ! -n "$as_dirs" || mkdir $as_dirs
7783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7785 { (exit 1); exit 1; }; }; }
7786
7787 ac_builddir=.
7788
7789 if test "$ac_dir" != .; then
7790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7791 # A "../" for each directory in $ac_dir_suffix.
7792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7793 else
7794 ac_dir_suffix= ac_top_builddir=
7795 fi
7796
7797 case $srcdir in
7798 .) # No --srcdir option. We are building in place.
7799 ac_srcdir=.
7800 if test -z "$ac_top_builddir"; then
7801 ac_top_srcdir=.
7802 else
7803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7804 fi ;;
7805 [\\/]* | ?:[\\/]* ) # Absolute path.
7806 ac_srcdir=$srcdir$ac_dir_suffix;
7807 ac_top_srcdir=$srcdir ;;
7808 *) # Relative path.
7809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7811 esac
7812
7813 # Do not use `cd foo && pwd` to compute absolute paths, because
7814 # the directories may not exist.
7815 case `pwd` in
7816 .) ac_abs_builddir="$ac_dir";;
7817 *)
7818 case "$ac_dir" in
7819 .) ac_abs_builddir=`pwd`;;
7820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7822 esac;;
7823 esac
7824 case $ac_abs_builddir in
7825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7826 *)
7827 case ${ac_top_builddir}. in
7828 .) ac_abs_top_builddir=$ac_abs_builddir;;
7829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7831 esac;;
7832 esac
7833 case $ac_abs_builddir in
7834 .) ac_abs_srcdir=$ac_srcdir;;
7835 *)
7836 case $ac_srcdir in
7837 .) ac_abs_srcdir=$ac_abs_builddir;;
7838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7840 esac;;
7841 esac
7842 case $ac_abs_builddir in
7843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7844 *)
7845 case $ac_top_srcdir in
7846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7849 esac;;
7850 esac
7851
7852
7853 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7854 echo "$as_me: executing $ac_dest commands" >&6;}
7855 case $ac_dest in
7856 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7857 if test -n "$CONFIG_FILES"; then
7858 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
7859 # FIXME: We shouldn't need to set ac_file
7860 ac_file=Makefile
7861 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7862 . ${libiberty_topdir}/config-ml.in
7863 fi
7864 fi ;;
7865 esac
7866 done
7867 _ACEOF
7868
7869 cat >>$CONFIG_STATUS <<\_ACEOF
7870
7871 { (exit 0); exit 0; }
7872 _ACEOF
7873 chmod +x $CONFIG_STATUS
7874 ac_clean_files=$ac_clean_files_save
7875
7876
7877 # configure is writing to config.log, and then calls config.status.
7878 # config.status does its own redirection, appending to config.log.
7879 # Unfortunately, on DOS this fails, as config.log is still kept open
7880 # by configure, so config.status won't be able to write to it; its
7881 # output is simply discarded. So we exec the FD to /dev/null,
7882 # effectively closing config.log, so it can be properly (re)opened and
7883 # appended to by config.status. When coming back to configure, we
7884 # need to make the FD available again.
7885 if test "$no_create" != yes; then
7886 ac_cs_success=:
7887 ac_config_status_args=
7888 test "$silent" = yes &&
7889 ac_config_status_args="$ac_config_status_args --quiet"
7890 exec 5>/dev/null
7891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7892 exec 5>>config.log
7893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7894 # would make configure fail if this is the last instruction.
7895 $ac_cs_success || { (exit 1); exit 1; }
7896 fi
7897
This page took 0.210977 seconds and 5 git commands to generate.