* Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
[deliverable/binutils-gdb.git] / bfd / 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="libbfd.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings Enable build-time compiler warnings
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866 --enable-install-libbfd controls installation of libbfd and related headers
867 --disable-nls do not use Native Language Support
868
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-mmap try using mmap for BFD input files if available
875 --with-included-gettext use the GNU gettext library included here
876
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904 ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
927 *)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
945 *)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960 esac
961
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
977 cd $ac_popdir
978 done
979 fi
980
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983 cat <<\_ACEOF
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
998
999 $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115 {
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128 }
1129 echo
1130
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 ac_aux_dir=
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341 done
1342 if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346 fi
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388 ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433 ac_ext=c
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474 fi
1475 if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478 set dummy gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512 CC=$ac_ct_CC
1513 else
1514 CC="$ac_cv_prog_CC"
1515 fi
1516
1517 if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520 set dummy ${ac_tool_prefix}cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554 fi
1555 if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578 done
1579 done
1580
1581 fi
1582 fi
1583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584 if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586 echo "${ECHO_T}$ac_ct_CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1590 fi
1591
1592 CC=$ac_ct_CC
1593 else
1594 CC="$ac_cv_prog_CC"
1595 fi
1596
1597 fi
1598 if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600 set dummy cc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609 ac_prog_rejected=no
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 done
1627
1628 if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 fi
1639 fi
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 test -n "$CC" && break
1692 done
1693 fi
1694 if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697 do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719 done
1720 done
1721
1722 fi
1723 fi
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1728 else
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733 test -n "$ac_ct_CC" && break
1734 done
1735
1736 CC=$ac_ct_CC
1737 fi
1738
1739 fi
1740
1741
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h. */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h. */
1774
1775 int
1776 main ()
1777 {
1778
1779 ;
1780 return 0;
1781 }
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1799
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805 do
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1837 fi
1838
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1842
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869 fi
1870 fi
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1873
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1882
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903 done
1904 else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910 fi
1911
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 cat >conftest.$ac_ext <<_ACEOF
1925 /* confdefs.h. */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1930
1931 int
1932 main ()
1933 {
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.o conftest.obj
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951 done
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1961 fi
1962
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1968 ac_objext=$OBJEXT
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1980
1981 int
1982 main ()
1983 {
1984 #ifndef __GNUC__
1985 choke me
1986 #endif
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_compiler_gnu=no
2020 fi
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024 fi
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h. */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2042
2043 int
2044 main ()
2045 {
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_cv_prog_cc_g=no
2079 fi
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092 else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098 fi
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_cv_prog_cc_stdc=no
2105 ac_save_CC=$CC
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2112 #include <stdarg.h>
2113 #include <stdio.h>
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120 char **p;
2121 int i;
2122 {
2123 return p[i];
2124 }
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2126 {
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133 }
2134
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 int argc;
2149 char **argv;
2150 int
2151 main ()
2152 {
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.err conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220 choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252 do
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259 $ac_declaration
2260 #include <stdlib.h>
2261 int
2262 main ()
2263 {
2264 exit (42);
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 continue
2297 fi
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2305 $ac_declaration
2306 int
2307 main ()
2308 {
2309 exit (42);
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 fi
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 rm -f conftest*
2345 if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349 fi
2350
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366 if test "${ac_cv_search_strerror+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 ac_func_search_save_LIBS=$LIBS
2370 ac_cv_search_strerror=no
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 #ifdef __cplusplus
2380 extern "C"
2381 #endif
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384 char strerror ();
2385 int
2386 main ()
2387 {
2388 strerror ();
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_search_strerror="none required"
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
2423 if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 #ifdef __cplusplus
2435 extern "C"
2436 #endif
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char strerror ();
2440 int
2441 main ()
2442 {
2443 strerror ();
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471 break
2472 else
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 fi
2477 rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
2480 fi
2481 LIBS=$ac_func_search_save_LIBS
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485 if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2487
2488 fi
2489
2490
2491 am__api_version="1.9"
2492 # Find a good install program. We prefer a C program (faster),
2493 # so one script is as good as another. But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529 if test $ac_prog = install &&
2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # AIX install. It has an incompatible calling convention.
2532 :
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
2537 else
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2540 fi
2541 fi
2542 done
2543 done
2544 ;;
2545 esac
2546 done
2547
2548
2549 fi
2550 if test "${ac_cv_path_install+set}" = set; then
2551 INSTALL=$ac_cv_path_install
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
2557 INSTALL=$ac_install_sh
2558 fi
2559 fi
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2562
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t $srcdir/configure conftest.file`
2586 fi
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2600 fi
2601
2602 test "$2" = conftest.file
2603 )
2604 then
2605 # Ok.
2606 :
2607 else
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2613 fi
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $. echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2625 _ACEOF
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627 rm conftest.sed
2628
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636 else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 fi
2641
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658 else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2664 do
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2672 fi
2673 fi
2674
2675 for ac_prog in gawk mawk nawk awk
2676 do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700
2701 fi
2702 fi
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710 fi
2711
2712 test -n "$AWK" && break
2713 done
2714
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 all:
2723 @echo 'ac_maketemp="$(MAKE)"'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729 else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2731 fi
2732 rm -f conftest.make
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 SET_MAKE=
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741 SET_MAKE="MAKE=${MAKE-make}"
2742 fi
2743
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2750 fi
2751 rmdir .tst 2>/dev/null
2752
2753 DEPDIR="${am__leading_dot}deps"
2754
2755 ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2760 am__doit:
2761 @echo done
2762 .PHONY: am__doit
2763 END
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767 am__include="#"
2768 am__quote=
2769 _am_result=none
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2781 fi
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2789 fi
2790 fi
2791
2792
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2796
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2800
2801 fi;
2802 if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2805 fi
2806
2807
2808 if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811 else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2814 fi
2815
2816
2817
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2832 fi
2833 fi
2834
2835
2836 # Define the identity of the package.
2837 PACKAGE=bfd
2838 VERSION=2.16.90
2839
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2844
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2849
2850 # Some tools Automake needs.
2851
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2867
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'. However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897
2898 fi
2899 fi
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2907 fi
2908
2909 fi
2910 if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 fi
2938 fi
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 fi
2947
2948 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2951 fi
2952
2953 fi
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956 # We need awk for the "check" target. The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2959
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
2964
2965
2966
2967 depcc="$CC" am_compiler_list=
2968
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2992
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996 fi
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3001 #
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3048 fi
3049 fi
3050 done
3051
3052 cd ..
3053 rm -rf conftest.dir
3054 else
3055 am_cv_CC_dependencies_compiler_type=none
3056 fi
3057
3058 fi
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3062
3063
3064
3065 if
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
3070 else
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
3073 fi
3074
3075
3076
3077
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}ar; ac_word=$2
3081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083 if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102
3103 fi
3104 fi
3105 AR=$ac_cv_prog_AR
3106 if test -n "$AR"; then
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108 echo "${ECHO_T}$AR" >&6
3109 else
3110 echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3112 fi
3113
3114 fi
3115 if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118 set dummy ar; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138 done
3139 done
3140
3141 fi
3142 fi
3143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144 if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146 echo "${ECHO_T}$ac_ct_AR" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 fi
3151
3152 AR=$ac_ct_AR
3153 else
3154 AR="$ac_cv_prog_AR"
3155 fi
3156
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181
3182 fi
3183 fi
3184 RANLIB=$ac_cv_prog_RANLIB
3185 if test -n "$RANLIB"; then
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187 echo "${ECHO_T}$RANLIB" >&6
3188 else
3189 echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3191 fi
3192
3193 fi
3194 if test -z "$ac_cv_prog_RANLIB"; then
3195 ac_ct_RANLIB=$RANLIB
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197 set dummy ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3221 fi
3222 fi
3223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224 if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3227 else
3228 echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3230 fi
3231
3232 RANLIB=$ac_ct_RANLIB
3233 else
3234 RANLIB="$ac_cv_prog_RANLIB"
3235 fi
3236
3237
3238 # Check whether --enable-shared or --disable-shared was given.
3239 if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
3242 case $enableval in
3243 yes) enable_shared=yes ;;
3244 no) enable_shared=no ;;
3245 *)
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$ac_save_ifs"
3255 ;;
3256 esac
3257 else
3258 enable_shared=no
3259 fi;
3260
3261 # Check whether --enable-static or --disable-static was given.
3262 if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
3265 case $enableval in
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3268 *)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 ;;
3279 esac
3280 else
3281 enable_static=yes
3282 fi;
3283 # Check whether --enable-fast-install or --disable-fast-install was given.
3284 if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
3287 case $enableval in
3288 yes) enable_fast_install=yes ;;
3289 no) enable_fast_install=no ;;
3290 *)
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3297 fi
3298 done
3299 IFS="$ac_save_ifs"
3300 ;;
3301 esac
3302 else
3303 enable_fast_install=yes
3304 fi;
3305
3306 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3307 if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310 else
3311 with_gnu_ld=no
3312 fi;
3313 ac_prog=ld
3314 if test "$GCC" = yes; then
3315 # Check if gcc -print-prog-name=ld gives a path.
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322 *)
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
3325 case $ac_prog in
3326 # Accept absolute paths.
3327 [\\/]* | [A-Za-z]:[\\/]*)
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3335 ;;
3336 "")
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3339 ;;
3340 *)
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3343 ;;
3344 esac
3345 elif test "$with_gnu_ld" = yes; then
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3348 else
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3351 fi
3352 if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test -z "$LD"; then
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360 lt_cv_path_LD="$ac_dir/$ac_prog"
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3365 test "$with_gnu_ld" != no && break
3366 else
3367 test "$with_gnu_ld" != yes && break
3368 fi
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372 else
3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3374 fi
3375 fi
3376
3377 LD="$lt_cv_path_LD"
3378 if test -n "$LD"; then
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380 echo "${ECHO_T}$LD" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3395 lt_cv_prog_gnu_ld=yes
3396 else
3397 lt_cv_prog_gnu_ld=no
3398 fi
3399 fi
3400 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3402 with_gnu_ld=$lt_cv_prog_gnu_ld
3403
3404
3405 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407 if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 lt_cv_ld_reload_flag='-r'
3411 fi
3412 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3414 reload_flag=$lt_cv_ld_reload_flag
3415 test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
3417 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419 if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
3424 lt_cv_path_NM="$NM"
3425 else
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3428 test -z "$ac_dir" && ac_dir=.
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3436 lt_cv_path_NM="$tmp_nm -B"
3437 break
3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3439 lt_cv_path_NM="$tmp_nm -p"
3440 break
3441 else
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3444 fi
3445 fi
3446 done
3447 IFS="$ac_save_ifs"
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3449 fi
3450 fi
3451
3452 NM="$lt_cv_path_NM"
3453 echo "$as_me:$LINENO: result: $NM" >&5
3454 echo "${ECHO_T}$NM" >&6
3455
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 LN_S=$as_ln_s
3459 if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 else
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3465 fi
3466
3467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [regex]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given egrep regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3485
3486 case $host_os in
3487 aix*)
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
3491 beos*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495 bsdi4*)
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3499 ;;
3500
3501 cygwin* | mingw* |pw32*)
3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
3504 ;;
3505
3506 darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3508 lt_cv_file_magic_cmd='/usr/bin/file -L'
3509 case "$host_os" in
3510 rhapsody* | darwin1.012)
3511 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3512 ;;
3513 *) # Darwin 1.3 on
3514 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3515 ;;
3516 esac
3517 ;;
3518
3519 freebsd* | kfreebsd*-gnu)
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521 case $host_cpu in
3522 i*86 )
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 ;;
3529 esac
3530 else
3531 lt_cv_deplibs_check_method=pass_all
3532 fi
3533 ;;
3534
3535 gnu*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
3539 hpux10.20*|hpux11*)
3540 case $host_cpu in
3541 hppa*)
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545 ;;
3546 ia64*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 ;;
3551 esac
3552 ;;
3553
3554 irix5* | irix6*)
3555 case $host_os in
3556 irix5*)
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3559 ;;
3560 *)
3561 case $LD in
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3566 esac
3567 # this will be overridden with pass_all, but let us keep it just in case
3568 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3569 ;;
3570 esac
3571 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575 # This must be Linux ELF.
3576 linux-gnu*)
3577 case $host_cpu in
3578 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3579 lt_cv_deplibs_check_method=pass_all ;;
3580 *)
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3583 esac
3584 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585 ;;
3586
3587 netbsd* | knetbsd*-gnu)
3588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3590 else
3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592 fi
3593 ;;
3594
3595 newsos6)
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3599 ;;
3600
3601 osf3* | osf4* | osf5*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604 lt_cv_file_magic_test_file=/shlib/libc.so
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608 sco3.2v5*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612 solaris*)
3613 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_test_file=/lib/libc.so
3615 ;;
3616
3617 sysv5uw[78]* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
3621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3622 case $host_vendor in
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 motorola)
3627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3629 ;;
3630 esac
3631 ;;
3632 esac
3633
3634 fi
3635 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3637 file_magic_cmd=$lt_cv_file_magic_cmd
3638 deplibs_check_method=$lt_cv_deplibs_check_method
3639
3640
3641
3642
3643 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3644
3645 # Only perform the check for file, if the check method requires it
3646 case $deplibs_check_method in
3647 file_magic*)
3648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3649 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654 case $MAGIC_CMD in
3655 /*)
3656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3657 ;;
3658 ?:/*)
3659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3660 ;;
3661 *)
3662 ac_save_MAGIC_CMD="$MAGIC_CMD"
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="/usr/bin:$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/${ac_tool_prefix}file; then
3668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3669 if test -n "$file_magic_test_file"; then
3670 case $deplibs_check_method in
3671 "file_magic "*)
3672 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675 egrep "$file_magic_regex" > /dev/null; then
3676 :
3677 else
3678 cat <<EOF 1>&2
3679
3680 *** Warning: the command libtool uses to detect shared libraries,
3681 *** $file_magic_cmd, produces output that libtool cannot recognize.
3682 *** The result is that libtool may fail to recognize shared libraries
3683 *** as such. This will affect the creation of libtool libraries that
3684 *** depend on shared libraries, but programs linked with such libtool
3685 *** libraries will work regardless of this problem. Nevertheless, you
3686 *** may want to report the problem to your system manager and/or to
3687 *** bug-libtool@gnu.org
3688
3689 EOF
3690 fi ;;
3691 esac
3692 fi
3693 break
3694 fi
3695 done
3696 IFS="$ac_save_ifs"
3697 MAGIC_CMD="$ac_save_MAGIC_CMD"
3698 ;;
3699 esac
3700 fi
3701
3702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703 if test -n "$MAGIC_CMD"; then
3704 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705 echo "${ECHO_T}$MAGIC_CMD" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3709 fi
3710
3711 if test -z "$lt_cv_path_MAGIC_CMD"; then
3712 if test -n "$ac_tool_prefix"; then
3713 echo "$as_me:$LINENO: checking for file" >&5
3714 echo $ECHO_N "checking for file... $ECHO_C" >&6
3715 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 case $MAGIC_CMD in
3719 /*)
3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3721 ;;
3722 ?:/*)
3723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3724 ;;
3725 *)
3726 ac_save_MAGIC_CMD="$MAGIC_CMD"
3727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 ac_dummy="/usr/bin:$PATH"
3729 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if test -f $ac_dir/file; then
3732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3733 if test -n "$file_magic_test_file"; then
3734 case $deplibs_check_method in
3735 "file_magic "*)
3736 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739 egrep "$file_magic_regex" > /dev/null; then
3740 :
3741 else
3742 cat <<EOF 1>&2
3743
3744 *** Warning: the command libtool uses to detect shared libraries,
3745 *** $file_magic_cmd, produces output that libtool cannot recognize.
3746 *** The result is that libtool may fail to recognize shared libraries
3747 *** as such. This will affect the creation of libtool libraries that
3748 *** depend on shared libraries, but programs linked with such libtool
3749 *** libraries will work regardless of this problem. Nevertheless, you
3750 *** may want to report the problem to your system manager and/or to
3751 *** bug-libtool@gnu.org
3752
3753 EOF
3754 fi ;;
3755 esac
3756 fi
3757 break
3758 fi
3759 done
3760 IFS="$ac_save_ifs"
3761 MAGIC_CMD="$ac_save_MAGIC_CMD"
3762 ;;
3763 esac
3764 fi
3765
3766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767 if test -n "$MAGIC_CMD"; then
3768 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769 echo "${ECHO_T}$MAGIC_CMD" >&6
3770 else
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3773 fi
3774
3775 else
3776 MAGIC_CMD=:
3777 fi
3778 fi
3779
3780 fi
3781 ;;
3782 esac
3783
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 fi
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822 ac_ct_RANLIB=$RANLIB
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3848 fi
3849 fi
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859 RANLIB=$ac_ct_RANLIB
3860 else
3861 RANLIB="$ac_cv_prog_RANLIB"
3862 fi
3863
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}strip; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_STRIP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888
3889 fi
3890 fi
3891 STRIP=$ac_cv_prog_STRIP
3892 if test -n "$STRIP"; then
3893 echo "$as_me:$LINENO: result: $STRIP" >&5
3894 echo "${ECHO_T}$STRIP" >&6
3895 else
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3898 fi
3899
3900 fi
3901 if test -z "$ac_cv_prog_STRIP"; then
3902 ac_ct_STRIP=$STRIP
3903 # Extract the first word of "strip", so it can be a program name with args.
3904 set dummy strip; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 if test -n "$ac_ct_STRIP"; then
3911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_STRIP="strip"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924 done
3925 done
3926
3927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3928 fi
3929 fi
3930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931 if test -n "$ac_ct_STRIP"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933 echo "${ECHO_T}$ac_ct_STRIP" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939 STRIP=$ac_ct_STRIP
3940 else
3941 STRIP="$ac_cv_prog_STRIP"
3942 fi
3943
3944
3945 # Check for any special flags to pass to ltconfig.
3946 libtool_flags="--cache-file=$cache_file"
3947 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3949 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3950 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3952
3953
3954 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955 if test "${enable_libtool_lock+set}" = set; then
3956 enableval="$enable_libtool_lock"
3957
3958 fi;
3959 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3961
3962
3963 # Check whether --with-pic or --without-pic was given.
3964 if test "${with_pic+set}" = set; then
3965 withval="$with_pic"
3966 pic_mode="$withval"
3967 else
3968 pic_mode=default
3969 fi;
3970 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3972
3973 # Some flags need to be propagated to the compiler or linker for good
3974 # libtool support.
3975 case $host in
3976 *-*-irix6*)
3977 # Find out which ABI we are using.
3978 echo '#line 3978 "configure"' > conftest.$ac_ext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
3984 if test "$lt_cv_prog_gnu_ld" = yes; then
3985 case `/usr/bin/file conftest.$ac_objext` in
3986 *32-bit*)
3987 LD="${LD-ld} -melf32bsmip"
3988 ;;
3989 *N32*)
3990 LD="${LD-ld} -melf32bmipn32"
3991 ;;
3992 *64-bit*)
3993 LD="${LD-ld} -melf64bmip"
3994 ;;
3995 esac
3996 else
3997 case `/usr/bin/file conftest.$ac_objext` in
3998 *32-bit*)
3999 LD="${LD-ld} -32"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -n32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -64"
4006 ;;
4007 esac
4008 fi
4009 fi
4010 rm -rf conftest*
4011 ;;
4012
4013 ia64-*-hpux*)
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4021 case "`/usr/bin/file conftest.o`" in
4022 *ELF-32*)
4023 HPUX_IA64_MODE="32"
4024 ;;
4025 *ELF-64*)
4026 HPUX_IA64_MODE="64"
4027 ;;
4028 esac
4029 fi
4030 rm -rf conftest*
4031 ;;
4032
4033 *-*-sco3.2v5*)
4034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4035 SAVE_CFLAGS="$CFLAGS"
4036 CFLAGS="$CFLAGS -belf"
4037 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039 if test "${lt_cv_cc_needs_belf+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042
4043
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056
4057 int
4058 main ()
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 lt_cv_cc_needs_belf=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 lt_cv_cc_needs_belf=no
4093 fi
4094 rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102 fi
4103 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107 CFLAGS="$SAVE_CFLAGS"
4108 fi
4109 ;;
4110
4111
4112 esac
4113
4114
4115 # Save cache, so that ltconfig can load it
4116 cat >confcache <<\_ACEOF
4117 # This file is a shell script that caches the results of configure
4118 # tests run on this system so they can be shared between configure
4119 # scripts and configure runs, see configure's option --config-cache.
4120 # It is not useful on other systems. If it contains results you don't
4121 # want to keep, you may remove or edit it.
4122 #
4123 # config.status only pays attention to the cache file if you give it
4124 # the --recheck option to rerun configure.
4125 #
4126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4128 # following values.
4129
4130 _ACEOF
4131
4132 # The following way of writing the cache mishandles newlines in values,
4133 # but we know of no workaround that is simple, portable, and efficient.
4134 # So, don't put newlines in cache variables' values.
4135 # Ultrix sh set writes to stderr and can't be redirected directly,
4136 # and sets the high bit in the cache file unless we assign to the vars.
4137 {
4138 (set) 2>&1 |
4139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4140 *ac_space=\ *)
4141 # `set' does not quote correctly, so add quotes (double-quote
4142 # substitution turns \\\\ into \\, and sed turns \\ into \).
4143 sed -n \
4144 "s/'/'\\\\''/g;
4145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4146 ;;
4147 *)
4148 # `set' quotes correctly as required by POSIX, so do not add quotes.
4149 sed -n \
4150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4151 ;;
4152 esac;
4153 } |
4154 sed '
4155 t clear
4156 : clear
4157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4158 t end
4159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4160 : end' >>confcache
4161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4162 if test -w $cache_file; then
4163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164 cat confcache >$cache_file
4165 else
4166 echo "not updating unwritable cache $cache_file"
4167 fi
4168 fi
4169 rm -f confcache
4170
4171 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4172 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4173 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4174 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4178 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4179 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4180 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181 echo "$as_me: error: libtool configure failed" >&2;}
4182 { (exit 1); exit 1; }; }
4183
4184 # Reload cache, that may have been modified by ltconfig
4185 if test -r "$cache_file"; then
4186 # Some versions of bash will fail to source /dev/null (special
4187 # files actually), so we avoid doing that.
4188 if test -f "$cache_file"; then
4189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190 echo "$as_me: loading cache $cache_file" >&6;}
4191 case $cache_file in
4192 [\\/]* | ?:[\\/]* ) . $cache_file;;
4193 *) . ./$cache_file;;
4194 esac
4195 fi
4196 else
4197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198 echo "$as_me: creating cache $cache_file" >&6;}
4199 >$cache_file
4200 fi
4201
4202
4203 # This can be used to rebuild libtool when needed
4204 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4205
4206 # Always use our own libtool.
4207 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4208
4209 # Redirect the config.log output again, so that the ltconfig log is not
4210 # clobbered by the next message.
4211 exec 5>>./config.log
4212
4213
4214
4215
4216
4217
4218
4219 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220 if test "${enable_64_bit_bfd+set}" = set; then
4221 enableval="$enable_64_bit_bfd"
4222 case "${enableval}" in
4223 yes) want64=true ;;
4224 no) want64=false ;;
4225 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227 { (exit 1); exit 1; }; } ;;
4228 esac
4229 else
4230 want64=false
4231 fi; # Check whether --enable-targets or --disable-targets was given.
4232 if test "${enable_targets+set}" = set; then
4233 enableval="$enable_targets"
4234 case "${enableval}" in
4235 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237 { (exit 1); exit 1; }; }
4238 ;;
4239 no) enable_targets= ;;
4240 *) enable_targets=$enableval ;;
4241 esac
4242 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4243 if test "${enable_commonbfdlib+set}" = set; then
4244 enableval="$enable_commonbfdlib"
4245 case "${enableval}" in
4246 yes) commonbfdlib=true ;;
4247 no) commonbfdlib=false ;;
4248 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250 { (exit 1); exit 1; }; } ;;
4251 esac
4252 fi;
4253 # Check whether --with-mmap or --without-mmap was given.
4254 if test "${with_mmap+set}" = set; then
4255 withval="$with_mmap"
4256 case "${withval}" in
4257 yes) want_mmap=true ;;
4258 no) want_mmap=false ;;
4259 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261 { (exit 1); exit 1; }; } ;;
4262 esac
4263 else
4264 want_mmap=false
4265 fi;
4266
4267 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4268
4269 # Check whether --enable-werror or --disable-werror was given.
4270 if test "${enable_werror+set}" = set; then
4271 enableval="$enable_werror"
4272 case "${enableval}" in
4273 yes | y) ERROR_ON_WARNING="yes" ;;
4274 no | n) ERROR_ON_WARNING="no" ;;
4275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4276 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4277 { (exit 1); exit 1; }; } ;;
4278 esac
4279 fi;
4280
4281 # Enable -Werror by default when using gcc
4282 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4283 ERROR_ON_WARNING=yes
4284 fi
4285
4286 NO_WERROR=
4287 if test "${ERROR_ON_WARNING}" = yes ; then
4288 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4289 NO_WERROR="-Wno-error"
4290 fi
4291
4292 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4293 if test "${enable_build_warnings+set}" = set; then
4294 enableval="$enable_build_warnings"
4295 case "${enableval}" in
4296 yes) ;;
4297 no) WARN_CFLAGS="-w";;
4298 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4299 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4300 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4301 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4302 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4303 esac
4304 fi;
4305
4306 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4307 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4308 fi
4309
4310
4311
4312
4313
4314 ac_config_headers="$ac_config_headers config.h:config.in"
4315
4316
4317 if test -z "$target" ; then
4318 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4319 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4320 { (exit 1); exit 1; }; }
4321 fi
4322
4323 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4324 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4325 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4326 if test "${enable_maintainer_mode+set}" = set; then
4327 enableval="$enable_maintainer_mode"
4328 USE_MAINTAINER_MODE=$enableval
4329 else
4330 USE_MAINTAINER_MODE=no
4331 fi;
4332 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4333 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4334
4335
4336 if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339 else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4342 fi
4343
4344 MAINT=$MAINTAINER_MODE_TRUE
4345
4346
4347 case ${build_alias} in
4348 "") build_noncanonical=${build} ;;
4349 *) build_noncanonical=${build_alias} ;;
4350 esac
4351
4352 case ${host_alias} in
4353 "") host_noncanonical=${build_noncanonical} ;;
4354 *) host_noncanonical=${host_alias} ;;
4355 esac
4356
4357 case ${target_alias} in
4358 "") target_noncanonical=${host_noncanonical} ;;
4359 *) target_noncanonical=${target_alias} ;;
4360 esac
4361
4362 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4363 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4364 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4365 if test "${enable_install_libbfd+set}" = set; then
4366 enableval="$enable_install_libbfd"
4367 install_libbfd_p=$enableval
4368 else
4369 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4370 install_libbfd_p=yes
4371 else
4372 install_libbfd_p=no
4373 fi
4374 fi;
4375 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4376 echo "${ECHO_T}$install_libbfd_p" >&6
4377
4378
4379 if test $install_libbfd_p = yes; then
4380 INSTALL_LIBBFD_TRUE=
4381 INSTALL_LIBBFD_FALSE='#'
4382 else
4383 INSTALL_LIBBFD_TRUE='#'
4384 INSTALL_LIBBFD_FALSE=
4385 fi
4386
4387 # Need _noncanonical variables for this.
4388
4389
4390
4391
4392 # libbfd.a is a host library containing target dependent code
4393 bfdlibdir='$(libdir)'
4394 bfdincludedir='$(includedir)'
4395 if test "${host}" != "${target}"; then
4396 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4397 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4398 fi
4399
4400
4401
4402
4403
4404
4405 host64=false
4406 target64=false
4407 bfd_default_target_size=32
4408
4409 # host stuff:
4410
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_prog_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438 done
4439 done
4440
4441 fi
4442 fi
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 echo "$as_me:$LINENO: result: $CC" >&5
4446 echo "${ECHO_T}$CC" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4450 fi
4451
4452 fi
4453 if test -z "$ac_cv_prog_CC"; then
4454 ac_ct_CC=$CC
4455 # Extract the first word of "gcc", so it can be a program name with args.
4456 set dummy gcc; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 if test -n "$ac_ct_CC"; then
4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_CC="gcc"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478
4479 fi
4480 fi
4481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482 if test -n "$ac_ct_CC"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4484 echo "${ECHO_T}$ac_ct_CC" >&6
4485 else
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490 CC=$ac_ct_CC
4491 else
4492 CC="$ac_cv_prog_CC"
4493 fi
4494
4495 if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}cc; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="${ac_tool_prefix}cc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518 done
4519 done
4520
4521 fi
4522 fi
4523 CC=$ac_cv_prog_CC
4524 if test -n "$CC"; then
4525 echo "$as_me:$LINENO: result: $CC" >&5
4526 echo "${ECHO_T}$CC" >&6
4527 else
4528 echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4530 fi
4531
4532 fi
4533 if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "cc", so it can be a program name with args.
4536 set dummy cc; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_CC="cc"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558
4559 fi
4560 fi
4561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562 if test -n "$ac_ct_CC"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4564 echo "${ECHO_T}$ac_ct_CC" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570 CC=$ac_ct_CC
4571 else
4572 CC="$ac_cv_prog_CC"
4573 fi
4574
4575 fi
4576 if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578 set dummy cc; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 ac_prog_rejected=no
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_CC="cc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603 done
4604 done
4605
4606 if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4609 shift
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4614 shift
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4616 fi
4617 fi
4618 fi
4619 fi
4620 CC=$ac_cv_prog_CC
4621 if test -n "$CC"; then
4622 echo "$as_me:$LINENO: result: $CC" >&5
4623 echo "${ECHO_T}$CC" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629 fi
4630 if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 for ac_prog in cl
4633 do
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657
4658 fi
4659 fi
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 echo "$as_me:$LINENO: result: $CC" >&5
4663 echo "${ECHO_T}$CC" >&6
4664 else
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4667 fi
4668
4669 test -n "$CC" && break
4670 done
4671 fi
4672 if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl
4675 do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699
4700 fi
4701 fi
4702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703 if test -n "$ac_ct_CC"; then
4704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705 echo "${ECHO_T}$ac_ct_CC" >&6
4706 else
4707 echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4709 fi
4710
4711 test -n "$ac_ct_CC" && break
4712 done
4713
4714 CC=$ac_ct_CC
4715 fi
4716
4717 fi
4718
4719
4720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4725
4726 # Provide some information about the compiler.
4727 echo "$as_me:$LINENO:" \
4728 "checking for C compiler version" >&5
4729 ac_compiler=`set X $ac_compile; echo $2`
4730 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4731 (eval $ac_compiler --version </dev/null >&5) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }
4735 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4736 (eval $ac_compiler -v </dev/null >&5) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }
4740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4741 (eval $ac_compiler -V </dev/null >&5) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745
4746 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757
4758 int
4759 main ()
4760 {
4761 #ifndef __GNUC__
4762 choke me
4763 #endif
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_compiler_gnu=yes
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_compiler_gnu=no
4797 fi
4798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800
4801 fi
4802 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4804 GCC=`test $ac_compiler_gnu = yes && echo yes`
4805 ac_test_CFLAGS=${CFLAGS+set}
4806 ac_save_CFLAGS=$CFLAGS
4807 CFLAGS="-g"
4808 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4809 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4810 if test "${ac_cv_prog_cc_g+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819
4820 int
4821 main ()
4822 {
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_prog_cc_g=yes
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 ac_cv_prog_cc_g=no
4856 fi
4857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4860 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4861 if test "$ac_test_CFLAGS" = set; then
4862 CFLAGS=$ac_save_CFLAGS
4863 elif test $ac_cv_prog_cc_g = yes; then
4864 if test "$GCC" = yes; then
4865 CFLAGS="-g -O2"
4866 else
4867 CFLAGS="-g"
4868 fi
4869 else
4870 if test "$GCC" = yes; then
4871 CFLAGS="-O2"
4872 else
4873 CFLAGS=
4874 fi
4875 fi
4876 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4877 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4878 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 ac_cv_prog_cc_stdc=no
4882 ac_save_CC=$CC
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <stdarg.h>
4890 #include <stdio.h>
4891 #include <sys/types.h>
4892 #include <sys/stat.h>
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4897 char **p;
4898 int i;
4899 {
4900 return p[i];
4901 }
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4903 {
4904 char *s;
4905 va_list v;
4906 va_start (v,p);
4907 s = g (p, va_arg (v,int));
4908 va_end (v);
4909 return s;
4910 }
4911
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std1 is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std1. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4920
4921 int test (int i, double x);
4922 struct s1 {int (*f) (int a);};
4923 struct s2 {int (*f) (double a);};
4924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4925 int argc;
4926 char **argv;
4927 int
4928 main ()
4929 {
4930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 # Don't try gcc -ansi; that turns off useful extensions and
4936 # breaks some systems' header files.
4937 # AIX -qlanglvl=ansi
4938 # Ultrix and OSF/1 -std1
4939 # HP-UX 10.20 and later -Ae
4940 # HP-UX older versions -Aa -D_HPUX_SOURCE
4941 # SVR4 -Xc -D__EXTENSIONS__
4942 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 do
4944 CC="$ac_save_CC $ac_arg"
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cc_stdc=$ac_arg
4968 break
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 fi
4974 rm -f conftest.err conftest.$ac_objext
4975 done
4976 rm -f conftest.$ac_ext conftest.$ac_objext
4977 CC=$ac_save_CC
4978
4979 fi
4980
4981 case "x$ac_cv_prog_cc_stdc" in
4982 x|xno)
4983 echo "$as_me:$LINENO: result: none needed" >&5
4984 echo "${ECHO_T}none needed" >&6 ;;
4985 *)
4986 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4987 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4988 CC="$CC $ac_cv_prog_cc_stdc" ;;
4989 esac
4990
4991 # Some people use a C++ compiler to compile C. Since we use `exit',
4992 # in C++ we need to declare it. In case someone uses the same compiler
4993 # for both compiling C and C++ we need to have the C++ compiler decide
4994 # the declaration of exit, since it's the most demanding environment.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #ifndef __cplusplus
4997 choke me
4998 #endif
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 for ac_declaration in \
5023 '' \
5024 'extern "C" void std::exit (int) throw (); using std::exit;' \
5025 'extern "C" void std::exit (int); using std::exit;' \
5026 'extern "C" void exit (int) throw ();' \
5027 'extern "C" void exit (int);' \
5028 'void exit (int);'
5029 do
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_declaration
5037 #include <stdlib.h>
5038 int
5039 main ()
5040 {
5041 exit (42);
5042 ;
5043 return 0;
5044 }
5045 _ACEOF
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 :
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 continue
5074 fi
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_declaration
5083 int
5084 main ()
5085 {
5086 exit (42);
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -z "$ac_c_werror_flag"
5101 || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 break
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 fi
5119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 done
5121 rm -f conftest*
5122 if test -n "$ac_declaration"; then
5123 echo '#ifdef __cplusplus' >>confdefs.h
5124 echo $ac_declaration >>confdefs.h
5125 echo '#endif' >>confdefs.h
5126 fi
5127
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 fi
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141 cat >>confdefs.h <<\_ACEOF
5142 #define _GNU_SOURCE 1
5143 _ACEOF
5144
5145
5146
5147 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5148 if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5151 echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_RANLIB+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -n "$RANLIB"; then
5157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172
5173 fi
5174 fi
5175 RANLIB=$ac_cv_prog_RANLIB
5176 if test -n "$RANLIB"; then
5177 echo "$as_me:$LINENO: result: $RANLIB" >&5
5178 echo "${ECHO_T}$RANLIB" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5182 fi
5183
5184 fi
5185 if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib", so it can be a program name with args.
5188 set dummy ranlib; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_RANLIB="ranlib"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210
5211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5212 fi
5213 fi
5214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215 if test -n "$ac_ct_RANLIB"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223 RANLIB=$ac_ct_RANLIB
5224 else
5225 RANLIB="$ac_cv_prog_RANLIB"
5226 fi
5227
5228 ac_ext=c
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5235 # On Suns, sometimes $CPP names a directory.
5236 if test -n "$CPP" && test -d "$CPP"; then
5237 CPP=
5238 fi
5239 if test -z "$CPP"; then
5240 if test "${ac_cv_prog_CPP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 # Double quotes because CPP needs to be expanded
5244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5245 do
5246 ac_preproc_ok=false
5247 for ac_c_preproc_warn_flag in '' yes
5248 do
5249 # Use a header file that comes with gcc, so configuring glibc
5250 # with a fresh cross-compiler works.
5251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252 # <limits.h> exists even on freestanding compilers.
5253 # On the NeXT, cc -E runs the code through the compiler's parser,
5254 # not just through cpp. "Syntax error" is here to catch this case.
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #ifdef __STDC__
5262 # include <limits.h>
5263 #else
5264 # include <assert.h>
5265 #endif
5266 Syntax error
5267 _ACEOF
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
5282 else
5283 ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286 :
5287 else
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 # Broken: fails on valid input.
5292 continue
5293 fi
5294 rm -f conftest.err conftest.$ac_ext
5295
5296 # OK, works on sane cases. Now check whether non-existent headers
5297 # can be detected and how.
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <ac_nonexistent.h>
5305 _ACEOF
5306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } >/dev/null; then
5314 if test -s conftest.err; then
5315 ac_cpp_err=$ac_c_preproc_warn_flag
5316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317 else
5318 ac_cpp_err=
5319 fi
5320 else
5321 ac_cpp_err=yes
5322 fi
5323 if test -z "$ac_cpp_err"; then
5324 # Broken: success on invalid input.
5325 continue
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 # Passes both tests.
5331 ac_preproc_ok=:
5332 break
5333 fi
5334 rm -f conftest.err conftest.$ac_ext
5335
5336 done
5337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338 rm -f conftest.err conftest.$ac_ext
5339 if $ac_preproc_ok; then
5340 break
5341 fi
5342
5343 done
5344 ac_cv_prog_CPP=$CPP
5345
5346 fi
5347 CPP=$ac_cv_prog_CPP
5348 else
5349 ac_cv_prog_CPP=$CPP
5350 fi
5351 echo "$as_me:$LINENO: result: $CPP" >&5
5352 echo "${ECHO_T}$CPP" >&6
5353 ac_preproc_ok=false
5354 for ac_c_preproc_warn_flag in '' yes
5355 do
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373 Syntax error
5374 _ACEOF
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5388 fi
5389 else
5390 ac_cpp_err=yes
5391 fi
5392 if test -z "$ac_cpp_err"; then
5393 :
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403 # OK, works on sane cases. Now check whether non-existent headers
5404 # can be detected and how.
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
5427 else
5428 ac_cpp_err=yes
5429 fi
5430 if test -z "$ac_cpp_err"; then
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 # Passes both tests.
5438 ac_preproc_ok=:
5439 break
5440 fi
5441 rm -f conftest.err conftest.$ac_ext
5442
5443 done
5444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445 rm -f conftest.err conftest.$ac_ext
5446 if $ac_preproc_ok; then
5447 :
5448 else
5449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5450 See \`config.log' for more details." >&5
5451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5452 See \`config.log' for more details." >&2;}
5453 { (exit 1); exit 1; }; }
5454 fi
5455
5456 ac_ext=c
5457 ac_cpp='$CPP $CPPFLAGS'
5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463 echo "$as_me:$LINENO: checking for egrep" >&5
5464 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5465 if test "${ac_cv_prog_egrep+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5469 then ac_cv_prog_egrep='grep -E'
5470 else ac_cv_prog_egrep='egrep'
5471 fi
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5474 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5475 EGREP=$ac_cv_prog_egrep
5476
5477
5478 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5480 if test "${ac_cv_header_stdc+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <stdlib.h>
5490 #include <stdarg.h>
5491 #include <string.h>
5492 #include <float.h>
5493
5494 int
5495 main ()
5496 {
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_header_stdc=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_cv_header_stdc=no
5530 fi
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532
5533 if test $ac_cv_header_stdc = yes; then
5534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <string.h>
5542
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "memchr" >/dev/null 2>&1; then
5546 :
5547 else
5548 ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest*
5551
5552 fi
5553
5554 if test $ac_cv_header_stdc = yes; then
5555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <stdlib.h>
5563
5564 _ACEOF
5565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566 $EGREP "free" >/dev/null 2>&1; then
5567 :
5568 else
5569 ac_cv_header_stdc=no
5570 fi
5571 rm -f conftest*
5572
5573 fi
5574
5575 if test $ac_cv_header_stdc = yes; then
5576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5577 if test "$cross_compiling" = yes; then
5578 :
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <ctype.h>
5587 #if ((' ' & 0x0FF) == 0x020)
5588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590 #else
5591 # define ISLOWER(c) \
5592 (('a' <= (c) && (c) <= 'i') \
5593 || ('j' <= (c) && (c) <= 'r') \
5594 || ('s' <= (c) && (c) <= 'z'))
5595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5596 #endif
5597
5598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5599 int
5600 main ()
5601 {
5602 int i;
5603 for (i = 0; i < 256; i++)
5604 if (XOR (islower (i), ISLOWER (i))
5605 || toupper (i) != TOUPPER (i))
5606 exit(2);
5607 exit (0);
5608 }
5609 _ACEOF
5610 rm -f conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 :
5622 else
5623 echo "$as_me: program exited with status $ac_status" >&5
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ( exit $ac_status )
5628 ac_cv_header_stdc=no
5629 fi
5630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 fi
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5636 if test $ac_cv_header_stdc = yes; then
5637
5638 cat >>confdefs.h <<\_ACEOF
5639 #define STDC_HEADERS 1
5640 _ACEOF
5641
5642 fi
5643
5644 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5646 if test "${ac_cv_c_const+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655
5656 int
5657 main ()
5658 {
5659 /* FIXME: Include the comments suggested by Paul. */
5660 #ifndef __cplusplus
5661 /* Ultrix mips cc rejects this. */
5662 typedef int charset[2];
5663 const charset x;
5664 /* SunOS 4.1.1 cc rejects this. */
5665 char const *const *ccp;
5666 char **p;
5667 /* NEC SVR4.0.2 mips cc rejects this. */
5668 struct point {int x, y;};
5669 static struct point const zero = {0,0};
5670 /* AIX XL C 1.02.0.0 rejects this.
5671 It does not let you subtract one const X* pointer from another in
5672 an arm of an if-expression whose if-part is not a constant
5673 expression */
5674 const char *g = "string";
5675 ccp = &g + (g ? g-g : 0);
5676 /* HPUX 7.0 cc rejects these. */
5677 ++ccp;
5678 p = (char**) ccp;
5679 ccp = (char const *const *) p;
5680 { /* SCO 3.2v4 cc rejects this. */
5681 char *t;
5682 char const *s = 0 ? (char *) 0 : (char const *) 0;
5683
5684 *t++ = 0;
5685 }
5686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5687 int x[] = {25, 17};
5688 const int *foo = &x[0];
5689 ++foo;
5690 }
5691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5692 typedef const int *iptr;
5693 iptr p = 0;
5694 ++p;
5695 }
5696 { /* AIX XL C 1.02.0.0 rejects this saying
5697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5698 struct s { int j; const int *ap[3]; };
5699 struct s *b; b->j = 5;
5700 }
5701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5702 const int foo = 10;
5703 }
5704 #endif
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_c_const=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_cv_c_const=no
5738 fi
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740 fi
5741 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5742 echo "${ECHO_T}$ac_cv_c_const" >&6
5743 if test $ac_cv_c_const = no; then
5744
5745 cat >>confdefs.h <<\_ACEOF
5746 #define const
5747 _ACEOF
5748
5749 fi
5750
5751 echo "$as_me:$LINENO: checking for inline" >&5
5752 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5753 if test "${ac_cv_c_inline+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 ac_cv_c_inline=no
5757 for ac_kw in inline __inline__ __inline; do
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #ifndef __cplusplus
5765 typedef int foo_t;
5766 static $ac_kw foo_t static_foo () {return 0; }
5767 $ac_kw foo_t foo () {return 0; }
5768 #endif
5769
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_c_inline=$ac_kw; break
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 fi
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 done
5801
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5804 echo "${ECHO_T}$ac_cv_c_inline" >&6
5805
5806
5807 case $ac_cv_c_inline in
5808 inline | yes) ;;
5809 *)
5810 case $ac_cv_c_inline in
5811 no) ac_val=;;
5812 *) ac_val=$ac_cv_c_inline;;
5813 esac
5814 cat >>confdefs.h <<_ACEOF
5815 #ifndef __cplusplus
5816 #define inline $ac_val
5817 #endif
5818 _ACEOF
5819 ;;
5820 esac
5821
5822 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5833 inttypes.h stdint.h unistd.h
5834 do
5835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836 echo "$as_me:$LINENO: checking for $ac_header" >&5
5837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5848
5849 #include <$ac_header>
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 eval "$as_ac_Header=yes"
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 eval "$as_ac_Header=no"
5879 fi
5880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881 fi
5882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885 cat >>confdefs.h <<_ACEOF
5886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887 _ACEOF
5888
5889 fi
5890
5891 done
5892
5893
5894 echo "$as_me:$LINENO: checking for off_t" >&5
5895 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5896 if test "${ac_cv_type_off_t+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5906 int
5907 main ()
5908 {
5909 if ((off_t *) 0)
5910 return 0;
5911 if (sizeof (off_t))
5912 return 0;
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_type_off_t=yes
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 ac_cv_type_off_t=no
5945 fi
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5949 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5950 if test $ac_cv_type_off_t = yes; then
5951 :
5952 else
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define off_t long
5956 _ACEOF
5957
5958 fi
5959
5960 echo "$as_me:$LINENO: checking for size_t" >&5
5961 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5962 if test "${ac_cv_type_size_t+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 int
5973 main ()
5974 {
5975 if ((size_t *) 0)
5976 return 0;
5977 if (sizeof (size_t))
5978 return 0;
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_type_size_t=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_type_size_t=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016 if test $ac_cv_type_size_t = yes; then
6017 :
6018 else
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define size_t unsigned
6022 _ACEOF
6023
6024 fi
6025
6026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027 # for constant arguments. Useless!
6028 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030 if test "${ac_cv_working_alloca_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <alloca.h>
6040 int
6041 main ()
6042 {
6043 char *p = (char *) alloca (2 * sizeof (int));
6044 ;
6045 return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_working_alloca_h=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ac_cv_working_alloca_h=no
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 fi
6080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6082 if test $ac_cv_working_alloca_h = yes; then
6083
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_ALLOCA_H 1
6086 _ACEOF
6087
6088 fi
6089
6090 echo "$as_me:$LINENO: checking for alloca" >&5
6091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6092 if test "${ac_cv_func_alloca_works+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #ifdef __GNUC__
6102 # define alloca __builtin_alloca
6103 #else
6104 # ifdef _MSC_VER
6105 # include <malloc.h>
6106 # define alloca _alloca
6107 # else
6108 # if HAVE_ALLOCA_H
6109 # include <alloca.h>
6110 # else
6111 # ifdef _AIX
6112 #pragma alloca
6113 # else
6114 # ifndef alloca /* predefined by HP cc +Olibcalls */
6115 char *alloca ();
6116 # endif
6117 # endif
6118 # endif
6119 # endif
6120 #endif
6121
6122 int
6123 main ()
6124 {
6125 char *p = (char *) alloca (1);
6126 ;
6127 return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_func_alloca_works=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 ac_cv_func_alloca_works=no
6158 fi
6159 rm -f conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6164
6165 if test $ac_cv_func_alloca_works = yes; then
6166
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_ALLOCA 1
6169 _ACEOF
6170
6171 else
6172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6173 # that cause trouble. Some versions do not even contain alloca or
6174 # contain a buggy version. If you still want to use their alloca,
6175 # use ar to extract alloca.o from them instead of compiling alloca.c.
6176
6177 ALLOCA=alloca.$ac_objext
6178
6179 cat >>confdefs.h <<\_ACEOF
6180 #define C_ALLOCA 1
6181 _ACEOF
6182
6183
6184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6186 if test "${ac_cv_os_cray+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 #if defined(CRAY) && ! defined(CRAY2)
6196 webecray
6197 #else
6198 wenotbecray
6199 #endif
6200
6201 _ACEOF
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "webecray" >/dev/null 2>&1; then
6204 ac_cv_os_cray=yes
6205 else
6206 ac_cv_os_cray=no
6207 fi
6208 rm -f conftest*
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6212 echo "${ECHO_T}$ac_cv_os_cray" >&6
6213 if test $ac_cv_os_cray = yes; then
6214 for ac_func in _getb67 GETB67 getb67; do
6215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216 echo "$as_me:$LINENO: checking for $ac_func" >&5
6217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_var+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6229 #define $ac_func innocuous_$ac_func
6230
6231 /* System header to define __stub macros and hopefully few prototypes,
6232 which can conflict with char $ac_func (); below.
6233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234 <limits.h> exists even on freestanding compilers. */
6235
6236 #ifdef __STDC__
6237 # include <limits.h>
6238 #else
6239 # include <assert.h>
6240 #endif
6241
6242 #undef $ac_func
6243
6244 /* Override any gcc2 internal prototype to avoid an error. */
6245 #ifdef __cplusplus
6246 extern "C"
6247 {
6248 #endif
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6251 char $ac_func ();
6252 /* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 choke me
6257 #else
6258 char (*f) () = $ac_func;
6259 #endif
6260 #ifdef __cplusplus
6261 }
6262 #endif
6263
6264 int
6265 main ()
6266 {
6267 return f != $ac_func;
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 eval "$as_ac_var=yes"
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 eval "$as_ac_var=no"
6300 fi
6301 rm -f conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303 fi
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define CRAY_STACKSEG_END $ac_func
6310 _ACEOF
6311
6312 break
6313 fi
6314
6315 done
6316 fi
6317
6318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6320 if test "${ac_cv_c_stack_direction+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 if test "$cross_compiling" = yes; then
6324 ac_cv_c_stack_direction=0
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 int
6333 find_stack_direction ()
6334 {
6335 static char *addr = 0;
6336 auto char dummy;
6337 if (addr == 0)
6338 {
6339 addr = &dummy;
6340 return find_stack_direction ();
6341 }
6342 else
6343 return (&dummy > addr) ? 1 : -1;
6344 }
6345
6346 int
6347 main ()
6348 {
6349 exit (find_stack_direction () < 0);
6350 }
6351 _ACEOF
6352 rm -f conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_c_stack_direction=1
6364 else
6365 echo "$as_me: program exited with status $ac_status" >&5
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ( exit $ac_status )
6370 ac_cv_c_stack_direction=-1
6371 fi
6372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 fi
6375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6377
6378 cat >>confdefs.h <<_ACEOF
6379 #define STACK_DIRECTION $ac_cv_c_stack_direction
6380 _ACEOF
6381
6382
6383 fi
6384
6385
6386
6387 for ac_header in stdlib.h unistd.h
6388 do
6389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 fi
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398 else
6399 # Is the header compilable?
6400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6409 #include <$ac_header>
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_header_compiler=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_header_compiler=no
6439 fi
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6442 echo "${ECHO_T}$ac_header_compiler" >&6
6443
6444 # Is the header present?
6445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 #include <$ac_header>
6454 _ACEOF
6455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } >/dev/null; then
6463 if test -s conftest.err; then
6464 ac_cpp_err=$ac_c_preproc_warn_flag
6465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6466 else
6467 ac_cpp_err=
6468 fi
6469 else
6470 ac_cpp_err=yes
6471 fi
6472 if test -z "$ac_cpp_err"; then
6473 ac_header_preproc=yes
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ac_header_preproc=no
6479 fi
6480 rm -f conftest.err conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482 echo "${ECHO_T}$ac_header_preproc" >&6
6483
6484 # So? What about this header?
6485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6486 yes:no: )
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc=yes
6492 ;;
6493 no:yes:* )
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6506 (
6507 cat <<\_ASBOX
6508 ## ------------------------------------------ ##
6509 ## Report this to the AC_PACKAGE_NAME lists. ##
6510 ## ------------------------------------------ ##
6511 _ASBOX
6512 ) |
6513 sed "s/^/$as_me: WARNING: /" >&2
6514 ;;
6515 esac
6516 echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 eval "$as_ac_Header=\$ac_header_preproc"
6522 fi
6523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6525
6526 fi
6527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 _ACEOF
6531
6532 fi
6533
6534 done
6535
6536
6537 for ac_func in getpagesize
6538 do
6539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6540 echo "$as_me:$LINENO: checking for $ac_func" >&5
6541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6542 if eval "test \"\${$as_ac_var+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6553 #define $ac_func innocuous_$ac_func
6554
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char $ac_func (); below.
6557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 <limits.h> exists even on freestanding compilers. */
6559
6560 #ifdef __STDC__
6561 # include <limits.h>
6562 #else
6563 # include <assert.h>
6564 #endif
6565
6566 #undef $ac_func
6567
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 #ifdef __cplusplus
6570 extern "C"
6571 {
6572 #endif
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575 char $ac_func ();
6576 /* The GNU C library defines this for functions which it implements
6577 to always fail with ENOSYS. Some functions are actually named
6578 something starting with __ and the normal name is an alias. */
6579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6580 choke me
6581 #else
6582 char (*f) () = $ac_func;
6583 #endif
6584 #ifdef __cplusplus
6585 }
6586 #endif
6587
6588 int
6589 main ()
6590 {
6591 return f != $ac_func;
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_var=yes"
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_var=no"
6624 fi
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 fi
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6630 if test `eval echo '${'$as_ac_var'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6633 _ACEOF
6634
6635 fi
6636 done
6637
6638 echo "$as_me:$LINENO: checking for working mmap" >&5
6639 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6640 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 if test "$cross_compiling" = yes; then
6644 ac_cv_func_mmap_fixed_mapped=no
6645 else
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 $ac_includes_default
6653 /* malloc might have been renamed as rpl_malloc. */
6654 #undef malloc
6655
6656 /* Thanks to Mike Haertel and Jim Avera for this test.
6657 Here is a matrix of mmap possibilities:
6658 mmap private not fixed
6659 mmap private fixed at somewhere currently unmapped
6660 mmap private fixed at somewhere already mapped
6661 mmap shared not fixed
6662 mmap shared fixed at somewhere currently unmapped
6663 mmap shared fixed at somewhere already mapped
6664 For private mappings, we should verify that changes cannot be read()
6665 back from the file, nor mmap's back from the file at a different
6666 address. (There have been systems where private was not correctly
6667 implemented like the infamous i386 svr4.0, and systems where the
6668 VM page cache was not coherent with the file system buffer cache
6669 like early versions of FreeBSD and possibly contemporary NetBSD.)
6670 For shared mappings, we should conversely verify that changes get
6671 propagated back to all the places they're supposed to be.
6672
6673 Grep wants private fixed already mapped.
6674 The main things grep needs to know about mmap are:
6675 * does it exist and is it safe to write into the mmap'd area
6676 * how to use it (BSD variants) */
6677
6678 #include <fcntl.h>
6679 #include <sys/mman.h>
6680
6681 #if !STDC_HEADERS && !HAVE_STDLIB_H
6682 char *malloc ();
6683 #endif
6684
6685 /* This mess was copied from the GNU getpagesize.h. */
6686 #if !HAVE_GETPAGESIZE
6687 /* Assume that all systems that can run configure have sys/param.h. */
6688 # if !HAVE_SYS_PARAM_H
6689 # define HAVE_SYS_PARAM_H 1
6690 # endif
6691
6692 # ifdef _SC_PAGESIZE
6693 # define getpagesize() sysconf(_SC_PAGESIZE)
6694 # else /* no _SC_PAGESIZE */
6695 # if HAVE_SYS_PARAM_H
6696 # include <sys/param.h>
6697 # ifdef EXEC_PAGESIZE
6698 # define getpagesize() EXEC_PAGESIZE
6699 # else /* no EXEC_PAGESIZE */
6700 # ifdef NBPG
6701 # define getpagesize() NBPG * CLSIZE
6702 # ifndef CLSIZE
6703 # define CLSIZE 1
6704 # endif /* no CLSIZE */
6705 # else /* no NBPG */
6706 # ifdef NBPC
6707 # define getpagesize() NBPC
6708 # else /* no NBPC */
6709 # ifdef PAGESIZE
6710 # define getpagesize() PAGESIZE
6711 # endif /* PAGESIZE */
6712 # endif /* no NBPC */
6713 # endif /* no NBPG */
6714 # endif /* no EXEC_PAGESIZE */
6715 # else /* no HAVE_SYS_PARAM_H */
6716 # define getpagesize() 8192 /* punt totally */
6717 # endif /* no HAVE_SYS_PARAM_H */
6718 # endif /* no _SC_PAGESIZE */
6719
6720 #endif /* no HAVE_GETPAGESIZE */
6721
6722 int
6723 main ()
6724 {
6725 char *data, *data2, *data3;
6726 int i, pagesize;
6727 int fd;
6728
6729 pagesize = getpagesize ();
6730
6731 /* First, make a file with some known garbage in it. */
6732 data = (char *) malloc (pagesize);
6733 if (!data)
6734 exit (1);
6735 for (i = 0; i < pagesize; ++i)
6736 *(data + i) = rand ();
6737 umask (0);
6738 fd = creat ("conftest.mmap", 0600);
6739 if (fd < 0)
6740 exit (1);
6741 if (write (fd, data, pagesize) != pagesize)
6742 exit (1);
6743 close (fd);
6744
6745 /* Next, try to mmap the file at a fixed address which already has
6746 something else allocated at it. If we can, also make sure that
6747 we see the same garbage. */
6748 fd = open ("conftest.mmap", O_RDWR);
6749 if (fd < 0)
6750 exit (1);
6751 data2 = (char *) malloc (2 * pagesize);
6752 if (!data2)
6753 exit (1);
6754 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6757 exit (1);
6758 for (i = 0; i < pagesize; ++i)
6759 if (*(data + i) != *(data2 + i))
6760 exit (1);
6761
6762 /* Finally, make sure that changes to the mapped area do not
6763 percolate back to the file as seen by read(). (This is a bug on
6764 some variants of i386 svr4.0.) */
6765 for (i = 0; i < pagesize; ++i)
6766 *(data2 + i) = *(data2 + i) + 1;
6767 data3 = (char *) malloc (pagesize);
6768 if (!data3)
6769 exit (1);
6770 if (read (fd, data3, pagesize) != pagesize)
6771 exit (1);
6772 for (i = 0; i < pagesize; ++i)
6773 if (*(data + i) != *(data3 + i))
6774 exit (1);
6775 close (fd);
6776 exit (0);
6777 }
6778 _ACEOF
6779 rm -f conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_func_mmap_fixed_mapped=yes
6791 else
6792 echo "$as_me: program exited with status $ac_status" >&5
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ( exit $ac_status )
6797 ac_cv_func_mmap_fixed_mapped=no
6798 fi
6799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6800 fi
6801 fi
6802 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6803 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6804 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_MMAP 1
6808 _ACEOF
6809
6810 fi
6811 rm -f conftest.mmap
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6824 unistd.h values.h sys/param.h
6825 do
6826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 fi
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 else
6836 # Is the header compilable?
6837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #include <$ac_header>
6847 _ACEOF
6848 rm -f conftest.$ac_objext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_header_compiler=yes
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6874
6875 ac_header_compiler=no
6876 fi
6877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879 echo "${ECHO_T}$ac_header_compiler" >&6
6880
6881 # Is the header present?
6882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <$ac_header>
6891 _ACEOF
6892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } >/dev/null; then
6900 if test -s conftest.err; then
6901 ac_cpp_err=$ac_c_preproc_warn_flag
6902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6903 else
6904 ac_cpp_err=
6905 fi
6906 else
6907 ac_cpp_err=yes
6908 fi
6909 if test -z "$ac_cpp_err"; then
6910 ac_header_preproc=yes
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ac_header_preproc=no
6916 fi
6917 rm -f conftest.err conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6919 echo "${ECHO_T}$ac_header_preproc" >&6
6920
6921 # So? What about this header?
6922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6923 yes:no: )
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6928 ac_header_preproc=yes
6929 ;;
6930 no:yes:* )
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6943 (
6944 cat <<\_ASBOX
6945 ## ------------------------------------------ ##
6946 ## Report this to the AC_PACKAGE_NAME lists. ##
6947 ## ------------------------------------------ ##
6948 _ASBOX
6949 ) |
6950 sed "s/^/$as_me: WARNING: /" >&2
6951 ;;
6952 esac
6953 echo "$as_me:$LINENO: checking for $ac_header" >&5
6954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 eval "$as_ac_Header=\$ac_header_preproc"
6959 fi
6960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6962
6963 fi
6964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6965 cat >>confdefs.h <<_ACEOF
6966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6967 _ACEOF
6968
6969 fi
6970
6971 done
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6984 __argz_count __argz_stringify __argz_next
6985 do
6986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6987 echo "$as_me:$LINENO: checking for $ac_func" >&5
6988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6989 if eval "test \"\${$as_ac_var+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7000 #define $ac_func innocuous_$ac_func
7001
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char $ac_func (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7006
7007 #ifdef __STDC__
7008 # include <limits.h>
7009 #else
7010 # include <assert.h>
7011 #endif
7012
7013 #undef $ac_func
7014
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 {
7019 #endif
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7022 char $ac_func ();
7023 /* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7027 choke me
7028 #else
7029 char (*f) () = $ac_func;
7030 #endif
7031 #ifdef __cplusplus
7032 }
7033 #endif
7034
7035 int
7036 main ()
7037 {
7038 return f != $ac_func;
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 eval "$as_ac_var=yes"
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 eval "$as_ac_var=no"
7071 fi
7072 rm -f conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 fi
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7077 if test `eval echo '${'$as_ac_var'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7080 _ACEOF
7081
7082 fi
7083 done
7084
7085
7086 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7087
7088 for ac_func in stpcpy
7089 do
7090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091 echo "$as_me:$LINENO: checking for $ac_func" >&5
7092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7093 if eval "test \"\${$as_ac_var+set}\" = set"; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7104 #define $ac_func innocuous_$ac_func
7105
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char $ac_func (); below.
7108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 <limits.h> exists even on freestanding compilers. */
7110
7111 #ifdef __STDC__
7112 # include <limits.h>
7113 #else
7114 # include <assert.h>
7115 #endif
7116
7117 #undef $ac_func
7118
7119 /* Override any gcc2 internal prototype to avoid an error. */
7120 #ifdef __cplusplus
7121 extern "C"
7122 {
7123 #endif
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7126 char $ac_func ();
7127 /* The GNU C library defines this for functions which it implements
7128 to always fail with ENOSYS. Some functions are actually named
7129 something starting with __ and the normal name is an alias. */
7130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7131 choke me
7132 #else
7133 char (*f) () = $ac_func;
7134 #endif
7135 #ifdef __cplusplus
7136 }
7137 #endif
7138
7139 int
7140 main ()
7141 {
7142 return f != $ac_func;
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 rm -f conftest.$ac_objext conftest$ac_exeext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7149 (eval $ac_link) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 eval "$as_ac_var=yes"
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174 eval "$as_ac_var=no"
7175 fi
7176 rm -f conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 fi
7179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7181 if test `eval echo '${'$as_ac_var'}'` = yes; then
7182 cat >>confdefs.h <<_ACEOF
7183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7184 _ACEOF
7185
7186 fi
7187 done
7188
7189 fi
7190 if test "${ac_cv_func_stpcpy}" = "yes"; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_STPCPY 1
7194 _ACEOF
7195
7196 fi
7197
7198 if test $ac_cv_header_locale_h = yes; then
7199 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7200 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7201 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #include <locale.h>
7211 int
7212 main ()
7213 {
7214 return LC_MESSAGES
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -z "$ac_c_werror_flag"
7229 || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 am_cv_val_LC_MESSAGES=yes
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 am_cv_val_LC_MESSAGES=no
7247 fi
7248 rm -f conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7250 fi
7251 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7252 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7253 if test $am_cv_val_LC_MESSAGES = yes; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_LC_MESSAGES 1
7257 _ACEOF
7258
7259 fi
7260 fi
7261 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7262 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7263 # Check whether --enable-nls or --disable-nls was given.
7264 if test "${enable_nls+set}" = set; then
7265 enableval="$enable_nls"
7266 USE_NLS=$enableval
7267 else
7268 USE_NLS=yes
7269 fi;
7270 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7271 echo "${ECHO_T}$USE_NLS" >&6
7272
7273
7274 USE_INCLUDED_LIBINTL=no
7275
7276 if test "$USE_NLS" = "yes"; then
7277 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7278 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7279
7280 # Check whether --with-included-gettext or --without-included-gettext was given.
7281 if test "${with_included_gettext+set}" = set; then
7282 withval="$with_included_gettext"
7283 nls_cv_force_use_gnu_gettext=$withval
7284 else
7285 nls_cv_force_use_gnu_gettext=no
7286 fi;
7287 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7288 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7289
7290 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7291 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7292 nls_cv_header_intl=
7293 nls_cv_header_libgt=
7294 CATOBJEXT=
7295
7296 if test "${ac_cv_header_libintl_h+set}" = set; then
7297 echo "$as_me:$LINENO: checking for libintl.h" >&5
7298 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7299 if test "${ac_cv_header_libintl_h+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 fi
7302 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7303 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7304 else
7305 # Is the header compilable?
7306 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7307 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 $ac_includes_default
7315 #include <libintl.h>
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try='test -z "$ac_c_werror_flag"
7327 || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7340 else
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 ac_header_compiler=no
7345 fi
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7352 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <libintl.h>
7360 _ACEOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372 else
7373 ac_cpp_err=
7374 fi
7375 else
7376 ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_header_preproc=no
7385 fi
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 yes:no: )
7393 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7398 ;;
7399 no:yes:* )
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7412 (
7413 cat <<\_ASBOX
7414 ## ------------------------------------------ ##
7415 ## Report this to the AC_PACKAGE_NAME lists. ##
7416 ## ------------------------------------------ ##
7417 _ASBOX
7418 ) |
7419 sed "s/^/$as_me: WARNING: /" >&2
7420 ;;
7421 esac
7422 echo "$as_me:$LINENO: checking for libintl.h" >&5
7423 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7424 if test "${ac_cv_header_libintl_h+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 ac_cv_header_libintl_h=$ac_header_preproc
7428 fi
7429 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7430 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7431
7432 fi
7433 if test $ac_cv_header_libintl_h = yes; then
7434 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7435 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7436 if test "${gt_cv_func_gettext_libc+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <libintl.h>
7446 int
7447 main ()
7448 {
7449 return (int) gettext ("")
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 gt_cv_func_gettext_libc=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 gt_cv_func_gettext_libc=no
7482 fi
7483 rm -f conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 fi
7486 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7487 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7488
7489 if test "$gt_cv_func_gettext_libc" != "yes"; then
7490 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7491 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7492 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 ac_check_lib_save_LIBS=$LIBS
7496 LIBS="-lintl $LIBS"
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 #ifdef __cplusplus
7506 extern "C"
7507 #endif
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510 char bindtextdomain ();
7511 int
7512 main ()
7513 {
7514 bindtextdomain ();
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_intl_bindtextdomain=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_cv_lib_intl_bindtextdomain=no
7547 fi
7548 rm -f conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 LIBS=$ac_check_lib_save_LIBS
7551 fi
7552 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7553 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7554 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7555 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7556 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7557 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566
7567 int
7568 main ()
7569 {
7570 return (int) gettext ("")
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 gt_cv_func_gettext_libintl=yes
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602 gt_cv_func_gettext_libintl=no
7603 fi
7604 rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606 fi
7607 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7608 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7609 fi
7610
7611 fi
7612
7613 if test "$gt_cv_func_gettext_libc" = "yes" \
7614 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_GETTEXT 1
7618 _ACEOF
7619
7620 # Extract the first word of "msgfmt", so it can be a program name with args.
7621 set dummy msgfmt; ac_word=$2
7622 echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624 if test "${ac_cv_path_MSGFMT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 case "$MSGFMT" in
7628 /*)
7629 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7633 for ac_dir in $PATH; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7637 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7638 break
7639 fi
7640 fi
7641 done
7642 IFS="$ac_save_ifs"
7643 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7644 ;;
7645 esac
7646 fi
7647 MSGFMT="$ac_cv_path_MSGFMT"
7648 if test -n "$MSGFMT"; then
7649 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7650 echo "${ECHO_T}$MSGFMT" >&6
7651 else
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654 fi
7655 if test "$MSGFMT" != "no"; then
7656
7657 for ac_func in dcgettext
7658 do
7659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7660 echo "$as_me:$LINENO: checking for $ac_func" >&5
7661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7662 if eval "test \"\${$as_ac_var+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7673 #define $ac_func innocuous_$ac_func
7674
7675 /* System header to define __stub macros and hopefully few prototypes,
7676 which can conflict with char $ac_func (); below.
7677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7678 <limits.h> exists even on freestanding compilers. */
7679
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685
7686 #undef $ac_func
7687
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 #ifdef __cplusplus
7690 extern "C"
7691 {
7692 #endif
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char $ac_func ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 choke me
7701 #else
7702 char (*f) () = $ac_func;
7703 #endif
7704 #ifdef __cplusplus
7705 }
7706 #endif
7707
7708 int
7709 main ()
7710 {
7711 return f != $ac_func;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext conftest$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 eval "$as_ac_var=yes"
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 eval "$as_ac_var=no"
7744 fi
7745 rm -f conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 fi
7748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7750 if test `eval echo '${'$as_ac_var'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7753 _ACEOF
7754
7755 fi
7756 done
7757
7758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7759 set dummy gmsgfmt; ac_word=$2
7760 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 case $GMSGFMT in
7766 [\\/]* | ?:[\\/]*)
7767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7768 ;;
7769 *)
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781 done
7782 done
7783
7784 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7785 ;;
7786 esac
7787 fi
7788 GMSGFMT=$ac_cv_path_GMSGFMT
7789
7790 if test -n "$GMSGFMT"; then
7791 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7792 echo "${ECHO_T}$GMSGFMT" >&6
7793 else
7794 echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6
7796 fi
7797
7798 # Extract the first word of "xgettext", so it can be a program name with args.
7799 set dummy xgettext; ac_word=$2
7800 echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 case "$XGETTEXT" in
7806 /*)
7807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7811 for ac_dir in $PATH; do
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f $ac_dir/$ac_word; then
7814 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7815 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7816 break
7817 fi
7818 fi
7819 done
7820 IFS="$ac_save_ifs"
7821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7822 ;;
7823 esac
7824 fi
7825 XGETTEXT="$ac_cv_path_XGETTEXT"
7826 if test -n "$XGETTEXT"; then
7827 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7828 echo "${ECHO_T}$XGETTEXT" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 fi
7833
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840
7841 int
7842 main ()
7843 {
7844 extern int _nl_msg_cat_cntr;
7845 return _nl_msg_cat_cntr
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 CATOBJEXT=.gmo
7873 DATADIRNAME=share
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 CATOBJEXT=.mo
7879 DATADIRNAME=lib
7880 fi
7881 rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 INSTOBJEXT=.mo
7884 fi
7885 fi
7886
7887 fi
7888
7889
7890
7891
7892 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7893 # Neither gettext nor catgets in included in the C library.
7894 # Fall back on GNU gettext library (assuming it is present).
7895 nls_cv_use_gnu_gettext=yes
7896 fi
7897 fi
7898
7899 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7900 INTLOBJS="\$(GETTOBJS)"
7901 # Extract the first word of "msgfmt", so it can be a program name with args.
7902 set dummy msgfmt; ac_word=$2
7903 echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905 if test "${ac_cv_path_MSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 case "$MSGFMT" in
7909 /*)
7910 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7911 ;;
7912 *)
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7918 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7919 break
7920 fi
7921 fi
7922 done
7923 IFS="$ac_save_ifs"
7924 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7925 ;;
7926 esac
7927 fi
7928 MSGFMT="$ac_cv_path_MSGFMT"
7929 if test -n "$MSGFMT"; then
7930 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7931 echo "${ECHO_T}$MSGFMT" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7935 fi
7936
7937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7938 set dummy gmsgfmt; ac_word=$2
7939 echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944 case $GMSGFMT in
7945 [\\/]* | ?:[\\/]*)
7946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7947 ;;
7948 *)
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962
7963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7964 ;;
7965 esac
7966 fi
7967 GMSGFMT=$ac_cv_path_GMSGFMT
7968
7969 if test -n "$GMSGFMT"; then
7970 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7971 echo "${ECHO_T}$GMSGFMT" >&6
7972 else
7973 echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6
7975 fi
7976
7977 # Extract the first word of "xgettext", so it can be a program name with args.
7978 set dummy xgettext; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 case "$XGETTEXT" in
7985 /*)
7986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7990 for ac_dir in $PATH; do
7991 test -z "$ac_dir" && ac_dir=.
7992 if test -f $ac_dir/$ac_word; then
7993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7995 break
7996 fi
7997 fi
7998 done
7999 IFS="$ac_save_ifs"
8000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8001 ;;
8002 esac
8003 fi
8004 XGETTEXT="$ac_cv_path_XGETTEXT"
8005 if test -n "$XGETTEXT"; then
8006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8007 echo "${ECHO_T}$XGETTEXT" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8011 fi
8012
8013
8014 USE_INCLUDED_LIBINTL=yes
8015 CATOBJEXT=.gmo
8016 INSTOBJEXT=.mo
8017 DATADIRNAME=share
8018 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8019 INTLLIBS=$INTLDEPS
8020 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8021 nls_cv_header_intl=libintl.h
8022 nls_cv_header_libgt=libgettext.h
8023 fi
8024
8025 if test "$XGETTEXT" != ":"; then
8026 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8027 : ;
8028 else
8029 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8030 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8031 XGETTEXT=":"
8032 fi
8033 fi
8034
8035 # We need to process the po/ directory.
8036 POSUB=po
8037 else
8038 DATADIRNAME=share
8039 nls_cv_header_intl=libintl.h
8040 nls_cv_header_libgt=libgettext.h
8041 fi
8042
8043 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8044 # because some of the sources are only built for this goal.
8045 if test "$PACKAGE" = gettext; then
8046 USE_NLS=yes
8047 USE_INCLUDED_LIBINTL=yes
8048 fi
8049
8050 for lang in $ALL_LINGUAS; do
8051 GMOFILES="$GMOFILES $lang.gmo"
8052 POFILES="$POFILES $lang.po"
8053 done
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 if test "x$CATOBJEXT" != "x"; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define ENABLE_NLS 1
8070 _ACEOF
8071
8072 fi
8073
8074
8075 if test "x$CATOBJEXT" != "x"; then
8076 if test "x$ALL_LINGUAS" = "x"; then
8077 LINGUAS=
8078 else
8079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8080 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8081 NEW_LINGUAS=
8082 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8083 case "$ALL_LINGUAS" in
8084 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8085 esac
8086 done
8087 LINGUAS=$NEW_LINGUAS
8088 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8089 echo "${ECHO_T}$LINGUAS" >&6
8090 fi
8091
8092 if test -n "$LINGUAS"; then
8093 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8094 fi
8095 fi
8096
8097 if test $ac_cv_header_locale_h = yes; then
8098 INCLUDE_LOCALE_H="#include <locale.h>"
8099 else
8100 INCLUDE_LOCALE_H="\
8101 /* The system does not provide the header <locale.h>. Take care yourself. */"
8102 fi
8103
8104
8105 if test -f $srcdir/po2tbl.sed.in; then
8106 if test "$CATOBJEXT" = ".cat"; then
8107 if test "${ac_cv_header_linux_version_h+set}" = set; then
8108 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8109 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8110 if test "${ac_cv_header_linux_version_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8114 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8115 else
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8118 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #include <linux/version.h>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_header_compiler=no
8156 fi
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159 echo "${ECHO_T}$ac_header_compiler" >&6
8160
8161 # Is the header present?
8162 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8163 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <linux/version.h>
8171 _ACEOF
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_c_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8183 else
8184 ac_cpp_err=
8185 fi
8186 else
8187 ac_cpp_err=yes
8188 fi
8189 if test -z "$ac_cpp_err"; then
8190 ac_header_preproc=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_header_preproc=no
8196 fi
8197 rm -f conftest.err conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6
8200
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 yes:no: )
8204 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8209 ;;
8210 no:yes:* )
8211 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8223 (
8224 cat <<\_ASBOX
8225 ## ------------------------------------------ ##
8226 ## Report this to the AC_PACKAGE_NAME lists. ##
8227 ## ------------------------------------------ ##
8228 _ASBOX
8229 ) |
8230 sed "s/^/$as_me: WARNING: /" >&2
8231 ;;
8232 esac
8233 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8234 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8235 if test "${ac_cv_header_linux_version_h+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 ac_cv_header_linux_version_h=$ac_header_preproc
8239 fi
8240 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8241 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8242
8243 fi
8244 if test $ac_cv_header_linux_version_h = yes; then
8245 msgformat=linux
8246 else
8247 msgformat=xopen
8248 fi
8249
8250
8251
8252 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8253 fi
8254 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8255 $srcdir/po2tbl.sed.in > po2tbl.sed
8256 fi
8257
8258 if test "$PACKAGE" = "gettext"; then
8259 GT_NO="#NO#"
8260 GT_YES=
8261 else
8262 GT_NO=
8263 GT_YES="#YES#"
8264 fi
8265
8266
8267
8268 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8269
8270
8271 l=
8272
8273
8274 if test -f $srcdir/po/POTFILES.in; then
8275 test -d po || mkdir po
8276 if test "x$srcdir" != "x."; then
8277 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8278 posrcprefix="$srcdir/"
8279 else
8280 posrcprefix="../$srcdir/"
8281 fi
8282 else
8283 posrcprefix="../"
8284 fi
8285 rm -f po/POTFILES
8286 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8287 < $srcdir/po/POTFILES.in > po/POTFILES
8288 fi
8289
8290
8291 # Permit host specific settings.
8292 . ${srcdir}/configure.host
8293
8294
8295 # Find a good install program. We prefer a C program (faster),
8296 # so one script is as good as another. But avoid the broken or
8297 # incompatible versions:
8298 # SysV /etc/install, /usr/sbin/install
8299 # SunOS /usr/etc/install
8300 # IRIX /sbin/install
8301 # AIX /bin/install
8302 # AmigaOS /C/install, which installs bootblocks on floppy discs
8303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8306 # OS/2's system install, which has a completely different semantic
8307 # ./install, which can be erroneously created by make from ./install.sh.
8308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8310 if test -z "$INSTALL"; then
8311 if test "${ac_cv_path_install+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 # Account for people who put trailing slashes in PATH elements.
8320 case $as_dir/ in
8321 ./ | .// | /cC/* | \
8322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8324 /usr/ucb/* ) ;;
8325 *)
8326 # OSF1 and SCO ODT 3.0 have their own names for install.
8327 # Don't use installbsd from OSF since it installs stuff as root
8328 # by default.
8329 for ac_prog in ginstall scoinst install; do
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8332 if test $ac_prog = install &&
8333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8334 # AIX install. It has an incompatible calling convention.
8335 :
8336 elif test $ac_prog = install &&
8337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8338 # program-specific install script used by HP pwplus--don't use.
8339 :
8340 else
8341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8342 break 3
8343 fi
8344 fi
8345 done
8346 done
8347 ;;
8348 esac
8349 done
8350
8351
8352 fi
8353 if test "${ac_cv_path_install+set}" = set; then
8354 INSTALL=$ac_cv_path_install
8355 else
8356 # As a last resort, use the slow shell script. We don't cache a
8357 # path for INSTALL within a source directory, because that will
8358 # break other packages using the cache if that directory is
8359 # removed, or if the path is relative.
8360 INSTALL=$ac_install_sh
8361 fi
8362 fi
8363 echo "$as_me:$LINENO: result: $INSTALL" >&5
8364 echo "${ECHO_T}$INSTALL" >&6
8365
8366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8367 # It thinks the first close brace ends the variable substitution.
8368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8369
8370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8371
8372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8373
8374
8375 BFD_HOST_64BIT_LONG=0
8376 BFD_HOST_LONG_LONG=0
8377 BFD_HOST_64_BIT_DEFINED=0
8378 BFD_HOST_64_BIT=
8379 BFD_HOST_U_64_BIT=
8380
8381 echo "$as_me:$LINENO: checking for long long" >&5
8382 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8383 if test "${bfd_cv_has_long_long+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392
8393 int
8394 main ()
8395 {
8396 unsigned long long ll = 18446744073709551615ULL;
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 bfd_cv_has_long_long=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 bfd_cv_has_long_long=no
8429 fi
8430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432
8433 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8434 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8435 if test $bfd_cv_has_long_long = yes; then
8436 BFD_HOST_LONG_LONG=1
8437 echo "$as_me:$LINENO: checking size of long long" >&5
8438 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8439 if test "${ac_cv_sizeof_long_long+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #include "confdefs.h"
8450 #include <sys/types.h>
8451
8452
8453 int
8454 main ()
8455 {
8456 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463 (eval $ac_compile) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_sizeof_long_long=$ac_size
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 fi
8489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8490 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8491 done
8492
8493 fi
8494
8495 if test x$ac_cv_sizeof_long_long = x ; then
8496 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8497 echo "$as_me: error: cannot determine a size for long long" >&2;}
8498 { (exit 1); exit 1; }; }
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8501 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8502
8503 cat >>confdefs.h <<_ACEOF
8504 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8505 _ACEOF
8506
8507
8508 fi
8509
8510 echo "$as_me:$LINENO: checking size of long" >&5
8511 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8512 if test "${ac_cv_sizeof_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 #include "confdefs.h"
8523 #include <sys/types.h>
8524
8525
8526 int
8527 main ()
8528 {
8529 switch (0) case 0: case (sizeof (long) == $ac_size):;
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -z "$ac_c_werror_flag"
8544 || test ! -s conftest.err'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_sizeof_long=$ac_size
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 fi
8562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8563 if test x$ac_cv_sizeof_long != x ; then break; fi
8564 done
8565
8566 fi
8567
8568 if test x$ac_cv_sizeof_long = x ; then
8569 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8570 echo "$as_me: error: cannot determine a size for long" >&2;}
8571 { (exit 1); exit 1; }; }
8572 fi
8573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8575
8576 cat >>confdefs.h <<_ACEOF
8577 #define SIZEOF_LONG $ac_cv_sizeof_long
8578 _ACEOF
8579
8580
8581 if test "x${ac_cv_sizeof_long}" = "x8"; then
8582 host64=true
8583 BFD_HOST_64BIT_LONG=1
8584 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8585 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8586 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8587 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8588 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8589 fi
8590
8591 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8592 BFD_HOST_64_BIT_DEFINED=1
8593 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8594 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8595 fi
8596
8597
8598
8599
8600
8601
8602
8603 # Put a plausible default for CC_FOR_BUILD in Makefile.
8604 if test -z "$CC_FOR_BUILD"; then
8605 if test "x$cross_compiling" = "xno"; then
8606 CC_FOR_BUILD='$(CC)'
8607 else
8608 CC_FOR_BUILD=gcc
8609 fi
8610 fi
8611
8612 # Also set EXEEXT_FOR_BUILD.
8613 if test "x$cross_compiling" = "xno"; then
8614 EXEEXT_FOR_BUILD='$(EXEEXT)'
8615 else
8616 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8617 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8618 if test "${bfd_cv_build_exeext+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 rm -f conftest*
8622 echo 'int main () { return 0; }' > conftest.c
8623 bfd_cv_build_exeext=
8624 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8625 for file in conftest.*; do
8626 case $file in
8627 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8628 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8629 esac
8630 done
8631 rm -f conftest*
8632 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8633 fi
8634 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8635 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8636 EXEEXT_FOR_BUILD=""
8637 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8638 fi
8639
8640
8641
8642
8643
8644
8645
8646
8647 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8648 do
8649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651 echo "$as_me:$LINENO: checking for $ac_header" >&5
8652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 fi
8656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8658 else
8659 # Is the header compilable?
8660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8669 #include <$ac_header>
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673 (eval $ac_compile) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_header_compiler=yes
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_header_compiler=no
8699 fi
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8702 echo "${ECHO_T}$ac_header_compiler" >&6
8703
8704 # Is the header present?
8705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 #include <$ac_header>
8714 _ACEOF
8715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } >/dev/null; then
8723 if test -s conftest.err; then
8724 ac_cpp_err=$ac_c_preproc_warn_flag
8725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8726 else
8727 ac_cpp_err=
8728 fi
8729 else
8730 ac_cpp_err=yes
8731 fi
8732 if test -z "$ac_cpp_err"; then
8733 ac_header_preproc=yes
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_header_preproc=no
8739 fi
8740 rm -f conftest.err conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8742 echo "${ECHO_T}$ac_header_preproc" >&6
8743
8744 # So? What about this header?
8745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8746 yes:no: )
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8751 ac_header_preproc=yes
8752 ;;
8753 no:yes:* )
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8766 (
8767 cat <<\_ASBOX
8768 ## ------------------------------------------ ##
8769 ## Report this to the AC_PACKAGE_NAME lists. ##
8770 ## ------------------------------------------ ##
8771 _ASBOX
8772 ) |
8773 sed "s/^/$as_me: WARNING: /" >&2
8774 ;;
8775 esac
8776 echo "$as_me:$LINENO: checking for $ac_header" >&5
8777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 eval "$as_ac_Header=\$ac_header_preproc"
8782 fi
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785
8786 fi
8787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8788 cat >>confdefs.h <<_ACEOF
8789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8790 _ACEOF
8791
8792 fi
8793
8794 done
8795
8796
8797
8798
8799 for ac_header in fcntl.h sys/file.h sys/time.h
8800 do
8801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803 echo "$as_me:$LINENO: checking for $ac_header" >&5
8804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 fi
8808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8810 else
8811 # Is the header compilable?
8812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 #include <$ac_header>
8822 _ACEOF
8823 rm -f conftest.$ac_objext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825 (eval $ac_compile) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest.$ac_objext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_header_compiler=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_header_compiler=no
8851 fi
8852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8854 echo "${ECHO_T}$ac_header_compiler" >&6
8855
8856 # Is the header present?
8857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 #include <$ac_header>
8866 _ACEOF
8867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } >/dev/null; then
8875 if test -s conftest.err; then
8876 ac_cpp_err=$ac_c_preproc_warn_flag
8877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8878 else
8879 ac_cpp_err=
8880 fi
8881 else
8882 ac_cpp_err=yes
8883 fi
8884 if test -z "$ac_cpp_err"; then
8885 ac_header_preproc=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890 ac_header_preproc=no
8891 fi
8892 rm -f conftest.err conftest.$ac_ext
8893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894 echo "${ECHO_T}$ac_header_preproc" >&6
8895
8896 # So? What about this header?
8897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898 yes:no: )
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903 ac_header_preproc=yes
8904 ;;
8905 no:yes:* )
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918 (
8919 cat <<\_ASBOX
8920 ## ------------------------------------------ ##
8921 ## Report this to the AC_PACKAGE_NAME lists. ##
8922 ## ------------------------------------------ ##
8923 _ASBOX
8924 ) |
8925 sed "s/^/$as_me: WARNING: /" >&2
8926 ;;
8927 esac
8928 echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 eval "$as_ac_Header=\$ac_header_preproc"
8934 fi
8935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8937
8938 fi
8939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942 _ACEOF
8943
8944 fi
8945
8946 done
8947
8948 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8950 if test "${ac_cv_header_time+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <sys/types.h>
8960 #include <sys/time.h>
8961 #include <time.h>
8962
8963 int
8964 main ()
8965 {
8966 if ((struct tm *) 0)
8967 return 0;
8968 ;
8969 return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_header_time=yes
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 ac_cv_header_time=no
9000 fi
9001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002 fi
9003 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9004 echo "${ECHO_T}$ac_cv_header_time" >&6
9005 if test $ac_cv_header_time = yes; then
9006
9007 cat >>confdefs.h <<\_ACEOF
9008 #define TIME_WITH_SYS_TIME 1
9009 _ACEOF
9010
9011 fi
9012
9013
9014
9015
9016
9017
9018 ac_header_dirent=no
9019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9020 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9021 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9022 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <sys/types.h>
9033 #include <$ac_hdr>
9034
9035 int
9036 main ()
9037 {
9038 if ((DIR *) 0)
9039 return 0;
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 eval "$as_ac_Header=yes"
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 eval "$as_ac_Header=no"
9072 fi
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9078 cat >>confdefs.h <<_ACEOF
9079 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9080 _ACEOF
9081
9082 ac_header_dirent=$ac_hdr; break
9083 fi
9084
9085 done
9086 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9087 if test $ac_header_dirent = dirent.h; then
9088 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9089 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9090 if test "${ac_cv_search_opendir+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 ac_func_search_save_LIBS=$LIBS
9094 ac_cv_search_opendir=no
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h. */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101
9102 /* Override any gcc2 internal prototype to avoid an error. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 /* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */
9108 char opendir ();
9109 int
9110 main ()
9111 {
9112 opendir ();
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest$ac_exeext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_cv_search_opendir="none required"
9140 else
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144 fi
9145 rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 if test "$ac_cv_search_opendir" = no; then
9148 for ac_lib in dir; do
9149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156
9157 /* Override any gcc2 internal prototype to avoid an error. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9163 char opendir ();
9164 int
9165 main ()
9166 {
9167 opendir ();
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_search_opendir="-l$ac_lib"
9195 break
9196 else
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 fi
9201 rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 done
9204 fi
9205 LIBS=$ac_func_search_save_LIBS
9206 fi
9207 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9208 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9209 if test "$ac_cv_search_opendir" != no; then
9210 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9211
9212 fi
9213
9214 else
9215 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9216 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9217 if test "${ac_cv_search_opendir+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 ac_func_search_save_LIBS=$LIBS
9221 ac_cv_search_opendir=no
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228
9229 /* Override any gcc2 internal prototype to avoid an error. */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 /* We use char because int might match the return type of a gcc2
9234 builtin and then its argument prototype would still apply. */
9235 char opendir ();
9236 int
9237 main ()
9238 {
9239 opendir ();
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest$ac_exeext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_search_opendir="none required"
9267 else
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 fi
9272 rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 if test "$ac_cv_search_opendir" = no; then
9275 for ac_lib in x; do
9276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 /* We use char because int might match the return type of a gcc2
9289 builtin and then its argument prototype would still apply. */
9290 char opendir ();
9291 int
9292 main ()
9293 {
9294 opendir ();
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_search_opendir="-l$ac_lib"
9322 break
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 done
9331 fi
9332 LIBS=$ac_func_search_save_LIBS
9333 fi
9334 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9335 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9336 if test "$ac_cv_search_opendir" != no; then
9337 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9338
9339 fi
9340
9341 fi
9342
9343
9344
9345
9346
9347
9348
9349
9350 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9351 do
9352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9353 echo "$as_me:$LINENO: checking for $ac_func" >&5
9354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9355 if eval "test \"\${$as_ac_var+set}\" = set"; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9366 #define $ac_func innocuous_$ac_func
9367
9368 /* System header to define __stub macros and hopefully few prototypes,
9369 which can conflict with char $ac_func (); below.
9370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9371 <limits.h> exists even on freestanding compilers. */
9372
9373 #ifdef __STDC__
9374 # include <limits.h>
9375 #else
9376 # include <assert.h>
9377 #endif
9378
9379 #undef $ac_func
9380
9381 /* Override any gcc2 internal prototype to avoid an error. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 {
9385 #endif
9386 /* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */
9388 char $ac_func ();
9389 /* The GNU C library defines this for functions which it implements
9390 to always fail with ENOSYS. Some functions are actually named
9391 something starting with __ and the normal name is an alias. */
9392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9393 choke me
9394 #else
9395 char (*f) () = $ac_func;
9396 #endif
9397 #ifdef __cplusplus
9398 }
9399 #endif
9400
9401 int
9402 main ()
9403 {
9404 return f != $ac_func;
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>conftest.er1
9412 ac_status=$?
9413 grep -v '^ *+' conftest.er1 >conftest.err
9414 rm -f conftest.er1
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -z "$ac_c_werror_flag"
9419 || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 eval "$as_ac_var=yes"
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 eval "$as_ac_var=no"
9437 fi
9438 rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 fi
9441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9443 if test `eval echo '${'$as_ac_var'}'` = yes; then
9444 cat >>confdefs.h <<_ACEOF
9445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9446 _ACEOF
9447
9448 fi
9449 done
9450
9451
9452 for ac_func in strtoull
9453 do
9454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9455 echo "$as_me:$LINENO: checking for $ac_func" >&5
9456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_var+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9468 #define $ac_func innocuous_$ac_func
9469
9470 /* System header to define __stub macros and hopefully few prototypes,
9471 which can conflict with char $ac_func (); below.
9472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 <limits.h> exists even on freestanding compilers. */
9474
9475 #ifdef __STDC__
9476 # include <limits.h>
9477 #else
9478 # include <assert.h>
9479 #endif
9480
9481 #undef $ac_func
9482
9483 /* Override any gcc2 internal prototype to avoid an error. */
9484 #ifdef __cplusplus
9485 extern "C"
9486 {
9487 #endif
9488 /* We use char because int might match the return type of a gcc2
9489 builtin and then its argument prototype would still apply. */
9490 char $ac_func ();
9491 /* The GNU C library defines this for functions which it implements
9492 to always fail with ENOSYS. Some functions are actually named
9493 something starting with __ and the normal name is an alias. */
9494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9495 choke me
9496 #else
9497 char (*f) () = $ac_func;
9498 #endif
9499 #ifdef __cplusplus
9500 }
9501 #endif
9502
9503 int
9504 main ()
9505 {
9506 return f != $ac_func;
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 eval "$as_ac_var=yes"
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 eval "$as_ac_var=no"
9539 fi
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 fi
9543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548 _ACEOF
9549
9550 fi
9551 done
9552
9553
9554 echo "$as_me:$LINENO: checking whether basename is declared" >&5
9555 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
9556 if test "${ac_cv_have_decl_basename+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 int
9567 main ()
9568 {
9569 #ifndef basename
9570 char *p = (char *) basename;
9571 #endif
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_have_decl_basename=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_cv_have_decl_basename=no
9605 fi
9606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
9609 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
9610 if test $ac_cv_have_decl_basename = yes; then
9611
9612 cat >>confdefs.h <<_ACEOF
9613 #define HAVE_DECL_BASENAME 1
9614 _ACEOF
9615
9616
9617 else
9618 cat >>confdefs.h <<_ACEOF
9619 #define HAVE_DECL_BASENAME 0
9620 _ACEOF
9621
9622
9623 fi
9624
9625
9626 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
9627 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
9628 if test "${ac_cv_have_decl_ftello+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 $ac_includes_default
9638 int
9639 main ()
9640 {
9641 #ifndef ftello
9642 char *p = (char *) ftello;
9643 #endif
9644
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag"
9659 || test ! -s conftest.err'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 (eval $ac_try) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_have_decl_ftello=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_cv_have_decl_ftello=no
9677 fi
9678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9679 fi
9680 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
9681 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
9682 if test $ac_cv_have_decl_ftello = yes; then
9683
9684 cat >>confdefs.h <<_ACEOF
9685 #define HAVE_DECL_FTELLO 1
9686 _ACEOF
9687
9688
9689 else
9690 cat >>confdefs.h <<_ACEOF
9691 #define HAVE_DECL_FTELLO 0
9692 _ACEOF
9693
9694
9695 fi
9696
9697
9698 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
9699 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
9700 if test "${ac_cv_have_decl_ftello64+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 int
9711 main ()
9712 {
9713 #ifndef ftello64
9714 char *p = (char *) ftello64;
9715 #endif
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest.$ac_objext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_have_decl_ftello64=yes
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 ac_cv_have_decl_ftello64=no
9749 fi
9750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9751 fi
9752 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
9753 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
9754 if test $ac_cv_have_decl_ftello64 = yes; then
9755
9756 cat >>confdefs.h <<_ACEOF
9757 #define HAVE_DECL_FTELLO64 1
9758 _ACEOF
9759
9760
9761 else
9762 cat >>confdefs.h <<_ACEOF
9763 #define HAVE_DECL_FTELLO64 0
9764 _ACEOF
9765
9766
9767 fi
9768
9769
9770 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
9771 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
9772 if test "${ac_cv_have_decl_fseeko+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 int
9783 main ()
9784 {
9785 #ifndef fseeko
9786 char *p = (char *) fseeko;
9787 #endif
9788
9789 ;
9790 return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795 (eval $ac_compile) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -z "$ac_c_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_have_decl_fseeko=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_have_decl_fseeko=no
9821 fi
9822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9823 fi
9824 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
9825 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
9826 if test $ac_cv_have_decl_fseeko = yes; then
9827
9828 cat >>confdefs.h <<_ACEOF
9829 #define HAVE_DECL_FSEEKO 1
9830 _ACEOF
9831
9832
9833 else
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DECL_FSEEKO 0
9836 _ACEOF
9837
9838
9839 fi
9840
9841
9842 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
9843 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
9844 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 $ac_includes_default
9854 int
9855 main ()
9856 {
9857 #ifndef fseeko64
9858 char *p = (char *) fseeko64;
9859 #endif
9860
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest.$ac_objext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_have_decl_fseeko64=yes
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ac_cv_have_decl_fseeko64=no
9893 fi
9894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
9897 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
9898 if test $ac_cv_have_decl_fseeko64 = yes; then
9899
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_FSEEKO64 1
9902 _ACEOF
9903
9904
9905 else
9906 cat >>confdefs.h <<_ACEOF
9907 #define HAVE_DECL_FSEEKO64 0
9908 _ACEOF
9909
9910
9911 fi
9912
9913
9914
9915
9916 case "${host}" in
9917 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define USE_BINARY_FOPEN 1
9921 _ACEOF
9922 ;;
9923 esac
9924
9925 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
9926 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
9927 if test "${ac_cv_have_decl_ffs+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 $ac_includes_default
9937 int
9938 main ()
9939 {
9940 #ifndef ffs
9941 char *p = (char *) ffs;
9942 #endif
9943
9944 ;
9945 return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9950 (eval $ac_compile) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest.$ac_objext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_have_decl_ffs=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 ac_cv_have_decl_ffs=no
9976 fi
9977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9978 fi
9979 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
9980 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
9981 if test $ac_cv_have_decl_ffs = yes; then
9982
9983 cat >>confdefs.h <<_ACEOF
9984 #define HAVE_DECL_FFS 1
9985 _ACEOF
9986
9987
9988 else
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_FFS 0
9991 _ACEOF
9992
9993
9994 fi
9995
9996
9997 echo "$as_me:$LINENO: checking whether free is declared" >&5
9998 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9999 if test "${ac_cv_have_decl_free+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h. */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 int
10010 main ()
10011 {
10012 #ifndef free
10013 char *p = (char *) free;
10014 #endif
10015
10016 ;
10017 return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022 (eval $ac_compile) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest.$ac_objext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_have_decl_free=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_cv_have_decl_free=no
10048 fi
10049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 fi
10051 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10052 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10053 if test $ac_cv_have_decl_free = yes; then
10054
10055 cat >>confdefs.h <<_ACEOF
10056 #define HAVE_DECL_FREE 1
10057 _ACEOF
10058
10059
10060 else
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_DECL_FREE 0
10063 _ACEOF
10064
10065
10066 fi
10067
10068
10069 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10070 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10071 if test "${ac_cv_have_decl_getenv+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 int
10082 main ()
10083 {
10084 #ifndef getenv
10085 char *p = (char *) getenv;
10086 #endif
10087
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest.$ac_objext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_have_decl_getenv=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_have_decl_getenv=no
10120 fi
10121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122 fi
10123 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10124 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10125 if test $ac_cv_have_decl_getenv = yes; then
10126
10127 cat >>confdefs.h <<_ACEOF
10128 #define HAVE_DECL_GETENV 1
10129 _ACEOF
10130
10131
10132 else
10133 cat >>confdefs.h <<_ACEOF
10134 #define HAVE_DECL_GETENV 0
10135 _ACEOF
10136
10137
10138 fi
10139
10140
10141 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10142 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10143 if test "${ac_cv_have_decl_malloc+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 $ac_includes_default
10153 int
10154 main ()
10155 {
10156 #ifndef malloc
10157 char *p = (char *) malloc;
10158 #endif
10159
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest.$ac_objext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_have_decl_malloc=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_cv_have_decl_malloc=no
10192 fi
10193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10194 fi
10195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10196 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10197 if test $ac_cv_have_decl_malloc = yes; then
10198
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_DECL_MALLOC 1
10201 _ACEOF
10202
10203
10204 else
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_DECL_MALLOC 0
10207 _ACEOF
10208
10209
10210 fi
10211
10212
10213 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10214 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10215 if test "${ac_cv_have_decl_realloc+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 $ac_includes_default
10225 int
10226 main ()
10227 {
10228 #ifndef realloc
10229 char *p = (char *) realloc;
10230 #endif
10231
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238 (eval $ac_compile) 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag"
10246 || test ! -s conftest.err'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; } &&
10252 { ac_try='test -s conftest.$ac_objext'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 ac_cv_have_decl_realloc=yes
10259 else
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263 ac_cv_have_decl_realloc=no
10264 fi
10265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10266 fi
10267 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10268 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10269 if test $ac_cv_have_decl_realloc = yes; then
10270
10271 cat >>confdefs.h <<_ACEOF
10272 #define HAVE_DECL_REALLOC 1
10273 _ACEOF
10274
10275
10276 else
10277 cat >>confdefs.h <<_ACEOF
10278 #define HAVE_DECL_REALLOC 0
10279 _ACEOF
10280
10281
10282 fi
10283
10284
10285 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10286 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10287 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 $ac_includes_default
10297 int
10298 main ()
10299 {
10300 #ifndef stpcpy
10301 char *p = (char *) stpcpy;
10302 #endif
10303
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310 (eval $ac_compile) 2>conftest.er1
10311 ac_status=$?
10312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_c_werror_flag"
10318 || test ! -s conftest.err'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest.$ac_objext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 ac_cv_have_decl_stpcpy=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_cv_have_decl_stpcpy=no
10336 fi
10337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10340 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10341 if test $ac_cv_have_decl_stpcpy = yes; then
10342
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_DECL_STPCPY 1
10345 _ACEOF
10346
10347
10348 else
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_DECL_STPCPY 0
10351 _ACEOF
10352
10353
10354 fi
10355
10356
10357 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10358 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10359 if test "${ac_cv_have_decl_strstr+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 int
10370 main ()
10371 {
10372 #ifndef strstr
10373 char *p = (char *) strstr;
10374 #endif
10375
10376 ;
10377 return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_have_decl_strstr=yes
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_cv_have_decl_strstr=no
10408 fi
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10410 fi
10411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10412 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10413 if test $ac_cv_have_decl_strstr = yes; then
10414
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_DECL_STRSTR 1
10417 _ACEOF
10418
10419
10420 else
10421 cat >>confdefs.h <<_ACEOF
10422 #define HAVE_DECL_STRSTR 0
10423 _ACEOF
10424
10425
10426 fi
10427
10428
10429
10430 # If we are configured native, pick a core file support file.
10431 COREFILE=
10432 COREFLAG=
10433 TRAD_HEADER=
10434 if test "${target}" = "${host}"; then
10435 case "${host}" in
10436 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
10437 COREFILE=''
10438 ;;
10439 alpha*-*-linux-*)
10440 COREFILE=trad-core.lo
10441 TRAD_HEADER='"hosts/alphalinux.h"'
10442 ;;
10443 alpha*-*-netbsd* | alpha*-*-openbsd*)
10444 COREFILE=netbsd-core.lo
10445 ;;
10446 alpha*-*-*) COREFILE=osf-core.lo ;;
10447 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
10448 COREFILE='' ;;
10449 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
10450 arm-*-riscix) COREFILE=trad-core.lo ;;
10451 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
10452 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
10453 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
10454 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
10455 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
10456 hppa*-*-netbsd* | hppa*-*-openbsd*)
10457 COREFILE=netbsd-core.lo
10458 ;;
10459
10460 i370-*-*)
10461 COREFILE=trad-core.lo
10462 TRAD_HEADER='"hosts/i370linux.h"'
10463 ;;
10464
10465 i[3-7]86-sequent-bsd*)
10466 COREFILE=trad-core.lo
10467 TRAD_HEADER='"hosts/symmetry.h"'
10468 ;;
10469 i[3-7]86-sequent-sysv4*) ;;
10470 i[3-7]86-sequent-sysv*)
10471 COREFILE=trad-core.lo
10472 TRAD_HEADER='"hosts/symmetry.h"'
10473 ;;
10474 i[3-7]86-*-bsdi)
10475 COREFILE=
10476 ;;
10477 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
10478 COREFILE=trad-core.lo
10479 TRAD_HEADER='"hosts/i386bsd.h"'
10480 ;;
10481 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
10482 COREFILE=''
10483 TRAD_HEADER='"hosts/i386bsd.h"'
10484 ;;
10485 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
10486 COREFILE=netbsd-core.lo
10487 ;;
10488 i[3-7]86-esix-sysv3*)
10489 COREFILE=trad-core.lo
10490 TRAD_HEADER='"hosts/esix.h"'
10491 ;;
10492 i[3-7]86-*-sco3.2v5*)
10493 COREFILE=sco5-core.lo
10494 ;;
10495 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
10496 COREFILE=trad-core.lo
10497 TRAD_HEADER='"hosts/i386sco.h"'
10498 ;;
10499 i[3-7]86-*-mach3*)
10500 COREFILE=trad-core.lo
10501 TRAD_HEADER='"hosts/i386mach3.h"'
10502 ;;
10503 i[3-7]86-*-linux-*)
10504 COREFILE=trad-core.lo
10505 TRAD_HEADER='"hosts/i386linux.h"'
10506 ;;
10507 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
10508 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
10509 i860-*-mach3* | i860-*-osf1*)
10510 COREFILE=trad-core.lo
10511 TRAD_HEADER='"hosts/i860mach3.h"'
10512 ;;
10513 mips-*-netbsd* | mips*-*-openbsd*)
10514 COREFILE=netbsd-core.lo
10515 ;;
10516 mips-dec-*)
10517 COREFILE=trad-core.lo
10518 TRAD_HEADER='"hosts/decstation.h"'
10519 ;;
10520 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10521 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10522 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
10523 mips-*-sysv4*) ;;
10524 mips-*-sysv* | mips-*-riscos*)
10525 COREFILE=trad-core.lo
10526 TRAD_HEADER='"hosts/riscos.h"'
10527 ;;
10528 mips-sony-bsd*)
10529 COREFILE=trad-core.lo
10530 TRAD_HEADER='"hosts/news-mips.h"'
10531 ;;
10532 m68*-bull*-sysv*)
10533 COREFILE=trad-core.lo
10534 TRAD_HEADER='"hosts/dpx2.h"'
10535 ;;
10536 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10537 m68*-hp-bsd*)
10538 COREFILE=trad-core.lo
10539 TRAD_HEADER='"hosts/hp300bsd.h"'
10540 ;;
10541 m68*-*-linux-*)
10542 COREFILE=trad-core.lo
10543 TRAD_HEADER='"hosts/m68klinux.h"'
10544 ;;
10545 m68*-motorola-sysv*)
10546 COREFILE=trad-core.lo
10547 TRAD_HEADER='"hosts/delta68.h"'
10548 ;;
10549 m68*-sony-*)
10550 COREFILE=trad-core.lo
10551 TRAD_HEADER='"hosts/news.h"'
10552 ;;
10553 m68*-*-netbsd* | m68*-*-openbsd*)
10554 COREFILE=netbsd-core.lo
10555 ;;
10556 m68*-apple-aux*)
10557 COREFILE=trad-core.lo
10558 TRAD_HEADER='"hosts/m68kaux.h"'
10559 ;;
10560 m88*-*-sysv4*)
10561 ;;
10562 m88*-motorola-sysv*)
10563 COREFILE=ptrace-core.lo
10564 ;;
10565 m88*-*-mach3*)
10566 COREFILE=trad-core.lo
10567 TRAD_HEADER='"hosts/m88kmach3.h"'
10568 ;;
10569 m88*-*-openbsd*)
10570 COREFILE=netbsd-core.lo
10571 ;;
10572 ns32k-pc532-mach)
10573 COREFILE=trad-core.lo
10574 TRAD_HEADER='"hosts/pc532mach.h"'
10575 ;;
10576 ns32k-*-netbsd* | ns32k-*-openbsd*)
10577 COREFILE=netbsd-core.lo
10578 ;;
10579 rs6000-*-lynx*)
10580 COREFILE=lynx-core.lo
10581 ;;
10582 rs6000-*-aix5.* | powerpc-*-aix5.*)
10583 COREFILE=rs6000-core.lo
10584 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10585 ;;
10586 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10587 COREFILE=rs6000-core.lo
10588 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10589 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10590 # have c_impl as a member of struct core_dumpx
10591 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10592 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <core.h>
10600 int
10601 main ()
10602 {
10603 struct core_dumpx c; c.c_impl = 0;
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610 (eval $ac_compile) 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -z "$ac_c_werror_flag"
10618 || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_ST_C_IMPL 1
10633 _ACEOF
10634
10635 echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6
10643 fi
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 ;;
10646 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10647 rs6000-*-*) COREFILE=rs6000-core.lo ;;
10648 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10649 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10650 powerpc-*-beos*) ;;
10651 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10652 COREFILE='' ;;
10653 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
10654 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
10655 s390*-*-*) COREFILE=trad-core.lo ;;
10656 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
10657 sparc-*-netbsd* | sparc*-*-openbsd*)
10658 COREFILE=netbsd-core.lo
10659 ;;
10660 tahoe-*-*)
10661 COREFILE=trad-core.lo
10662 TRAD_HEADER='"hosts/tahoe.h"'
10663 ;;
10664 vax-*-netbsd* | vax-*-openbsd*)
10665 COREFILE=netbsd-core.lo
10666 ;;
10667 vax-*-ultrix2*)
10668 COREFILE=trad-core.lo
10669 TRAD_HEADER='"hosts/vaxult2.h"'
10670 ;;
10671 vax-*-ultrix*)
10672 COREFILE=trad-core.lo
10673 TRAD_HEADER='"hosts/vaxult2.h"'
10674 ;;
10675 vax-*-linux-*)
10676 COREFILE=trad-core.lo
10677 TRAD_HEADER='"hosts/vaxlinux.h"'
10678 ;;
10679 vax-*-*)
10680 COREFILE=trad-core.lo
10681 TRAD_HEADER='"hosts/vaxbsd.h"'
10682 ;;
10683 x86_64-*-netbsd* | x86_64-*-openbsd*)
10684 COREFILE=netbsd-core.lo
10685 ;;
10686 esac
10687
10688 case "$COREFILE" in
10689 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10690 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10691 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10692 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10693 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10694 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10695 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10696 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10697 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10698 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10699 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10700 esac
10701
10702 # ELF corefile support has several flavors, but all of
10703 # them use something called <sys/procfs.h>
10704
10705 for ac_header in sys/procfs.h
10706 do
10707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10709 echo "$as_me:$LINENO: checking for $ac_header" >&5
10710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 fi
10714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10716 else
10717 # Is the header compilable?
10718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 $ac_includes_default
10727 #include <$ac_header>
10728 _ACEOF
10729 rm -f conftest.$ac_objext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10731 (eval $ac_compile) 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_c_werror_flag"
10739 || test ! -s conftest.err'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_header_compiler=yes
10752 else
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 ac_header_compiler=no
10757 fi
10758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6
10761
10762 # Is the header present?
10763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10772 _ACEOF
10773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } >/dev/null; then
10781 if test -s conftest.err; then
10782 ac_cpp_err=$ac_c_preproc_warn_flag
10783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10784 else
10785 ac_cpp_err=
10786 fi
10787 else
10788 ac_cpp_err=yes
10789 fi
10790 if test -z "$ac_cpp_err"; then
10791 ac_header_preproc=yes
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 ac_header_preproc=no
10797 fi
10798 rm -f conftest.err conftest.$ac_ext
10799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10800 echo "${ECHO_T}$ac_header_preproc" >&6
10801
10802 # So? What about this header?
10803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10804 yes:no: )
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10809 ac_header_preproc=yes
10810 ;;
10811 no:yes:* )
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10824 (
10825 cat <<\_ASBOX
10826 ## ------------------------------------------ ##
10827 ## Report this to the AC_PACKAGE_NAME lists. ##
10828 ## ------------------------------------------ ##
10829 _ASBOX
10830 ) |
10831 sed "s/^/$as_me: WARNING: /" >&2
10832 ;;
10833 esac
10834 echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 eval "$as_ac_Header=\$ac_header_preproc"
10840 fi
10841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10843
10844 fi
10845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10846 cat >>confdefs.h <<_ACEOF
10847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 _ACEOF
10849
10850 fi
10851
10852 done
10853
10854 if test "$ac_cv_header_sys_procfs_h" = yes; then
10855 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10856 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10857 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866
10867 #define _SYSCALL32
10868 #include <sys/procfs.h>
10869 int
10870 main ()
10871 {
10872 prstatus_t avar
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag"
10887 || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 bfd_cv_have_sys_procfs_type_prstatus_t=no
10905
10906 fi
10907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10908 fi
10909
10910 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define HAVE_PRSTATUS_T 1
10914 _ACEOF
10915
10916 fi
10917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10918 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10919
10920 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10921 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10922 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931
10932 #define _SYSCALL32
10933 #include <sys/procfs.h>
10934 int
10935 main ()
10936 {
10937 prstatus32_t avar
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10970
10971 fi
10972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973 fi
10974
10975 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define HAVE_PRSTATUS32_T 1
10979 _ACEOF
10980
10981 fi
10982 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10983 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10984
10985 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10986 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10987 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996
10997 #define _SYSCALL32
10998 #include <sys/procfs.h>
10999 int
11000 main ()
11001 {
11002 prstatus_t avar; void* aref = (void*) &avar.pr_who
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11035
11036 fi
11037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11038 fi
11039
11040 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_PRSTATUS_T_PR_WHO 1
11044 _ACEOF
11045
11046 fi
11047 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11048 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
11049
11050 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11051 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11052 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061
11062 #define _SYSCALL32
11063 #include <sys/procfs.h>
11064 int
11065 main ()
11066 {
11067 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11068 ;
11069 return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag"
11082 || test ! -s conftest.err'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11100
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 fi
11104
11105 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
11106
11107 cat >>confdefs.h <<\_ACEOF
11108 #define HAVE_PRSTATUS32_T_PR_WHO 1
11109 _ACEOF
11110
11111 fi
11112 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11113 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
11114
11115 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11116 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11117 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126
11127 #define _SYSCALL32
11128 #include <sys/procfs.h>
11129 int
11130 main ()
11131 {
11132 pstatus_t avar
11133 ;
11134 return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164 bfd_cv_have_sys_procfs_type_pstatus_t=no
11165
11166 fi
11167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11168 fi
11169
11170 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_PSTATUS_T 1
11174 _ACEOF
11175
11176 fi
11177 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11178 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
11179
11180 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
11181 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
11182 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191
11192 #define _SYSCALL32
11193 #include <sys/procfs.h>
11194 int
11195 main ()
11196 {
11197 pxstatus_t avar
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest.$ac_objext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 bfd_cv_have_sys_procfs_type_pxstatus_t=no
11230
11231 fi
11232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11233 fi
11234
11235 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
11236
11237 cat >>confdefs.h <<\_ACEOF
11238 #define HAVE_PXSTATUS_T 1
11239 _ACEOF
11240
11241 fi
11242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
11243 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
11244
11245 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
11246 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
11247 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256
11257 #define _SYSCALL32
11258 #include <sys/procfs.h>
11259 int
11260 main ()
11261 {
11262 pstatus32_t avar
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag"
11277 || test ! -s conftest.err'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 bfd_cv_have_sys_procfs_type_pstatus32_t=no
11295
11296 fi
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299
11300 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_PSTATUS32_T 1
11304 _ACEOF
11305
11306 fi
11307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
11308 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
11309
11310 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
11311 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
11312 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321
11322 #define _SYSCALL32
11323 #include <sys/procfs.h>
11324 int
11325 main ()
11326 {
11327 prpsinfo_t avar
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 rm -f conftest.$ac_objext
11333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334 (eval $ac_compile) 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag"
11342 || test ! -s conftest.err'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
11355 else
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
11360
11361 fi
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363 fi
11364
11365 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
11366
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_PRPSINFO_T 1
11369 _ACEOF
11370
11371 fi
11372 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
11373 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
11374
11375 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
11376 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
11377 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386
11387 #define _SYSCALL32
11388 #include <sys/procfs.h>
11389 int
11390 main ()
11391 {
11392 prpsinfo32_t avar
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 rm -f conftest.$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
11425
11426 fi
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428 fi
11429
11430 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
11431
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_PRPSINFO32_T 1
11434 _ACEOF
11435
11436 fi
11437 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
11438 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
11439
11440 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
11441 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
11442 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451
11452 #define _SYSCALL32
11453 #include <sys/procfs.h>
11454 int
11455 main ()
11456 {
11457 psinfo_t avar
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11464 (eval $ac_compile) 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag"
11472 || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest.$ac_objext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 bfd_cv_have_sys_procfs_type_psinfo_t=yes
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 bfd_cv_have_sys_procfs_type_psinfo_t=no
11490
11491 fi
11492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11493 fi
11494
11495 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
11496
11497 cat >>confdefs.h <<\_ACEOF
11498 #define HAVE_PSINFO_T 1
11499 _ACEOF
11500
11501 fi
11502 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11503 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
11504
11505 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11506 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11507 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516
11517 #define _SYSCALL32
11518 #include <sys/procfs.h>
11519 int
11520 main ()
11521 {
11522 psinfo32_t avar
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11550 else
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 bfd_cv_have_sys_procfs_type_psinfo32_t=no
11555
11556 fi
11557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 fi
11559
11560 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
11561
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_PSINFO32_T 1
11564 _ACEOF
11565
11566 fi
11567 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11568 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
11569
11570 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11571 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11572 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581
11582 #define _SYSCALL32
11583 #include <sys/procfs.h>
11584 int
11585 main ()
11586 {
11587 lwpstatus_t avar
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11620
11621 fi
11622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11623 fi
11624
11625 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11626
11627 cat >>confdefs.h <<\_ACEOF
11628 #define HAVE_LWPSTATUS_T 1
11629 _ACEOF
11630
11631 fi
11632 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11633 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11634
11635 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11636 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11637 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646
11647 #define _SYSCALL32
11648 #include <sys/procfs.h>
11649 int
11650 main ()
11651 {
11652 lwpxstatus_t avar
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag"
11667 || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11680 else
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11685
11686 fi
11687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11688 fi
11689
11690 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11691
11692 cat >>confdefs.h <<\_ACEOF
11693 #define HAVE_LWPXSTATUS_T 1
11694 _ACEOF
11695
11696 fi
11697 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11698 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11699
11700 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11701 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11702 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711
11712 #define _SYSCALL32
11713 #include <sys/procfs.h>
11714 int
11715 main ()
11716 {
11717 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11750
11751 fi
11752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 fi
11754
11755 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11756
11757 cat >>confdefs.h <<\_ACEOF
11758 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11759 _ACEOF
11760
11761 fi
11762 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11763 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11764
11765 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11766 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11767 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776
11777 #define _SYSCALL32
11778 #include <sys/procfs.h>
11779 int
11780 main ()
11781 {
11782 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11815
11816 fi
11817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11818 fi
11819
11820 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_LWPSTATUS_T_PR_REG 1
11824 _ACEOF
11825
11826 fi
11827 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11828 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11829
11830 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11831 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11832 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841
11842 #define _SYSCALL32
11843 #include <sys/procfs.h>
11844 int
11845 main ()
11846 {
11847 win32_pstatus_t avar
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11880
11881 fi
11882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884
11885 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11886
11887 cat >>confdefs.h <<\_ACEOF
11888 #define HAVE_WIN32_PSTATUS_T 1
11889 _ACEOF
11890
11891 fi
11892 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11893 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11894
11895 fi
11896 fi
11897
11898
11899 if test -n "$TRAD_HEADER"; then
11900
11901 cat >>confdefs.h <<_ACEOF
11902 #define TRAD_HEADER $TRAD_HEADER
11903 _ACEOF
11904
11905 fi
11906
11907 # Horrible hacks to build DLLs on Windows.
11908 WIN32LDFLAGS=
11909 WIN32LIBADD=
11910 case "${host}" in
11911 *-*-cygwin*)
11912 if test "$enable_shared" = "yes"; then
11913 WIN32LDFLAGS="-no-undefined"
11914 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11915 fi
11916 ;;
11917 *-*-linux*)
11918 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11919 # libiberty.a.
11920 case "${host}" in
11921 mips*-*-linux*)
11922 # Linux/MIPS uses PIC by default.
11923 if test "$enable_shared" = "yes"; then
11924 WIN32LIBADD="-L../libiberty -liberty"
11925 fi
11926 ;;
11927 *)
11928 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11929 if test -n "$x"; then
11930 WIN32LIBADD="-L../libiberty/pic -liberty"
11931 fi
11932 ;;
11933 esac
11934 ;;
11935 esac
11936
11937
11938
11939 # target stuff:
11940
11941 # Canonicalize the secondary target names.
11942 if test -n "$enable_targets" ; then
11943 for targ in `echo $enable_targets | sed 's/,/ /g'`
11944 do
11945 result=`$ac_config_sub $targ 2>/dev/null`
11946 if test -n "$result" ; then
11947 canon_targets="$canon_targets $result"
11948 else
11949 # Allow targets that config.sub doesn't recognize, like "all".
11950 canon_targets="$canon_targets $targ"
11951 fi
11952 done
11953 fi
11954
11955 all_targets=false
11956 defvec=
11957 selvecs=
11958 assocvecs=
11959 selarchs=
11960 TDEFINES=
11961 for targ in $target $canon_targets
11962 do
11963 if test "x$targ" = "xall"; then
11964 all_targets=true
11965 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11966 else
11967 . $srcdir/config.bfd
11968 if test "x$targ" = "x$target"; then
11969 defvec=$targ_defvec
11970 fi
11971 selvecs="$selvecs $targ_defvec $targ_selvecs"
11972 selarchs="$selarchs $targ_archs"
11973 TDEFINES="$TDEFINES $targ_cflags"
11974 fi
11975 done
11976
11977
11978 # This processing still needs to be done if we're to decide properly whether
11979 # 64-bit support needs to be compiled in. Currently, it will be included if
11980 # the default or any other explicitly requested target requires it; it
11981 # will not be included on a 32-bit host if no 64-bit target is requested, and
11982 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11983 # used.
11984
11985 # uniq the default and selected vectors in all the configured targets.
11986 f=""
11987 for i in $selvecs ; do
11988 case " $f " in
11989 *" $i "*) ;;
11990 *) f="$f $i" ;;
11991 esac
11992 done
11993 selvecs="$f"
11994
11995
11996 # uniq the associated vectors in all the configured targets.
11997 f=""
11998 for i in $assocvecs ; do
11999 case " $f " in
12000 *" $i "*) ;;
12001 *) f="$f $i" ;;
12002 esac
12003 done
12004 assocvecs="$f"
12005
12006
12007 # uniq the architectures in all the configured targets.
12008 f=""
12009 for i in $selarchs ; do
12010 case " $f " in
12011 *" $i "*) ;;
12012 *) f="$f $i" ;;
12013 esac
12014 done
12015 selarchs="$f"
12016
12017 # Target backend .o files.
12018 tb=
12019
12020 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
12021
12022 for vec in $selvecs
12023 do
12024 target_size=32
12025 case "$vec" in
12026 # This list is alphabetized to make it easy to compare
12027 # with the two vector lists in targets.c. For the same reason,
12028 # use one entry per line, even though this leads to long lines.
12029 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12030 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
12031 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12032 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12033 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12034 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12035 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
12036 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12037 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12038 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12039 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12040 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12041 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12042 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12043 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12044 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12045 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12046 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12047 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12048 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
12049 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
12050 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
12051 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
12052 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
12053 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12054 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12055 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12056 bfd_elf32_bigarm_symbian_vec)
12057 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12058 bfd_elf32_bigarm_vxworks_vec)
12059 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12060 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12061 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
12062 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12063 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
12064 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12065 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
12066 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
12067 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
12068 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12069 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12070 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
12071 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12072 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12073 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12074 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
12075 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
12076 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
12077 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12078 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12079 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
12080 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
12081 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
12082 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
12083 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
12084 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12085 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12086 bfd_elf32_littlearm_symbian_vec)
12087 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12088 bfd_elf32_littlearm_vxworks_vec)
12089 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12090 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12091 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12092 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12093 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12094 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12095 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12096 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12097 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12098 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12099 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12100 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12101 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12102 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12103 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
12104 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
12105 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12106 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12107 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12108 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12109 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
12110 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
12111 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12112 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12113 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12114 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12115 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
12116 # FIXME: We include cofflink.lo not because it's needed for
12117 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12118 # which needs it but does not list it. Should be fixed in right place.
12119 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12120 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12121 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12122 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12123 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12124 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12125 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12126 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12127 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12128 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
12129 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12130 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12131 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12132 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
12133 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12134 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12135 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12136 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
12137 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
12138 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
12139 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12140 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12141 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12142 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12143 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12144 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12145 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12146 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12147 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12148 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12149 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12150 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12151 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12152 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
12153 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12154 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12155 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
12156 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12157 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12158 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12159 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12160 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12161 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12162 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
12163 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12164 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12165 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
12166 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
12167 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12168 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12169 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12170 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12171 cris_aout_vec) tb="$tb aout-cris.lo" ;;
12172 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
12173 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12174 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12175 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12176 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
12177 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12178 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12179 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12180 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12181 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12182 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
12183 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
12184 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
12185 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
12186 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
12187 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
12188 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
12189 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
12190 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
12191 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
12192 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
12193 i386msdos_vec) tb="$tb i386msdos.lo" ;;
12194 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
12195 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
12196 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
12197 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
12198 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
12199 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12200 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12201 ieee_vec) tb="$tb ieee.lo" ;;
12202 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
12203 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
12204 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
12205 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
12206 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
12207 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
12208 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
12209 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
12210 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
12211 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
12212 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
12213 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
12214 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
12215 mach_o_be_vec) tb="$tb mach-o.lo" ;;
12216 mach_o_le_vec) tb="$tb mach-o.lo" ;;
12217 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
12218 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12219 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12220 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12221 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12222 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
12223 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
12224 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
12225 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
12226 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
12227 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
12228 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
12229 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
12230 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
12231 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
12232 pef_vec) tb="$tb pef.lo" ;;
12233 pef_xlib_vec) tb="$tb pef.lo" ;;
12234 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
12235 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
12236 ppcboot_vec) tb="$tb ppcboot.lo" ;;
12237 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
12238 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12239 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
12240 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12241 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12242 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12243 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
12244 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12245 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12246 som_vec) tb="$tb som.lo" ;;
12247 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
12248 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
12249 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
12250 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
12251 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
12252 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
12253 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
12254 sym_vec) tb="$tb xsym.lo" ;;
12255 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
12256 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
12257 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
12258 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
12259 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
12260 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
12261 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
12262 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
12263 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
12264 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
12265 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
12266 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
12267 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
12268 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
12269 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
12270 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
12271 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
12272 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
12273 versados_vec) tb="$tb versados.lo" ;;
12274 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
12275 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
12276 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
12277 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
12278 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
12279
12280 # These appear out of order in targets.c
12281 srec_vec) tb="$tb srec.lo" ;;
12282 symbolsrec_vec) tb="$tb srec.lo" ;;
12283 tekhex_vec) tb="$tb tekhex.lo" ;;
12284 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
12285 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
12286
12287 "") ;;
12288 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
12289 echo "$as_me: error: *** unknown target vector $vec" >&2;}
12290 { (exit 1); exit 1; }; } ;;
12291 esac
12292
12293 if test ${target_size} = 64; then
12294 target64=true
12295 fi
12296 if test x"${vec}" = x"${defvec}"; then
12297 bfd_default_target_size=${target_size}
12298 fi
12299 done
12300
12301 # Target architecture .o files.
12302 # A couple of CPUs use shorter file names to avoid problems on DOS
12303 # filesystems.
12304 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
12305
12306 # Weed out duplicate .o files.
12307 f=""
12308 for i in $tb ; do
12309 case " $f " in
12310 *" $i "*) ;;
12311 *) f="$f $i" ;;
12312 esac
12313 done
12314 tb="$f"
12315
12316 f=""
12317 for i in $ta ; do
12318 case " $f " in
12319 *" $i "*) ;;
12320 *) f="$f $i" ;;
12321 esac
12322 done
12323 ta="$f"
12324
12325 bfd_backends="$tb"
12326 bfd_machines="$ta"
12327
12328 if test x${all_targets} = xtrue ; then
12329 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
12330 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
12331 selvecs=
12332 havevecs=
12333 selarchs=
12334 test -n "$assocvecs" &&
12335 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12336 else # all_targets is true
12337 # Only set these if they will be nonempty, for the clever echo.
12338 havevecs=
12339 assocvecs=
12340 test -n "$selvecs" &&
12341 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
12342 test -n "$selvecs" &&
12343 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12344 test -n "$selarchs" &&
12345 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12346 fi # all_targets is true
12347
12348 case ${host64}-${target64}-${want64} in
12349 *true*)
12350 wordsize=64
12351 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
12352 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
12353 if test $BFD_HOST_64_BIT_DEFINED = 0; then
12354 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
12355 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
12357 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
12358 fi
12359 if test -n "$GCC" ; then
12360 bad_64bit_gcc=no;
12361 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
12362 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
12363 # Add more tests for gcc versions with non-working 64-bit support here.
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 :__GNUC__:__GNUC_MINOR__:__i386__:
12371 _ACEOF
12372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12373 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
12374 bad_64bit_gcc=yes;
12375 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
12376 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
12377 else
12378 echo "$as_me:$LINENO: result: no" >&5
12379 echo "${ECHO_T}no" >&6
12380 fi
12381 rm -f conftest*
12382
12383 if test $bad_64bit_gcc = yes ; then
12384 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
12385 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
12386 { (exit 1); exit 1; }; }
12387 fi
12388 fi
12389 ;;
12390 false-false-false)
12391 wordsize=32
12392 bfd_libs='$(BFD32_LIBS)'
12393 all_backends='$(BFD32_BACKENDS)'
12394 ;;
12395 esac
12396
12397
12398
12399
12400
12401
12402
12403
12404 # Determine the host dependant file_ptr a.k.a. off_t type. In order
12405 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
12406 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
12407 # Hopefully a reasonable assumption since fseeko et.al. should be
12408 # upward compatible.
12409
12410
12411
12412
12413 for ac_func in ftello ftello64 fseeko fseeko64
12414 do
12415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12416 echo "$as_me:$LINENO: checking for $ac_func" >&5
12417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12418 if eval "test \"\${$as_ac_var+set}\" = set"; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12429 #define $ac_func innocuous_$ac_func
12430
12431 /* System header to define __stub macros and hopefully few prototypes,
12432 which can conflict with char $ac_func (); below.
12433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12434 <limits.h> exists even on freestanding compilers. */
12435
12436 #ifdef __STDC__
12437 # include <limits.h>
12438 #else
12439 # include <assert.h>
12440 #endif
12441
12442 #undef $ac_func
12443
12444 /* Override any gcc2 internal prototype to avoid an error. */
12445 #ifdef __cplusplus
12446 extern "C"
12447 {
12448 #endif
12449 /* We use char because int might match the return type of a gcc2
12450 builtin and then its argument prototype would still apply. */
12451 char $ac_func ();
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12456 choke me
12457 #else
12458 char (*f) () = $ac_func;
12459 #endif
12460 #ifdef __cplusplus
12461 }
12462 #endif
12463
12464 int
12465 main ()
12466 {
12467 return f != $ac_func;
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 eval "$as_ac_var=yes"
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 eval "$as_ac_var=no"
12500 fi
12501 rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 fi
12504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12506 if test `eval echo '${'$as_ac_var'}'` = yes; then
12507 cat >>confdefs.h <<_ACEOF
12508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12509 _ACEOF
12510
12511 fi
12512 done
12513
12514 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
12515 echo "$as_me:$LINENO: checking size of off_t" >&5
12516 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12517 if test "${ac_cv_sizeof_off_t+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include "confdefs.h"
12528 #include <sys/types.h>
12529
12530
12531 int
12532 main ()
12533 {
12534 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag"
12549 || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_sizeof_off_t=$ac_size
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 fi
12567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12569 done
12570
12571 fi
12572
12573 if test x$ac_cv_sizeof_off_t = x ; then
12574 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12575 echo "$as_me: error: cannot determine a size for off_t" >&2;}
12576 { (exit 1); exit 1; }; }
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12579 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12580
12581 cat >>confdefs.h <<_ACEOF
12582 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12583 _ACEOF
12584
12585
12586 fi
12587 echo "$as_me:$LINENO: checking file_ptr type" >&5
12588 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
12589 bfd_file_ptr="long"
12590 bfd_ufile_ptr="unsigned long"
12591 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12592 -o x"${ac_cv_sizeof_off_t}" = x8; then
12593 bfd_file_ptr=BFD_HOST_64_BIT
12594 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12595 fi
12596 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12597 echo "${ECHO_T}$bfd_file_ptr" >&6
12598
12599
12600
12601
12602 tdefaults=""
12603 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12604 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12605 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12606 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12607 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12608
12609
12610
12611
12612 for ac_header in stdlib.h unistd.h
12613 do
12614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12616 echo "$as_me:$LINENO: checking for $ac_header" >&5
12617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 fi
12621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12623 else
12624 # Is the header compilable?
12625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 $ac_includes_default
12634 #include <$ac_header>
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_header_compiler=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_header_compiler=no
12664 fi
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12667 echo "${ECHO_T}$ac_header_compiler" >&6
12668
12669 # Is the header present?
12670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 #include <$ac_header>
12679 _ACEOF
12680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } >/dev/null; then
12688 if test -s conftest.err; then
12689 ac_cpp_err=$ac_c_preproc_warn_flag
12690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12691 else
12692 ac_cpp_err=
12693 fi
12694 else
12695 ac_cpp_err=yes
12696 fi
12697 if test -z "$ac_cpp_err"; then
12698 ac_header_preproc=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ac_header_preproc=no
12704 fi
12705 rm -f conftest.err conftest.$ac_ext
12706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12707 echo "${ECHO_T}$ac_header_preproc" >&6
12708
12709 # So? What about this header?
12710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12711 yes:no: )
12712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12716 ac_header_preproc=yes
12717 ;;
12718 no:yes:* )
12719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12731 (
12732 cat <<\_ASBOX
12733 ## ------------------------------------------ ##
12734 ## Report this to the AC_PACKAGE_NAME lists. ##
12735 ## ------------------------------------------ ##
12736 _ASBOX
12737 ) |
12738 sed "s/^/$as_me: WARNING: /" >&2
12739 ;;
12740 esac
12741 echo "$as_me:$LINENO: checking for $ac_header" >&5
12742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 eval "$as_ac_Header=\$ac_header_preproc"
12747 fi
12748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12750
12751 fi
12752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12755 _ACEOF
12756
12757 fi
12758
12759 done
12760
12761
12762 for ac_func in getpagesize
12763 do
12764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12765 echo "$as_me:$LINENO: checking for $ac_func" >&5
12766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12767 if eval "test \"\${$as_ac_var+set}\" = set"; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12778 #define $ac_func innocuous_$ac_func
12779
12780 /* System header to define __stub macros and hopefully few prototypes,
12781 which can conflict with char $ac_func (); below.
12782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12783 <limits.h> exists even on freestanding compilers. */
12784
12785 #ifdef __STDC__
12786 # include <limits.h>
12787 #else
12788 # include <assert.h>
12789 #endif
12790
12791 #undef $ac_func
12792
12793 /* Override any gcc2 internal prototype to avoid an error. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 {
12797 #endif
12798 /* We use char because int might match the return type of a gcc2
12799 builtin and then its argument prototype would still apply. */
12800 char $ac_func ();
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12805 choke me
12806 #else
12807 char (*f) () = $ac_func;
12808 #endif
12809 #ifdef __cplusplus
12810 }
12811 #endif
12812
12813 int
12814 main ()
12815 {
12816 return f != $ac_func;
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 eval "$as_ac_var=yes"
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 eval "$as_ac_var=no"
12849 fi
12850 rm -f conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 fi
12853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12855 if test `eval echo '${'$as_ac_var'}'` = yes; then
12856 cat >>confdefs.h <<_ACEOF
12857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12858 _ACEOF
12859
12860 fi
12861 done
12862
12863 echo "$as_me:$LINENO: checking for working mmap" >&5
12864 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12865 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868 if test "$cross_compiling" = yes; then
12869 ac_cv_func_mmap_fixed_mapped=no
12870 else
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 /* malloc might have been renamed as rpl_malloc. */
12879 #undef malloc
12880
12881 /* Thanks to Mike Haertel and Jim Avera for this test.
12882 Here is a matrix of mmap possibilities:
12883 mmap private not fixed
12884 mmap private fixed at somewhere currently unmapped
12885 mmap private fixed at somewhere already mapped
12886 mmap shared not fixed
12887 mmap shared fixed at somewhere currently unmapped
12888 mmap shared fixed at somewhere already mapped
12889 For private mappings, we should verify that changes cannot be read()
12890 back from the file, nor mmap's back from the file at a different
12891 address. (There have been systems where private was not correctly
12892 implemented like the infamous i386 svr4.0, and systems where the
12893 VM page cache was not coherent with the file system buffer cache
12894 like early versions of FreeBSD and possibly contemporary NetBSD.)
12895 For shared mappings, we should conversely verify that changes get
12896 propagated back to all the places they're supposed to be.
12897
12898 Grep wants private fixed already mapped.
12899 The main things grep needs to know about mmap are:
12900 * does it exist and is it safe to write into the mmap'd area
12901 * how to use it (BSD variants) */
12902
12903 #include <fcntl.h>
12904 #include <sys/mman.h>
12905
12906 #if !STDC_HEADERS && !HAVE_STDLIB_H
12907 char *malloc ();
12908 #endif
12909
12910 /* This mess was copied from the GNU getpagesize.h. */
12911 #if !HAVE_GETPAGESIZE
12912 /* Assume that all systems that can run configure have sys/param.h. */
12913 # if !HAVE_SYS_PARAM_H
12914 # define HAVE_SYS_PARAM_H 1
12915 # endif
12916
12917 # ifdef _SC_PAGESIZE
12918 # define getpagesize() sysconf(_SC_PAGESIZE)
12919 # else /* no _SC_PAGESIZE */
12920 # if HAVE_SYS_PARAM_H
12921 # include <sys/param.h>
12922 # ifdef EXEC_PAGESIZE
12923 # define getpagesize() EXEC_PAGESIZE
12924 # else /* no EXEC_PAGESIZE */
12925 # ifdef NBPG
12926 # define getpagesize() NBPG * CLSIZE
12927 # ifndef CLSIZE
12928 # define CLSIZE 1
12929 # endif /* no CLSIZE */
12930 # else /* no NBPG */
12931 # ifdef NBPC
12932 # define getpagesize() NBPC
12933 # else /* no NBPC */
12934 # ifdef PAGESIZE
12935 # define getpagesize() PAGESIZE
12936 # endif /* PAGESIZE */
12937 # endif /* no NBPC */
12938 # endif /* no NBPG */
12939 # endif /* no EXEC_PAGESIZE */
12940 # else /* no HAVE_SYS_PARAM_H */
12941 # define getpagesize() 8192 /* punt totally */
12942 # endif /* no HAVE_SYS_PARAM_H */
12943 # endif /* no _SC_PAGESIZE */
12944
12945 #endif /* no HAVE_GETPAGESIZE */
12946
12947 int
12948 main ()
12949 {
12950 char *data, *data2, *data3;
12951 int i, pagesize;
12952 int fd;
12953
12954 pagesize = getpagesize ();
12955
12956 /* First, make a file with some known garbage in it. */
12957 data = (char *) malloc (pagesize);
12958 if (!data)
12959 exit (1);
12960 for (i = 0; i < pagesize; ++i)
12961 *(data + i) = rand ();
12962 umask (0);
12963 fd = creat ("conftest.mmap", 0600);
12964 if (fd < 0)
12965 exit (1);
12966 if (write (fd, data, pagesize) != pagesize)
12967 exit (1);
12968 close (fd);
12969
12970 /* Next, try to mmap the file at a fixed address which already has
12971 something else allocated at it. If we can, also make sure that
12972 we see the same garbage. */
12973 fd = open ("conftest.mmap", O_RDWR);
12974 if (fd < 0)
12975 exit (1);
12976 data2 = (char *) malloc (2 * pagesize);
12977 if (!data2)
12978 exit (1);
12979 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12980 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12981 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12982 exit (1);
12983 for (i = 0; i < pagesize; ++i)
12984 if (*(data + i) != *(data2 + i))
12985 exit (1);
12986
12987 /* Finally, make sure that changes to the mapped area do not
12988 percolate back to the file as seen by read(). (This is a bug on
12989 some variants of i386 svr4.0.) */
12990 for (i = 0; i < pagesize; ++i)
12991 *(data2 + i) = *(data2 + i) + 1;
12992 data3 = (char *) malloc (pagesize);
12993 if (!data3)
12994 exit (1);
12995 if (read (fd, data3, pagesize) != pagesize)
12996 exit (1);
12997 for (i = 0; i < pagesize; ++i)
12998 if (*(data + i) != *(data3 + i))
12999 exit (1);
13000 close (fd);
13001 exit (0);
13002 }
13003 _ACEOF
13004 rm -f conftest$ac_exeext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006 (eval $ac_link) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_func_mmap_fixed_mapped=yes
13016 else
13017 echo "$as_me: program exited with status $ac_status" >&5
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021 ( exit $ac_status )
13022 ac_cv_func_mmap_fixed_mapped=no
13023 fi
13024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13025 fi
13026 fi
13027 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13028 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13029 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13030
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_MMAP 1
13033 _ACEOF
13034
13035 fi
13036 rm -f conftest.mmap
13037
13038
13039
13040 for ac_func in madvise mprotect
13041 do
13042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13043 echo "$as_me:$LINENO: checking for $ac_func" >&5
13044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13045 if eval "test \"\${$as_ac_var+set}\" = set"; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13056 #define $ac_func innocuous_$ac_func
13057
13058 /* System header to define __stub macros and hopefully few prototypes,
13059 which can conflict with char $ac_func (); below.
13060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13061 <limits.h> exists even on freestanding compilers. */
13062
13063 #ifdef __STDC__
13064 # include <limits.h>
13065 #else
13066 # include <assert.h>
13067 #endif
13068
13069 #undef $ac_func
13070
13071 /* Override any gcc2 internal prototype to avoid an error. */
13072 #ifdef __cplusplus
13073 extern "C"
13074 {
13075 #endif
13076 /* We use char because int might match the return type of a gcc2
13077 builtin and then its argument prototype would still apply. */
13078 char $ac_func ();
13079 /* The GNU C library defines this for functions which it implements
13080 to always fail with ENOSYS. Some functions are actually named
13081 something starting with __ and the normal name is an alias. */
13082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13083 choke me
13084 #else
13085 char (*f) () = $ac_func;
13086 #endif
13087 #ifdef __cplusplus
13088 }
13089 #endif
13090
13091 int
13092 main ()
13093 {
13094 return f != $ac_func;
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest$ac_exeext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 eval "$as_ac_var=yes"
13122 else
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 eval "$as_ac_var=no"
13127 fi
13128 rm -f conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 fi
13131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13133 if test `eval echo '${'$as_ac_var'}'` = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13136 _ACEOF
13137
13138 fi
13139 done
13140
13141 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
13142 true+yes )
13143 cat >>confdefs.h <<\_ACEOF
13144 #define USE_MMAP 1
13145 _ACEOF
13146 ;;
13147 esac
13148
13149 rm -f doc/config.status
13150 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
13151
13152 ac_config_commands="$ac_config_commands default"
13153
13154 cat >confcache <<\_ACEOF
13155 # This file is a shell script that caches the results of configure
13156 # tests run on this system so they can be shared between configure
13157 # scripts and configure runs, see configure's option --config-cache.
13158 # It is not useful on other systems. If it contains results you don't
13159 # want to keep, you may remove or edit it.
13160 #
13161 # config.status only pays attention to the cache file if you give it
13162 # the --recheck option to rerun configure.
13163 #
13164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13166 # following values.
13167
13168 _ACEOF
13169
13170 # The following way of writing the cache mishandles newlines in values,
13171 # but we know of no workaround that is simple, portable, and efficient.
13172 # So, don't put newlines in cache variables' values.
13173 # Ultrix sh set writes to stderr and can't be redirected directly,
13174 # and sets the high bit in the cache file unless we assign to the vars.
13175 {
13176 (set) 2>&1 |
13177 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13178 *ac_space=\ *)
13179 # `set' does not quote correctly, so add quotes (double-quote
13180 # substitution turns \\\\ into \\, and sed turns \\ into \).
13181 sed -n \
13182 "s/'/'\\\\''/g;
13183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13184 ;;
13185 *)
13186 # `set' quotes correctly as required by POSIX, so do not add quotes.
13187 sed -n \
13188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13189 ;;
13190 esac;
13191 } |
13192 sed '
13193 t clear
13194 : clear
13195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13196 t end
13197 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13198 : end' >>confcache
13199 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13200 if test -w $cache_file; then
13201 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13202 cat confcache >$cache_file
13203 else
13204 echo "not updating unwritable cache $cache_file"
13205 fi
13206 fi
13207 rm -f confcache
13208
13209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13210 # Let make expand exec_prefix.
13211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13212
13213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13215 # trailing colons and then remove the whole line if VPATH becomes empty
13216 # (actually we leave an empty line to preserve line numbers).
13217 if test "x$srcdir" = x.; then
13218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13219 s/:*\$(srcdir):*/:/;
13220 s/:*\${srcdir}:*/:/;
13221 s/:*@srcdir@:*/:/;
13222 s/^\([^=]*=[ ]*\):*/\1/;
13223 s/:*$//;
13224 s/^[^=]*=[ ]*$//;
13225 }'
13226 fi
13227
13228 DEFS=-DHAVE_CONFIG_H
13229
13230 ac_libobjs=
13231 ac_ltlibobjs=
13232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13233 # 1. Remove the extension, and $U if already installed.
13234 ac_i=`echo "$ac_i" |
13235 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13236 # 2. Add them.
13237 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13238 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13239 done
13240 LIBOBJS=$ac_libobjs
13241
13242 LTLIBOBJS=$ac_ltlibobjs
13243
13244
13245 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13246 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13247 Usually this means the macro was only invoked conditionally." >&5
13248 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13249 Usually this means the macro was only invoked conditionally." >&2;}
13250 { (exit 1); exit 1; }; }
13251 fi
13252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13253 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13254 Usually this means the macro was only invoked conditionally." >&5
13255 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13256 Usually this means the macro was only invoked conditionally." >&2;}
13257 { (exit 1); exit 1; }; }
13258 fi
13259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13260 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13261 Usually this means the macro was only invoked conditionally." >&5
13262 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13263 Usually this means the macro was only invoked conditionally." >&2;}
13264 { (exit 1); exit 1; }; }
13265 fi
13266 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13267 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
13268 Usually this means the macro was only invoked conditionally." >&5
13269 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13270 Usually this means the macro was only invoked conditionally." >&2;}
13271 { (exit 1); exit 1; }; }
13272 fi
13273
13274 : ${CONFIG_STATUS=./config.status}
13275 ac_clean_files_save=$ac_clean_files
13276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13277 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13278 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13279 cat >$CONFIG_STATUS <<_ACEOF
13280 #! $SHELL
13281 # Generated by $as_me.
13282 # Run this file to recreate the current configuration.
13283 # Compiler output produced by configure, useful for debugging
13284 # configure, is in config.log if it exists.
13285
13286 debug=false
13287 ac_cs_recheck=false
13288 ac_cs_silent=false
13289 SHELL=\${CONFIG_SHELL-$SHELL}
13290 _ACEOF
13291
13292 cat >>$CONFIG_STATUS <<\_ACEOF
13293 ## --------------------- ##
13294 ## M4sh Initialization. ##
13295 ## --------------------- ##
13296
13297 # Be Bourne compatible
13298 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13299 emulate sh
13300 NULLCMD=:
13301 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13302 # is contrary to our usage. Disable this feature.
13303 alias -g '${1+"$@"}'='"$@"'
13304 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13305 set -o posix
13306 fi
13307 DUALCASE=1; export DUALCASE # for MKS sh
13308
13309 # Support unset when possible.
13310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13311 as_unset=unset
13312 else
13313 as_unset=false
13314 fi
13315
13316
13317 # Work around bugs in pre-3.0 UWIN ksh.
13318 $as_unset ENV MAIL MAILPATH
13319 PS1='$ '
13320 PS2='> '
13321 PS4='+ '
13322
13323 # NLS nuisances.
13324 for as_var in \
13325 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13326 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13327 LC_TELEPHONE LC_TIME
13328 do
13329 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13330 eval $as_var=C; export $as_var
13331 else
13332 $as_unset $as_var
13333 fi
13334 done
13335
13336 # Required to use basename.
13337 if expr a : '\(a\)' >/dev/null 2>&1; then
13338 as_expr=expr
13339 else
13340 as_expr=false
13341 fi
13342
13343 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13344 as_basename=basename
13345 else
13346 as_basename=false
13347 fi
13348
13349
13350 # Name of the executable.
13351 as_me=`$as_basename "$0" ||
13352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13353 X"$0" : 'X\(//\)$' \| \
13354 X"$0" : 'X\(/\)$' \| \
13355 . : '\(.\)' 2>/dev/null ||
13356 echo X/"$0" |
13357 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13358 /^X\/\(\/\/\)$/{ s//\1/; q; }
13359 /^X\/\(\/\).*/{ s//\1/; q; }
13360 s/.*/./; q'`
13361
13362
13363 # PATH needs CR, and LINENO needs CR and PATH.
13364 # Avoid depending upon Character Ranges.
13365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13368 as_cr_digits='0123456789'
13369 as_cr_alnum=$as_cr_Letters$as_cr_digits
13370
13371 # The user is always right.
13372 if test "${PATH_SEPARATOR+set}" != set; then
13373 echo "#! /bin/sh" >conf$$.sh
13374 echo "exit 0" >>conf$$.sh
13375 chmod +x conf$$.sh
13376 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13377 PATH_SEPARATOR=';'
13378 else
13379 PATH_SEPARATOR=:
13380 fi
13381 rm -f conf$$.sh
13382 fi
13383
13384
13385 as_lineno_1=$LINENO
13386 as_lineno_2=$LINENO
13387 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13388 test "x$as_lineno_1" != "x$as_lineno_2" &&
13389 test "x$as_lineno_3" = "x$as_lineno_2" || {
13390 # Find who we are. Look in the path if we contain no path at all
13391 # relative or not.
13392 case $0 in
13393 *[\\/]* ) as_myself=$0 ;;
13394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13396 do
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13400 done
13401
13402 ;;
13403 esac
13404 # We did not find ourselves, most probably we were run as `sh COMMAND'
13405 # in which case we are not to be found in the path.
13406 if test "x$as_myself" = x; then
13407 as_myself=$0
13408 fi
13409 if test ! -f "$as_myself"; then
13410 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13411 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13412 { (exit 1); exit 1; }; }
13413 fi
13414 case $CONFIG_SHELL in
13415 '')
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13418 do
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for as_base in sh bash ksh sh5; do
13422 case $as_dir in
13423 /*)
13424 if ("$as_dir/$as_base" -c '
13425 as_lineno_1=$LINENO
13426 as_lineno_2=$LINENO
13427 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13428 test "x$as_lineno_1" != "x$as_lineno_2" &&
13429 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13430 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13431 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13432 CONFIG_SHELL=$as_dir/$as_base
13433 export CONFIG_SHELL
13434 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13435 fi;;
13436 esac
13437 done
13438 done
13439 ;;
13440 esac
13441
13442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13443 # uniformly replaced by the line number. The first 'sed' inserts a
13444 # line-number line before each line; the second 'sed' does the real
13445 # work. The second script uses 'N' to pair each line-number line
13446 # with the numbered line, and appends trailing '-' during
13447 # substitution so that $LINENO is not a special case at line end.
13448 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13449 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13450 sed '=' <$as_myself |
13451 sed '
13452 N
13453 s,$,-,
13454 : loop
13455 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13456 t loop
13457 s,-$,,
13458 s,^['$as_cr_digits']*\n,,
13459 ' >$as_me.lineno &&
13460 chmod +x $as_me.lineno ||
13461 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13462 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13463 { (exit 1); exit 1; }; }
13464
13465 # Don't try to exec as it changes $[0], causing all sort of problems
13466 # (the dirname of $[0] is not the place where we might find the
13467 # original and so on. Autoconf is especially sensible to this).
13468 . ./$as_me.lineno
13469 # Exit status is that of the last command.
13470 exit
13471 }
13472
13473
13474 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13475 *c*,-n*) ECHO_N= ECHO_C='
13476 ' ECHO_T=' ' ;;
13477 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13478 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13479 esac
13480
13481 if expr a : '\(a\)' >/dev/null 2>&1; then
13482 as_expr=expr
13483 else
13484 as_expr=false
13485 fi
13486
13487 rm -f conf$$ conf$$.exe conf$$.file
13488 echo >conf$$.file
13489 if ln -s conf$$.file conf$$ 2>/dev/null; then
13490 # We could just check for DJGPP; but this test a) works b) is more generic
13491 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13492 if test -f conf$$.exe; then
13493 # Don't use ln at all; we don't have any links
13494 as_ln_s='cp -p'
13495 else
13496 as_ln_s='ln -s'
13497 fi
13498 elif ln conf$$.file conf$$ 2>/dev/null; then
13499 as_ln_s=ln
13500 else
13501 as_ln_s='cp -p'
13502 fi
13503 rm -f conf$$ conf$$.exe conf$$.file
13504
13505 if mkdir -p . 2>/dev/null; then
13506 as_mkdir_p=:
13507 else
13508 test -d ./-p && rmdir ./-p
13509 as_mkdir_p=false
13510 fi
13511
13512 as_executable_p="test -f"
13513
13514 # Sed expression to map a string onto a valid CPP name.
13515 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13516
13517 # Sed expression to map a string onto a valid variable name.
13518 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13519
13520
13521 # IFS
13522 # We need space, tab and new line, in precisely that order.
13523 as_nl='
13524 '
13525 IFS=" $as_nl"
13526
13527 # CDPATH.
13528 $as_unset CDPATH
13529
13530 exec 6>&1
13531
13532 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13533 # report actual input values of CONFIG_FILES etc. instead of their
13534 # values after options handling. Logging --version etc. is OK.
13535 exec 5>>config.log
13536 {
13537 echo
13538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13539 ## Running $as_me. ##
13540 _ASBOX
13541 } >&5
13542 cat >&5 <<_CSEOF
13543
13544 This file was extended by $as_me, which was
13545 generated by GNU Autoconf 2.59. Invocation command line was
13546
13547 CONFIG_FILES = $CONFIG_FILES
13548 CONFIG_HEADERS = $CONFIG_HEADERS
13549 CONFIG_LINKS = $CONFIG_LINKS
13550 CONFIG_COMMANDS = $CONFIG_COMMANDS
13551 $ $0 $@
13552
13553 _CSEOF
13554 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13555 echo >&5
13556 _ACEOF
13557
13558 # Files that config.status was made for.
13559 if test -n "$ac_config_files"; then
13560 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13561 fi
13562
13563 if test -n "$ac_config_headers"; then
13564 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13565 fi
13566
13567 if test -n "$ac_config_links"; then
13568 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13569 fi
13570
13571 if test -n "$ac_config_commands"; then
13572 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13573 fi
13574
13575 cat >>$CONFIG_STATUS <<\_ACEOF
13576
13577 ac_cs_usage="\
13578 \`$as_me' instantiates files from templates according to the
13579 current configuration.
13580
13581 Usage: $0 [OPTIONS] [FILE]...
13582
13583 -h, --help print this help, then exit
13584 -V, --version print version number, then exit
13585 -q, --quiet do not print progress messages
13586 -d, --debug don't remove temporary files
13587 --recheck update $as_me by reconfiguring in the same conditions
13588 --file=FILE[:TEMPLATE]
13589 instantiate the configuration file FILE
13590 --header=FILE[:TEMPLATE]
13591 instantiate the configuration header FILE
13592
13593 Configuration files:
13594 $config_files
13595
13596 Configuration headers:
13597 $config_headers
13598
13599 Configuration commands:
13600 $config_commands
13601
13602 Report bugs to <bug-autoconf@gnu.org>."
13603 _ACEOF
13604
13605 cat >>$CONFIG_STATUS <<_ACEOF
13606 ac_cs_version="\\
13607 config.status
13608 configured by $0, generated by GNU Autoconf 2.59,
13609 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13610
13611 Copyright (C) 2003 Free Software Foundation, Inc.
13612 This config.status script is free software; the Free Software Foundation
13613 gives unlimited permission to copy, distribute and modify it."
13614 srcdir=$srcdir
13615 INSTALL="$INSTALL"
13616 _ACEOF
13617
13618 cat >>$CONFIG_STATUS <<\_ACEOF
13619 # If no file are specified by the user, then we need to provide default
13620 # value. By we need to know if files were specified by the user.
13621 ac_need_defaults=:
13622 while test $# != 0
13623 do
13624 case $1 in
13625 --*=*)
13626 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13627 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13628 ac_shift=:
13629 ;;
13630 -*)
13631 ac_option=$1
13632 ac_optarg=$2
13633 ac_shift=shift
13634 ;;
13635 *) # This is not an option, so the user has probably given explicit
13636 # arguments.
13637 ac_option=$1
13638 ac_need_defaults=false;;
13639 esac
13640
13641 case $ac_option in
13642 # Handling of the options.
13643 _ACEOF
13644 cat >>$CONFIG_STATUS <<\_ACEOF
13645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13646 ac_cs_recheck=: ;;
13647 --version | --vers* | -V )
13648 echo "$ac_cs_version"; exit 0 ;;
13649 --he | --h)
13650 # Conflict between --help and --header
13651 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13652 Try \`$0 --help' for more information." >&5
13653 echo "$as_me: error: ambiguous option: $1
13654 Try \`$0 --help' for more information." >&2;}
13655 { (exit 1); exit 1; }; };;
13656 --help | --hel | -h )
13657 echo "$ac_cs_usage"; exit 0 ;;
13658 --debug | --d* | -d )
13659 debug=: ;;
13660 --file | --fil | --fi | --f )
13661 $ac_shift
13662 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13663 ac_need_defaults=false;;
13664 --header | --heade | --head | --hea )
13665 $ac_shift
13666 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13667 ac_need_defaults=false;;
13668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13670 ac_cs_silent=: ;;
13671
13672 # This is an error.
13673 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13674 Try \`$0 --help' for more information." >&5
13675 echo "$as_me: error: unrecognized option: $1
13676 Try \`$0 --help' for more information." >&2;}
13677 { (exit 1); exit 1; }; } ;;
13678
13679 *) ac_config_targets="$ac_config_targets $1" ;;
13680
13681 esac
13682 shift
13683 done
13684
13685 ac_configure_extra_args=
13686
13687 if $ac_cs_silent; then
13688 exec 6>/dev/null
13689 ac_configure_extra_args="$ac_configure_extra_args --silent"
13690 fi
13691
13692 _ACEOF
13693 cat >>$CONFIG_STATUS <<_ACEOF
13694 if \$ac_cs_recheck; then
13695 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13696 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13697 fi
13698
13699 _ACEOF
13700
13701 cat >>$CONFIG_STATUS <<_ACEOF
13702 #
13703 # INIT-COMMANDS section.
13704 #
13705
13706 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13707
13708
13709 _ACEOF
13710
13711
13712
13713 cat >>$CONFIG_STATUS <<\_ACEOF
13714 for ac_config_target in $ac_config_targets
13715 do
13716 case "$ac_config_target" in
13717 # Handling of arguments.
13718 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13719 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13720 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13721 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13722 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13723 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13724 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13725 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13727 { (exit 1); exit 1; }; };;
13728 esac
13729 done
13730
13731 # If the user did not use the arguments to specify the items to instantiate,
13732 # then the envvar interface is used. Set only those that are not.
13733 # We use the long form for the default assignment because of an extremely
13734 # bizarre bug on SunOS 4.1.3.
13735 if $ac_need_defaults; then
13736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13739 fi
13740
13741 # Have a temporary directory for convenience. Make it in the build tree
13742 # simply because there is no reason to put it here, and in addition,
13743 # creating and moving files from /tmp can sometimes cause problems.
13744 # Create a temporary directory, and hook for its removal unless debugging.
13745 $debug ||
13746 {
13747 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13748 trap '{ (exit 1); exit 1; }' 1 2 13 15
13749 }
13750
13751 # Create a (secure) tmp directory for tmp files.
13752
13753 {
13754 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13755 test -n "$tmp" && test -d "$tmp"
13756 } ||
13757 {
13758 tmp=./confstat$$-$RANDOM
13759 (umask 077 && mkdir $tmp)
13760 } ||
13761 {
13762 echo "$me: cannot create a temporary directory in ." >&2
13763 { (exit 1); exit 1; }
13764 }
13765
13766 _ACEOF
13767
13768 cat >>$CONFIG_STATUS <<_ACEOF
13769
13770 #
13771 # CONFIG_FILES section.
13772 #
13773
13774 # No need to generate the scripts if there are no CONFIG_FILES.
13775 # This happens for instance when ./config.status config.h
13776 if test -n "\$CONFIG_FILES"; then
13777 # Protect against being on the right side of a sed subst in config.status.
13778 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13779 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13780 s,@SHELL@,$SHELL,;t t
13781 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13782 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13783 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13784 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13785 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13786 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13787 s,@exec_prefix@,$exec_prefix,;t t
13788 s,@prefix@,$prefix,;t t
13789 s,@program_transform_name@,$program_transform_name,;t t
13790 s,@bindir@,$bindir,;t t
13791 s,@sbindir@,$sbindir,;t t
13792 s,@libexecdir@,$libexecdir,;t t
13793 s,@datadir@,$datadir,;t t
13794 s,@sysconfdir@,$sysconfdir,;t t
13795 s,@sharedstatedir@,$sharedstatedir,;t t
13796 s,@localstatedir@,$localstatedir,;t t
13797 s,@libdir@,$libdir,;t t
13798 s,@includedir@,$includedir,;t t
13799 s,@oldincludedir@,$oldincludedir,;t t
13800 s,@infodir@,$infodir,;t t
13801 s,@mandir@,$mandir,;t t
13802 s,@build_alias@,$build_alias,;t t
13803 s,@host_alias@,$host_alias,;t t
13804 s,@target_alias@,$target_alias,;t t
13805 s,@DEFS@,$DEFS,;t t
13806 s,@ECHO_C@,$ECHO_C,;t t
13807 s,@ECHO_N@,$ECHO_N,;t t
13808 s,@ECHO_T@,$ECHO_T,;t t
13809 s,@LIBS@,$LIBS,;t t
13810 s,@build@,$build,;t t
13811 s,@build_cpu@,$build_cpu,;t t
13812 s,@build_vendor@,$build_vendor,;t t
13813 s,@build_os@,$build_os,;t t
13814 s,@host@,$host,;t t
13815 s,@host_cpu@,$host_cpu,;t t
13816 s,@host_vendor@,$host_vendor,;t t
13817 s,@host_os@,$host_os,;t t
13818 s,@target@,$target,;t t
13819 s,@target_cpu@,$target_cpu,;t t
13820 s,@target_vendor@,$target_vendor,;t t
13821 s,@target_os@,$target_os,;t t
13822 s,@CC@,$CC,;t t
13823 s,@CFLAGS@,$CFLAGS,;t t
13824 s,@LDFLAGS@,$LDFLAGS,;t t
13825 s,@CPPFLAGS@,$CPPFLAGS,;t t
13826 s,@ac_ct_CC@,$ac_ct_CC,;t t
13827 s,@EXEEXT@,$EXEEXT,;t t
13828 s,@OBJEXT@,$OBJEXT,;t t
13829 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13830 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13831 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13832 s,@CYGPATH_W@,$CYGPATH_W,;t t
13833 s,@PACKAGE@,$PACKAGE,;t t
13834 s,@VERSION@,$VERSION,;t t
13835 s,@ACLOCAL@,$ACLOCAL,;t t
13836 s,@AUTOCONF@,$AUTOCONF,;t t
13837 s,@AUTOMAKE@,$AUTOMAKE,;t t
13838 s,@AUTOHEADER@,$AUTOHEADER,;t t
13839 s,@MAKEINFO@,$MAKEINFO,;t t
13840 s,@install_sh@,$install_sh,;t t
13841 s,@STRIP@,$STRIP,;t t
13842 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13843 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13844 s,@mkdir_p@,$mkdir_p,;t t
13845 s,@AWK@,$AWK,;t t
13846 s,@SET_MAKE@,$SET_MAKE,;t t
13847 s,@am__leading_dot@,$am__leading_dot,;t t
13848 s,@AMTAR@,$AMTAR,;t t
13849 s,@am__tar@,$am__tar,;t t
13850 s,@am__untar@,$am__untar,;t t
13851 s,@DEPDIR@,$DEPDIR,;t t
13852 s,@am__include@,$am__include,;t t
13853 s,@am__quote@,$am__quote,;t t
13854 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13855 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13856 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13857 s,@CCDEPMODE@,$CCDEPMODE,;t t
13858 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13859 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13860 s,@AR@,$AR,;t t
13861 s,@ac_ct_AR@,$ac_ct_AR,;t t
13862 s,@RANLIB@,$RANLIB,;t t
13863 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13864 s,@LN_S@,$LN_S,;t t
13865 s,@LIBTOOL@,$LIBTOOL,;t t
13866 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13867 s,@NO_WERROR@,$NO_WERROR,;t t
13868 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13869 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13870 s,@MAINT@,$MAINT,;t t
13871 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13872 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13873 s,@host_noncanonical@,$host_noncanonical,;t t
13874 s,@target_noncanonical@,$target_noncanonical,;t t
13875 s,@bfdlibdir@,$bfdlibdir,;t t
13876 s,@bfdincludedir@,$bfdincludedir,;t t
13877 s,@CPP@,$CPP,;t t
13878 s,@EGREP@,$EGREP,;t t
13879 s,@ALLOCA@,$ALLOCA,;t t
13880 s,@USE_NLS@,$USE_NLS,;t t
13881 s,@MSGFMT@,$MSGFMT,;t t
13882 s,@GMSGFMT@,$GMSGFMT,;t t
13883 s,@XGETTEXT@,$XGETTEXT,;t t
13884 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13885 s,@CATALOGS@,$CATALOGS,;t t
13886 s,@CATOBJEXT@,$CATOBJEXT,;t t
13887 s,@DATADIRNAME@,$DATADIRNAME,;t t
13888 s,@GMOFILES@,$GMOFILES,;t t
13889 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13890 s,@INTLDEPS@,$INTLDEPS,;t t
13891 s,@INTLLIBS@,$INTLLIBS,;t t
13892 s,@INTLOBJS@,$INTLOBJS,;t t
13893 s,@POFILES@,$POFILES,;t t
13894 s,@POSUB@,$POSUB,;t t
13895 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13896 s,@GT_NO@,$GT_NO,;t t
13897 s,@GT_YES@,$GT_YES,;t t
13898 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13899 s,@l@,$l,;t t
13900 s,@HDEFINES@,$HDEFINES,;t t
13901 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13902 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13903 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13904 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13905 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13906 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13907 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13908 s,@COREFILE@,$COREFILE,;t t
13909 s,@COREFLAG@,$COREFLAG,;t t
13910 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13911 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13912 s,@TDEFINES@,$TDEFINES,;t t
13913 s,@wordsize@,$wordsize,;t t
13914 s,@bfd_libs@,$bfd_libs,;t t
13915 s,@all_backends@,$all_backends,;t t
13916 s,@bfd_backends@,$bfd_backends,;t t
13917 s,@bfd_machines@,$bfd_machines,;t t
13918 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13919 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13920 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13921 s,@tdefaults@,$tdefaults,;t t
13922 s,@LIBOBJS@,$LIBOBJS,;t t
13923 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13924 CEOF
13925
13926 _ACEOF
13927
13928 cat >>$CONFIG_STATUS <<\_ACEOF
13929 # Split the substitutions into bite-sized pieces for seds with
13930 # small command number limits, like on Digital OSF/1 and HP-UX.
13931 ac_max_sed_lines=48
13932 ac_sed_frag=1 # Number of current file.
13933 ac_beg=1 # First line for current file.
13934 ac_end=$ac_max_sed_lines # Line after last line for current file.
13935 ac_more_lines=:
13936 ac_sed_cmds=
13937 while $ac_more_lines; do
13938 if test $ac_beg -gt 1; then
13939 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13940 else
13941 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13942 fi
13943 if test ! -s $tmp/subs.frag; then
13944 ac_more_lines=false
13945 else
13946 # The purpose of the label and of the branching condition is to
13947 # speed up the sed processing (if there are no `@' at all, there
13948 # is no need to browse any of the substitutions).
13949 # These are the two extra sed commands mentioned above.
13950 (echo ':t
13951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13952 if test -z "$ac_sed_cmds"; then
13953 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13954 else
13955 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13956 fi
13957 ac_sed_frag=`expr $ac_sed_frag + 1`
13958 ac_beg=$ac_end
13959 ac_end=`expr $ac_end + $ac_max_sed_lines`
13960 fi
13961 done
13962 if test -z "$ac_sed_cmds"; then
13963 ac_sed_cmds=cat
13964 fi
13965 fi # test -n "$CONFIG_FILES"
13966
13967 _ACEOF
13968 cat >>$CONFIG_STATUS <<\_ACEOF
13969 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13971 case $ac_file in
13972 - | *:- | *:-:* ) # input from stdin
13973 cat >$tmp/stdin
13974 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13976 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13978 * ) ac_file_in=$ac_file.in ;;
13979 esac
13980
13981 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13982 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13984 X"$ac_file" : 'X\(//\)[^/]' \| \
13985 X"$ac_file" : 'X\(//\)$' \| \
13986 X"$ac_file" : 'X\(/\)' \| \
13987 . : '\(.\)' 2>/dev/null ||
13988 echo X"$ac_file" |
13989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13991 /^X\(\/\/\)$/{ s//\1/; q; }
13992 /^X\(\/\).*/{ s//\1/; q; }
13993 s/.*/./; q'`
13994 { if $as_mkdir_p; then
13995 mkdir -p "$ac_dir"
13996 else
13997 as_dir="$ac_dir"
13998 as_dirs=
13999 while test ! -d "$as_dir"; do
14000 as_dirs="$as_dir $as_dirs"
14001 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14003 X"$as_dir" : 'X\(//\)[^/]' \| \
14004 X"$as_dir" : 'X\(//\)$' \| \
14005 X"$as_dir" : 'X\(/\)' \| \
14006 . : '\(.\)' 2>/dev/null ||
14007 echo X"$as_dir" |
14008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14010 /^X\(\/\/\)$/{ s//\1/; q; }
14011 /^X\(\/\).*/{ s//\1/; q; }
14012 s/.*/./; q'`
14013 done
14014 test ! -n "$as_dirs" || mkdir $as_dirs
14015 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14016 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14017 { (exit 1); exit 1; }; }; }
14018
14019 ac_builddir=.
14020
14021 if test "$ac_dir" != .; then
14022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14023 # A "../" for each directory in $ac_dir_suffix.
14024 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14025 else
14026 ac_dir_suffix= ac_top_builddir=
14027 fi
14028
14029 case $srcdir in
14030 .) # No --srcdir option. We are building in place.
14031 ac_srcdir=.
14032 if test -z "$ac_top_builddir"; then
14033 ac_top_srcdir=.
14034 else
14035 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14036 fi ;;
14037 [\\/]* | ?:[\\/]* ) # Absolute path.
14038 ac_srcdir=$srcdir$ac_dir_suffix;
14039 ac_top_srcdir=$srcdir ;;
14040 *) # Relative path.
14041 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14042 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14043 esac
14044
14045 # Do not use `cd foo && pwd` to compute absolute paths, because
14046 # the directories may not exist.
14047 case `pwd` in
14048 .) ac_abs_builddir="$ac_dir";;
14049 *)
14050 case "$ac_dir" in
14051 .) ac_abs_builddir=`pwd`;;
14052 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14053 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14054 esac;;
14055 esac
14056 case $ac_abs_builddir in
14057 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14058 *)
14059 case ${ac_top_builddir}. in
14060 .) ac_abs_top_builddir=$ac_abs_builddir;;
14061 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14062 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14063 esac;;
14064 esac
14065 case $ac_abs_builddir in
14066 .) ac_abs_srcdir=$ac_srcdir;;
14067 *)
14068 case $ac_srcdir in
14069 .) ac_abs_srcdir=$ac_abs_builddir;;
14070 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14071 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14072 esac;;
14073 esac
14074 case $ac_abs_builddir in
14075 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14076 *)
14077 case $ac_top_srcdir in
14078 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14079 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14080 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14081 esac;;
14082 esac
14083
14084
14085 case $INSTALL in
14086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14087 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14088 esac
14089
14090 if test x"$ac_file" != x-; then
14091 { echo "$as_me:$LINENO: creating $ac_file" >&5
14092 echo "$as_me: creating $ac_file" >&6;}
14093 rm -f "$ac_file"
14094 fi
14095 # Let's still pretend it is `configure' which instantiates (i.e., don't
14096 # use $as_me), people would be surprised to read:
14097 # /* config.h. Generated by config.status. */
14098 if test x"$ac_file" = x-; then
14099 configure_input=
14100 else
14101 configure_input="$ac_file. "
14102 fi
14103 configure_input=$configure_input"Generated from `echo $ac_file_in |
14104 sed 's,.*/,,'` by configure."
14105
14106 # First look for the input files in the build tree, otherwise in the
14107 # src tree.
14108 ac_file_inputs=`IFS=:
14109 for f in $ac_file_in; do
14110 case $f in
14111 -) echo $tmp/stdin ;;
14112 [\\/$]*)
14113 # Absolute (can't be DOS-style, as IFS=:)
14114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14115 echo "$as_me: error: cannot find input file: $f" >&2;}
14116 { (exit 1); exit 1; }; }
14117 echo "$f";;
14118 *) # Relative
14119 if test -f "$f"; then
14120 # Build tree
14121 echo "$f"
14122 elif test -f "$srcdir/$f"; then
14123 # Source tree
14124 echo "$srcdir/$f"
14125 else
14126 # /dev/null tree
14127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14128 echo "$as_me: error: cannot find input file: $f" >&2;}
14129 { (exit 1); exit 1; }; }
14130 fi;;
14131 esac
14132 done` || { (exit 1); exit 1; }
14133 _ACEOF
14134 cat >>$CONFIG_STATUS <<_ACEOF
14135 sed "$ac_vpsub
14136 $extrasub
14137 _ACEOF
14138 cat >>$CONFIG_STATUS <<\_ACEOF
14139 :t
14140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14141 s,@configure_input@,$configure_input,;t t
14142 s,@srcdir@,$ac_srcdir,;t t
14143 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14144 s,@top_srcdir@,$ac_top_srcdir,;t t
14145 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14146 s,@builddir@,$ac_builddir,;t t
14147 s,@abs_builddir@,$ac_abs_builddir,;t t
14148 s,@top_builddir@,$ac_top_builddir,;t t
14149 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14150 s,@INSTALL@,$ac_INSTALL,;t t
14151 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14152 rm -f $tmp/stdin
14153 if test x"$ac_file" != x-; then
14154 mv $tmp/out $ac_file
14155 else
14156 cat $tmp/out
14157 rm -f $tmp/out
14158 fi
14159
14160 done
14161 _ACEOF
14162 cat >>$CONFIG_STATUS <<\_ACEOF
14163
14164 #
14165 # CONFIG_HEADER section.
14166 #
14167
14168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14170 #
14171 # ac_d sets the value in "#define NAME VALUE" lines.
14172 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14173 ac_dB='[ ].*$,\1#\2'
14174 ac_dC=' '
14175 ac_dD=',;t'
14176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14177 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14178 ac_uB='$,\1#\2define\3'
14179 ac_uC=' '
14180 ac_uD=',;t'
14181
14182 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14184 case $ac_file in
14185 - | *:- | *:-:* ) # input from stdin
14186 cat >$tmp/stdin
14187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14191 * ) ac_file_in=$ac_file.in ;;
14192 esac
14193
14194 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14195 echo "$as_me: creating $ac_file" >&6;}
14196
14197 # First look for the input files in the build tree, otherwise in the
14198 # src tree.
14199 ac_file_inputs=`IFS=:
14200 for f in $ac_file_in; do
14201 case $f in
14202 -) echo $tmp/stdin ;;
14203 [\\/$]*)
14204 # Absolute (can't be DOS-style, as IFS=:)
14205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14206 echo "$as_me: error: cannot find input file: $f" >&2;}
14207 { (exit 1); exit 1; }; }
14208 # Do quote $f, to prevent DOS paths from being IFS'd.
14209 echo "$f";;
14210 *) # Relative
14211 if test -f "$f"; then
14212 # Build tree
14213 echo "$f"
14214 elif test -f "$srcdir/$f"; then
14215 # Source tree
14216 echo "$srcdir/$f"
14217 else
14218 # /dev/null tree
14219 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14220 echo "$as_me: error: cannot find input file: $f" >&2;}
14221 { (exit 1); exit 1; }; }
14222 fi;;
14223 esac
14224 done` || { (exit 1); exit 1; }
14225 # Remove the trailing spaces.
14226 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14227
14228 _ACEOF
14229
14230 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14231 # `conftest.undefs', that substitutes the proper values into
14232 # config.h.in to produce config.h. The first handles `#define'
14233 # templates, and the second `#undef' templates.
14234 # And first: Protect against being on the right side of a sed subst in
14235 # config.status. Protect against being in an unquoted here document
14236 # in config.status.
14237 rm -f conftest.defines conftest.undefs
14238 # Using a here document instead of a string reduces the quoting nightmare.
14239 # Putting comments in sed scripts is not portable.
14240 #
14241 # `end' is used to avoid that the second main sed command (meant for
14242 # 0-ary CPP macros) applies to n-ary macro definitions.
14243 # See the Autoconf documentation for `clear'.
14244 cat >confdef2sed.sed <<\_ACEOF
14245 s/[\\&,]/\\&/g
14246 s,[\\$`],\\&,g
14247 t clear
14248 : clear
14249 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14250 t end
14251 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14252 : end
14253 _ACEOF
14254 # If some macros were called several times there might be several times
14255 # the same #defines, which is useless. Nevertheless, we may not want to
14256 # sort them, since we want the *last* AC-DEFINE to be honored.
14257 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14258 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14259 rm -f confdef2sed.sed
14260
14261 # This sed command replaces #undef with comments. This is necessary, for
14262 # example, in the case of _POSIX_SOURCE, which is predefined and required
14263 # on some systems where configure will not decide to define it.
14264 cat >>conftest.undefs <<\_ACEOF
14265 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14266 _ACEOF
14267
14268 # Break up conftest.defines because some shells have a limit on the size
14269 # of here documents, and old seds have small limits too (100 cmds).
14270 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14271 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14272 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14273 echo ' :' >>$CONFIG_STATUS
14274 rm -f conftest.tail
14275 while grep . conftest.defines >/dev/null
14276 do
14277 # Write a limited-size here document to $tmp/defines.sed.
14278 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14279 # Speed up: don't consider the non `#define' lines.
14280 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14281 # Work around the forget-to-reset-the-flag bug.
14282 echo 't clr' >>$CONFIG_STATUS
14283 echo ': clr' >>$CONFIG_STATUS
14284 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14285 echo 'CEOF
14286 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14287 rm -f $tmp/in
14288 mv $tmp/out $tmp/in
14289 ' >>$CONFIG_STATUS
14290 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14291 rm -f conftest.defines
14292 mv conftest.tail conftest.defines
14293 done
14294 rm -f conftest.defines
14295 echo ' fi # grep' >>$CONFIG_STATUS
14296 echo >>$CONFIG_STATUS
14297
14298 # Break up conftest.undefs because some shells have a limit on the size
14299 # of here documents, and old seds have small limits too (100 cmds).
14300 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14301 rm -f conftest.tail
14302 while grep . conftest.undefs >/dev/null
14303 do
14304 # Write a limited-size here document to $tmp/undefs.sed.
14305 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14306 # Speed up: don't consider the non `#undef'
14307 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14308 # Work around the forget-to-reset-the-flag bug.
14309 echo 't clr' >>$CONFIG_STATUS
14310 echo ': clr' >>$CONFIG_STATUS
14311 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14312 echo 'CEOF
14313 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14314 rm -f $tmp/in
14315 mv $tmp/out $tmp/in
14316 ' >>$CONFIG_STATUS
14317 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14318 rm -f conftest.undefs
14319 mv conftest.tail conftest.undefs
14320 done
14321 rm -f conftest.undefs
14322
14323 cat >>$CONFIG_STATUS <<\_ACEOF
14324 # Let's still pretend it is `configure' which instantiates (i.e., don't
14325 # use $as_me), people would be surprised to read:
14326 # /* config.h. Generated by config.status. */
14327 if test x"$ac_file" = x-; then
14328 echo "/* Generated by configure. */" >$tmp/config.h
14329 else
14330 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14331 fi
14332 cat $tmp/in >>$tmp/config.h
14333 rm -f $tmp/in
14334 if test x"$ac_file" != x-; then
14335 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14336 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14337 echo "$as_me: $ac_file is unchanged" >&6;}
14338 else
14339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$ac_file" : 'X\(//\)[^/]' \| \
14342 X"$ac_file" : 'X\(//\)$' \| \
14343 X"$ac_file" : 'X\(/\)' \| \
14344 . : '\(.\)' 2>/dev/null ||
14345 echo X"$ac_file" |
14346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14348 /^X\(\/\/\)$/{ s//\1/; q; }
14349 /^X\(\/\).*/{ s//\1/; q; }
14350 s/.*/./; q'`
14351 { if $as_mkdir_p; then
14352 mkdir -p "$ac_dir"
14353 else
14354 as_dir="$ac_dir"
14355 as_dirs=
14356 while test ! -d "$as_dir"; do
14357 as_dirs="$as_dir $as_dirs"
14358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14360 X"$as_dir" : 'X\(//\)[^/]' \| \
14361 X"$as_dir" : 'X\(//\)$' \| \
14362 X"$as_dir" : 'X\(/\)' \| \
14363 . : '\(.\)' 2>/dev/null ||
14364 echo X"$as_dir" |
14365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14367 /^X\(\/\/\)$/{ s//\1/; q; }
14368 /^X\(\/\).*/{ s//\1/; q; }
14369 s/.*/./; q'`
14370 done
14371 test ! -n "$as_dirs" || mkdir $as_dirs
14372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14374 { (exit 1); exit 1; }; }; }
14375
14376 rm -f $ac_file
14377 mv $tmp/config.h $ac_file
14378 fi
14379 else
14380 cat $tmp/config.h
14381 rm -f $tmp/config.h
14382 fi
14383 # Compute $ac_file's index in $config_headers.
14384 _am_stamp_count=1
14385 for _am_header in $config_headers :; do
14386 case $_am_header in
14387 $ac_file | $ac_file:* )
14388 break ;;
14389 * )
14390 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14391 esac
14392 done
14393 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14394 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14395 X$ac_file : 'X\(//\)[^/]' \| \
14396 X$ac_file : 'X\(//\)$' \| \
14397 X$ac_file : 'X\(/\)' \| \
14398 . : '\(.\)' 2>/dev/null ||
14399 echo X$ac_file |
14400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14402 /^X\(\/\/\)$/{ s//\1/; q; }
14403 /^X\(\/\).*/{ s//\1/; q; }
14404 s/.*/./; q'`/stamp-h$_am_stamp_count
14405 done
14406 _ACEOF
14407 cat >>$CONFIG_STATUS <<\_ACEOF
14408
14409 #
14410 # CONFIG_COMMANDS section.
14411 #
14412 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14413 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14414 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14415 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14416 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14417 X"$ac_dest" : 'X\(//\)[^/]' \| \
14418 X"$ac_dest" : 'X\(//\)$' \| \
14419 X"$ac_dest" : 'X\(/\)' \| \
14420 . : '\(.\)' 2>/dev/null ||
14421 echo X"$ac_dest" |
14422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14424 /^X\(\/\/\)$/{ s//\1/; q; }
14425 /^X\(\/\).*/{ s//\1/; q; }
14426 s/.*/./; q'`
14427 { if $as_mkdir_p; then
14428 mkdir -p "$ac_dir"
14429 else
14430 as_dir="$ac_dir"
14431 as_dirs=
14432 while test ! -d "$as_dir"; do
14433 as_dirs="$as_dir $as_dirs"
14434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436 X"$as_dir" : 'X\(//\)[^/]' \| \
14437 X"$as_dir" : 'X\(//\)$' \| \
14438 X"$as_dir" : 'X\(/\)' \| \
14439 . : '\(.\)' 2>/dev/null ||
14440 echo X"$as_dir" |
14441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14443 /^X\(\/\/\)$/{ s//\1/; q; }
14444 /^X\(\/\).*/{ s//\1/; q; }
14445 s/.*/./; q'`
14446 done
14447 test ! -n "$as_dirs" || mkdir $as_dirs
14448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14450 { (exit 1); exit 1; }; }; }
14451
14452 ac_builddir=.
14453
14454 if test "$ac_dir" != .; then
14455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14456 # A "../" for each directory in $ac_dir_suffix.
14457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14458 else
14459 ac_dir_suffix= ac_top_builddir=
14460 fi
14461
14462 case $srcdir in
14463 .) # No --srcdir option. We are building in place.
14464 ac_srcdir=.
14465 if test -z "$ac_top_builddir"; then
14466 ac_top_srcdir=.
14467 else
14468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14469 fi ;;
14470 [\\/]* | ?:[\\/]* ) # Absolute path.
14471 ac_srcdir=$srcdir$ac_dir_suffix;
14472 ac_top_srcdir=$srcdir ;;
14473 *) # Relative path.
14474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14476 esac
14477
14478 # Do not use `cd foo && pwd` to compute absolute paths, because
14479 # the directories may not exist.
14480 case `pwd` in
14481 .) ac_abs_builddir="$ac_dir";;
14482 *)
14483 case "$ac_dir" in
14484 .) ac_abs_builddir=`pwd`;;
14485 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14486 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14487 esac;;
14488 esac
14489 case $ac_abs_builddir in
14490 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14491 *)
14492 case ${ac_top_builddir}. in
14493 .) ac_abs_top_builddir=$ac_abs_builddir;;
14494 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14495 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14496 esac;;
14497 esac
14498 case $ac_abs_builddir in
14499 .) ac_abs_srcdir=$ac_srcdir;;
14500 *)
14501 case $ac_srcdir in
14502 .) ac_abs_srcdir=$ac_abs_builddir;;
14503 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14504 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14505 esac;;
14506 esac
14507 case $ac_abs_builddir in
14508 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14509 *)
14510 case $ac_top_srcdir in
14511 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14512 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14513 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14514 esac;;
14515 esac
14516
14517
14518 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14519 echo "$as_me: executing $ac_dest commands" >&6;}
14520 case $ac_dest in
14521 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14522 # Strip MF so we end up with the name of the file.
14523 mf=`echo "$mf" | sed -e 's/:.*$//'`
14524 # Check whether this is an Automake generated Makefile or not.
14525 # We used to match only the files named `Makefile.in', but
14526 # some people rename them; so instead we look at the file content.
14527 # Grep'ing the first line is not enough: some people post-process
14528 # each Makefile.in and add a new line on top of each file to say so.
14529 # So let's grep whole file.
14530 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14531 dirpart=`(dirname "$mf") 2>/dev/null ||
14532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$mf" : 'X\(//\)[^/]' \| \
14534 X"$mf" : 'X\(//\)$' \| \
14535 X"$mf" : 'X\(/\)' \| \
14536 . : '\(.\)' 2>/dev/null ||
14537 echo X"$mf" |
14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14540 /^X\(\/\/\)$/{ s//\1/; q; }
14541 /^X\(\/\).*/{ s//\1/; q; }
14542 s/.*/./; q'`
14543 else
14544 continue
14545 fi
14546 # Extract the definition of DEPDIR, am__include, and am__quote
14547 # from the Makefile without running `make'.
14548 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14549 test -z "$DEPDIR" && continue
14550 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14551 test -z "am__include" && continue
14552 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14553 # When using ansi2knr, U may be empty or an underscore; expand it
14554 U=`sed -n 's/^U = //p' < "$mf"`
14555 # Find all dependency output files, they are included files with
14556 # $(DEPDIR) in their names. We invoke sed twice because it is the
14557 # simplest approach to changing $(DEPDIR) to its actual value in the
14558 # expansion.
14559 for file in `sed -n "
14560 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14561 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14562 # Make sure the directory exists.
14563 test -f "$dirpart/$file" && continue
14564 fdir=`(dirname "$file") 2>/dev/null ||
14565 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566 X"$file" : 'X\(//\)[^/]' \| \
14567 X"$file" : 'X\(//\)$' \| \
14568 X"$file" : 'X\(/\)' \| \
14569 . : '\(.\)' 2>/dev/null ||
14570 echo X"$file" |
14571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14573 /^X\(\/\/\)$/{ s//\1/; q; }
14574 /^X\(\/\).*/{ s//\1/; q; }
14575 s/.*/./; q'`
14576 { if $as_mkdir_p; then
14577 mkdir -p $dirpart/$fdir
14578 else
14579 as_dir=$dirpart/$fdir
14580 as_dirs=
14581 while test ! -d "$as_dir"; do
14582 as_dirs="$as_dir $as_dirs"
14583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14585 X"$as_dir" : 'X\(//\)[^/]' \| \
14586 X"$as_dir" : 'X\(//\)$' \| \
14587 X"$as_dir" : 'X\(/\)' \| \
14588 . : '\(.\)' 2>/dev/null ||
14589 echo X"$as_dir" |
14590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14592 /^X\(\/\/\)$/{ s//\1/; q; }
14593 /^X\(\/\).*/{ s//\1/; q; }
14594 s/.*/./; q'`
14595 done
14596 test ! -n "$as_dirs" || mkdir $as_dirs
14597 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14598 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14599 { (exit 1); exit 1; }; }; }
14600
14601 # echo "creating $dirpart/$file"
14602 echo '# dummy' > "$dirpart/$file"
14603 done
14604 done
14605 ;;
14606 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14607 esac
14608 done
14609 _ACEOF
14610
14611 cat >>$CONFIG_STATUS <<\_ACEOF
14612
14613 { (exit 0); exit 0; }
14614 _ACEOF
14615 chmod +x $CONFIG_STATUS
14616 ac_clean_files=$ac_clean_files_save
14617
14618
14619 # configure is writing to config.log, and then calls config.status.
14620 # config.status does its own redirection, appending to config.log.
14621 # Unfortunately, on DOS this fails, as config.log is still kept open
14622 # by configure, so config.status won't be able to write to it; its
14623 # output is simply discarded. So we exec the FD to /dev/null,
14624 # effectively closing config.log, so it can be properly (re)opened and
14625 # appended to by config.status. When coming back to configure, we
14626 # need to make the FD available again.
14627 if test "$no_create" != yes; then
14628 ac_cs_success=:
14629 ac_config_status_args=
14630 test "$silent" = yes &&
14631 ac_config_status_args="$ac_config_status_args --quiet"
14632 exec 5>/dev/null
14633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14634 exec 5>>config.log
14635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14636 # would make configure fail if this is the last instruction.
14637 $ac_cs_success || { (exit 1); exit 1; }
14638 fi
14639
14640
This page took 0.388346 seconds and 5 git commands to generate.