]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
Improve HC11 simulator to support HC12
[thirdparty/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
b3baf5d0 3# Generated by Autoconf 2.49d.
252b5132 4#
b3baf5d0
NC
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
252b5132
RH
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
b3baf5d0
NC
10# Be Bourne compatible
11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12 emulate sh
13 NULLCMD=:
14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15 set -o posix
16fi
17
18if expr a : '\(a\)' >/dev/null 2>&1; then
19 as_expr=expr
20else
21 as_expr=false
22fi
23
24rm -f conf$$ conf$$.exe conf$$.file
25echo >conf$$.file
26if ln -s conf$$.file conf$$ 2>/dev/null; then
27 # We could just check for DJGPP; but this test a) works b) is more generic
28 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29 if test -f conf$$.exe; then
30 # Don't use ln at all; we don't have any links
31 as_ln_s='cp -p'
32 else
33 as_ln_s='ln -s'
34 fi
35elif ln conf$$.file conf$$ 2>/dev/null; then
36 as_ln_s=ln
37else
38 as_ln_s='cp -p'
39fi
40rm -f conf$$ conf$$.exe conf$$.file
41
42as_executable_p="test -f"
43
44# Support unset when possible.
45if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
46 as_unset=unset
47else
48 as_unset=false
49fi
50
51# NLS nuisances.
52$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
53$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
54$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
55$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
56$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
57$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
58$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
59$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
60
61# IFS
62# We need space, tab and new line, in precisely that order.
63as_nl='
64'
65IFS=" $as_nl"
66
67# CDPATH.
68$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
69
70# Name of the host.
71# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
72# so uname gets run too.
73ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
74
75# Name of the executable.
76as_me=`echo "$0" | sed 's,.*/,,'`
77
78cat >config.log <<EOF
79This file contains any messages produced by compilers while
80running configure, to aid debugging if configure makes a mistake.
81
82It was created by $as_me 2.49d, executed with
83 > $0 $@
84
85EOF
86{
87cat <<_ASUNAME
88## ---------- ##
89## Platform. ##
90## ---------- ##
91
92hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
93uname -m = `(uname -m) 2>/dev/null || echo unknown`
94uname -r = `(uname -r) 2>/dev/null || echo unknown`
95uname -s = `(uname -s) 2>/dev/null || echo unknown`
96uname -v = `(uname -v) 2>/dev/null || echo unknown`
97
98/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
99/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
100
101/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
102/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
104hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
105/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
106/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
107/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
108
109PATH = $PATH
110
111_ASUNAME
112} >>config.log
113
114cat >>config.log <<EOF
115## ------------ ##
116## Core tests. ##
117## ------------ ##
118
119EOF
120
121# File descriptor usage:
122# 0 standard input
123# 1 file creation
124# 2 errors and warnings
125# 5 compiler messages saved in config.log
126# 6 checking for... messages and results
127exec 5>>config.log
128exec 6>&1
129
130#
131# Initializations.
132#
252b5132 133ac_default_prefix=/usr/local
b3baf5d0
NC
134cross_compiling=no
135subdirs=
136MFLAGS= MAKEFLAGS=
137SHELL=${CONFIG_SHELL-/bin/sh}
138
139# Maximum number of lines to put in a shell here document.
140# This variable seems obsolete. It should probably be removed, and
141# only ac_max_sed_lines should be used.
142: ${ac_max_here_lines=38}
143
144# Avoid depending upon Character Ranges.
145ac_cr_az='abcdefghijklmnopqrstuvwxyz'
146ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
147ac_cr_09='0123456789'
148ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
149
150# Sed expression to map a string onto a valid sh and CPP variable names.
151ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
152ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
153
154ac_unique_file="libbfd.c"
155# Factoring default headers for most tests.
156ac_includes_default="\
157#include <stdio.h>
158#include <sys/types.h>
159#include <sys/stat.h>
160#if STDC_HEADERS
161# include <stdlib.h>
162# include <stddef.h>
163#else
164# if HAVE_STDLIB_H
165# include <stdlib.h>
166# endif
167#endif
168#if HAVE_STRING_H
169# if !STDC_HEADERS && HAVE_MEMORY_H
170# include <memory.h>
171# endif
172# include <string.h>
173#else
174# if HAVE_STRINGS_H
175# include <strings.h>
176# endif
177#endif
178#if HAVE_INTTYPES_H
179# include <inttypes.h>
180#endif
181#if HAVE_UNISTD_H
182# include <unistd.h>
183#endif"
252b5132
RH
184
185# Initialize some variables set by options.
b3baf5d0
NC
186ac_init_help=
187ac_init_version=false
252b5132
RH
188# The variables have the same names as the options, with
189# dashes changed to underlines.
b3baf5d0 190cache_file=/dev/null
252b5132 191exec_prefix=NONE
252b5132 192no_create=
252b5132
RH
193no_recursion=
194prefix=NONE
195program_prefix=NONE
196program_suffix=NONE
197program_transform_name=s,x,x,
198silent=
199site=
200srcdir=
252b5132
RH
201verbose=
202x_includes=NONE
203x_libraries=NONE
b3baf5d0
NC
204
205# Installation directory options.
206# These are left unexpanded so users can "make install exec_prefix=/foo"
207# and all the variables that are supposed to be based on exec_prefix
208# by default will actually change.
209# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
210bindir='${exec_prefix}/bin'
211sbindir='${exec_prefix}/sbin'
212libexecdir='${exec_prefix}/libexec'
213datadir='${prefix}/share'
214sysconfdir='${prefix}/etc'
215sharedstatedir='${prefix}/com'
216localstatedir='${prefix}/var'
217libdir='${exec_prefix}/lib'
218includedir='${prefix}/include'
219oldincludedir='/usr/include'
220infodir='${prefix}/info'
221mandir='${prefix}/man'
222
b3baf5d0
NC
223# Identity of this package.
224PACKAGE_NAME=
225PACKAGE_TARNAME=
226PACKAGE_VERSION=
227PACKAGE_STRING=
228PACKAGE_BUGREPORT=
252b5132
RH
229
230ac_prev=
231for ac_option
232do
252b5132
RH
233 # If the previous option needs an argument, assign it.
234 if test -n "$ac_prev"; then
235 eval "$ac_prev=\$ac_option"
236 ac_prev=
237 continue
238 fi
239
b3baf5d0 240 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
241
242 # Accept the important Cygnus configure options, so we can diagnose typos.
243
b3baf5d0 244 case $ac_option in
252b5132
RH
245
246 -bindir | --bindir | --bindi | --bind | --bin | --bi)
247 ac_prev=bindir ;;
248 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b3baf5d0 249 bindir=$ac_optarg ;;
252b5132
RH
250
251 -build | --build | --buil | --bui | --bu)
b3baf5d0 252 ac_prev=build_alias ;;
252b5132 253 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b3baf5d0 254 build_alias=$ac_optarg ;;
252b5132
RH
255
256 -cache-file | --cache-file | --cache-fil | --cache-fi \
257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
258 ac_prev=cache_file ;;
259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b3baf5d0
NC
261 cache_file=$ac_optarg ;;
262
263 --config-cache | -C)
264 cache_file=config.cache ;;
252b5132
RH
265
266 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
267 ac_prev=datadir ;;
268 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
269 | --da=*)
b3baf5d0 270 datadir=$ac_optarg ;;
252b5132
RH
271
272 -disable-* | --disable-*)
b3baf5d0 273 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 274 # Reject names that are not valid shell variable names.
b3baf5d0
NC
275 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
276 { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5
277echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
278 { (exit 1); exit 1; }; }
279 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
280 eval "enable_$ac_feature=no" ;;
252b5132
RH
281
282 -enable-* | --enable-*)
b3baf5d0 283 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 284 # Reject names that are not valid shell variable names.
b3baf5d0
NC
285 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
286 { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5
287echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
288 { (exit 1); exit 1; }; }
289 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
290 case $ac_option in
291 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
292 *) ac_optarg=yes ;;
293 esac
b3baf5d0 294 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
295
296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
298 | --exec | --exe | --ex)
299 ac_prev=exec_prefix ;;
300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
302 | --exec=* | --exe=* | --ex=*)
b3baf5d0 303 exec_prefix=$ac_optarg ;;
252b5132
RH
304
305 -gas | --gas | --ga | --g)
306 # Obsolete; use --with-gas.
307 with_gas=yes ;;
308
b3baf5d0
NC
309 -help | --help | --hel | --he | -h)
310 ac_init_help=long ;;
311 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
312 ac_init_help=recursive ;;
313 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
314 ac_init_help=short ;;
252b5132
RH
315
316 -host | --host | --hos | --ho)
b3baf5d0 317 ac_prev=host_alias ;;
252b5132 318 -host=* | --host=* | --hos=* | --ho=*)
b3baf5d0 319 host_alias=$ac_optarg ;;
252b5132
RH
320
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
b3baf5d0 326 includedir=$ac_optarg ;;
252b5132
RH
327
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
329 ac_prev=infodir ;;
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b3baf5d0 331 infodir=$ac_optarg ;;
252b5132
RH
332
333 -libdir | --libdir | --libdi | --libd)
334 ac_prev=libdir ;;
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b3baf5d0 336 libdir=$ac_optarg ;;
252b5132
RH
337
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
b3baf5d0 343 libexecdir=$ac_optarg ;;
252b5132
RH
344
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b3baf5d0 352 localstatedir=$ac_optarg ;;
252b5132
RH
353
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
355 ac_prev=mandir ;;
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b3baf5d0 357 mandir=$ac_optarg ;;
252b5132
RH
358
359 -nfp | --nfp | --nf)
360 # Obsolete; use --without-fp.
361 with_fp=no ;;
362
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
364 | --no-cr | --no-c)
365 no_create=yes ;;
366
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 no_recursion=yes ;;
370
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b3baf5d0 378 oldincludedir=$ac_optarg ;;
252b5132
RH
379
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
381 ac_prev=prefix ;;
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b3baf5d0 383 prefix=$ac_optarg ;;
252b5132
RH
384
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b3baf5d0 390 program_prefix=$ac_optarg ;;
252b5132
RH
391
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b3baf5d0 397 program_suffix=$ac_optarg ;;
252b5132
RH
398
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
b3baf5d0 414 program_transform_name=$ac_optarg ;;
252b5132
RH
415
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
418 silent=yes ;;
419
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
421 ac_prev=sbindir ;;
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
423 | --sbi=* | --sb=*)
b3baf5d0 424 sbindir=$ac_optarg ;;
252b5132
RH
425
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
429 | --sha | --sh)
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
434 | --sha=* | --sh=*)
b3baf5d0 435 sharedstatedir=$ac_optarg ;;
252b5132
RH
436
437 -site | --site | --sit)
438 ac_prev=site ;;
439 -site=* | --site=* | --sit=*)
b3baf5d0 440 site=$ac_optarg ;;
252b5132
RH
441
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
443 ac_prev=srcdir ;;
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b3baf5d0 445 srcdir=$ac_optarg ;;
252b5132
RH
446
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b3baf5d0 452 sysconfdir=$ac_optarg ;;
252b5132
RH
453
454 -target | --target | --targe | --targ | --tar | --ta | --t)
b3baf5d0 455 ac_prev=target_alias ;;
252b5132 456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b3baf5d0 457 target_alias=$ac_optarg ;;
252b5132
RH
458
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 verbose=yes ;;
461
b3baf5d0
NC
462 -version | --version | --versio | --versi | --vers | -V)
463 ac_init_version=: ;;
252b5132
RH
464
465 -with-* | --with-*)
b3baf5d0 466 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 467 # Reject names that are not valid shell variable names.
b3baf5d0
NC
468 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
469 { { echo "$as_me:469: error: invalid package name: $ac_package" >&5
470echo "$as_me: error: invalid package name: $ac_package" >&2;}
471 { (exit 1); exit 1; }; }
252b5132 472 ac_package=`echo $ac_package| sed 's/-/_/g'`
b3baf5d0
NC
473 case $ac_option in
474 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
475 *) ac_optarg=yes ;;
476 esac
b3baf5d0 477 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
478
479 -without-* | --without-*)
b3baf5d0 480 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 481 # Reject names that are not valid shell variable names.
b3baf5d0
NC
482 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
483 { { echo "$as_me:483: error: invalid package name: $ac_package" >&5
484echo "$as_me: error: invalid package name: $ac_package" >&2;}
485 { (exit 1); exit 1; }; }
486 ac_package=`echo $ac_package | sed 's/-/_/g'`
487 eval "with_$ac_package=no" ;;
252b5132
RH
488
489 --x)
490 # Obsolete; use --with-x.
491 with_x=yes ;;
492
493 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
494 | --x-incl | --x-inc | --x-in | --x-i)
495 ac_prev=x_includes ;;
496 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
497 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b3baf5d0 498 x_includes=$ac_optarg ;;
252b5132
RH
499
500 -x-libraries | --x-libraries | --x-librarie | --x-librari \
501 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
502 ac_prev=x_libraries ;;
503 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
504 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b3baf5d0 505 x_libraries=$ac_optarg ;;
252b5132 506
b3baf5d0
NC
507 -*) { { echo "$as_me:507: error: unrecognized option: $ac_option
508Try \`$0 --help' for more information." >&5
509echo "$as_me: error: unrecognized option: $ac_option
510Try \`$0 --help' for more information." >&2;}
511 { (exit 1); exit 1; }; }
252b5132
RH
512 ;;
513
b3baf5d0
NC
514 *=*)
515 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
516 # Reject names that are not valid shell variable names.
517 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
518 { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5
519echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
520 { (exit 1); exit 1; }; }
521 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
522 eval "$ac_envvar='$ac_optarg'"
523 export $ac_envvar ;;
524
252b5132 525 *)
b3baf5d0
NC
526 # FIXME: should be removed in autoconf 3.0.
527 { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5
528echo "$as_me: WARNING: you should use --build, --host, --target" >&2;}
529 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
530 { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5
531echo "$as_me: WARNING: invalid host type: $ac_option" >&2;}
532 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
533 ;;
534
535 esac
536done
537
538if test -n "$ac_prev"; then
b3baf5d0
NC
539 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
540 { { echo "$as_me:540: error: missing argument to $ac_option" >&5
541echo "$as_me: error: missing argument to $ac_option" >&2;}
542 { (exit 1); exit 1; }; }
252b5132 543fi
252b5132 544
b3baf5d0
NC
545# Be sure to have absolute paths.
546for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
547 localstatedir libdir includedir oldincludedir infodir mandir \
548 exec_prefix prefix
252b5132 549do
b3baf5d0
NC
550 eval ac_val=$`echo $ac_var`
551 case $ac_val in
552 [\\/$]* | ?:[\\/]* ) ;;
553 NONE ) ;;
554 *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5
555echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
556 { (exit 1); exit 1; }; };;
252b5132
RH
557 esac
558done
559
b3baf5d0
NC
560# There might be people who depend on the old broken behavior: `$host'
561# used to hold the argument of --host etc.
562build=$build_alias
563host=$host_alias
564target=$target_alias
565
566# FIXME: should be removed in autoconf 3.0.
567if test "x$host_alias" != x; then
568 if test "x$build_alias" = x; then
569 cross_compiling=maybe
570 { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host.
571 If a cross compiler is detected then cross compile mode will be used." >&5
572echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
573 If a cross compiler is detected then cross compile mode will be used." >&2;}
574 elif test "x$build_alias" != "x$host_alias"; then
575 cross_compiling=yes
576 fi
577fi
252b5132 578
b3baf5d0
NC
579ac_tool_prefix=
580test -n "$host_alias" && ac_tool_prefix=$host_alias-
252b5132 581
b3baf5d0 582test "$silent" = yes && exec 6>/dev/null
252b5132
RH
583
584# Find the source files, if location was not specified.
585if test -z "$srcdir"; then
586 ac_srcdir_defaulted=yes
587 # Try the directory containing this script, then its parent.
588 ac_prog=$0
b3baf5d0 589 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
252b5132
RH
590 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 srcdir=$ac_confdir
592 if test ! -r $srcdir/$ac_unique_file; then
593 srcdir=..
594 fi
595else
596 ac_srcdir_defaulted=no
597fi
598if test ! -r $srcdir/$ac_unique_file; then
599 if test "$ac_srcdir_defaulted" = yes; then
b3baf5d0
NC
600 { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5
601echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;}
602 { (exit 1); exit 1; }; }
252b5132 603 else
b3baf5d0
NC
604 { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5
605echo "$as_me: error: cannot find sources in $srcdir" >&2;}
606 { (exit 1); exit 1; }; }
252b5132
RH
607 fi
608fi
b3baf5d0
NC
609srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
610ac_env_build_alias_set=${build_alias+set}
611ac_env_build_alias_value=$build_alias
612ac_cv_env_build_alias_set=${build_alias+set}
613ac_cv_env_build_alias_value=$build_alias
614ac_env_host_alias_set=${host_alias+set}
615ac_env_host_alias_value=$host_alias
616ac_cv_env_host_alias_set=${host_alias+set}
617ac_cv_env_host_alias_value=$host_alias
618ac_env_target_alias_set=${target_alias+set}
619ac_env_target_alias_value=$target_alias
620ac_cv_env_target_alias_set=${target_alias+set}
621ac_cv_env_target_alias_value=$target_alias
622ac_env_CC_set=${CC+set}
623ac_env_CC_value=$CC
624ac_cv_env_CC_set=${CC+set}
625ac_cv_env_CC_value=$CC
626ac_env_CFLAGS_set=${CFLAGS+set}
627ac_env_CFLAGS_value=$CFLAGS
628ac_cv_env_CFLAGS_set=${CFLAGS+set}
629ac_cv_env_CFLAGS_value=$CFLAGS
630ac_env_LDFLAGS_set=${LDFLAGS+set}
631ac_env_LDFLAGS_value=$LDFLAGS
632ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
633ac_cv_env_LDFLAGS_value=$LDFLAGS
634ac_env_CPP_set=${CPP+set}
635ac_env_CPP_value=$CPP
636ac_cv_env_CPP_set=${CPP+set}
637ac_cv_env_CPP_value=$CPP
638ac_env_CPPFLAGS_set=${CPPFLAGS+set}
639ac_env_CPPFLAGS_value=$CPPFLAGS
640ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
641ac_cv_env_CPPFLAGS_value=$CPPFLAGS
642
643#
644# Report the --help message.
645#
646if test "$ac_init_help" = "long"; then
647 # Omit some internal or obsolete options to make the list less imposing.
648 # This message is too long to be a string in the A/UX 3.1 sh.
649 cat <<EOF
650\`configure' configures this package to adapt to many kinds of systems.
651
652Usage: $0 [OPTION]... [VAR=VALUE]...
653
654To assign environment variables (e.g., CC, CFLAGS...), specify them as
655VAR=VALUE. See below for descriptions of some of the useful variables.
656
657Defaults for the options are specified in brackets.
658
659Configuration:
660 -h, --help display this help and exit
661 --help=short display options specific to this package
662 --help=recursive display the short help of all the included packages
663 -V, --version display version information and exit
664 -q, --quiet, --silent do not print \`checking...' messages
665 --cache-file=FILE cache test results in FILE [disabled]
666 -C, --config-cache alias for \`--cache-file=config.cache'
667 -n, --no-create do not create output files
668 --srcdir=DIR find the sources in DIR [configure dir or \`..']
669
670EOF
671
672 cat <<EOF
673Installation directories:
674 --prefix=PREFIX install architecture-independent files in PREFIX
675 [$ac_default_prefix]
676 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
677 [PREFIX]
678
679By default, \`make install' will install all the files in
680\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
681an installation prefix other than \`$ac_default_prefix' using \`--prefix',
682for instance \`--prefix=\$HOME'.
683
684For better control, use the options below.
685
686Fine tuning of the installation directories:
687 --bindir=DIR user executables [EPREFIX/bin]
688 --sbindir=DIR system admin executables [EPREFIX/sbin]
689 --libexecdir=DIR program executables [EPREFIX/libexec]
690 --datadir=DIR read-only architecture-independent data [PREFIX/share]
691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
694 --libdir=DIR object code libraries [EPREFIX/lib]
695 --includedir=DIR C header files [PREFIX/include]
696 --oldincludedir=DIR C header files for non-gcc [/usr/include]
697 --infodir=DIR info documentation [PREFIX/info]
698 --mandir=DIR man documentation [PREFIX/man]
699EOF
700
701 cat <<\EOF
702
703Program names:
704 --program-prefix=PREFIX prepend PREFIX to installed program names
705 --program-suffix=SUFFIX append SUFFIX to installed program names
706 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
707
708System types:
709 --build=BUILD configure for building on BUILD [guessed]
710 --host=HOST build programs to run on HOST [BUILD]
711 --target=TARGET configure for building compilers for TARGET [HOST]
712EOF
713fi
714
715if test -n "$ac_init_help"; then
716
717 cat <<\EOF
718
719Optional Features:
720 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
721 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
722 --enable-shared=PKGS build shared libraries default=no
723 --enable-static=PKGS build static libraries default=yes
724 --enable-fast-install=PKGS optimize for fast installation default=yes
725 --disable-libtool-lock avoid locking (might break parallel builds)
726 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
727 --enable-targets alternative target configurations
728 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
729 --enable-build-warnings Enable build-time compiler warnings if gcc is used
730 --enable-maintainer-mode enable make rules and dependencies not useful
731 (and sometimes confusing) to the casual installer
732 --disable-nls do not use Native Language Support
733
734Optional Packages:
735 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
736 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
737 --with-gnu-ld assume the C compiler uses GNU ld default=no
738 --with-pic try to use only PIC/non-PIC objects default=use both
739 --with-mmap try using mmap for BFD input files if available
740 --with-included-gettext use the GNU gettext library included here
741
742Some influential environment variables:
743 CC C compiler command
744 CFLAGS C compiler flags
745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
746 nonstandard directory <lib dir>
747 CPP C preprocessor
748 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
749 headers in a nonstandard directory <include dir>
750
751Use these variables to override the choices made by `configure' or to help
752it to find libraries and programs with nonstandard names/locations.
753
754EOF
755fi
756
757if test "$ac_init_help" = "recursive"; then
758 # If there are subdirs, report their specific --help.
759 ac_popdir=`pwd`
760 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
761 cd $ac_subdir
762 # A "../" for each directory in /$ac_subdir.
763 ac_dots=`echo $ac_subdir |
764 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
765
766 case $srcdir in
767 .) # No --srcdir option. We are building in place.
768 ac_sub_srcdir=$srcdir ;;
769 [\\/]* | ?:[\\/]* ) # Absolute path.
770 ac_sub_srcdir=$srcdir/$ac_subdir ;;
771 *) # Relative path.
772 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
773 esac
774
775 # Check for guested configure; otherwise get Cygnus style configure.
776 if test -f $ac_sub_srcdir/configure.gnu; then
777 echo
778 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
779 elif test -f $ac_sub_srcdir/configure; then
780 echo
781 $SHELL $ac_sub_srcdir/configure --help=recursive
782 elif test -f $ac_sub_srcdir/configure.ac ||
783 test -f $ac_sub_srcdir/configure.in; then
784 echo
785 $ac_configure --help
786 else
787 { echo "$as_me:787: WARNING: no configuration information is in $ac_subdir" >&5
788echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
789 fi
790 cd $ac_popdir
791 done
792fi
793
794test -n "$ac_init_help" && exit 0
795if $ac_init_version; then
796 cat <<\EOF
797
798Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
799Free Software Foundation, Inc.
800This configure script is free software; the Free Software Foundation
801gives unlimited permission to copy, distribute and modify it.
802EOF
803 exit 0
804fi
805
806# Keep a trace of the command line.
807# Strip out --no-create and --no-recursion so they do not pile up.
808# Also quote any args containing shell meta-characters.
809ac_configure_args=
810ac_sep=
811for ac_arg
812do
813 case $ac_arg in
814 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
815 | --no-cr | --no-c) ;;
816 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
817 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
818 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
819 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
820 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
821 ac_sep=" " ;;
822 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
823 ac_sep=" " ;;
824 esac
825 # Get rid of the leading space.
826done
827
828# When interrupted or exit'd, cleanup temporary files, and complete
829# config.log. We remove comments because anyway the quotes in there
830# would cause problems or look ugly.
831trap 'exit_status=$?
832 # Save into config.log some information that might help in debugging.
833 echo >&5
834 echo "## ----------------- ##" >&5
835 echo "## Cache variables. ##" >&5
836 echo "## ----------------- ##" >&5
837 echo >&5
838 # The following way of writing the cache mishandles newlines in values,
839{
840 (set) 2>&1 |
841 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
842 *ac_space=\ *)
843 sed -n \
844 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
845 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
846 ;;
847 *)
848 sed -n \
849 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
850 ;;
851 esac;
852} >&5
853 sed "/^$/d" confdefs.h >conftest.log
854 if test -s conftest.log; then
855 echo >&5
856 echo "## ------------ ##" >&5
857 echo "## confdefs.h. ##" >&5
858 echo "## ------------ ##" >&5
859 echo >&5
860 cat conftest.log >&5
861 fi
862 (echo; echo) >&5
863 test "$ac_signal" != 0 &&
864 echo "$as_me: caught signal $ac_signal" >&5
865 echo "$as_me: exit $exit_status" >&5
866 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
867 exit $exit_status
868 ' 0
869for ac_signal in 1 2 13 15; do
870 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
871done
872ac_signal=0
873
874# confdefs.h avoids OS command line length limits that DEFS can exceed.
875rm -rf conftest* confdefs.h
876# AIX cpp loses on an empty file, so make sure it contains at least a newline.
877echo >confdefs.h
252b5132 878
b3baf5d0 879# Let the site file select an alternate cache file if it wants to.
252b5132 880# Prefer explicitly selected file to automatically selected ones.
fdbafa10
L
881if test -z "$CONFIG_SITE"; then
882 if test "x$prefix" != xNONE; then
883 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
884 else
885 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
252b5132
RH
886 fi
887fi
888for ac_site_file in $CONFIG_SITE; do
889 if test -r "$ac_site_file"; then
b3baf5d0
NC
890 { echo "$as_me:890: loading site script $ac_site_file" >&5
891echo "$as_me: loading site script $ac_site_file" >&6;}
892 cat "$ac_site_file" >&5
252b5132
RH
893 . "$ac_site_file"
894 fi
895done
896
897if test -r "$cache_file"; then
b3baf5d0
NC
898 # Some versions of bash will fail to source /dev/null (special
899 # files actually), so we avoid doing that.
900 if test -f "$cache_file"; then
901 { echo "$as_me:901: loading cache $cache_file" >&5
902echo "$as_me: loading cache $cache_file" >&6;}
903 case $cache_file in
904 [\\/]* | ?:[\\/]* ) . $cache_file;;
905 *) . ./$cache_file;;
906 esac
907 fi
252b5132 908else
b3baf5d0
NC
909 { echo "$as_me:909: creating cache $cache_file" >&5
910echo "$as_me: creating cache $cache_file" >&6;}
911 >$cache_file
912fi
913
914# Check that the precious variables saved in the cache have kept the same
915# value.
916ac_suggest_removing_cache=false
917for ac_var in `(set) 2>&1 |
918 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
920 eval ac_new_set=\$ac_env_${ac_var}_set
921 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
922 eval ac_new_val="\$ac_env_${ac_var}_value"
923 case $ac_old_set,$ac_new_set in
924 set,)
925 { echo "$as_me:925: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
926echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
927 ac_suggest_removing_cache=: ;;
928 ,set)
929 { echo "$as_me:929: WARNING: \`$ac_var' was not set in the previous run" >&5
930echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
931 ac_suggest_removing_cache=: ;;
932 ,);;
933 *)
934 if test "x$ac_old_val" != "x$ac_new_val"; then
935 { echo "$as_me:935: WARNING: \`$ac_var' has changed since the previous run:" >&5
936echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
937 { echo "$as_me:937: WARNING: former value: $ac_old_val" >&5
938echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
939 { echo "$as_me:939: WARNING: current value: $ac_new_val" >&5
940echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
941 ac_suggest_removing_cache=:
942 fi;;
943 esac
944done
945if $ac_suggest_removing_cache; then
946 { echo "$as_me:946: WARNING: changes in the environment can compromise the build" >&5
947echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
948 { echo "$as_me:948: WARNING: consider removing $cache_file and starting over" >&5
949echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
252b5132
RH
950fi
951
952ac_ext=c
252b5132 953ac_cpp='$CPP $CPPFLAGS'
b3baf5d0
NC
954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
956ac_compiler_gnu=$ac_cv_c_compiler_gnu
957
958case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C='
960' ECHO_T=' ' ;;
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
963esac
964echo "#! $SHELL" >conftest.sh
965echo "exit 0" >>conftest.sh
966chmod +x conftest.sh
967if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
969 ac_status=$?
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
ac48eca1 973else
b3baf5d0 974 ac_path_separator=:
ac48eca1 975fi
b3baf5d0
NC
976PATH_SEPARATOR="$ac_path_separator"
977rm -f conftest.sh
252b5132
RH
978
979ac_aux_dir=
980for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
981 if test -f $ac_dir/install-sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install-sh -c"
984 break
985 elif test -f $ac_dir/install.sh; then
986 ac_aux_dir=$ac_dir
987 ac_install_sh="$ac_aux_dir/install.sh -c"
988 break
b3baf5d0
NC
989 elif test -f $ac_dir/shtool; then
990 ac_aux_dir=$ac_dir
991 ac_install_sh="$ac_aux_dir/shtool install -c"
992 break
252b5132
RH
993 fi
994done
995if test -z "$ac_aux_dir"; then
b3baf5d0
NC
996 { { echo "$as_me:996: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
997echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
998 { (exit 1); exit 1; }; }
252b5132 999fi
b3baf5d0
NC
1000ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1001ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1002ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
252b5132 1003
b3baf5d0
NC
1004# Make sure we can run config.sub.
1005$ac_config_sub sun4 >/dev/null 2>&1 ||
1006 { { echo "$as_me:1006: error: cannot run $ac_config_sub" >&5
1007echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1008 { (exit 1); exit 1; }; }
1009
1010echo "$as_me:1010: checking build system type" >&5
1011echo $ECHO_N "checking build system type... $ECHO_C" >&6
1012if test "${ac_cv_build+set}" = set; then
1013 echo $ECHO_N "(cached) $ECHO_C" >&6
1014else
1015 ac_cv_build_alias=$build_alias
1016test -z "$ac_cv_build_alias" &&
1017 ac_cv_build_alias=`$ac_config_guess`
1018test -z "$ac_cv_build_alias" &&
1019 { { echo "$as_me:1019: error: cannot guess build type; you must specify one" >&5
1020echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1021 { (exit 1); exit 1; }; }
1022ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1023 { { echo "$as_me:1023: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1024echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1025 { (exit 1); exit 1; }; }
1026
1027fi
1028echo "$as_me:1028: result: $ac_cv_build" >&5
1029echo "${ECHO_T}$ac_cv_build" >&6
1030build=$ac_cv_build
1031build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034
1035echo "$as_me:1035: checking host system type" >&5
1036echo $ECHO_N "checking host system type... $ECHO_C" >&6
1037if test "${ac_cv_host+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1039else
1040 ac_cv_host_alias=$host_alias
1041test -z "$ac_cv_host_alias" &&
1042 ac_cv_host_alias=$ac_cv_build_alias
1043ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1044 { { echo "$as_me:1044: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1045echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1046 { (exit 1); exit 1; }; }
1047
1048fi
1049echo "$as_me:1049: result: $ac_cv_host" >&5
1050echo "${ECHO_T}$ac_cv_host" >&6
1051host=$ac_cv_host
1052host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055
1056echo "$as_me:1056: checking target system type" >&5
1057echo $ECHO_N "checking target system type... $ECHO_C" >&6
1058if test "${ac_cv_target+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1060else
1061 ac_cv_target_alias=$target_alias
1062test "x$ac_cv_target_alias" = "x" &&
1063 ac_cv_target_alias=$ac_cv_host_alias
1064ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1065 { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1066echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1067 { (exit 1); exit 1; }; }
1068
1069fi
1070echo "$as_me:1070: result: $ac_cv_target" >&5
1071echo "${ECHO_T}$ac_cv_target" >&6
1072target=$ac_cv_target
1073target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
252b5132
RH
1076
1077# The aliases save the names the user supplied, while $host etc.
1078# will get canonicalized.
b3baf5d0 1079test -n "$target_alias" &&
252b5132
RH
1080 test "$program_prefix$program_suffix$program_transform_name" = \
1081 NONENONEs,x,x, &&
1082 program_prefix=${target_alias}-
b3baf5d0
NC
1083ac_ext=c
1084ac_cpp='$CPP $CPPFLAGS'
1085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087ac_compiler_gnu=$ac_cv_c_compiler_gnu
1088if test -n "$ac_tool_prefix"; then
1089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1090set dummy ${ac_tool_prefix}gcc; ac_word=$2
1091echo "$as_me:1091: checking for $ac_word" >&5
1092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1093if test "${ac_cv_prog_CC+set}" = set; then
1094 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 1095else
b3baf5d0
NC
1096 if test -n "$CC"; then
1097 ac_cv_prog_CC="$CC" # Let the user override the test.
1098else
1099 ac_save_IFS=$IFS; IFS=$ac_path_separator
1100ac_dummy="$PATH"
1101for ac_dir in $ac_dummy; do
1102 IFS=$ac_save_IFS
1103 test -z "$ac_dir" && ac_dir=.
1104 $as_executable_p "$ac_dir/$ac_word" || continue
1105ac_cv_prog_CC="${ac_tool_prefix}gcc"
1106break
1107done
252b5132 1108
b3baf5d0
NC
1109fi
1110fi
1111CC=$ac_cv_prog_CC
1112if test -n "$CC"; then
1113 echo "$as_me:1113: result: $CC" >&5
1114echo "${ECHO_T}$CC" >&6
252b5132 1115else
b3baf5d0
NC
1116 echo "$as_me:1116: result: no" >&5
1117echo "${ECHO_T}no" >&6
252b5132 1118fi
252b5132
RH
1119
1120fi
b3baf5d0
NC
1121if test -z "$ac_cv_prog_CC"; then
1122 ac_ct_CC=$CC
1123 # Extract the first word of "gcc", so it can be a program name with args.
1124set dummy gcc; ac_word=$2
1125echo "$as_me:1125: checking for $ac_word" >&5
1126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1128 echo $ECHO_N "(cached) $ECHO_C" >&6
1129else
1130 if test -n "$ac_ct_CC"; then
1131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1132else
1133 ac_save_IFS=$IFS; IFS=$ac_path_separator
1134ac_dummy="$PATH"
1135for ac_dir in $ac_dummy; do
1136 IFS=$ac_save_IFS
1137 test -z "$ac_dir" && ac_dir=.
1138 $as_executable_p "$ac_dir/$ac_word" || continue
1139ac_cv_prog_ac_ct_CC="gcc"
1140break
1141done
1142
1143fi
1144fi
1145ac_ct_CC=$ac_cv_prog_ac_ct_CC
1146if test -n "$ac_ct_CC"; then
1147 echo "$as_me:1147: result: $ac_ct_CC" >&5
1148echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 1149else
b3baf5d0
NC
1150 echo "$as_me:1150: result: no" >&5
1151echo "${ECHO_T}no" >&6
252b5132
RH
1152fi
1153
b3baf5d0
NC
1154 CC=$ac_ct_CC
1155else
1156 CC="$ac_cv_prog_CC"
1157fi
8d88c4ca 1158
b3baf5d0
NC
1159if test -z "$CC"; then
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1162set dummy ${ac_tool_prefix}cc; ac_word=$2
1163echo "$as_me:1163: checking for $ac_word" >&5
1164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1167else
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC="$CC" # Let the user override the test.
1170else
1171 ac_save_IFS=$IFS; IFS=$ac_path_separator
1172ac_dummy="$PATH"
1173for ac_dir in $ac_dummy; do
1174 IFS=$ac_save_IFS
1175 test -z "$ac_dir" && ac_dir=.
1176 $as_executable_p "$ac_dir/$ac_word" || continue
1177ac_cv_prog_CC="${ac_tool_prefix}cc"
1178break
1179done
1180
1181fi
1182fi
1183CC=$ac_cv_prog_CC
1184if test -n "$CC"; then
1185 echo "$as_me:1185: result: $CC" >&5
1186echo "${ECHO_T}$CC" >&6
1187else
1188 echo "$as_me:1188: result: no" >&5
1189echo "${ECHO_T}no" >&6
1190fi
1191
1192fi
1193if test -z "$ac_cv_prog_CC"; then
1194 ac_ct_CC=$CC
1195 # Extract the first word of "cc", so it can be a program name with args.
1196set dummy cc; ac_word=$2
1197echo "$as_me:1197: checking for $ac_word" >&5
1198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1199if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1200 echo $ECHO_N "(cached) $ECHO_C" >&6
1201else
1202 if test -n "$ac_ct_CC"; then
1203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1204else
1205 ac_save_IFS=$IFS; IFS=$ac_path_separator
1206ac_dummy="$PATH"
1207for ac_dir in $ac_dummy; do
1208 IFS=$ac_save_IFS
1209 test -z "$ac_dir" && ac_dir=.
1210 $as_executable_p "$ac_dir/$ac_word" || continue
1211ac_cv_prog_ac_ct_CC="cc"
1212break
1213done
1214
1215fi
1216fi
1217ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220echo "${ECHO_T}$ac_ct_CC" >&6
1221else
1222 echo "$as_me:1222: result: no" >&5
1223echo "${ECHO_T}no" >&6
1224fi
1225
1226 CC=$ac_ct_CC
1227else
1228 CC="$ac_cv_prog_CC"
1229fi
1230
1231fi
1232if test -z "$CC"; then
1233 # Extract the first word of "cc", so it can be a program name with args.
1234set dummy cc; ac_word=$2
1235echo "$as_me:1235: checking for $ac_word" >&5
1236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1239else
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC="$CC" # Let the user override the test.
1242else
1243 ac_prog_rejected=no
1244 ac_save_IFS=$IFS; IFS=$ac_path_separator
1245ac_dummy="$PATH"
1246for ac_dir in $ac_dummy; do
1247 IFS=$ac_save_IFS
1248 test -z "$ac_dir" && ac_dir=.
1249 $as_executable_p "$ac_dir/$ac_word" || continue
1250if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1251 ac_prog_rejected=yes
1252 continue
1253fi
1254ac_cv_prog_CC="cc"
1255break
1256done
1257
1258if test $ac_prog_rejected = yes; then
1259 # We found a bogon in the path, so make sure we never use it.
1260 set dummy $ac_cv_prog_CC
1261 shift
1262 if test $# != 0; then
1263 # We chose a different compiler from the bogus one.
1264 # However, it has the same basename, so the bogon will be chosen
1265 # first if we set CC to just the basename; use the full file name.
1266 shift
1267 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1268 shift
1269 ac_cv_prog_CC="$@"
1270 fi
1271fi
1272fi
1273fi
1274CC=$ac_cv_prog_CC
1275if test -n "$CC"; then
1276 echo "$as_me:1276: result: $CC" >&5
1277echo "${ECHO_T}$CC" >&6
1278else
1279 echo "$as_me:1279: result: no" >&5
1280echo "${ECHO_T}no" >&6
1281fi
1282
1283fi
1284if test -z "$CC"; then
1285 if test -n "$ac_tool_prefix"; then
1286 for ac_prog in cl
1287 do
1288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1290echo "$as_me:1290: checking for $ac_word" >&5
1291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292if test "${ac_cv_prog_CC+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1294else
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1297else
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1299ac_dummy="$PATH"
1300for ac_dir in $ac_dummy; do
1301 IFS=$ac_save_IFS
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1305break
1306done
1307
1308fi
1309fi
1310CC=$ac_cv_prog_CC
1311if test -n "$CC"; then
1312 echo "$as_me:1312: result: $CC" >&5
1313echo "${ECHO_T}$CC" >&6
1314else
1315 echo "$as_me:1315: result: no" >&5
1316echo "${ECHO_T}no" >&6
1317fi
1318
1319 test -n "$CC" && break
1320 done
1321fi
1322if test -z "$CC"; then
1323 ac_ct_CC=$CC
1324 for ac_prog in cl
1325do
1326 # Extract the first word of "$ac_prog", so it can be a program name with args.
1327set dummy $ac_prog; ac_word=$2
1328echo "$as_me:1328: checking for $ac_word" >&5
1329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332else
1333 if test -n "$ac_ct_CC"; then
1334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1335else
1336 ac_save_IFS=$IFS; IFS=$ac_path_separator
1337ac_dummy="$PATH"
1338for ac_dir in $ac_dummy; do
1339 IFS=$ac_save_IFS
1340 test -z "$ac_dir" && ac_dir=.
1341 $as_executable_p "$ac_dir/$ac_word" || continue
1342ac_cv_prog_ac_ct_CC="$ac_prog"
1343break
1344done
1345
1346fi
1347fi
1348ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349if test -n "$ac_ct_CC"; then
1350 echo "$as_me:1350: result: $ac_ct_CC" >&5
1351echo "${ECHO_T}$ac_ct_CC" >&6
1352else
1353 echo "$as_me:1353: result: no" >&5
1354echo "${ECHO_T}no" >&6
1355fi
1356
1357 test -n "$ac_ct_CC" && break
1358done
1359
1360 CC=$ac_ct_CC
1361fi
1362
1363fi
1364
1365test -z "$CC" && { { echo "$as_me:1365: error: no acceptable cc found in \$PATH" >&5
1366echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369cat >conftest.$ac_ext <<_ACEOF
1370#line 1370 "configure"
1371#include "confdefs.h"
1372
1373int
1374main ()
1375{
1376
1377 ;
1378 return 0;
1379}
1380_ACEOF
1381ac_clean_files_save=$ac_clean_files
1382ac_clean_files="$ac_clean_files a.out a.exe"
1383# Try to create an executable without -o first, disregard a.out.
1384# It will help us diagnose broken compiler, and finding out an intuition
1385# of exeext.
1386echo "$as_me:1386: checking for C compiler default output" >&5
1387echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1388ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1389if { (eval echo "$as_me:1389: \"$ac_link_default\"") >&5
1390 (eval $ac_link_default) 2>&5
1391 ac_status=$?
1392 echo "$as_me:1392: \$? = $ac_status" >&5
1393 (exit $ac_status); }; then
1394 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1395 case $ac_file in
1396 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1397 a.out ) # We found the default executable, but exeext='' is most
1398 # certainly right.
1399 break;;
1400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1401 export ac_cv_exeext
1402 break;;
1403 * ) break;;
1404 esac
1405done
1406else
1407 echo "$as_me: failed program was:" >&5
1408cat conftest.$ac_ext >&5
1409{ { echo "$as_me:1409: error: C compiler cannot create executables" >&5
1410echo "$as_me: error: C compiler cannot create executables" >&2;}
1411 { (exit 77); exit 77; }; }
1412fi
1413
1414ac_exeext=$ac_cv_exeext
1415echo "$as_me:1415: result: $ac_file" >&5
1416echo "${ECHO_T}$ac_file" >&6
1417
1418# Check the compiler produces executables we can run. If not, either
1419# the compiler is broken, or we cross compile.
1420echo "$as_me:1420: checking whether the C compiler works" >&5
1421echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1422# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1423# If not cross compiling, check that we can run a simple program.
1424if test "$cross_compiling" != yes; then
1425 if { ac_try='./$ac_file'
1426 { (eval echo "$as_me:1426: \"$ac_try\"") >&5
1427 (eval $ac_try) 2>&5
1428 ac_status=$?
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }; }; then
1431 cross_compiling=no
1432 else
1433 if test "$cross_compiling" = maybe; then
1434 cross_compiling=yes
1435 else
1436 { { echo "$as_me:1436: error: cannot run C compiled programs.
1437If you meant to cross compile, use \`--host'." >&5
1438echo "$as_me: error: cannot run C compiled programs.
1439If you meant to cross compile, use \`--host'." >&2;}
1440 { (exit 1); exit 1; }; }
1441 fi
1442 fi
1443fi
1444echo "$as_me:1444: result: yes" >&5
1445echo "${ECHO_T}yes" >&6
1446
1447rm -f a.out a.exe conftest$ac_cv_exeext
1448ac_clean_files=$ac_clean_files_save
1449# Check the compiler produces executables we can run. If not, either
1450# the compiler is broken, or we cross compile.
1451echo "$as_me:1451: checking whether we are cross compiling" >&5
1452echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1453echo "$as_me:1453: result: $cross_compiling" >&5
1454echo "${ECHO_T}$cross_compiling" >&6
1455
1456echo "$as_me:1456: checking for executable suffix" >&5
1457echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1458if { (eval echo "$as_me:1458: \"$ac_link\"") >&5
1459 (eval $ac_link) 2>&5
1460 ac_status=$?
1461 echo "$as_me:1461: \$? = $ac_status" >&5
1462 (exit $ac_status); }; then
1463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1464# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1465# work properly (i.e., refer to `conftest.exe'), while it won't with
1466# `rm'.
1467for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1468 case $ac_file in
1469 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 export ac_cv_exeext
1472 break;;
1473 * ) break;;
1474 esac
1475done
1476else
1477 { { echo "$as_me:1477: error: cannot compute EXEEXT: cannot compile and link" >&5
1478echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1479 { (exit 1); exit 1; }; }
1480fi
1481
1482rm -f conftest$ac_cv_exeext
1483echo "$as_me:1483: result: $ac_cv_exeext" >&5
1484echo "${ECHO_T}$ac_cv_exeext" >&6
1485
1486rm -f conftest.$ac_ext
1487EXEEXT=$ac_cv_exeext
1488ac_exeext=$EXEEXT
1489echo "$as_me:1489: checking for object suffix" >&5
1490echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1491if test "${ac_cv_objext+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493else
1494 cat >conftest.$ac_ext <<_ACEOF
1495#line 1495 "configure"
1496#include "confdefs.h"
1497
1498int
1499main ()
1500{
1501
1502 ;
1503 return 0;
1504}
1505_ACEOF
1506rm -f conftest.o conftest.obj
1507if { (eval echo "$as_me:1507: \"$ac_compile\"") >&5
1508 (eval $ac_compile) 2>&5
1509 ac_status=$?
1510 echo "$as_me:1510: \$? = $ac_status" >&5
1511 (exit $ac_status); }; then
1512 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1513 case $ac_file in
1514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1516 break;;
1517 esac
1518done
1519else
1520 echo "$as_me: failed program was:" >&5
1521cat conftest.$ac_ext >&5
1522{ { echo "$as_me:1522: error: cannot compute OBJEXT: cannot compile" >&5
1523echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1524 { (exit 1); exit 1; }; }
1525fi
1526
1527rm -f conftest.$ac_cv_objext conftest.$ac_ext
1528fi
1529echo "$as_me:1529: result: $ac_cv_objext" >&5
1530echo "${ECHO_T}$ac_cv_objext" >&6
1531OBJEXT=$ac_cv_objext
1532ac_objext=$OBJEXT
1533echo "$as_me:1533: checking whether we are using the GNU C compiler" >&5
1534echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1535if test "${ac_cv_c_compiler_gnu+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 cat >conftest.$ac_ext <<_ACEOF
1539#line 1539 "configure"
1540#include "confdefs.h"
1541
1542int
1543main ()
1544{
1545#ifndef __GNUC__
1546 choke me
1547#endif
1548
1549 ;
1550 return 0;
1551}
1552_ACEOF
1553rm -f conftest.$ac_objext
1554if { (eval echo "$as_me:1554: \"$ac_compile\"") >&5
1555 (eval $ac_compile) 2>&5
1556 ac_status=$?
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit $ac_status); } &&
1559 { ac_try='test -s conftest.$ac_objext'
1560 { (eval echo "$as_me:1560: \"$ac_try\"") >&5
1561 (eval $ac_try) 2>&5
1562 ac_status=$?
1563 echo "$as_me:1563: \$? = $ac_status" >&5
1564 (exit $ac_status); }; }; then
1565 ac_compiler_gnu=yes
1566else
1567 echo "$as_me: failed program was:" >&5
1568cat conftest.$ac_ext >&5
1569ac_compiler_gnu=no
1570fi
1571rm -f conftest.$ac_objext conftest.$ac_ext
1572ac_cv_c_compiler_gnu=$ac_compiler_gnu
1573
1574fi
1575echo "$as_me:1575: result: $ac_cv_c_compiler_gnu" >&5
1576echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1577GCC=`test $ac_compiler_gnu = yes && echo yes`
1578ac_test_CFLAGS=${CFLAGS+set}
1579ac_save_CFLAGS=$CFLAGS
1580CFLAGS="-g"
1581echo "$as_me:1581: checking whether $CC accepts -g" >&5
1582echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1583if test "${ac_cv_prog_cc_g+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 cat >conftest.$ac_ext <<_ACEOF
1587#line 1587 "configure"
1588#include "confdefs.h"
1589
1590int
1591main ()
1592{
1593
1594 ;
1595 return 0;
1596}
1597_ACEOF
1598rm -f conftest.$ac_objext
1599if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600 (eval $ac_compile) 2>&5
1601 ac_status=$?
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); } &&
1604 { ac_try='test -s conftest.$ac_objext'
1605 { (eval echo "$as_me:1605: \"$ac_try\"") >&5
1606 (eval $ac_try) 2>&5
1607 ac_status=$?
1608 echo "$as_me:1608: \$? = $ac_status" >&5
1609 (exit $ac_status); }; }; then
1610 ac_cv_prog_cc_g=yes
1611else
1612 echo "$as_me: failed program was:" >&5
1613cat conftest.$ac_ext >&5
1614ac_cv_prog_cc_g=no
1615fi
1616rm -f conftest.$ac_objext conftest.$ac_ext
1617fi
1618echo "$as_me:1618: result: $ac_cv_prog_cc_g" >&5
1619echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1620if test "$ac_test_CFLAGS" = set; then
1621 CFLAGS=$ac_save_CFLAGS
1622elif test $ac_cv_prog_cc_g = yes; then
1623 if test "$GCC" = yes; then
1624 CFLAGS="-g -O2"
1625 else
1626 CFLAGS="-g"
1627 fi
1628else
1629 if test "$GCC" = yes; then
1630 CFLAGS="-O2"
1631 else
1632 CFLAGS=
1633 fi
1634fi
1635# Some people use a C++ compiler to compile C. Since we use `exit',
1636# in C++ we need to declare it. In case someone uses the same compiler
1637# for both compiling C and C++ we need to have the C++ compiler decide
1638# the declaration of exit, since it's the most demanding environment.
1639cat >conftest.$ac_ext <<_ACEOF
1640#ifndef __cplusplus
1641 choke me
1642#endif
1643_ACEOF
1644rm -f conftest.$ac_objext
1645if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
1646 (eval $ac_compile) 2>&5
1647 ac_status=$?
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); } &&
1650 { ac_try='test -s conftest.$ac_objext'
1651 { (eval echo "$as_me:1651: \"$ac_try\"") >&5
1652 (eval $ac_try) 2>&5
1653 ac_status=$?
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1656 for ac_declaration in \
1657 ''\
1658 '#include <stdlib.h>' \
1659 'extern "C" void std::exit (int) throw (); using std::exit;' \
1660 'extern "C" void std::exit (int); using std::exit;' \
1661 'extern "C" void exit (int) throw ();' \
1662 'extern "C" void exit (int);' \
1663 'void exit (int);'
1664do
1665 cat >conftest.$ac_ext <<_ACEOF
1666#line 1666 "configure"
1667#include "confdefs.h"
1668#include <stdlib.h>
1669$ac_declaration
1670int
1671main ()
1672{
1673exit (42);
1674 ;
1675 return 0;
1676}
1677_ACEOF
1678rm -f conftest.$ac_objext
1679if { (eval echo "$as_me:1679: \"$ac_compile\"") >&5
1680 (eval $ac_compile) 2>&5
1681 ac_status=$?
1682 echo "$as_me:1682: \$? = $ac_status" >&5
1683 (exit $ac_status); } &&
1684 { ac_try='test -s conftest.$ac_objext'
1685 { (eval echo "$as_me:1685: \"$ac_try\"") >&5
1686 (eval $ac_try) 2>&5
1687 ac_status=$?
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); }; }; then
1690 :
1691else
1692 echo "$as_me: failed program was:" >&5
1693cat conftest.$ac_ext >&5
1694continue
1695fi
1696rm -f conftest.$ac_objext conftest.$ac_ext
1697 cat >conftest.$ac_ext <<_ACEOF
1698#line 1698 "configure"
1699#include "confdefs.h"
1700$ac_declaration
1701int
1702main ()
1703{
1704exit (42);
1705 ;
1706 return 0;
1707}
1708_ACEOF
1709rm -f conftest.$ac_objext
1710if { (eval echo "$as_me:1710: \"$ac_compile\"") >&5
1711 (eval $ac_compile) 2>&5
1712 ac_status=$?
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); } &&
1715 { ac_try='test -s conftest.$ac_objext'
1716 { (eval echo "$as_me:1716: \"$ac_try\"") >&5
1717 (eval $ac_try) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1721 break
1722else
1723 echo "$as_me: failed program was:" >&5
1724cat conftest.$ac_ext >&5
1725fi
1726rm -f conftest.$ac_objext conftest.$ac_ext
1727done
1728echo '#ifdef __cplusplus' >>confdefs.h
1729echo $ac_declaration >>confdefs.h
1730echo '#endif' >>confdefs.h
1731
1732else
1733 echo "$as_me: failed program was:" >&5
1734cat conftest.$ac_ext >&5
1735fi
1736rm -f conftest.$ac_objext conftest.$ac_ext
1737ac_ext=c
1738ac_cpp='$CPP $CPPFLAGS'
1739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742
1743echo "$as_me:1743: checking for POSIXized ISC" >&5
1744echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
1745if test -d /etc/conf/kconfig.d &&
1746 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1747then
1748 echo "$as_me:1748: result: yes" >&5
1749echo "${ECHO_T}yes" >&6
1750 ISC=yes # If later tests want to check for ISC.
1751
1752cat >>confdefs.h <<\EOF
1753#define _POSIX_SOURCE 1
1754EOF
1755
1756 if test "$GCC" = yes; then
1757 CC="$CC -posix"
1758 else
1759 CC="$CC -Xp"
1760 fi
1761else
1762 echo "$as_me:1762: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764 ISC=
1765fi
252b5132
RH
1766
1767# Find a good install program. We prefer a C program (faster),
1768# so one script is as good as another. But avoid the broken or
1769# incompatible versions:
1770# SysV /etc/install, /usr/sbin/install
1771# SunOS /usr/etc/install
1772# IRIX /sbin/install
1773# AIX /bin/install
b3baf5d0 1774# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
1775# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1776# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1777# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1778# ./install, which can be erroneously created by make from ./install.sh.
b3baf5d0
NC
1779echo "$as_me:1779: checking for a BSD compatible install" >&5
1780echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
252b5132 1781if test -z "$INSTALL"; then
b3baf5d0
NC
1782if test "${ac_cv_path_install+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 1784else
b3baf5d0 1785 ac_save_IFS=$IFS; IFS=$ac_path_separator
252b5132 1786 for ac_dir in $PATH; do
b3baf5d0 1787 IFS=$ac_save_IFS
252b5132 1788 # Account for people who put trailing slashes in PATH elements.
b3baf5d0
NC
1789 case $ac_dir/ in
1790 / | ./ | .// | /cC/* \
1791 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1792 | /usr/ucb/* ) ;;
252b5132
RH
1793 *)
1794 # OSF1 and SCO ODT 3.0 have their own names for install.
1795 # Don't use installbsd from OSF since it installs stuff as root
1796 # by default.
1797 for ac_prog in ginstall scoinst install; do
b3baf5d0 1798 if $as_executable_p "$ac_dir/$ac_prog"; then
252b5132 1799 if test $ac_prog = install &&
b3baf5d0 1800 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
252b5132
RH
1801 # AIX install. It has an incompatible calling convention.
1802 :
b3baf5d0
NC
1803 elif test $ac_prog = install &&
1804 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1805 # program-specific install script used by HP pwplus--don't use.
1806 :
252b5132
RH
1807 else
1808 ac_cv_path_install="$ac_dir/$ac_prog -c"
1809 break 2
1810 fi
1811 fi
1812 done
1813 ;;
1814 esac
1815 done
252b5132
RH
1816
1817fi
1818 if test "${ac_cv_path_install+set}" = set; then
b3baf5d0 1819 INSTALL=$ac_cv_path_install
252b5132
RH
1820 else
1821 # As a last resort, use the slow shell script. We don't cache a
1822 # path for INSTALL within a source directory, because that will
1823 # break other packages using the cache if that directory is
1824 # removed, or if the path is relative.
b3baf5d0 1825 INSTALL=$ac_install_sh
252b5132
RH
1826 fi
1827fi
b3baf5d0
NC
1828echo "$as_me:1828: result: $INSTALL" >&5
1829echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
1830
1831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1832# It thinks the first close brace ends the variable substitution.
1833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1834
b3baf5d0 1835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
1836
1837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1838
b3baf5d0
NC
1839echo "$as_me:1839: checking whether build environment is sane" >&5
1840echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
1841# Just in case
1842sleep 1
1843echo timestamp > conftestfile
1844# Do `set' in a subshell so we don't clobber the current shell's
1845# arguments. Must try -L first in case configure is actually a
1846# symlink; some systems play weird games with the mod time of symlinks
1847# (eg FreeBSD returns the mod time of the symlink's containing
1848# directory).
1849if (
1850 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1851 if test "$*" = "X"; then
1852 # -L didn't work.
1853 set X `ls -t $srcdir/configure conftestfile`
1854 fi
1855 if test "$*" != "X $srcdir/configure conftestfile" \
1856 && test "$*" != "X conftestfile $srcdir/configure"; then
1857
1858 # If neither matched, then we have a broken ls. This can happen
1859 # if, for instance, CONFIG_SHELL is bash and it inherits a
1860 # broken ls alias from the environment. This has actually
1861 # happened. Such a system could not be considered "sane".
b3baf5d0
NC
1862 { { echo "$as_me:1862: error: ls -t appears to fail. Make sure there is not a broken
1863alias in your environment" >&5
1864echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1865alias in your environment" >&2;}
1866 { (exit 1); exit 1; }; }
252b5132
RH
1867 fi
1868
1869 test "$2" = conftestfile
1870 )
1871then
1872 # Ok.
1873 :
1874else
b3baf5d0
NC
1875 { { echo "$as_me:1875: error: newly created file is older than distributed files!
1876Check your system clock" >&5
1877echo "$as_me: error: newly created file is older than distributed files!
1878Check your system clock" >&2;}
1879 { (exit 1); exit 1; }; }
252b5132
RH
1880fi
1881rm -f conftest*
b3baf5d0
NC
1882echo "$as_me:1882: result: yes" >&5
1883echo "${ECHO_T}yes" >&6
252b5132
RH
1884if test "$program_transform_name" = s,x,x,; then
1885 program_transform_name=
1886else
1887 # Double any \ or $. echo might interpret backslashes.
b3baf5d0 1888 cat <<\EOF >conftest.sed
252b5132 1889s,\\,\\\\,g; s,\$,$$,g
b3baf5d0
NC
1890EOF
1891 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1892 rm -f conftest.sed
252b5132
RH
1893fi
1894test "$program_prefix" != NONE &&
b3baf5d0 1895 program_transform_name="s,^,${program_prefix},;$program_transform_name"
252b5132
RH
1896# Use a double $ so make ignores it.
1897test "$program_suffix" != NONE &&
b3baf5d0 1898 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
252b5132
RH
1899
1900# sed with no file args requires a program.
b3baf5d0 1901test -z "$program_transform_name" && program_transform_name="s,x,x,"
252b5132 1902
b3baf5d0
NC
1903echo "$as_me:1903: checking whether ${MAKE-make} sets \${MAKE}" >&5
1904echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1906if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 1908else
b3baf5d0 1909 cat >conftest.make <<\EOF
252b5132
RH
1910all:
1911 @echo 'ac_maketemp="${MAKE}"'
1912EOF
1913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b3baf5d0 1914eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
1915if test -n "$ac_maketemp"; then
1916 eval ac_cv_prog_make_${ac_make}_set=yes
1917else
1918 eval ac_cv_prog_make_${ac_make}_set=no
1919fi
b3baf5d0 1920rm -f conftest.make
252b5132
RH
1921fi
1922if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b3baf5d0
NC
1923 echo "$as_me:1923: result: yes" >&5
1924echo "${ECHO_T}yes" >&6
252b5132
RH
1925 SET_MAKE=
1926else
b3baf5d0
NC
1927 echo "$as_me:1927: result: no" >&5
1928echo "${ECHO_T}no" >&6
252b5132
RH
1929 SET_MAKE="MAKE=${MAKE-make}"
1930fi
1931
252b5132
RH
1932PACKAGE=bfd
1933
27b7e12d 1934VERSION=2.11.90
252b5132
RH
1935
1936if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
b3baf5d0
NC
1937 { { echo "$as_me:1937: error: source directory already configured; run \"make distclean\" there first" >&5
1938echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1939 { (exit 1); exit 1; }; }
252b5132 1940fi
b3baf5d0
NC
1941
1942cat >>confdefs.h <<EOF
252b5132
RH
1943#define PACKAGE "$PACKAGE"
1944EOF
1945
b3baf5d0 1946cat >>confdefs.h <<EOF
252b5132
RH
1947#define VERSION "$VERSION"
1948EOF
1949
252b5132 1950missing_dir=`cd $ac_aux_dir && pwd`
b3baf5d0
NC
1951echo "$as_me:1951: checking for working aclocal" >&5
1952echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
252b5132
RH
1953# Run test in a subshell; some versions of sh will print an error if
1954# an executable is not found, even if stderr is redirected.
1955# Redirect stdin to placate older versions of autoconf. Sigh.
1956if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1957 ACLOCAL=aclocal
b3baf5d0
NC
1958 echo "$as_me:1958: result: found" >&5
1959echo "${ECHO_T}found" >&6
252b5132
RH
1960else
1961 ACLOCAL="$missing_dir/missing aclocal"
b3baf5d0
NC
1962 echo "$as_me:1962: result: missing" >&5
1963echo "${ECHO_T}missing" >&6
252b5132
RH
1964fi
1965
b3baf5d0
NC
1966echo "$as_me:1966: checking for working autoconf" >&5
1967echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
1968# Run test in a subshell; some versions of sh will print an error if
1969# an executable is not found, even if stderr is redirected.
1970# Redirect stdin to placate older versions of autoconf. Sigh.
1971if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1972 AUTOCONF=autoconf
b3baf5d0
NC
1973 echo "$as_me:1973: result: found" >&5
1974echo "${ECHO_T}found" >&6
252b5132
RH
1975else
1976 AUTOCONF="$missing_dir/missing autoconf"
b3baf5d0
NC
1977 echo "$as_me:1977: result: missing" >&5
1978echo "${ECHO_T}missing" >&6
252b5132
RH
1979fi
1980
b3baf5d0
NC
1981echo "$as_me:1981: checking for working automake" >&5
1982echo $ECHO_N "checking for working automake... $ECHO_C" >&6
252b5132
RH
1983# Run test in a subshell; some versions of sh will print an error if
1984# an executable is not found, even if stderr is redirected.
1985# Redirect stdin to placate older versions of autoconf. Sigh.
1986if (automake --version) < /dev/null > /dev/null 2>&1; then
1987 AUTOMAKE=automake
b3baf5d0
NC
1988 echo "$as_me:1988: result: found" >&5
1989echo "${ECHO_T}found" >&6
252b5132
RH
1990else
1991 AUTOMAKE="$missing_dir/missing automake"
b3baf5d0
NC
1992 echo "$as_me:1992: result: missing" >&5
1993echo "${ECHO_T}missing" >&6
252b5132
RH
1994fi
1995
b3baf5d0
NC
1996echo "$as_me:1996: checking for working autoheader" >&5
1997echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
1998# Run test in a subshell; some versions of sh will print an error if
1999# an executable is not found, even if stderr is redirected.
2000# Redirect stdin to placate older versions of autoconf. Sigh.
2001if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2002 AUTOHEADER=autoheader
b3baf5d0
NC
2003 echo "$as_me:2003: result: found" >&5
2004echo "${ECHO_T}found" >&6
252b5132
RH
2005else
2006 AUTOHEADER="$missing_dir/missing autoheader"
b3baf5d0
NC
2007 echo "$as_me:2007: result: missing" >&5
2008echo "${ECHO_T}missing" >&6
252b5132
RH
2009fi
2010
b3baf5d0
NC
2011echo "$as_me:2011: checking for working makeinfo" >&5
2012echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2013# Run test in a subshell; some versions of sh will print an error if
2014# an executable is not found, even if stderr is redirected.
2015# Redirect stdin to placate older versions of autoconf. Sigh.
2016if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2017 MAKEINFO=makeinfo
b3baf5d0
NC
2018 echo "$as_me:2018: result: found" >&5
2019echo "${ECHO_T}found" >&6
252b5132
RH
2020else
2021 MAKEINFO="$missing_dir/missing makeinfo"
b3baf5d0
NC
2022 echo "$as_me:2022: result: missing" >&5
2023echo "${ECHO_T}missing" >&6
252b5132
RH
2024fi
2025
b3baf5d0
NC
2026if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 2028set dummy ${ac_tool_prefix}ar; ac_word=$2
b3baf5d0
NC
2029echo "$as_me:2029: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031if test "${ac_cv_prog_AR+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2033else
2034 if test -n "$AR"; then
2035 ac_cv_prog_AR="$AR" # Let the user override the test.
2036else
b3baf5d0
NC
2037 ac_save_IFS=$IFS; IFS=$ac_path_separator
2038ac_dummy="$PATH"
2039for ac_dir in $ac_dummy; do
2040 IFS=$ac_save_IFS
2041 test -z "$ac_dir" && ac_dir=.
2042 $as_executable_p "$ac_dir/$ac_word" || continue
2043ac_cv_prog_AR="${ac_tool_prefix}ar"
2044break
2045done
2046
252b5132
RH
2047fi
2048fi
b3baf5d0 2049AR=$ac_cv_prog_AR
252b5132 2050if test -n "$AR"; then
b3baf5d0
NC
2051 echo "$as_me:2051: result: $AR" >&5
2052echo "${ECHO_T}$AR" >&6
2053else
2054 echo "$as_me:2054: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058fi
2059if test -z "$ac_cv_prog_AR"; then
2060 ac_ct_AR=$AR
2061 # Extract the first word of "ar", so it can be a program name with args.
2062set dummy ar; ac_word=$2
2063echo "$as_me:2063: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068 if test -n "$ac_ct_AR"; then
2069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2070else
2071 ac_save_IFS=$IFS; IFS=$ac_path_separator
2072ac_dummy="$PATH"
2073for ac_dir in $ac_dummy; do
2074 IFS=$ac_save_IFS
2075 test -z "$ac_dir" && ac_dir=.
2076 $as_executable_p "$ac_dir/$ac_word" || continue
2077ac_cv_prog_ac_ct_AR="ar"
2078break
2079done
2080
2081fi
2082fi
2083ac_ct_AR=$ac_cv_prog_ac_ct_AR
2084if test -n "$ac_ct_AR"; then
2085 echo "$as_me:2085: result: $ac_ct_AR" >&5
2086echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 2087else
b3baf5d0
NC
2088 echo "$as_me:2088: result: no" >&5
2089echo "${ECHO_T}no" >&6
252b5132
RH
2090fi
2091
b3baf5d0
NC
2092 AR=$ac_ct_AR
2093else
2094 AR="$ac_cv_prog_AR"
2095fi
252b5132 2096
b3baf5d0
NC
2097if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 2099set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b3baf5d0
NC
2100echo "$as_me:2100: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_RANLIB+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2104else
2105 if test -n "$RANLIB"; then
2106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2107else
b3baf5d0
NC
2108 ac_save_IFS=$IFS; IFS=$ac_path_separator
2109ac_dummy="$PATH"
2110for ac_dir in $ac_dummy; do
2111 IFS=$ac_save_IFS
2112 test -z "$ac_dir" && ac_dir=.
2113 $as_executable_p "$ac_dir/$ac_word" || continue
2114ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2115break
2116done
2117
252b5132
RH
2118fi
2119fi
b3baf5d0 2120RANLIB=$ac_cv_prog_RANLIB
252b5132 2121if test -n "$RANLIB"; then
b3baf5d0
NC
2122 echo "$as_me:2122: result: $RANLIB" >&5
2123echo "${ECHO_T}$RANLIB" >&6
252b5132 2124else
b3baf5d0
NC
2125 echo "$as_me:2125: result: no" >&5
2126echo "${ECHO_T}no" >&6
252b5132
RH
2127fi
2128
b3baf5d0 2129fi
252b5132 2130if test -z "$ac_cv_prog_RANLIB"; then
b3baf5d0 2131 ac_ct_RANLIB=$RANLIB
252b5132
RH
2132 # Extract the first word of "ranlib", so it can be a program name with args.
2133set dummy ranlib; ac_word=$2
b3baf5d0
NC
2134echo "$as_me:2134: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139 if test -n "$ac_ct_RANLIB"; then
2140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2141else
2142 ac_save_IFS=$IFS; IFS=$ac_path_separator
2143ac_dummy="$PATH"
2144for ac_dir in $ac_dummy; do
2145 IFS=$ac_save_IFS
2146 test -z "$ac_dir" && ac_dir=.
2147 $as_executable_p "$ac_dir/$ac_word" || continue
2148ac_cv_prog_ac_ct_RANLIB="ranlib"
2149break
2150done
2151
2152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
2153fi
2154fi
b3baf5d0
NC
2155ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2156if test -n "$ac_ct_RANLIB"; then
2157 echo "$as_me:2157: result: $ac_ct_RANLIB" >&5
2158echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 2159else
b3baf5d0
NC
2160 echo "$as_me:2160: result: no" >&5
2161echo "${ECHO_T}no" >&6
252b5132
RH
2162fi
2163
b3baf5d0 2164 RANLIB=$ac_ct_RANLIB
252b5132 2165else
b3baf5d0 2166 RANLIB="$ac_cv_prog_RANLIB"
252b5132 2167fi
252b5132
RH
2168
2169# Check whether --enable-shared or --disable-shared was given.
2170if test "${enable_shared+set}" = set; then
2171 enableval="$enable_shared"
2172 p=${PACKAGE-default}
55c80943 2173case $enableval in
252b5132
RH
2174yes) enable_shared=yes ;;
2175no) enable_shared=no ;;
2176*)
2177 enable_shared=no
2178 # Look at the argument we got. We use all the common list separators.
2179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2180 for pkg in $enableval; do
2181 if test "X$pkg" = "X$p"; then
2182 enable_shared=yes
2183 fi
2184 done
2185 IFS="$ac_save_ifs"
2186 ;;
2187esac
2188else
2189 enable_shared=no
b3baf5d0 2190fi;
252b5132
RH
2191
2192# Check whether --enable-static or --disable-static was given.
2193if test "${enable_static+set}" = set; then
2194 enableval="$enable_static"
2195 p=${PACKAGE-default}
55c80943 2196case $enableval in
252b5132
RH
2197yes) enable_static=yes ;;
2198no) enable_static=no ;;
2199*)
2200 enable_static=no
2201 # Look at the argument we got. We use all the common list separators.
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2203 for pkg in $enableval; do
2204 if test "X$pkg" = "X$p"; then
2205 enable_static=yes
2206 fi
2207 done
2208 IFS="$ac_save_ifs"
2209 ;;
2210esac
2211else
2212 enable_static=yes
b3baf5d0 2213fi;
b2ef150d
ILT
2214# Check whether --enable-fast-install or --disable-fast-install was given.
2215if test "${enable_fast_install+set}" = set; then
2216 enableval="$enable_fast_install"
2217 p=${PACKAGE-default}
55c80943 2218case $enableval in
b2ef150d
ILT
2219yes) enable_fast_install=yes ;;
2220no) enable_fast_install=no ;;
2221*)
2222 enable_fast_install=no
2223 # Look at the argument we got. We use all the common list separators.
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2225 for pkg in $enableval; do
2226 if test "X$pkg" = "X$p"; then
2227 enable_fast_install=yes
2228 fi
2229 done
2230 IFS="$ac_save_ifs"
2231 ;;
2232esac
2233else
2234 enable_fast_install=yes
b3baf5d0 2235fi;
8d88c4ca 2236
252b5132
RH
2237# Check whether --with-gnu-ld or --without-gnu-ld was given.
2238if test "${with_gnu_ld+set}" = set; then
2239 withval="$with_gnu_ld"
2240 test "$withval" = no || with_gnu_ld=yes
2241else
2242 with_gnu_ld=no
b3baf5d0 2243fi;
252b5132 2244ac_prog=ld
55c80943 2245if test "$GCC" = yes; then
252b5132 2246 # Check if gcc -print-prog-name=ld gives a path.
b3baf5d0
NC
2247 echo "$as_me:2247: checking for ld used by GCC" >&5
2248echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
2249 case $host in
2250 *-*-mingw*)
2251 # gcc leaves a trailing carriage return which upsets mingw
2252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2253 *)
2254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2255 esac
55c80943 2256 case $ac_prog in
b2ef150d 2257 # Accept absolute paths.
a74801ba 2258 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
2259 re_direlt='/[^/][^/]*/\.\./'
2260 # Canonicalize the path of ld
2261 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2262 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2263 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2264 done
2265 test -z "$LD" && LD="$ac_prog"
2266 ;;
252b5132
RH
2267 "")
2268 # If it fails, then pretend we aren't using GCC.
2269 ac_prog=ld
2270 ;;
2271 *)
2272 # If it is relative, then search for the first ld in PATH.
2273 with_gnu_ld=unknown
2274 ;;
2275 esac
2276elif test "$with_gnu_ld" = yes; then
b3baf5d0
NC
2277 echo "$as_me:2277: checking for GNU ld" >&5
2278echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 2279else
b3baf5d0
NC
2280 echo "$as_me:2280: checking for non-GNU ld" >&5
2281echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 2282fi
b3baf5d0
NC
2283if test "${lt_cv_path_LD+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2285else
2286 if test -z "$LD"; then
a74801ba 2287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2288 for ac_dir in $PATH; do
2289 test -z "$ac_dir" && ac_dir=.
a74801ba 2290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 2291 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2292 # Check to see if the program is GNU ld. I'd rather use --version,
2293 # but apparently some GNU ld's only accept -v.
2294 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 2295 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2296 test "$with_gnu_ld" != no && break
2297 else
b2ef150d 2298 test "$with_gnu_ld" != yes && break
252b5132
RH
2299 fi
2300 fi
2301 done
2302 IFS="$ac_save_ifs"
2303else
55c80943 2304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2305fi
2306fi
2307
55c80943 2308LD="$lt_cv_path_LD"
252b5132 2309if test -n "$LD"; then
b3baf5d0
NC
2310 echo "$as_me:2310: result: $LD" >&5
2311echo "${ECHO_T}$LD" >&6
252b5132 2312else
b3baf5d0
NC
2313 echo "$as_me:2313: result: no" >&5
2314echo "${ECHO_T}no" >&6
252b5132 2315fi
b3baf5d0
NC
2316test -z "$LD" && { { echo "$as_me:2316: error: no acceptable ld found in \$PATH" >&5
2317echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2318 { (exit 1); exit 1; }; }
2319echo "$as_me:2319: checking if the linker ($LD) is GNU ld" >&5
2320echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2321if test "${lt_cv_prog_gnu_ld+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2323else
2324 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2325if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 2326 lt_cv_prog_gnu_ld=yes
252b5132 2327else
55c80943 2328 lt_cv_prog_gnu_ld=no
252b5132
RH
2329fi
2330fi
b3baf5d0
NC
2331echo "$as_me:2331: result: $lt_cv_prog_gnu_ld" >&5
2332echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 2333with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 2334
b3baf5d0
NC
2335echo "$as_me:2335: checking for $LD option to reload object files" >&5
2336echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2337if test "${lt_cv_ld_reload_flag+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2339else
2340 lt_cv_ld_reload_flag='-r'
2341fi
b3baf5d0
NC
2342echo "$as_me:2342: result: $lt_cv_ld_reload_flag" >&5
2343echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
2344reload_flag=$lt_cv_ld_reload_flag
2345test -n "$reload_flag" && reload_flag=" $reload_flag"
2346
b3baf5d0
NC
2347echo "$as_me:2347: checking for BSD-compatible nm" >&5
2348echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2349if test "${lt_cv_path_NM+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2351else
2352 if test -n "$NM"; then
2353 # Let the user override the test.
55c80943 2354 lt_cv_path_NM="$NM"
252b5132 2355else
a74801ba 2356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 2357 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 2358 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
2359 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2360 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
2361 # Check to see if the nm accepts a BSD-compat flag.
2362 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2363 # nm: unknown option "B" ignored
90f2472a
AO
2364 # Tru64's nm complains that /dev/null is an invalid object file
2365 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 2366 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 2367 break
ac48eca1 2368 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 2369 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 2370 break
252b5132 2371 else
55c80943 2372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 2373 continue # so that we can try to find one that supports BSD flags
252b5132 2374 fi
252b5132
RH
2375 fi
2376 done
2377 IFS="$ac_save_ifs"
55c80943 2378 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
2379fi
2380fi
2381
55c80943 2382NM="$lt_cv_path_NM"
b3baf5d0
NC
2383echo "$as_me:2383: result: $NM" >&5
2384echo "${ECHO_T}$NM" >&6
252b5132 2385
b3baf5d0
NC
2386echo "$as_me:2386: checking whether ln -s works" >&5
2387echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2388LN_S=$as_ln_s
2389if test "$LN_S" = "ln -s"; then
2390 echo "$as_me:2390: result: yes" >&5
2391echo "${ECHO_T}yes" >&6
252b5132 2392else
b3baf5d0
NC
2393 echo "$as_me:2393: result: no, using $LN_S" >&5
2394echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
2395fi
2396
b3baf5d0
NC
2397echo "$as_me:2397: checking how to recognise dependant libraries" >&5
2398echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2399if test "${lt_cv_deplibs_check_method+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2401else
d64552c5 2402 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
2403lt_cv_file_magic_test_file=
2404lt_cv_deplibs_check_method='unknown'
2405# Need to set the preceding variable on all platforms that support
2406# interlibrary dependencies.
2407# 'none' -- dependencies not supported.
2408# `unknown' -- same as none, but documents that we really don't know.
2409# 'pass_all' -- all dependencies passed with no checks.
2410# 'test_compile' -- check by making test program.
2411# 'file_magic [regex]' -- check by looking for files in library path
2412# which responds to the $file_magic_cmd with a given egrep regex.
2413# If you have `file' or equivalent on your system and you're not sure
2414# whether `pass_all' will *always* work, you probably want this one.
2415
55c80943
NC
2416case $host_os in
2417aix*)
ac48eca1
AO
2418 lt_cv_deplibs_check_method=pass_all
2419 ;;
2420
2421beos*)
2422 lt_cv_deplibs_check_method=pass_all
2423 ;;
2424
2425bsdi4*)
55c80943
NC
2426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2427 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
2428 lt_cv_file_magic_test_file=/shlib/libc.so
2429 ;;
2430
d64552c5 2431cygwin* | mingw* |pw32*)
ac48eca1 2432 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 2433 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
2434 ;;
2435
55c80943
NC
2436darwin* | rhapsody*)
2437 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
2438 lt_cv_file_magic_cmd='/usr/bin/file -L'
2439 case "$host_os" in
2440 rhapsody* | darwin1.012)
2441 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2442 ;;
2443 *) # Darwin 1.3 on
2444 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2445 ;;
2446 esac
55c80943
NC
2447 ;;
2448
ac48eca1
AO
2449freebsd* )
2450 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 2451 case $host_cpu in
ac48eca1 2452 i*86 )
90f2472a
AO
2453 # Not sure whether the presence of OpenBSD here was a mistake.
2454 # Let's accept both of them until this is cleared up.
55c80943
NC
2455 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2456 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
2457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2458 ;;
2459 esac
2460 else
2461 lt_cv_deplibs_check_method=pass_all
2462 fi
2463 ;;
2464
2465gnu*)
2466 lt_cv_deplibs_check_method=pass_all
2467 ;;
2468
55c80943
NC
2469hpux10.20*|hpux11*)
2470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
ac48eca1
AO
2471 lt_cv_file_magic_cmd=/usr/bin/file
2472 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2473 ;;
2474
2475irix5* | irix6*)
55c80943 2476 case $host_os in
ac48eca1
AO
2477 irix5*)
2478 # this will be overridden with pass_all, but let us keep it just in case
2479 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2480 ;;
2481 *)
55c80943 2482 case $LD in
ac48eca1
AO
2483 *-32|*"-32 ") libmagic=32-bit;;
2484 *-n32|*"-n32 ") libmagic=N32;;
2485 *-64|*"-64 ") libmagic=64-bit;;
2486 *) libmagic=never-match;;
2487 esac
2488 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
2489 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2490 ;;
ac48eca1
AO
2491 esac
2492 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2493 lt_cv_deplibs_check_method=pass_all
2494 ;;
2495
2496# This must be Linux ELF.
90f2472a 2497linux-gnu*)
55c80943 2498 case $host_cpu in
ac48eca1
AO
2499 alpha* | i*86 | powerpc* | sparc* | ia64* )
2500 lt_cv_deplibs_check_method=pass_all ;;
2501 *)
2502 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
2503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2504 esac
ac48eca1
AO
2505 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2506 ;;
2507
2508netbsd*)
55c80943 2509 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 2510 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 2511 else
b3baf5d0 2512 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 2513 fi
55c80943
NC
2514 ;;
2515
2516newsos6)
2517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2518 lt_cv_file_magic_cmd=/usr/bin/file
2519 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
2520 ;;
2521
2522osf3* | osf4* | osf5*)
2523 # this will be overridden with pass_all, but let us keep it just in case
2524 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2525 lt_cv_file_magic_test_file=/shlib/libc.so
2526 lt_cv_deplibs_check_method=pass_all
2527 ;;
2528
2529sco3.2v5*)
2530 lt_cv_deplibs_check_method=pass_all
2531 ;;
2532
2533solaris*)
2534 lt_cv_deplibs_check_method=pass_all
2535 lt_cv_file_magic_test_file=/lib/libc.so
2536 ;;
2537
2538sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 2539 case $host_vendor in
ac48eca1
AO
2540 ncr)
2541 lt_cv_deplibs_check_method=pass_all
2542 ;;
2543 motorola)
55c80943
NC
2544 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]'
2545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
2546 ;;
2547 esac
2548 ;;
2549esac
2550
2551fi
b3baf5d0
NC
2552echo "$as_me:2552: result: $lt_cv_deplibs_check_method" >&5
2553echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
2554file_magic_cmd=$lt_cv_file_magic_cmd
2555deplibs_check_method=$lt_cv_deplibs_check_method
2556
ac48eca1
AO
2557# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2558
2559# Only perform the check for file, if the check method requires it
55c80943 2560case $deplibs_check_method in
ac48eca1 2561file_magic*)
d64552c5 2562 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b3baf5d0
NC
2563 echo "$as_me:2563: checking for ${ac_tool_prefix}file" >&5
2564echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2565if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2567else
55c80943 2568 case $MAGIC_CMD in
ac48eca1 2569 /*)
d64552c5 2570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
2571 ;;
2572 ?:/*)
d64552c5 2573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
2574 ;;
2575 *)
d64552c5 2576 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
2577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2578 ac_dummy="/usr/bin:$PATH"
2579 for ac_dir in $ac_dummy; do
2580 test -z "$ac_dir" && ac_dir=.
2581 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 2582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 2583 if test -n "$file_magic_test_file"; then
55c80943 2584 case $deplibs_check_method in
ac48eca1
AO
2585 "file_magic "*)
2586 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 2587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
2588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2589 egrep "$file_magic_regex" > /dev/null; then
2590 :
2591 else
2592 cat <<EOF 1>&2
2593
2594*** Warning: the command libtool uses to detect shared libraries,
2595*** $file_magic_cmd, produces output that libtool cannot recognize.
2596*** The result is that libtool may fail to recognize shared libraries
2597*** as such. This will affect the creation of libtool libraries that
2598*** depend on shared libraries, but programs linked with such libtool
2599*** libraries will work regardless of this problem. Nevertheless, you
2600*** may want to report the problem to your system manager and/or to
2601*** bug-libtool@gnu.org
2602
2603EOF
2604 fi ;;
2605 esac
2606 fi
2607 break
2608 fi
2609 done
2610 IFS="$ac_save_ifs"
d64552c5 2611 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
2612 ;;
2613esac
2614fi
2615
d64552c5
AO
2616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2617if test -n "$MAGIC_CMD"; then
b3baf5d0
NC
2618 echo "$as_me:2618: result: $MAGIC_CMD" >&5
2619echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 2620else
b3baf5d0
NC
2621 echo "$as_me:2621: result: no" >&5
2622echo "${ECHO_T}no" >&6
ac48eca1
AO
2623fi
2624
d64552c5 2625if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 2626 if test -n "$ac_tool_prefix"; then
b3baf5d0
NC
2627 echo "$as_me:2627: checking for file" >&5
2628echo $ECHO_N "checking for file... $ECHO_C" >&6
2629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2631else
55c80943 2632 case $MAGIC_CMD in
ac48eca1 2633 /*)
d64552c5 2634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
2635 ;;
2636 ?:/*)
d64552c5 2637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
2638 ;;
2639 *)
d64552c5 2640 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
2641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2642 ac_dummy="/usr/bin:$PATH"
2643 for ac_dir in $ac_dummy; do
2644 test -z "$ac_dir" && ac_dir=.
2645 if test -f $ac_dir/file; then
d64552c5 2646 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 2647 if test -n "$file_magic_test_file"; then
55c80943 2648 case $deplibs_check_method in
ac48eca1
AO
2649 "file_magic "*)
2650 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 2651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
2652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2653 egrep "$file_magic_regex" > /dev/null; then
2654 :
2655 else
2656 cat <<EOF 1>&2
2657
2658*** Warning: the command libtool uses to detect shared libraries,
2659*** $file_magic_cmd, produces output that libtool cannot recognize.
2660*** The result is that libtool may fail to recognize shared libraries
2661*** as such. This will affect the creation of libtool libraries that
2662*** depend on shared libraries, but programs linked with such libtool
2663*** libraries will work regardless of this problem. Nevertheless, you
2664*** may want to report the problem to your system manager and/or to
2665*** bug-libtool@gnu.org
2666
2667EOF
2668 fi ;;
2669 esac
2670 fi
2671 break
2672 fi
2673 done
2674 IFS="$ac_save_ifs"
d64552c5 2675 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
2676 ;;
2677esac
2678fi
2679
d64552c5
AO
2680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2681if test -n "$MAGIC_CMD"; then
b3baf5d0
NC
2682 echo "$as_me:2682: result: $MAGIC_CMD" >&5
2683echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 2684else
b3baf5d0
NC
2685 echo "$as_me:2685: result: no" >&5
2686echo "${ECHO_T}no" >&6
ac48eca1
AO
2687fi
2688
2689 else
d64552c5 2690 MAGIC_CMD=:
ac48eca1
AO
2691 fi
2692fi
2693
2694 fi
2695 ;;
2696esac
2697
b3baf5d0
NC
2698if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 2700set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b3baf5d0
NC
2701echo "$as_me:2701: checking for $ac_word" >&5
2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703if test "${ac_cv_prog_RANLIB+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2705else
2706 if test -n "$RANLIB"; then
2707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2708else
b3baf5d0
NC
2709 ac_save_IFS=$IFS; IFS=$ac_path_separator
2710ac_dummy="$PATH"
2711for ac_dir in $ac_dummy; do
2712 IFS=$ac_save_IFS
2713 test -z "$ac_dir" && ac_dir=.
2714 $as_executable_p "$ac_dir/$ac_word" || continue
2715ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2716break
2717done
2718
ac48eca1
AO
2719fi
2720fi
b3baf5d0 2721RANLIB=$ac_cv_prog_RANLIB
ac48eca1 2722if test -n "$RANLIB"; then
b3baf5d0
NC
2723 echo "$as_me:2723: result: $RANLIB" >&5
2724echo "${ECHO_T}$RANLIB" >&6
ac48eca1 2725else
b3baf5d0
NC
2726 echo "$as_me:2726: result: no" >&5
2727echo "${ECHO_T}no" >&6
ac48eca1
AO
2728fi
2729
b3baf5d0 2730fi
ac48eca1 2731if test -z "$ac_cv_prog_RANLIB"; then
b3baf5d0 2732 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
2733 # Extract the first word of "ranlib", so it can be a program name with args.
2734set dummy ranlib; ac_word=$2
b3baf5d0
NC
2735echo "$as_me:2735: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740 if test -n "$ac_ct_RANLIB"; then
2741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2742else
2743 ac_save_IFS=$IFS; IFS=$ac_path_separator
2744ac_dummy="$PATH"
2745for ac_dir in $ac_dummy; do
2746 IFS=$ac_save_IFS
2747 test -z "$ac_dir" && ac_dir=.
2748 $as_executable_p "$ac_dir/$ac_word" || continue
2749ac_cv_prog_ac_ct_RANLIB="ranlib"
2750break
2751done
2752
2753 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
2754fi
2755fi
b3baf5d0
NC
2756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2757if test -n "$ac_ct_RANLIB"; then
2758 echo "$as_me:2758: result: $ac_ct_RANLIB" >&5
2759echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 2760else
b3baf5d0
NC
2761 echo "$as_me:2761: result: no" >&5
2762echo "${ECHO_T}no" >&6
ac48eca1
AO
2763fi
2764
b3baf5d0 2765 RANLIB=$ac_ct_RANLIB
ac48eca1 2766else
b3baf5d0 2767 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
2768fi
2769
b3baf5d0
NC
2770if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 2772set dummy ${ac_tool_prefix}strip; ac_word=$2
b3baf5d0
NC
2773echo "$as_me:2773: checking for $ac_word" >&5
2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775if test "${ac_cv_prog_STRIP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2777else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780else
b3baf5d0
NC
2781 ac_save_IFS=$IFS; IFS=$ac_path_separator
2782ac_dummy="$PATH"
2783for ac_dir in $ac_dummy; do
2784 IFS=$ac_save_IFS
2785 test -z "$ac_dir" && ac_dir=.
2786 $as_executable_p "$ac_dir/$ac_word" || continue
2787ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788break
2789done
2790
ac48eca1
AO
2791fi
2792fi
b3baf5d0 2793STRIP=$ac_cv_prog_STRIP
ac48eca1 2794if test -n "$STRIP"; then
b3baf5d0
NC
2795 echo "$as_me:2795: result: $STRIP" >&5
2796echo "${ECHO_T}$STRIP" >&6
ac48eca1 2797else
b3baf5d0
NC
2798 echo "$as_me:2798: result: no" >&5
2799echo "${ECHO_T}no" >&6
ac48eca1
AO
2800fi
2801
b3baf5d0 2802fi
ac48eca1 2803if test -z "$ac_cv_prog_STRIP"; then
b3baf5d0 2804 ac_ct_STRIP=$STRIP
ac48eca1
AO
2805 # Extract the first word of "strip", so it can be a program name with args.
2806set dummy strip; ac_word=$2
b3baf5d0
NC
2807echo "$as_me:2807: checking for $ac_word" >&5
2808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811else
2812 if test -n "$ac_ct_STRIP"; then
2813 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2814else
2815 ac_save_IFS=$IFS; IFS=$ac_path_separator
2816ac_dummy="$PATH"
2817for ac_dir in $ac_dummy; do
2818 IFS=$ac_save_IFS
2819 test -z "$ac_dir" && ac_dir=.
2820 $as_executable_p "$ac_dir/$ac_word" || continue
2821ac_cv_prog_ac_ct_STRIP="strip"
2822break
2823done
2824
2825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
2826fi
2827fi
b3baf5d0
NC
2828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2829if test -n "$ac_ct_STRIP"; then
2830 echo "$as_me:2830: result: $ac_ct_STRIP" >&5
2831echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 2832else
b3baf5d0
NC
2833 echo "$as_me:2833: result: no" >&5
2834echo "${ECHO_T}no" >&6
ac48eca1
AO
2835fi
2836
b3baf5d0 2837 STRIP=$ac_ct_STRIP
ac48eca1 2838else
b3baf5d0 2839 STRIP="$ac_cv_prog_STRIP"
ac48eca1 2840fi
252b5132
RH
2841
2842# Check for any special flags to pass to ltconfig.
b2ef150d 2843libtool_flags="--cache-file=$cache_file"
252b5132
RH
2844test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2845test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 2846test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
2847test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2848test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 2849
a74801ba
ILT
2850# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2851if test "${enable_libtool_lock+set}" = set; then
2852 enableval="$enable_libtool_lock"
a74801ba 2853
b3baf5d0 2854fi;
a74801ba
ILT
2855test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2856test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2857
ac48eca1
AO
2858# Check whether --with-pic or --without-pic was given.
2859if test "${with_pic+set}" = set; then
2860 withval="$with_pic"
2861 pic_mode="$withval"
2862else
2863 pic_mode=default
b3baf5d0 2864fi;
ac48eca1
AO
2865test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2866test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2867
252b5132
RH
2868# Some flags need to be propagated to the compiler or linker for good
2869# libtool support.
55c80943 2870case $host in
252b5132
RH
2871*-*-irix6*)
2872 # Find out which ABI we are using.
b3baf5d0
NC
2873 echo '#line 2873 "configure"' > conftest.$ac_ext
2874 if { (eval echo "$as_me:2874: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>&5
2876 ac_status=$?
2877 echo "$as_me:2877: \$? = $ac_status" >&5
2878 (exit $ac_status); }; then
55c80943 2879 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
2880 *32-bit*)
2881 LD="${LD-ld} -32"
2882 ;;
2883 *N32*)
2884 LD="${LD-ld} -n32"
2885 ;;
2886 *64-bit*)
2887 LD="${LD-ld} -64"
2888 ;;
2889 esac
2890 fi
2891 rm -rf conftest*
2892 ;;
2893
2894*-*-sco3.2v5*)
2895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 2896 SAVE_CFLAGS="$CFLAGS"
252b5132 2897 CFLAGS="$CFLAGS -belf"
b3baf5d0
NC
2898 echo "$as_me:2898: checking whether the C compiler needs -belf" >&5
2899echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2900if test "${lt_cv_cc_needs_belf+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 2902else
b3baf5d0 2903
ac48eca1 2904 ac_ext=c
ac48eca1 2905ac_cpp='$CPP $CPPFLAGS'
b3baf5d0
NC
2906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 2909
b3baf5d0
NC
2910 cat >conftest.$ac_ext <<_ACEOF
2911#line 2911 "configure"
b2ef150d
ILT
2912#include "confdefs.h"
2913
b3baf5d0
NC
2914int
2915main ()
2916{
b2ef150d 2917
b3baf5d0
NC
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922rm -f conftest.$ac_objext conftest$ac_exeext
2923if { (eval echo "$as_me:2923: \"$ac_link\"") >&5
2924 (eval $ac_link) 2>&5
2925 ac_status=$?
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -s conftest$ac_exeext'
2929 { (eval echo "$as_me:2929: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
b2ef150d
ILT
2934 lt_cv_cc_needs_belf=yes
2935else
b3baf5d0
NC
2936 echo "$as_me: failed program was:" >&5
2937cat conftest.$ac_ext >&5
2938lt_cv_cc_needs_belf=no
b2ef150d 2939fi
b3baf5d0 2940rm -f conftest$ac_exeext conftest.$ac_ext
ac48eca1 2941 ac_ext=c
ac48eca1 2942ac_cpp='$CPP $CPPFLAGS'
b3baf5d0
NC
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 2946
b2ef150d 2947fi
b3baf5d0
NC
2948echo "$as_me:2948: result: $lt_cv_cc_needs_belf" >&5
2949echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
2950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2952 CFLAGS="$SAVE_CFLAGS"
2953 fi
252b5132
RH
2954 ;;
2955
252b5132
RH
2956esac
2957
b2ef150d 2958# Save cache, so that ltconfig can load it
b3baf5d0 2959cat >confcache <<\_ACEOF
b2ef150d
ILT
2960# This file is a shell script that caches the results of configure
2961# tests run on this system so they can be shared between configure
b3baf5d0
NC
2962# scripts and configure runs, see configure's option --config-cache.
2963# It is not useful on other systems. If it contains results you don't
2964# want to keep, you may remove or edit it.
b2ef150d 2965#
b3baf5d0
NC
2966# config.status only pays attention to the cache file if you give it
2967# the --recheck option to rerun configure.
b2ef150d 2968#
b3baf5d0
NC
2969# `ac_cv_env_foo' variables (set or unset) will be overriden when
2970# loading this file, other *unset* `ac_cv_foo' will be assigned the
2971# following values.
2972
2973_ACEOF
2974
b2ef150d
ILT
2975# The following way of writing the cache mishandles newlines in values,
2976# but we know of no workaround that is simple, portable, and efficient.
2977# So, don't put newlines in cache variables' values.
2978# Ultrix sh set writes to stderr and can't be redirected directly,
2979# and sets the high bit in the cache file unless we assign to the vars.
b3baf5d0
NC
2980{
2981 (set) 2>&1 |
2982 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2983 *ac_space=\ *)
2984 # `set' does not quote correctly, so add quotes (double-quote
2985 # substitution turns \\\\ into \\, and sed turns \\ into \).
2986 sed -n \
2987 "s/'/'\\\\''/g;
2988 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2989 ;;
2990 *)
2991 # `set' quotes correctly as required by POSIX, so do not add quotes.
2992 sed -n \
2993 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2994 ;;
2995 esac;
2996} |
2997 sed '
2998 t clear
2999 : clear
3000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3001 t end
3002 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3003 : end' >>confcache
3004if cmp -s $cache_file confcache; then :; else
b2ef150d 3005 if test -w $cache_file; then
b3baf5d0
NC
3006 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3007 cat confcache >$cache_file
b2ef150d
ILT
3008 else
3009 echo "not updating unwritable cache $cache_file"
3010 fi
3011fi
3012rm -f confcache
3013
252b5132 3014# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3015AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3016MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3017LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3018AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3019objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3020deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3021${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3022$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
b3baf5d0
NC
3023|| { { echo "$as_me:3023: error: libtool configure failed" >&5
3024echo "$as_me: error: libtool configure failed" >&2;}
3025 { (exit 1); exit 1; }; }
252b5132 3026
b2ef150d
ILT
3027# Reload cache, that may have been modified by ltconfig
3028if test -r "$cache_file"; then
b3baf5d0
NC
3029 # Some versions of bash will fail to source /dev/null (special
3030 # files actually), so we avoid doing that.
3031 if test -f "$cache_file"; then
3032 { echo "$as_me:3032: loading cache $cache_file" >&5
3033echo "$as_me: loading cache $cache_file" >&6;}
3034 case $cache_file in
3035 [\\/]* | ?:[\\/]* ) . $cache_file;;
3036 *) . ./$cache_file;;
3037 esac
3038 fi
b2ef150d 3039else
b3baf5d0
NC
3040 { echo "$as_me:3040: creating cache $cache_file" >&5
3041echo "$as_me: creating cache $cache_file" >&6;}
3042 >$cache_file
b2ef150d
ILT
3043fi
3044
b2ef150d 3045# This can be used to rebuild libtool when needed
ac48eca1 3046LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
3047
3048# Always use our own libtool.
3049LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3050
252b5132
RH
3051# Redirect the config.log output again, so that the ltconfig log is not
3052# clobbered by the next message.
3053exec 5>>./config.log
3054
252b5132
RH
3055# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3056if test "${enable_64_bit_bfd+set}" = set; then
3057 enableval="$enable_64_bit_bfd"
3058 case "${enableval}" in
3059 yes) want64=true ;;
3060 no) want64=false ;;
b3baf5d0
NC
3061 *) { { echo "$as_me:3061: error: bad value ${enableval} for 64-bit-bfd option" >&5
3062echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3063 { (exit 1); exit 1; }; } ;;
252b5132
RH
3064esac
3065else
3066 want64=false
b3baf5d0 3067fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3068if test "${enable_targets+set}" = set; then
3069 enableval="$enable_targets"
3070 case "${enableval}" in
b3baf5d0
NC
3071 yes | "") { { echo "$as_me:3071: error: enable-targets option must specify target names or 'all'" >&5
3072echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3073 { (exit 1); exit 1; }; }
252b5132
RH
3074 ;;
3075 no) enable_targets= ;;
3076 *) enable_targets=$enableval ;;
3077esac
b3baf5d0 3078fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3079if test "${enable_commonbfdlib+set}" = set; then
3080 enableval="$enable_commonbfdlib"
3081 case "${enableval}" in
3082 yes) commonbfdlib=true ;;
3083 no) commonbfdlib=false ;;
b3baf5d0
NC
3084 *) { { echo "$as_me:3084: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3085echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3086 { (exit 1); exit 1; }; } ;;
252b5132 3087esac
b3baf5d0 3088fi;
252b5132
RH
3089# Check whether --with-mmap or --without-mmap was given.
3090if test "${with_mmap+set}" = set; then
3091 withval="$with_mmap"
3092 case "${withval}" in
3093 yes) want_mmap=true ;;
3094 no) want_mmap=false ;;
b3baf5d0
NC
3095 *) { { echo "$as_me:3095: error: bad value ${withval} for BFD with-mmap option" >&5
3096echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3097 { (exit 1); exit 1; }; } ;;
252b5132
RH
3098esac
3099else
3100 want_mmap=false
b3baf5d0 3101fi;
a2d91340
AC
3102build_warnings="-W -Wall"
3103# Check whether --enable-build-warnings or --disable-build-warnings was given.
3104if test "${enable_build_warnings+set}" = set; then
3105 enableval="$enable_build_warnings"
3106 case "${enableval}" in
3107 yes) ;;
3108 no) build_warnings="-w";;
3109 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3110 build_warnings="${build_warnings} ${t}";;
3111 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3112 build_warnings="${t} ${build_warnings}";;
3113 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3114esac
3115if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3116 echo "Setting warning flags = $build_warnings" 6>&1
3117fi
b3baf5d0 3118fi; WARN_CFLAGS=""
a2d91340
AC
3119if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3120 WARN_CFLAGS="${build_warnings}"
3121fi
3122
b3baf5d0 3123ac_config_headers="$ac_config_headers config.h:config.in"
a2d91340 3124
b3baf5d0 3125ac_config_commands="$ac_config_commands default-1"
252b5132
RH
3126
3127if test -z "$target" ; then
b3baf5d0
NC
3128 { { echo "$as_me:3128: error: Unrecognized target system type; please check config.sub." >&5
3129echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3130 { (exit 1); exit 1; }; }
252b5132 3131fi
252b5132 3132
b3baf5d0
NC
3133echo "$as_me:3133: checking whether to enable maintainer-specific portions of Makefiles" >&5
3134echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
3135 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3136if test "${enable_maintainer_mode+set}" = set; then
3137 enableval="$enable_maintainer_mode"
3138 USE_MAINTAINER_MODE=$enableval
3139else
3140 USE_MAINTAINER_MODE=no
b3baf5d0
NC
3141fi;
3142 echo "$as_me:3142: result: $USE_MAINTAINER_MODE" >&5
3143echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132
RH
3144
3145if test $USE_MAINTAINER_MODE = yes; then
3146 MAINTAINER_MODE_TRUE=
3147 MAINTAINER_MODE_FALSE='#'
3148else
3149 MAINTAINER_MODE_TRUE='#'
3150 MAINTAINER_MODE_FALSE=
3151fi
3152 MAINT=$MAINTAINER_MODE_TRUE
252b5132 3153
b3baf5d0
NC
3154host64=false
3155target64=false
252b5132 3156
b3baf5d0 3157# host stuff:
252b5132 3158
b3baf5d0
NC
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166set dummy ${ac_tool_prefix}gcc; ac_word=$2
3167echo "$as_me:3167: checking for $ac_word" >&5
3168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169if test "${ac_cv_prog_CC+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3171else
b3baf5d0
NC
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3174else
b3baf5d0
NC
3175 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176ac_dummy="$PATH"
3177for ac_dir in $ac_dummy; do
3178 IFS=$ac_save_IFS
3179 test -z "$ac_dir" && ac_dir=.
3180 $as_executable_p "$ac_dir/$ac_word" || continue
3181ac_cv_prog_CC="${ac_tool_prefix}gcc"
3182break
3183done
3184
252b5132
RH
3185fi
3186fi
b3baf5d0
NC
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189 echo "$as_me:3189: result: $CC" >&5
3190echo "${ECHO_T}$CC" >&6
3191else
3192 echo "$as_me:3192: result: no" >&5
3193echo "${ECHO_T}no" >&6
3194fi
252b5132 3195
b3baf5d0
NC
3196fi
3197if test -z "$ac_cv_prog_CC"; then
3198 ac_ct_CC=$CC
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200set dummy gcc; ac_word=$2
3201echo "$as_me:3201: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209 ac_save_IFS=$IFS; IFS=$ac_path_separator
3210ac_dummy="$PATH"
3211for ac_dir in $ac_dummy; do
3212 IFS=$ac_save_IFS
3213 test -z "$ac_dir" && ac_dir=.
3214 $as_executable_p "$ac_dir/$ac_word" || continue
3215ac_cv_prog_ac_ct_CC="gcc"
3216break
3217done
252b5132 3218
b3baf5d0
NC
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223 echo "$as_me:3223: result: $ac_ct_CC" >&5
3224echo "${ECHO_T}$ac_ct_CC" >&6
3225else
3226 echo "$as_me:3226: result: no" >&5
3227echo "${ECHO_T}no" >&6
3228fi
252b5132 3229
b3baf5d0
NC
3230 CC=$ac_ct_CC
3231else
3232 CC="$ac_cv_prog_CC"
3233fi
252b5132 3234
b3baf5d0
NC
3235if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}cc; ac_word=$2
3239echo "$as_me:3239: checking for $ac_word" >&5
3240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241if test "${ac_cv_prog_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
b3baf5d0
NC
3247 ac_save_IFS=$IFS; IFS=$ac_path_separator
3248ac_dummy="$PATH"
3249for ac_dir in $ac_dummy; do
3250 IFS=$ac_save_IFS
3251 test -z "$ac_dir" && ac_dir=.
3252 $as_executable_p "$ac_dir/$ac_word" || continue
3253ac_cv_prog_CC="${ac_tool_prefix}cc"
3254break
3255done
3256
252b5132
RH
3257fi
3258fi
b3baf5d0 3259CC=$ac_cv_prog_CC
252b5132 3260if test -n "$CC"; then
b3baf5d0
NC
3261 echo "$as_me:3261: result: $CC" >&5
3262echo "${ECHO_T}$CC" >&6
3263else
3264 echo "$as_me:3264: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266fi
3267
3268fi
3269if test -z "$ac_cv_prog_CC"; then
3270 ac_ct_CC=$CC
3271 # Extract the first word of "cc", so it can be a program name with args.
3272set dummy cc; ac_word=$2
3273echo "$as_me:3273: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 if test -n "$ac_ct_CC"; then
3279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280else
3281 ac_save_IFS=$IFS; IFS=$ac_path_separator
3282ac_dummy="$PATH"
3283for ac_dir in $ac_dummy; do
3284 IFS=$ac_save_IFS
3285 test -z "$ac_dir" && ac_dir=.
3286 $as_executable_p "$ac_dir/$ac_word" || continue
3287ac_cv_prog_ac_ct_CC="cc"
3288break
3289done
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
3295 echo "$as_me:3295: result: $ac_ct_CC" >&5
3296echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3297else
b3baf5d0
NC
3298 echo "$as_me:3298: result: no" >&5
3299echo "${ECHO_T}no" >&6
252b5132
RH
3300fi
3301
b3baf5d0
NC
3302 CC=$ac_ct_CC
3303else
3304 CC="$ac_cv_prog_CC"
3305fi
3306
3307fi
252b5132
RH
3308if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310set dummy cc; ac_word=$2
b3baf5d0
NC
3311echo "$as_me:3311: checking for $ac_word" >&5
3312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313if test "${ac_cv_prog_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3315else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318else
252b5132 3319 ac_prog_rejected=no
b3baf5d0
NC
3320 ac_save_IFS=$IFS; IFS=$ac_path_separator
3321ac_dummy="$PATH"
3322for ac_dir in $ac_dummy; do
3323 IFS=$ac_save_IFS
3324 test -z "$ac_dir" && ac_dir=.
3325 $as_executable_p "$ac_dir/$ac_word" || continue
3326if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3327 ac_prog_rejected=yes
3328 continue
3329fi
3330ac_cv_prog_CC="cc"
3331break
3332done
3333
252b5132
RH
3334if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3337 shift
b3baf5d0 3338 if test $# != 0; then
252b5132
RH
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3342 shift
b3baf5d0 3343 set dummy "$ac_dir/$ac_word" ${1+"$@"}
252b5132
RH
3344 shift
3345 ac_cv_prog_CC="$@"
3346 fi
3347fi
3348fi
3349fi
b3baf5d0 3350CC=$ac_cv_prog_CC
252b5132 3351if test -n "$CC"; then
b3baf5d0
NC
3352 echo "$as_me:3352: result: $CC" >&5
3353echo "${ECHO_T}$CC" >&6
252b5132 3354else
b3baf5d0
NC
3355 echo "$as_me:3355: result: no" >&5
3356echo "${ECHO_T}no" >&6
252b5132
RH
3357fi
3358
b3baf5d0
NC
3359fi
3360if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl
3363 do
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366echo "$as_me:3366: checking for $ac_word" >&5
3367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3370else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
b3baf5d0
NC
3374 ac_save_IFS=$IFS; IFS=$ac_path_separator
3375ac_dummy="$PATH"
3376for ac_dir in $ac_dummy; do
3377 IFS=$ac_save_IFS
3378 test -z "$ac_dir" && ac_dir=.
3379 $as_executable_p "$ac_dir/$ac_word" || continue
3380ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381break
3382done
3383
252b5132
RH
3384fi
3385fi
b3baf5d0 3386CC=$ac_cv_prog_CC
252b5132 3387if test -n "$CC"; then
b3baf5d0
NC
3388 echo "$as_me:3388: result: $CC" >&5
3389echo "${ECHO_T}$CC" >&6
252b5132 3390else
b3baf5d0
NC
3391 echo "$as_me:3391: result: no" >&5
3392echo "${ECHO_T}no" >&6
252b5132
RH
3393fi
3394
b3baf5d0
NC
3395 test -n "$CC" && break
3396 done
3397fi
3398if test -z "$CC"; then
3399 ac_ct_CC=$CC
3400 for ac_prog in cl
3401do
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403set dummy $ac_prog; ac_word=$2
3404echo "$as_me:3404: checking for $ac_word" >&5
3405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411else
3412 ac_save_IFS=$IFS; IFS=$ac_path_separator
3413ac_dummy="$PATH"
3414for ac_dir in $ac_dummy; do
3415 IFS=$ac_save_IFS
3416 test -z "$ac_dir" && ac_dir=.
3417 $as_executable_p "$ac_dir/$ac_word" || continue
3418ac_cv_prog_ac_ct_CC="$ac_prog"
3419break
3420done
252b5132 3421
b3baf5d0
NC
3422fi
3423fi
3424ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425if test -n "$ac_ct_CC"; then
3426 echo "$as_me:3426: result: $ac_ct_CC" >&5
3427echo "${ECHO_T}$ac_ct_CC" >&6
3428else
3429 echo "$as_me:3429: result: no" >&5
3430echo "${ECHO_T}no" >&6
3431fi
252b5132 3432
b3baf5d0
NC
3433 test -n "$ac_ct_CC" && break
3434done
252b5132 3435
b3baf5d0 3436 CC=$ac_ct_CC
252b5132 3437fi
252b5132 3438
252b5132 3439fi
252b5132 3440
b3baf5d0
NC
3441test -z "$CC" && { { echo "$as_me:3441: error: no acceptable cc found in \$PATH" >&5
3442echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3443 { (exit 1); exit 1; }; }
3444
3445echo "$as_me:3445: checking whether we are using the GNU C compiler" >&5
3446echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3447if test "${ac_cv_c_compiler_gnu+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3449else
b3baf5d0
NC
3450 cat >conftest.$ac_ext <<_ACEOF
3451#line 3451 "configure"
3452#include "confdefs.h"
3453
3454int
3455main ()
3456{
3457#ifndef __GNUC__
3458 choke me
252b5132 3459#endif
252b5132 3460
b3baf5d0
NC
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.$ac_objext
3466if { (eval echo "$as_me:3466: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3468 ac_status=$?
3469 echo "$as_me:3469: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:3472: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 ac_compiler_gnu=yes
3478else
3479 echo "$as_me: failed program was:" >&5
3480cat conftest.$ac_ext >&5
3481ac_compiler_gnu=no
3482fi
3483rm -f conftest.$ac_objext conftest.$ac_ext
3484ac_cv_c_compiler_gnu=$ac_compiler_gnu
3485
3486fi
3487echo "$as_me:3487: result: $ac_cv_c_compiler_gnu" >&5
3488echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3489GCC=`test $ac_compiler_gnu = yes && echo yes`
3490ac_test_CFLAGS=${CFLAGS+set}
3491ac_save_CFLAGS=$CFLAGS
3492CFLAGS="-g"
3493echo "$as_me:3493: checking whether $CC accepts -g" >&5
3494echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3495if test "${ac_cv_prog_cc_g+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 cat >conftest.$ac_ext <<_ACEOF
3499#line 3499 "configure"
3500#include "confdefs.h"
252b5132 3501
b3baf5d0
NC
3502int
3503main ()
3504{
252b5132 3505
b3baf5d0
NC
3506 ;
3507 return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:3511: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3513 ac_status=$?
3514 echo "$as_me:3514: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:3517: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:3520: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
252b5132
RH
3522 ac_cv_prog_cc_g=yes
3523else
b3baf5d0
NC
3524 echo "$as_me: failed program was:" >&5
3525cat conftest.$ac_ext >&5
3526ac_cv_prog_cc_g=no
252b5132 3527fi
b3baf5d0 3528rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 3529fi
b3baf5d0
NC
3530echo "$as_me:3530: result: $ac_cv_prog_cc_g" >&5
3531echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 3532if test "$ac_test_CFLAGS" = set; then
b3baf5d0 3533 CFLAGS=$ac_save_CFLAGS
252b5132
RH
3534elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3536 CFLAGS="-g -O2"
3537 else
3538 CFLAGS="-g"
3539 fi
3540else
3541 if test "$GCC" = yes; then
3542 CFLAGS="-O2"
3543 else
3544 CFLAGS=
3545 fi
3546fi
b3baf5d0
NC
3547# Some people use a C++ compiler to compile C. Since we use `exit',
3548# in C++ we need to declare it. In case someone uses the same compiler
3549# for both compiling C and C++ we need to have the C++ compiler decide
3550# the declaration of exit, since it's the most demanding environment.
3551cat >conftest.$ac_ext <<_ACEOF
3552#ifndef __cplusplus
3553 choke me
3554#endif
3555_ACEOF
3556rm -f conftest.$ac_objext
3557if { (eval echo "$as_me:3557: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>&5
3559 ac_status=$?
3560 echo "$as_me:3560: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:3563: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 for ac_declaration in \
3569 ''\
3570 '#include <stdlib.h>' \
3571 'extern "C" void std::exit (int) throw (); using std::exit;' \
3572 'extern "C" void std::exit (int); using std::exit;' \
3573 'extern "C" void exit (int) throw ();' \
3574 'extern "C" void exit (int);' \
3575 'void exit (int);'
3576do
3577 cat >conftest.$ac_ext <<_ACEOF
3578#line 3578 "configure"
3579#include "confdefs.h"
3580#include <stdlib.h>
3581$ac_declaration
3582int
3583main ()
3584{
3585exit (42);
3586 ;
3587 return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (eval echo "$as_me:3591: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>&5
3593 ac_status=$?
3594 echo "$as_me:3594: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:3597: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 :
3603else
3604 echo "$as_me: failed program was:" >&5
3605cat conftest.$ac_ext >&5
3606continue
3607fi
3608rm -f conftest.$ac_objext conftest.$ac_ext
3609 cat >conftest.$ac_ext <<_ACEOF
3610#line 3610 "configure"
3611#include "confdefs.h"
3612$ac_declaration
3613int
3614main ()
3615{
3616exit (42);
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621rm -f conftest.$ac_objext
3622if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>&5
3624 ac_status=$?
3625 echo "$as_me:3625: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:3628: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:3631: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 break
3634else
3635 echo "$as_me: failed program was:" >&5
3636cat conftest.$ac_ext >&5
3637fi
3638rm -f conftest.$ac_objext conftest.$ac_ext
3639done
3640echo '#ifdef __cplusplus' >>confdefs.h
3641echo $ac_declaration >>confdefs.h
3642echo '#endif' >>confdefs.h
252b5132 3643
b3baf5d0
NC
3644else
3645 echo "$as_me: failed program was:" >&5
3646cat conftest.$ac_ext >&5
3647fi
3648rm -f conftest.$ac_objext conftest.$ac_ext
3649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
3654
3655ALL_LINGUAS=
b3baf5d0
NC
3656if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3658set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3659echo "$as_me:3659: checking for $ac_word" >&5
3660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661if test "${ac_cv_prog_RANLIB+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664 if test -n "$RANLIB"; then
3665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3666else
3667 ac_save_IFS=$IFS; IFS=$ac_path_separator
3668ac_dummy="$PATH"
3669for ac_dir in $ac_dummy; do
3670 IFS=$ac_save_IFS
3671 test -z "$ac_dir" && ac_dir=.
3672 $as_executable_p "$ac_dir/$ac_word" || continue
3673ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3674break
3675done
3676
3677fi
3678fi
3679RANLIB=$ac_cv_prog_RANLIB
3680if test -n "$RANLIB"; then
3681 echo "$as_me:3681: result: $RANLIB" >&5
3682echo "${ECHO_T}$RANLIB" >&6
3683else
3684 echo "$as_me:3684: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686fi
3687
3688fi
3689if test -z "$ac_cv_prog_RANLIB"; then
3690 ac_ct_RANLIB=$RANLIB
3691 # Extract the first word of "ranlib", so it can be a program name with args.
3692set dummy ranlib; ac_word=$2
3693echo "$as_me:3693: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 if test -n "$ac_ct_RANLIB"; then
3699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3700else
3701 ac_save_IFS=$IFS; IFS=$ac_path_separator
3702ac_dummy="$PATH"
3703for ac_dir in $ac_dummy; do
3704 IFS=$ac_save_IFS
3705 test -z "$ac_dir" && ac_dir=.
3706 $as_executable_p "$ac_dir/$ac_word" || continue
3707ac_cv_prog_ac_ct_RANLIB="ranlib"
3708break
3709done
3710
3711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3712fi
3713fi
3714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3715if test -n "$ac_ct_RANLIB"; then
3716 echo "$as_me:3716: result: $ac_ct_RANLIB" >&5
3717echo "${ECHO_T}$ac_ct_RANLIB" >&6
3718else
3719 echo "$as_me:3719: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721fi
3722
3723 RANLIB=$ac_ct_RANLIB
3724else
3725 RANLIB="$ac_cv_prog_RANLIB"
3726fi
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733echo "$as_me:3733: checking how to run the C preprocessor" >&5
3734echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
3735# On Suns, sometimes $CPP names a directory.
3736if test -n "$CPP" && test -d "$CPP"; then
3737 CPP=
3738fi
3739if test -z "$CPP"; then
b3baf5d0
NC
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3742else
b3baf5d0
NC
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 do
3746 # Use a header file that comes with gcc, so configuring glibc
3747# with a fresh cross-compiler works.
3748# On the NeXT, cc -E runs the code through the compiler's parser,
3749# not just through cpp. "Syntax error" is here to catch this case.
3750ac_c_preproc_warn_flag=maybe
3751cat >conftest.$ac_ext <<_ACEOF
3752#line 3752 "configure"
252b5132
RH
3753#include "confdefs.h"
3754#include <assert.h>
b3baf5d0
NC
3755Syntax error
3756_ACEOF
3757if { (eval echo "$as_me:3757: \"$ac_cpp conftest.$ac_ext\"") >&5
3758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3759 ac_status=$?
3760 egrep -v '^ *\+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 echo "$as_me:3763: \$? = $ac_status" >&5
3764 (exit $ac_status); } >/dev/null; then
3765 if test -s conftest.err; then
3766 ac_cpp_err=$ac_c_preproc_warn_flag
3767 else
3768 ac_cpp_err=
3769 fi
252b5132 3770else
b3baf5d0
NC
3771 ac_cpp_err=yes
3772fi
3773if test -z "$ac_cpp_err"; then
3774 # Now check whether non-existent headers can be detected and how
3775# Skip if ac_cpp_err is not empty - ac_cpp is broken
3776if test -z "$ac_cpp_err"; then
3777 cat >conftest.$ac_ext <<_ACEOF
3778#line 3778 "configure"
252b5132 3779#include "confdefs.h"
b3baf5d0
NC
3780#include <ac_nonexistent.h>
3781_ACEOF
3782if { (eval echo "$as_me:3782: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784 ac_status=$?
3785 egrep -v '^ *\+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:3788: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3792 else
3793 ac_cpp_err=
3794 fi
3795else
3796 ac_cpp_err=yes
3797fi
3798if test -z "$ac_cpp_err"; then
3799 # cannot detect missing includes at all
3800ac_cpp_err=yes
252b5132 3801else
b3baf5d0 3802 echo "$as_me: failed program was:" >&5
252b5132 3803 cat conftest.$ac_ext >&5
b3baf5d0
NC
3804 if test "x$ac_cpp_err" = xmaybe; then
3805 ac_c_preproc_warn_flag=yes
3806 else
3807 ac_c_preproc_warn_flag=
3808 fi
3809 ac_cpp_err=
252b5132 3810fi
b3baf5d0 3811rm -f conftest.err conftest.$ac_ext
252b5132 3812fi
b3baf5d0
NC
3813else
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3816
252b5132 3817fi
b3baf5d0
NC
3818rm -f conftest.err conftest.$ac_ext
3819 if test -z "$ac_cpp_err"; then
3820 break
3821 fi
3822 done
3823 ac_cv_prog_CPP=$CPP
3824
252b5132 3825fi
b3baf5d0
NC
3826 CPP=$ac_cv_prog_CPP
3827else
3828 # Use a header file that comes with gcc, so configuring glibc
3829# with a fresh cross-compiler works.
3830# On the NeXT, cc -E runs the code through the compiler's parser,
3831# not just through cpp. "Syntax error" is here to catch this case.
3832ac_c_preproc_warn_flag=maybe
3833cat >conftest.$ac_ext <<_ACEOF
3834#line 3834 "configure"
3835#include "confdefs.h"
3836#include <assert.h>
3837Syntax error
3838_ACEOF
3839if { (eval echo "$as_me:3839: \"$ac_cpp conftest.$ac_ext\"") >&5
3840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3841 ac_status=$?
3842 egrep -v '^ *\+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:3845: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev/null; then
3847 if test -s conftest.err; then
3848 ac_cpp_err=$ac_c_preproc_warn_flag
3849 else
3850 ac_cpp_err=
3851 fi
252b5132 3852else
b3baf5d0 3853 ac_cpp_err=yes
252b5132 3854fi
b3baf5d0
NC
3855if test -z "$ac_cpp_err"; then
3856 # Now check whether non-existent headers can be detected and how
3857# Skip if ac_cpp_err is not empty - ac_cpp is broken
3858if test -z "$ac_cpp_err"; then
3859 cat >conftest.$ac_ext <<_ACEOF
3860#line 3860 "configure"
3861#include "confdefs.h"
3862#include <ac_nonexistent.h>
3863_ACEOF
3864if { (eval echo "$as_me:3864: \"$ac_cpp conftest.$ac_ext\"") >&5
3865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3866 ac_status=$?
3867 egrep -v '^ *\+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
3870 echo "$as_me:3870: \$? = $ac_status" >&5
3871 (exit $ac_status); } >/dev/null; then
3872 if test -s conftest.err; then
3873 ac_cpp_err=$ac_c_preproc_warn_flag
3874 else
3875 ac_cpp_err=
3876 fi
ac48eca1 3877else
b3baf5d0
NC
3878 ac_cpp_err=yes
3879fi
3880if test -z "$ac_cpp_err"; then
3881 # cannot detect missing includes at all
3882ac_cpp_err=yes
ac48eca1 3883else
b3baf5d0
NC
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 if test "x$ac_cpp_err" = xmaybe; then
3887 ac_c_preproc_warn_flag=yes
3888 else
3889 ac_c_preproc_warn_flag=
ac48eca1 3890 fi
b3baf5d0 3891 ac_cpp_err=
ac48eca1 3892fi
b3baf5d0 3893rm -f conftest.err conftest.$ac_ext
ac48eca1 3894fi
ac48eca1 3895else
b3baf5d0
NC
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898
ac48eca1 3899fi
b3baf5d0
NC
3900rm -f conftest.err conftest.$ac_ext
3901 ac_cv_prog_CPP=$CPP
3902fi
3903echo "$as_me:3903: result: $CPP" >&5
3904echo "${ECHO_T}$CPP" >&6
3905if test -n "$ac_cpp_err"; then
3906 { { echo "$as_me:3906: error: C preprocessor \"$CPP\" fails sanity check" >&5
3907echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3908 { (exit 1); exit 1; }; }
3909fi
3910ac_ext=c
3911ac_cpp='$CPP $CPPFLAGS'
3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3915
b3baf5d0
NC
3916echo "$as_me:3916: checking for ANSI C header files" >&5
3917echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3918if test "${ac_cv_header_stdc+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3920else
b3baf5d0
NC
3921 cat >conftest.$ac_ext <<_ACEOF
3922#line 3922 "configure"
252b5132
RH
3923#include "confdefs.h"
3924#include <stdlib.h>
3925#include <stdarg.h>
3926#include <string.h>
3927#include <float.h>
b3baf5d0
NC
3928
3929_ACEOF
3930if { (eval echo "$as_me:3930: \"$ac_cpp conftest.$ac_ext\"") >&5
3931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3932 ac_status=$?
3933 egrep -v '^ *\+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:3936: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null; then
3938 if test -s conftest.err; then
3939 ac_cpp_err=$ac_c_preproc_warn_flag
3940 else
3941 ac_cpp_err=
3942 fi
3943else
3944 ac_cpp_err=yes
3945fi
3946if test -z "$ac_cpp_err"; then
252b5132
RH
3947 ac_cv_header_stdc=yes
3948else
b3baf5d0 3949 echo "$as_me: failed program was:" >&5
252b5132 3950 cat conftest.$ac_ext >&5
252b5132
RH
3951 ac_cv_header_stdc=no
3952fi
b3baf5d0 3953rm -f conftest.err conftest.$ac_ext
252b5132
RH
3954
3955if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b3baf5d0
NC
3957 cat >conftest.$ac_ext <<_ACEOF
3958#line 3958 "configure"
252b5132
RH
3959#include "confdefs.h"
3960#include <string.h>
b3baf5d0
NC
3961
3962_ACEOF
252b5132
RH
3963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 egrep "memchr" >/dev/null 2>&1; then
3965 :
3966else
252b5132
RH
3967 ac_cv_header_stdc=no
3968fi
3969rm -f conftest*
3970
3971fi
3972
3973if test $ac_cv_header_stdc = yes; then
3974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b3baf5d0
NC
3975 cat >conftest.$ac_ext <<_ACEOF
3976#line 3976 "configure"
252b5132
RH
3977#include "confdefs.h"
3978#include <stdlib.h>
b3baf5d0
NC
3979
3980_ACEOF
252b5132
RH
3981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3982 egrep "free" >/dev/null 2>&1; then
3983 :
3984else
252b5132
RH
3985 ac_cv_header_stdc=no
3986fi
3987rm -f conftest*
3988
3989fi
3990
3991if test $ac_cv_header_stdc = yes; then
3992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b3baf5d0 3993 if test "$cross_compiling" = yes; then
252b5132
RH
3994 :
3995else
b3baf5d0
NC
3996 cat >conftest.$ac_ext <<_ACEOF
3997#line 3997 "configure"
252b5132
RH
3998#include "confdefs.h"
3999#include <ctype.h>
b3baf5d0
NC
4000#if ((' ' & 0x0FF) == 0x020)
4001# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4002# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4003#else
4004# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4005 || ('j' <= (c) && (c) <= 'r') \
4006 || ('s' <= (c) && (c) <= 'z'))
4007# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4008#endif
252b5132 4009
b3baf5d0
NC
4010#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4011int
4012main ()
4013{
4014 int i;
4015 for (i = 0; i < 256; i++)
4016 if (XOR (islower (i), ISLOWER (i))
4017 || toupper (i) != TOUPPER (i))
4018 exit(2);
4019 exit (0);
4020}
4021_ACEOF
4022rm -f conftest$ac_exeext
4023if { (eval echo "$as_me:4023: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>&5
4025 ac_status=$?
4026 echo "$as_me:4026: \$? = $ac_status" >&5
4027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4028 { (eval echo "$as_me:4028: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:4031: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
252b5132
RH
4033 :
4034else
b3baf5d0
NC
4035 echo "$as_me: program exited with status $ac_status" >&5
4036echo "$as_me: failed program was:" >&5
4037cat conftest.$ac_ext >&5
4038ac_cv_header_stdc=no
252b5132 4039fi
b3baf5d0 4040rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 4041fi
252b5132
RH
4042fi
4043fi
b3baf5d0
NC
4044echo "$as_me:4044: result: $ac_cv_header_stdc" >&5
4045echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 4046if test $ac_cv_header_stdc = yes; then
b3baf5d0
NC
4047
4048cat >>confdefs.h <<\EOF
252b5132
RH
4049#define STDC_HEADERS 1
4050EOF
4051
4052fi
4053
b3baf5d0
NC
4054echo "$as_me:4054: checking for $CC option to accept ANSI C" >&5
4055echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4056if test "${ac_cv_prog_cc_stdc+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4058else
b3baf5d0
NC
4059 ac_cv_prog_cc_stdc=no
4060ac_save_CC=$CC
4061cat >conftest.$ac_ext <<_ACEOF
4062#line 4062 "configure"
252b5132 4063#include "confdefs.h"
b3baf5d0
NC
4064#include <stdarg.h>
4065#include <stdio.h>
4066#include <sys/types.h>
4067#include <sys/stat.h>
4068/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069struct buf { int x; };
4070FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071static char *e (p, i)
4072 char **p;
4073 int i;
4074{
4075 return p[i];
252b5132 4076}
b3baf5d0
NC
4077static char *f (char * (*g) (char **, int), char **p, ...)
4078{
4079 char *s;
4080 va_list v;
4081 va_start (v,p);
4082 s = g (p, va_arg (v,int));
4083 va_end (v);
4084 return s;
252b5132 4085}
b3baf5d0
NC
4086int test (int i, double x);
4087struct s1 {int (*f) (int a);};
4088struct s2 {int (*f) (double a);};
4089int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090int argc;
4091char **argv;
4092int
4093main ()
4094{
4095return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 ;
4097 return 0;
252b5132 4098}
b3baf5d0
NC
4099_ACEOF
4100# Don't try gcc -ansi; that turns off useful extensions and
4101# breaks some systems' header files.
4102# AIX -qlanglvl=ansi
4103# Ultrix and OSF/1 -std1
4104# HP-UX 10.20 and later -Ae
4105# HP-UX older versions -Aa -D_HPUX_SOURCE
4106# SVR4 -Xc -D__EXTENSIONS__
4107for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108do
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>&5
4113 ac_status=$?
4114 echo "$as_me:4114: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:4117: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:4120: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_cv_prog_cc_stdc=$ac_arg
4123break
4124else
4125 echo "$as_me: failed program was:" >&5
4126cat conftest.$ac_ext >&5
4127fi
4128rm -f conftest.$ac_objext
4129done
4130rm -f conftest.$ac_ext conftest.$ac_objext
4131CC=$ac_save_CC
252b5132 4132
b3baf5d0
NC
4133fi
4134
4135case "x$ac_cv_prog_cc_stdc" in
4136 x|xno)
4137 echo "$as_me:4137: result: none needed" >&5
4138echo "${ECHO_T}none needed" >&6 ;;
4139 *)
4140 echo "$as_me:4140: result: $ac_cv_prog_cc_stdc" >&5
4141echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4142 CC="$CC $ac_cv_prog_cc_stdc" ;;
4143esac
4144
4145echo "$as_me:4145: checking for an ANSI C-conforming const" >&5
4146echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4147if test "${ac_cv_c_const+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 cat >conftest.$ac_ext <<_ACEOF
4151#line 4151 "configure"
4152#include "confdefs.h"
4153
4154int
4155main ()
4156{
4157/* FIXME: Include the comments suggested by Paul. */
4158#ifndef __cplusplus
4159 /* Ultrix mips cc rejects this. */
4160 typedef int charset[2];
4161 const charset x;
4162 /* SunOS 4.1.1 cc rejects this. */
4163 char const *const *ccp;
4164 char **p;
4165 /* NEC SVR4.0.2 mips cc rejects this. */
4166 struct point {int x, y;};
4167 static struct point const zero = {0,0};
4168 /* AIX XL C 1.02.0.0 rejects this.
4169 It does not let you subtract one const X* pointer from another in
4170 an arm of an if-expression whose if-part is not a constant
4171 expression */
4172 const char *g = "string";
4173 ccp = &g + (g ? g-g : 0);
4174 /* HPUX 7.0 cc rejects these. */
4175 ++ccp;
4176 p = (char**) ccp;
4177 ccp = (char const *const *) p;
4178 { /* SCO 3.2v4 cc rejects this. */
4179 char *t;
4180 char const *s = 0 ? (char *) 0 : (char const *) 0;
4181
4182 *t++ = 0;
4183 }
4184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4185 int x[] = {25, 17};
4186 const int *foo = &x[0];
4187 ++foo;
4188 }
4189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4190 typedef const int *iptr;
4191 iptr p = 0;
4192 ++p;
4193 }
4194 { /* AIX XL C 1.02.0.0 rejects this saying
4195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4196 struct s { int j; const int *ap[3]; };
4197 struct s *b; b->j = 5;
4198 }
4199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4200 const int foo = 10;
4201 }
4202#endif
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (eval echo "$as_me:4209: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>&5
4211 ac_status=$?
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
252b5132
RH
4220 ac_cv_c_const=yes
4221else
b3baf5d0
NC
4222 echo "$as_me: failed program was:" >&5
4223cat conftest.$ac_ext >&5
4224ac_cv_c_const=no
252b5132 4225fi
b3baf5d0 4226rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 4227fi
b3baf5d0
NC
4228echo "$as_me:4228: result: $ac_cv_c_const" >&5
4229echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 4230if test $ac_cv_c_const = no; then
b3baf5d0
NC
4231
4232cat >>confdefs.h <<\EOF
4233#define const
252b5132
RH
4234EOF
4235
4236fi
4237
b3baf5d0
NC
4238echo "$as_me:4238: checking for inline" >&5
4239echo $ECHO_N "checking for inline... $ECHO_C" >&6
4240if test "${ac_cv_c_inline+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4242else
4243 ac_cv_c_inline=no
4244for ac_kw in inline __inline__ __inline; do
b3baf5d0
NC
4245 cat >conftest.$ac_ext <<_ACEOF
4246#line 4246 "configure"
252b5132 4247#include "confdefs.h"
b3baf5d0
NC
4248#ifndef __cplusplus
4249static $ac_kw int static_foo () {return 0; }
4250$ac_kw int foo () {return 0; }
4251#endif
252b5132 4252
b3baf5d0
NC
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (eval echo "$as_me:4255: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>&5
4257 ac_status=$?
4258 echo "$as_me:4258: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:4261: \"$ac_try\"") >&5
4262 (eval $ac_try) 2>&5
4263 ac_status=$?
4264 echo "$as_me:4264: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
252b5132
RH
4266 ac_cv_c_inline=$ac_kw; break
4267else
b3baf5d0
NC
4268 echo "$as_me: failed program was:" >&5
4269cat conftest.$ac_ext >&5
252b5132 4270fi
b3baf5d0 4271rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
4272done
4273
4274fi
b3baf5d0
NC
4275echo "$as_me:4275: result: $ac_cv_c_inline" >&5
4276echo "${ECHO_T}$ac_cv_c_inline" >&6
4277case $ac_cv_c_inline in
252b5132 4278 inline | yes) ;;
b3baf5d0
NC
4279 no)
4280cat >>confdefs.h <<\EOF
4281#define inline
252b5132
RH
4282EOF
4283 ;;
b3baf5d0 4284 *) cat >>confdefs.h <<EOF
252b5132
RH
4285#define inline $ac_cv_c_inline
4286EOF
4287 ;;
4288esac
4289
b3baf5d0
NC
4290for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
4291do
4292ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4293echo "$as_me:4293: checking for $ac_header" >&5
4294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 cat >conftest.$ac_ext <<_ACEOF
4299#line 4299 "configure"
252b5132 4300#include "confdefs.h"
b3baf5d0
NC
4301#include <$ac_header>
4302_ACEOF
4303if { (eval echo "$as_me:4303: \"$ac_cpp conftest.$ac_ext\"") >&5
4304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4305 ac_status=$?
4306 egrep -v '^ *\+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); } >/dev/null; then
4311 if test -s conftest.err; then
4312 ac_cpp_err=$ac_c_preproc_warn_flag
4313 else
4314 ac_cpp_err=
4315 fi
4316else
4317 ac_cpp_err=yes
4318fi
4319if test -z "$ac_cpp_err"; then
4320 eval "$ac_ac_Header=yes"
4321else
4322 echo "$as_me: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4324 eval "$ac_ac_Header=no"
4325fi
4326rm -f conftest.err conftest.$ac_ext
4327fi
4328echo "$as_me:4328: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4329echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4330if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4331 cat >>confdefs.h <<EOF
4332#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 4333EOF
b3baf5d0
NC
4334
4335fi
4336done
4337
4338echo "$as_me:4338: checking for off_t" >&5
4339echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4340if test "${ac_cv_type_off_t+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 cat >conftest.$ac_ext <<_ACEOF
4344#line 4344 "configure"
4345#include "confdefs.h"
4346$ac_includes_default
4347int
4348main ()
4349{
4350if ((off_t *) 0)
4351 return 0;
4352if (sizeof (off_t))
4353 return 0;
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:4359: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4361 ac_status=$?
4362 echo "$as_me:4362: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:4365: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:4368: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
653f71ca 4370 ac_cv_type_off_t=yes
252b5132 4371else
b3baf5d0
NC
4372 echo "$as_me: failed program was:" >&5
4373cat conftest.$ac_ext >&5
4374ac_cv_type_off_t=no
252b5132 4375fi
b3baf5d0 4376rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 4377fi
b3baf5d0
NC
4378echo "$as_me:4378: result: $ac_cv_type_off_t" >&5
4379echo "${ECHO_T}$ac_cv_type_off_t" >&6
4380if test $ac_cv_type_off_t = yes; then
4381 :
4382else
4383
4384cat >>confdefs.h <<EOF
252b5132
RH
4385#define off_t long
4386EOF
4387
4388fi
4389
b3baf5d0
NC
4390echo "$as_me:4390: checking for size_t" >&5
4391echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4392if test "${ac_cv_type_size_t+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4394else
b3baf5d0
NC
4395 cat >conftest.$ac_ext <<_ACEOF
4396#line 4396 "configure"
252b5132 4397#include "confdefs.h"
b3baf5d0
NC
4398$ac_includes_default
4399int
4400main ()
4401{
4402if ((size_t *) 0)
4403 return 0;
4404if (sizeof (size_t))
4405 return 0;
4406 ;
4407 return 0;
4408}
4409_ACEOF
4410rm -f conftest.$ac_objext
4411if { (eval echo "$as_me:4411: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:4417: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:4420: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
653f71ca 4422 ac_cv_type_size_t=yes
252b5132 4423else
b3baf5d0
NC
4424 echo "$as_me: failed program was:" >&5
4425cat conftest.$ac_ext >&5
4426ac_cv_type_size_t=no
252b5132 4427fi
b3baf5d0 4428rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 4429fi
b3baf5d0
NC
4430echo "$as_me:4430: result: $ac_cv_type_size_t" >&5
4431echo "${ECHO_T}$ac_cv_type_size_t" >&6
4432if test $ac_cv_type_size_t = yes; then
4433 :
4434else
4435
4436cat >>confdefs.h <<EOF
252b5132
RH
4437#define size_t unsigned
4438EOF
4439
4440fi
4441
4442# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4443# for constant arguments. Useless!
b3baf5d0
NC
4444echo "$as_me:4444: checking for working alloca.h" >&5
4445echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4446if test "${ac_cv_working_alloca_h+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4448else
b3baf5d0
NC
4449 cat >conftest.$ac_ext <<_ACEOF
4450#line 4450 "configure"
252b5132
RH
4451#include "confdefs.h"
4452#include <alloca.h>
b3baf5d0
NC
4453int
4454main ()
4455{
4456char *p = (char *) alloca (2 * sizeof (int));
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461rm -f conftest.$ac_objext conftest$ac_exeext
4462if { (eval echo "$as_me:4462: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4464 ac_status=$?
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest$ac_exeext'
4468 { (eval echo "$as_me:4468: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_working_alloca_h=yes
4474else
4475 echo "$as_me: failed program was:" >&5
4476cat conftest.$ac_ext >&5
4477ac_cv_working_alloca_h=no
4478fi
4479rm -f conftest$ac_exeext conftest.$ac_ext
4480fi
4481echo "$as_me:4481: result: $ac_cv_working_alloca_h" >&5
4482echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4483if test $ac_cv_working_alloca_h = yes; then
4484
4485cat >>confdefs.h <<\EOF
252b5132
RH
4486#define HAVE_ALLOCA_H 1
4487EOF
4488
4489fi
4490
b3baf5d0
NC
4491echo "$as_me:4491: checking for alloca" >&5
4492echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4493if test "${ac_cv_func_alloca_works+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4495else
b3baf5d0
NC
4496 cat >conftest.$ac_ext <<_ACEOF
4497#line 4497 "configure"
252b5132 4498#include "confdefs.h"
252b5132
RH
4499#ifdef __GNUC__
4500# define alloca __builtin_alloca
4501#else
4502# ifdef _MSC_VER
4503# include <malloc.h>
4504# define alloca _alloca
4505# else
4506# if HAVE_ALLOCA_H
4507# include <alloca.h>
4508# else
4509# ifdef _AIX
4510 #pragma alloca
4511# else
4512# ifndef alloca /* predefined by HP cc +Olibcalls */
4513char *alloca ();
4514# endif
4515# endif
4516# endif
4517# endif
4518#endif
4519
b3baf5d0
NC
4520int
4521main ()
4522{
4523char *p = (char *) alloca (1);
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528rm -f conftest.$ac_objext conftest$ac_exeext
4529if { (eval echo "$as_me:4529: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest$ac_exeext'
4535 { (eval echo "$as_me:4535: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:4538: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
252b5132
RH
4540 ac_cv_func_alloca_works=yes
4541else
b3baf5d0
NC
4542 echo "$as_me: failed program was:" >&5
4543cat conftest.$ac_ext >&5
4544ac_cv_func_alloca_works=no
252b5132 4545fi
b3baf5d0 4546rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 4547fi
b3baf5d0
NC
4548echo "$as_me:4548: result: $ac_cv_func_alloca_works" >&5
4549echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 4550
252b5132 4551if test $ac_cv_func_alloca_works = yes; then
b3baf5d0
NC
4552
4553cat >>confdefs.h <<\EOF
252b5132
RH
4554#define HAVE_ALLOCA 1
4555EOF
4556
b3baf5d0 4557else
252b5132 4558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
b3baf5d0
NC
4559# that cause trouble. Some versions do not even contain alloca or
4560# contain a buggy version. If you still want to use their alloca,
4561# use ar to extract alloca.o from them instead of compiling alloca.c.
4562
4563ALLOCA=alloca.$ac_objext
4564
4565cat >>confdefs.h <<\EOF
252b5132
RH
4566#define C_ALLOCA 1
4567EOF
4568
b3baf5d0
NC
4569echo "$as_me:4569: checking whether \`alloca.c' needs Cray hooks" >&5
4570echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4571if test "${ac_cv_os_cray+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4573else
b3baf5d0
NC
4574 cat >conftest.$ac_ext <<_ACEOF
4575#line 4575 "configure"
252b5132
RH
4576#include "confdefs.h"
4577#if defined(CRAY) && ! defined(CRAY2)
4578webecray
4579#else
4580wenotbecray
4581#endif
4582
b3baf5d0 4583_ACEOF
252b5132
RH
4584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585 egrep "webecray" >/dev/null 2>&1; then
252b5132
RH
4586 ac_cv_os_cray=yes
4587else
252b5132
RH
4588 ac_cv_os_cray=no
4589fi
4590rm -f conftest*
4591
4592fi
b3baf5d0
NC
4593echo "$as_me:4593: result: $ac_cv_os_cray" >&5
4594echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 4595if test $ac_cv_os_cray = yes; then
b3baf5d0
NC
4596 for ac_func in _getb67 GETB67 getb67; do
4597 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4598echo "$as_me:4598: checking for $ac_func" >&5
4599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4600if eval "test \"\${$ac_ac_var+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 cat >conftest.$ac_ext <<_ACEOF
4604#line 4604 "configure"
252b5132
RH
4605#include "confdefs.h"
4606/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 4607 which can conflict with char $ac_func (); below. */
252b5132
RH
4608#include <assert.h>
4609/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
4610#ifdef __cplusplus
4611extern "C"
4612#endif
252b5132 4613/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
4614 builtin and then its argument prototype would still apply. */
4615char $ac_func ();
4616char (*f) ();
252b5132 4617
b3baf5d0
NC
4618int
4619main ()
4620{
252b5132
RH
4621/* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4625choke me
4626#else
b3baf5d0 4627f = $ac_func;
252b5132
RH
4628#endif
4629
b3baf5d0
NC
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.$ac_objext conftest$ac_exeext
4635if { (eval echo "$as_me:4635: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>&5
4637 ac_status=$?
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$ac_ac_var=yes"
4647else
4648 echo "$as_me: failed program was:" >&5
4649cat conftest.$ac_ext >&5
4650eval "$ac_ac_var=no"
4651fi
4652rm -f conftest$ac_exeext conftest.$ac_ext
4653fi
4654echo "$as_me:4654: result: `eval echo '${'$ac_ac_var'}'`" >&5
4655echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4656if test `eval echo '${'$ac_ac_var'}'` = yes; then
4657
4658cat >>confdefs.h <<EOF
252b5132
RH
4659#define CRAY_STACKSEG_END $ac_func
4660EOF
4661
b3baf5d0 4662 break
252b5132
RH
4663fi
4664
b3baf5d0 4665 done
252b5132
RH
4666fi
4667
b3baf5d0
NC
4668echo "$as_me:4668: checking stack direction for C alloca" >&5
4669echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4670if test "${ac_cv_c_stack_direction+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4672else
4673 if test "$cross_compiling" = yes; then
4674 ac_cv_c_stack_direction=0
4675else
b3baf5d0
NC
4676 cat >conftest.$ac_ext <<_ACEOF
4677#line 4677 "configure"
252b5132 4678#include "confdefs.h"
b3baf5d0 4679int
252b5132
RH
4680find_stack_direction ()
4681{
4682 static char *addr = 0;
4683 auto char dummy;
4684 if (addr == 0)
4685 {
4686 addr = &dummy;
4687 return find_stack_direction ();
4688 }
4689 else
4690 return (&dummy > addr) ? 1 : -1;
4691}
b3baf5d0
NC
4692
4693int
252b5132
RH
4694main ()
4695{
b3baf5d0 4696 exit (find_stack_direction () < 0);
252b5132 4697}
b3baf5d0
NC
4698_ACEOF
4699rm -f conftest$ac_exeext
4700if { (eval echo "$as_me:4700: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>&5
4702 ac_status=$?
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4705 { (eval echo "$as_me:4705: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
252b5132
RH
4710 ac_cv_c_stack_direction=1
4711else
b3baf5d0
NC
4712 echo "$as_me: program exited with status $ac_status" >&5
4713echo "$as_me: failed program was:" >&5
4714cat conftest.$ac_ext >&5
4715ac_cv_c_stack_direction=-1
252b5132 4716fi
b3baf5d0 4717rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 4718fi
252b5132 4719fi
b3baf5d0
NC
4720echo "$as_me:4720: result: $ac_cv_c_stack_direction" >&5
4721echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 4722
b3baf5d0 4723cat >>confdefs.h <<EOF
252b5132
RH
4724#define STACK_DIRECTION $ac_cv_c_stack_direction
4725EOF
4726
4727fi
4728
b3baf5d0 4729for ac_header in stdlib.h unistd.h
252b5132 4730do
b3baf5d0
NC
4731ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4732echo "$as_me:4732: checking for $ac_header" >&5
4733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737 cat >conftest.$ac_ext <<_ACEOF
4738#line 4738 "configure"
252b5132 4739#include "confdefs.h"
b3baf5d0
NC
4740#include <$ac_header>
4741_ACEOF
4742if { (eval echo "$as_me:4742: \"$ac_cpp conftest.$ac_ext\"") >&5
4743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744 ac_status=$?
4745 egrep -v '^ *\+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null; then
4750 if test -s conftest.err; then
4751 ac_cpp_err=$ac_c_preproc_warn_flag
4752 else
4753 ac_cpp_err=
4754 fi
4755else
4756 ac_cpp_err=yes
4757fi
4758if test -z "$ac_cpp_err"; then
4759 eval "$ac_ac_Header=yes"
252b5132 4760else
b3baf5d0 4761 echo "$as_me: failed program was:" >&5
252b5132 4762 cat conftest.$ac_ext >&5
b3baf5d0 4763 eval "$ac_ac_Header=no"
252b5132 4764fi
b3baf5d0 4765rm -f conftest.err conftest.$ac_ext
252b5132 4766fi
b3baf5d0
NC
4767echo "$as_me:4767: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4768echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4769if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<EOF
4771#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 4772EOF
b3baf5d0 4773
252b5132
RH
4774fi
4775done
4776
4777for ac_func in getpagesize
4778do
b3baf5d0
NC
4779ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4780echo "$as_me:4780: checking for $ac_func" >&5
4781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4782if eval "test \"\${$ac_ac_var+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785 cat >conftest.$ac_ext <<_ACEOF
4786#line 4786 "configure"
252b5132
RH
4787#include "confdefs.h"
4788/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 4789 which can conflict with char $ac_func (); below. */
252b5132
RH
4790#include <assert.h>
4791/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
4792#ifdef __cplusplus
4793extern "C"
4794#endif
252b5132 4795/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
4796 builtin and then its argument prototype would still apply. */
4797char $ac_func ();
4798char (*f) ();
252b5132 4799
b3baf5d0
NC
4800int
4801main ()
4802{
252b5132
RH
4803/* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4807choke me
4808#else
b3baf5d0 4809f = $ac_func;
252b5132
RH
4810#endif
4811
b3baf5d0
NC
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816rm -f conftest.$ac_objext conftest$ac_exeext
4817if { (eval echo "$as_me:4817: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>&5
4819 ac_status=$?
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest$ac_exeext'
4823 { (eval echo "$as_me:4823: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:4826: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 eval "$ac_ac_var=yes"
4829else
4830 echo "$as_me: failed program was:" >&5
4831cat conftest.$ac_ext >&5
4832eval "$ac_ac_var=no"
4833fi
4834rm -f conftest$ac_exeext conftest.$ac_ext
4835fi
4836echo "$as_me:4836: result: `eval echo '${'$ac_ac_var'}'`" >&5
4837echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4838if test `eval echo '${'$ac_ac_var'}'` = yes; then
4839 cat >>confdefs.h <<EOF
4840#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 4841EOF
252b5132 4842
252b5132
RH
4843fi
4844done
4845
b3baf5d0
NC
4846echo "$as_me:4846: checking for working mmap" >&5
4847echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4848if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4850else
4851 if test "$cross_compiling" = yes; then
4852 ac_cv_func_mmap_fixed_mapped=no
4853else
b3baf5d0
NC
4854 cat >conftest.$ac_ext <<_ACEOF
4855#line 4855 "configure"
252b5132 4856#include "confdefs.h"
252b5132
RH
4857/* Thanks to Mike Haertel and Jim Avera for this test.
4858 Here is a matrix of mmap possibilities:
4859 mmap private not fixed
4860 mmap private fixed at somewhere currently unmapped
4861 mmap private fixed at somewhere already mapped
4862 mmap shared not fixed
4863 mmap shared fixed at somewhere currently unmapped
4864 mmap shared fixed at somewhere already mapped
4865 For private mappings, we should verify that changes cannot be read()
4866 back from the file, nor mmap's back from the file at a different
4867 address. (There have been systems where private was not correctly
4868 implemented like the infamous i386 svr4.0, and systems where the
b3baf5d0 4869 VM page cache was not coherent with the file system buffer cache
252b5132
RH
4870 like early versions of FreeBSD and possibly contemporary NetBSD.)
4871 For shared mappings, we should conversely verify that changes get
4872 propogated back to all the places they're supposed to be.
4873
4874 Grep wants private fixed already mapped.
4875 The main things grep needs to know about mmap are:
4876 * does it exist and is it safe to write into the mmap'd area
4877 * how to use it (BSD variants) */
4878#include <sys/types.h>
4879#include <fcntl.h>
4880#include <sys/mman.h>
4881
b3baf5d0
NC
4882#if STDC_HEADERS || HAVE_STDLIB_H
4883# include <stdlib.h>
4884#else
4885char *malloc ();
4886#endif
4887#if HAVE_UNISTD_H
4888# include <unistd.h>
4889#endif
4890#include <sys/stat.h>
252b5132 4891
b3baf5d0
NC
4892/* This mess was copied from the GNU getpagesize.h. */
4893#if !HAVE_GETPAGESIZE
252b5132 4894/* Assume that all systems that can run configure have sys/param.h. */
b3baf5d0 4895# if !HAVE_SYS_PARAM_H
252b5132
RH
4896# define HAVE_SYS_PARAM_H 1
4897# endif
4898
4899# ifdef _SC_PAGESIZE
4900# define getpagesize() sysconf(_SC_PAGESIZE)
4901# else /* no _SC_PAGESIZE */
b3baf5d0 4902# if HAVE_SYS_PARAM_H
252b5132
RH
4903# include <sys/param.h>
4904# ifdef EXEC_PAGESIZE
4905# define getpagesize() EXEC_PAGESIZE
4906# else /* no EXEC_PAGESIZE */
4907# ifdef NBPG
4908# define getpagesize() NBPG * CLSIZE
4909# ifndef CLSIZE
4910# define CLSIZE 1
4911# endif /* no CLSIZE */
4912# else /* no NBPG */
4913# ifdef NBPC
4914# define getpagesize() NBPC
4915# else /* no NBPC */
4916# ifdef PAGESIZE
4917# define getpagesize() PAGESIZE
4918# endif /* PAGESIZE */
4919# endif /* no NBPC */
4920# endif /* no NBPG */
4921# endif /* no EXEC_PAGESIZE */
4922# else /* no HAVE_SYS_PARAM_H */
4923# define getpagesize() 8192 /* punt totally */
4924# endif /* no HAVE_SYS_PARAM_H */
4925# endif /* no _SC_PAGESIZE */
4926
4927#endif /* no HAVE_GETPAGESIZE */
4928
252b5132 4929int
b3baf5d0 4930main ()
252b5132 4931{
b3baf5d0
NC
4932 char *data, *data2, *data3;
4933 int i, pagesize;
4934 int fd;
4935
4936 pagesize = getpagesize ();
4937
4938 /* First, make a file with some known garbage in it. */
4939 data = (char *) malloc (pagesize);
4940 if (!data)
4941 exit (1);
4942 for (i = 0; i < pagesize; ++i)
4943 *(data + i) = rand ();
4944 umask (0);
4945 fd = creat ("conftest.mmap", 0600);
4946 if (fd < 0)
4947 exit (1);
4948 if (write (fd, data, pagesize) != pagesize)
4949 exit (1);
4950 close (fd);
4951
4952 /* Next, try to mmap the file at a fixed address which already has
4953 something else allocated at it. If we can, also make sure that
4954 we see the same garbage. */
4955 fd = open ("conftest.mmap", O_RDWR);
4956 if (fd < 0)
4957 exit (1);
4958 data2 = (char *) malloc (2 * pagesize);
4959 if (!data2)
4960 exit (1);
4961 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4962 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4963 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4964 exit (1);
4965 for (i = 0; i < pagesize; ++i)
4966 if (*(data + i) != *(data2 + i))
4967 exit (1);
4968
4969 /* Finally, make sure that changes to the mapped area do not
4970 percolate back to the file as seen by read(). (This is a bug on
4971 some variants of i386 svr4.0.) */
4972 for (i = 0; i < pagesize; ++i)
4973 *(data2 + i) = *(data2 + i) + 1;
4974 data3 = (char *) malloc (pagesize);
4975 if (!data3)
4976 exit (1);
4977 if (read (fd, data3, pagesize) != pagesize)
4978 exit (1);
4979 for (i = 0; i < pagesize; ++i)
4980 if (*(data + i) != *(data3 + i))
4981 exit (1);
4982 close (fd);
4983 exit (0);
252b5132 4984}
b3baf5d0
NC
4985_ACEOF
4986rm -f conftest$ac_exeext
4987if { (eval echo "$as_me:4987: \"$ac_link\"") >&5
4988 (eval $ac_link) 2>&5
4989 ac_status=$?
4990 echo "$as_me:4990: \$? = $ac_status" >&5
4991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4992 { (eval echo "$as_me:4992: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
252b5132
RH
4997 ac_cv_func_mmap_fixed_mapped=yes
4998else
b3baf5d0
NC
4999 echo "$as_me: program exited with status $ac_status" >&5
5000echo "$as_me: failed program was:" >&5
5001cat conftest.$ac_ext >&5
5002ac_cv_func_mmap_fixed_mapped=no
252b5132 5003fi
b3baf5d0 5004rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 5005fi
252b5132 5006fi
b3baf5d0
NC
5007echo "$as_me:5007: result: $ac_cv_func_mmap_fixed_mapped" >&5
5008echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 5009if test $ac_cv_func_mmap_fixed_mapped = yes; then
b3baf5d0
NC
5010
5011cat >>confdefs.h <<\EOF
252b5132
RH
5012#define HAVE_MMAP 1
5013EOF
5014
5015fi
b3baf5d0 5016rm -f conftest.mmap
252b5132 5017
b3baf5d0 5018for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
5019unistd.h values.h sys/param.h
5020do
b3baf5d0
NC
5021ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5022echo "$as_me:5022: checking for $ac_header" >&5
5023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 cat >conftest.$ac_ext <<_ACEOF
5028#line 5028 "configure"
252b5132 5029#include "confdefs.h"
b3baf5d0
NC
5030#include <$ac_header>
5031_ACEOF
5032if { (eval echo "$as_me:5032: \"$ac_cpp conftest.$ac_ext\"") >&5
5033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034 ac_status=$?
5035 egrep -v '^ *\+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:5038: \$? = $ac_status" >&5
5039 (exit $ac_status); } >/dev/null; then
5040 if test -s conftest.err; then
5041 ac_cpp_err=$ac_c_preproc_warn_flag
5042 else
5043 ac_cpp_err=
5044 fi
5045else
5046 ac_cpp_err=yes
5047fi
5048if test -z "$ac_cpp_err"; then
5049 eval "$ac_ac_Header=yes"
252b5132 5050else
b3baf5d0 5051 echo "$as_me: failed program was:" >&5
252b5132 5052 cat conftest.$ac_ext >&5
b3baf5d0 5053 eval "$ac_ac_Header=no"
252b5132 5054fi
b3baf5d0 5055rm -f conftest.err conftest.$ac_ext
252b5132 5056fi
b3baf5d0
NC
5057echo "$as_me:5057: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5058echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5059if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5060 cat >>confdefs.h <<EOF
5061#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 5062EOF
b3baf5d0 5063
252b5132
RH
5064fi
5065done
5066
b3baf5d0 5067for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
5068__argz_count __argz_stringify __argz_next
5069do
b3baf5d0
NC
5070ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5071echo "$as_me:5071: checking for $ac_func" >&5
5072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5073if eval "test \"\${$ac_ac_var+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 cat >conftest.$ac_ext <<_ACEOF
5077#line 5077 "configure"
252b5132
RH
5078#include "confdefs.h"
5079/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 5080 which can conflict with char $ac_func (); below. */
252b5132
RH
5081#include <assert.h>
5082/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
5083#ifdef __cplusplus
5084extern "C"
5085#endif
252b5132 5086/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
5087 builtin and then its argument prototype would still apply. */
5088char $ac_func ();
5089char (*f) ();
252b5132 5090
b3baf5d0
NC
5091int
5092main ()
5093{
252b5132
RH
5094/* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5098choke me
5099#else
b3baf5d0 5100f = $ac_func;
252b5132
RH
5101#endif
5102
b3baf5d0
NC
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107rm -f conftest.$ac_objext conftest$ac_exeext
5108if { (eval echo "$as_me:5108: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5110 ac_status=$?
5111 echo "$as_me:5111: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:5114: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 eval "$ac_ac_var=yes"
5120else
5121 echo "$as_me: failed program was:" >&5
5122cat conftest.$ac_ext >&5
5123eval "$ac_ac_var=no"
5124fi
5125rm -f conftest$ac_exeext conftest.$ac_ext
5126fi
5127echo "$as_me:5127: result: `eval echo '${'$ac_ac_var'}'`" >&5
5128echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5129if test `eval echo '${'$ac_ac_var'}'` = yes; then
5130 cat >>confdefs.h <<EOF
5131#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 5132EOF
252b5132 5133
252b5132
RH
5134fi
5135done
5136
252b5132 5137 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b3baf5d0
NC
5138
5139for ac_func in stpcpy
252b5132 5140do
b3baf5d0
NC
5141ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5142echo "$as_me:5142: checking for $ac_func" >&5
5143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5144if eval "test \"\${$ac_ac_var+set}\" = set"; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147 cat >conftest.$ac_ext <<_ACEOF
5148#line 5148 "configure"
252b5132
RH
5149#include "confdefs.h"
5150/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 5151 which can conflict with char $ac_func (); below. */
252b5132
RH
5152#include <assert.h>
5153/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
5154#ifdef __cplusplus
5155extern "C"
5156#endif
252b5132 5157/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
5158 builtin and then its argument prototype would still apply. */
5159char $ac_func ();
5160char (*f) ();
252b5132 5161
b3baf5d0
NC
5162int
5163main ()
5164{
252b5132
RH
5165/* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5169choke me
5170#else
b3baf5d0 5171f = $ac_func;
252b5132
RH
5172#endif
5173
b3baf5d0
NC
5174 ;
5175 return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext conftest$ac_exeext
5179if { (eval echo "$as_me:5179: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5181 ac_status=$?
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:5185: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:5188: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 eval "$ac_ac_var=yes"
5191else
5192 echo "$as_me: failed program was:" >&5
5193cat conftest.$ac_ext >&5
5194eval "$ac_ac_var=no"
5195fi
5196rm -f conftest$ac_exeext conftest.$ac_ext
5197fi
5198echo "$as_me:5198: result: `eval echo '${'$ac_ac_var'}'`" >&5
5199echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5200if test `eval echo '${'$ac_ac_var'}'` = yes; then
5201 cat >>confdefs.h <<EOF
5202#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 5203EOF
252b5132 5204
252b5132
RH
5205fi
5206done
5207
5208 fi
5209 if test "${ac_cv_func_stpcpy}" = "yes"; then
b3baf5d0
NC
5210
5211cat >>confdefs.h <<\EOF
252b5132
RH
5212#define HAVE_STPCPY 1
5213EOF
5214
5215 fi
5216
5217 if test $ac_cv_header_locale_h = yes; then
b3baf5d0
NC
5218 echo "$as_me:5218: checking for LC_MESSAGES" >&5
5219echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5220if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5222else
b3baf5d0
NC
5223 cat >conftest.$ac_ext <<_ACEOF
5224#line 5224 "configure"
252b5132
RH
5225#include "confdefs.h"
5226#include <locale.h>
b3baf5d0
NC
5227int
5228main ()
5229{
252b5132 5230return LC_MESSAGES
b3baf5d0
NC
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235rm -f conftest.$ac_objext conftest$ac_exeext
5236if { (eval echo "$as_me:5236: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5238 ac_status=$?
5239 echo "$as_me:5239: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest$ac_exeext'
5242 { (eval echo "$as_me:5242: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:5245: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
252b5132
RH
5247 am_cv_val_LC_MESSAGES=yes
5248else
b3baf5d0
NC
5249 echo "$as_me: failed program was:" >&5
5250cat conftest.$ac_ext >&5
5251am_cv_val_LC_MESSAGES=no
252b5132 5252fi
b3baf5d0 5253rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 5254fi
b3baf5d0
NC
5255echo "$as_me:5255: result: $am_cv_val_LC_MESSAGES" >&5
5256echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 5257 if test $am_cv_val_LC_MESSAGES = yes; then
b3baf5d0
NC
5258
5259cat >>confdefs.h <<\EOF
252b5132
RH
5260#define HAVE_LC_MESSAGES 1
5261EOF
5262
5263 fi
5264 fi
b3baf5d0
NC
5265 echo "$as_me:5265: checking whether NLS is requested" >&5
5266echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
5267 # Check whether --enable-nls or --disable-nls was given.
5268if test "${enable_nls+set}" = set; then
5269 enableval="$enable_nls"
5270 USE_NLS=$enableval
5271else
5272 USE_NLS=yes
b3baf5d0
NC
5273fi;
5274 echo "$as_me:5274: result: $USE_NLS" >&5
5275echo "${ECHO_T}$USE_NLS" >&6
252b5132
RH
5276
5277 USE_INCLUDED_LIBINTL=no
5278
5279 if test "$USE_NLS" = "yes"; then
b3baf5d0
NC
5280
5281cat >>confdefs.h <<\EOF
252b5132
RH
5282#define ENABLE_NLS 1
5283EOF
5284
b3baf5d0
NC
5285 echo "$as_me:5285: checking whether included gettext is requested" >&5
5286echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5287
5288# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
5289if test "${with_included_gettext+set}" = set; then
5290 withval="$with_included_gettext"
5291 nls_cv_force_use_gnu_gettext=$withval
5292else
5293 nls_cv_force_use_gnu_gettext=no
b3baf5d0
NC
5294fi;
5295 echo "$as_me:5295: result: $nls_cv_force_use_gnu_gettext" >&5
5296echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
5297
5298 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5299 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5300 nls_cv_header_intl=
5301 nls_cv_header_libgt=
5302 CATOBJEXT=NONE
5303
b3baf5d0
NC
5304 echo "$as_me:5304: checking for libintl.h" >&5
5305echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5306if test "${ac_cv_header_libintl_h+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5308else
b3baf5d0
NC
5309 cat >conftest.$ac_ext <<_ACEOF
5310#line 5310 "configure"
252b5132
RH
5311#include "confdefs.h"
5312#include <libintl.h>
b3baf5d0
NC
5313_ACEOF
5314if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5
5315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5316 ac_status=$?
5317 egrep -v '^ *\+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); } >/dev/null; then
5322 if test -s conftest.err; then
5323 ac_cpp_err=$ac_c_preproc_warn_flag
5324 else
5325 ac_cpp_err=
5326 fi
5327else
5328 ac_cpp_err=yes
5329fi
5330if test -z "$ac_cpp_err"; then
5331 ac_cv_header_libintl_h=yes
252b5132 5332else
b3baf5d0 5333 echo "$as_me: failed program was:" >&5
252b5132 5334 cat conftest.$ac_ext >&5
b3baf5d0 5335 ac_cv_header_libintl_h=no
252b5132 5336fi
b3baf5d0 5337rm -f conftest.err conftest.$ac_ext
252b5132 5338fi
b3baf5d0
NC
5339echo "$as_me:5339: result: $ac_cv_header_libintl_h" >&5
5340echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5341if test $ac_cv_header_libintl_h = yes; then
5342 echo "$as_me:5342: checking for gettext in libc" >&5
5343echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5344if test "${gt_cv_func_gettext_libc+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5346else
b3baf5d0
NC
5347 cat >conftest.$ac_ext <<_ACEOF
5348#line 5348 "configure"
252b5132
RH
5349#include "confdefs.h"
5350#include <libintl.h>
b3baf5d0
NC
5351int
5352main ()
5353{
252b5132 5354return (int) gettext ("")
b3baf5d0
NC
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext conftest$ac_exeext
5360if { (eval echo "$as_me:5360: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5362 ac_status=$?
5363 echo "$as_me:5363: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:5366: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
252b5132
RH
5371 gt_cv_func_gettext_libc=yes
5372else
b3baf5d0
NC
5373 echo "$as_me: failed program was:" >&5
5374cat conftest.$ac_ext >&5
5375gt_cv_func_gettext_libc=no
252b5132 5376fi
b3baf5d0 5377rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 5378fi
b3baf5d0
NC
5379echo "$as_me:5379: result: $gt_cv_func_gettext_libc" >&5
5380echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
5381
5382 if test "$gt_cv_func_gettext_libc" != "yes"; then
b3baf5d0
NC
5383 echo "$as_me:5383: checking for bindtextdomain in -lintl" >&5
5384echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5385if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5387else
b3baf5d0 5388 ac_check_lib_save_LIBS=$LIBS
252b5132 5389LIBS="-lintl $LIBS"
b3baf5d0
NC
5390cat >conftest.$ac_ext <<_ACEOF
5391#line 5391 "configure"
252b5132 5392#include "confdefs.h"
b3baf5d0 5393
252b5132 5394/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
5395#ifdef __cplusplus
5396extern "C"
5397#endif
252b5132 5398/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
5399 builtin and then its argument prototype would still apply. */
5400char bindtextdomain ();
5401int
5402main ()
5403{
5404bindtextdomain ();
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext conftest$ac_exeext
5410if { (eval echo "$as_me:5410: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>&5
5412 ac_status=$?
5413 echo "$as_me:5413: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -s conftest$ac_exeext'
5416 { (eval echo "$as_me:5416: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:5419: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_cv_lib_intl_bindtextdomain=yes
5422else
5423 echo "$as_me: failed program was:" >&5
5424cat conftest.$ac_ext >&5
5425ac_cv_lib_intl_bindtextdomain=no
5426fi
5427rm -f conftest$ac_exeext conftest.$ac_ext
5428LIBS=$ac_check_lib_save_LIBS
5429fi
5430echo "$as_me:5430: result: $ac_cv_lib_intl_bindtextdomain" >&5
5431echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5432if test $ac_cv_lib_intl_bindtextdomain = yes; then
5433 echo "$as_me:5433: checking for gettext in libintl" >&5
5434echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5435if test "${gt_cv_func_gettext_libintl+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 cat >conftest.$ac_ext <<_ACEOF
5439#line 5439 "configure"
252b5132
RH
5440#include "confdefs.h"
5441
b3baf5d0
NC
5442int
5443main ()
5444{
252b5132 5445return (int) gettext ("")
b3baf5d0
NC
5446 ;
5447 return 0;
5448}
5449_ACEOF
5450rm -f conftest.$ac_objext conftest$ac_exeext
5451if { (eval echo "$as_me:5451: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5453 ac_status=$?
5454 echo "$as_me:5454: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -s conftest$ac_exeext'
5457 { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:5460: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
252b5132
RH
5462 gt_cv_func_gettext_libintl=yes
5463else
b3baf5d0
NC
5464 echo "$as_me: failed program was:" >&5
5465cat conftest.$ac_ext >&5
5466gt_cv_func_gettext_libintl=no
252b5132 5467fi
b3baf5d0 5468rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 5469fi
b3baf5d0
NC
5470echo "$as_me:5470: result: $gt_cv_func_gettext_libintl" >&5
5471echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
5472fi
5473
5474 fi
5475
5476 if test "$gt_cv_func_gettext_libc" = "yes" \
5477 || test "$gt_cv_func_gettext_libintl" = "yes"; then
b3baf5d0
NC
5478
5479cat >>confdefs.h <<\EOF
252b5132
RH
5480#define HAVE_GETTEXT 1
5481EOF
5482
5483 # Extract the first word of "msgfmt", so it can be a program name with args.
5484set dummy msgfmt; ac_word=$2
b3baf5d0
NC
5485echo "$as_me:5485: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487if test "${ac_cv_path_MSGFMT+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5489else
5490 case "$MSGFMT" in
5491 /*)
5492 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5493 ;;
5494 *)
5495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5496 for ac_dir in $PATH; do
5497 test -z "$ac_dir" && ac_dir=.
5498 if test -f $ac_dir/$ac_word; then
5499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5500 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5501 break
5502 fi
5503 fi
5504 done
5505 IFS="$ac_save_ifs"
5506 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5507 ;;
5508esac
5509fi
5510MSGFMT="$ac_cv_path_MSGFMT"
5511if test -n "$MSGFMT"; then
b3baf5d0
NC
5512 echo "$as_me:5512: result: $MSGFMT" >&5
5513echo "${ECHO_T}$MSGFMT" >&6
252b5132 5514else
b3baf5d0
NC
5515 echo "$as_me:5515: result: no" >&5
5516echo "${ECHO_T}no" >&6
252b5132
RH
5517fi
5518 if test "$MSGFMT" != "no"; then
b3baf5d0
NC
5519
5520for ac_func in dcgettext
252b5132 5521do
b3baf5d0
NC
5522ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5523echo "$as_me:5523: checking for $ac_func" >&5
5524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5525if eval "test \"\${$ac_ac_var+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 cat >conftest.$ac_ext <<_ACEOF
5529#line 5529 "configure"
252b5132
RH
5530#include "confdefs.h"
5531/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 5532 which can conflict with char $ac_func (); below. */
252b5132
RH
5533#include <assert.h>
5534/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
5535#ifdef __cplusplus
5536extern "C"
5537#endif
252b5132 5538/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
5539 builtin and then its argument prototype would still apply. */
5540char $ac_func ();
5541char (*f) ();
252b5132 5542
b3baf5d0
NC
5543int
5544main ()
5545{
252b5132
RH
5546/* The GNU C library defines this for functions which it implements
5547 to always fail with ENOSYS. Some functions are actually named
5548 something starting with __ and the normal name is an alias. */
5549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5550choke me
5551#else
b3baf5d0 5552f = $ac_func;
252b5132
RH
5553#endif
5554
b3baf5d0
NC
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext conftest$ac_exeext
5560if { (eval echo "$as_me:5560: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5562 ac_status=$?
5563 echo "$as_me:5563: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -s conftest$ac_exeext'
5566 { (eval echo "$as_me:5566: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:5569: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 eval "$ac_ac_var=yes"
5572else
5573 echo "$as_me: failed program was:" >&5
5574cat conftest.$ac_ext >&5
5575eval "$ac_ac_var=no"
5576fi
5577rm -f conftest$ac_exeext conftest.$ac_ext
5578fi
5579echo "$as_me:5579: result: `eval echo '${'$ac_ac_var'}'`" >&5
5580echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5581if test `eval echo '${'$ac_ac_var'}'` = yes; then
5582 cat >>confdefs.h <<EOF
5583#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 5584EOF
252b5132 5585
252b5132
RH
5586fi
5587done
5588
5589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5590set dummy gmsgfmt; ac_word=$2
b3baf5d0
NC
5591echo "$as_me:5591: checking for $ac_word" >&5
5592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5593if test "${ac_cv_path_GMSGFMT+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5595else
b3baf5d0
NC
5596 case $GMSGFMT in
5597 [\\/]* | ?:[\\/]*)
252b5132
RH
5598 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5599 ;;
252b5132 5600 *)
b3baf5d0
NC
5601 ac_save_IFS=$IFS; IFS=$ac_path_separator
5602ac_dummy="$PATH"
5603for ac_dir in $ac_dummy; do
5604 IFS=$ac_save_IFS
5605 test -z "$ac_dir" && ac_dir=.
5606 if $as_executable_p "$ac_dir/$ac_word"; then
5607 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5608 break
5609fi
5610done
5611
252b5132
RH
5612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5613 ;;
5614esac
5615fi
b3baf5d0
NC
5616GMSGFMT=$ac_cv_path_GMSGFMT
5617
252b5132 5618if test -n "$GMSGFMT"; then
b3baf5d0
NC
5619 echo "$as_me:5619: result: $GMSGFMT" >&5
5620echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5621else
b3baf5d0
NC
5622 echo "$as_me:5622: result: no" >&5
5623echo "${ECHO_T}no" >&6
252b5132
RH
5624fi
5625
5626 # Extract the first word of "xgettext", so it can be a program name with args.
5627set dummy xgettext; ac_word=$2
b3baf5d0
NC
5628echo "$as_me:5628: checking for $ac_word" >&5
5629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630if test "${ac_cv_path_XGETTEXT+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5632else
5633 case "$XGETTEXT" in
5634 /*)
5635 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5636 ;;
5637 *)
5638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5639 for ac_dir in $PATH; do
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/$ac_word; then
5642 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5643 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5644 break
5645 fi
5646 fi
5647 done
5648 IFS="$ac_save_ifs"
5649 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5650 ;;
5651esac
5652fi
5653XGETTEXT="$ac_cv_path_XGETTEXT"
5654if test -n "$XGETTEXT"; then
b3baf5d0
NC
5655 echo "$as_me:5655: result: $XGETTEXT" >&5
5656echo "${ECHO_T}$XGETTEXT" >&6
252b5132 5657else
b3baf5d0
NC
5658 echo "$as_me:5658: result: no" >&5
5659echo "${ECHO_T}no" >&6
252b5132
RH
5660fi
5661
b3baf5d0
NC
5662 cat >conftest.$ac_ext <<_ACEOF
5663#line 5663 "configure"
252b5132
RH
5664#include "confdefs.h"
5665
b3baf5d0
NC
5666int
5667main ()
5668{
252b5132
RH
5669extern int _nl_msg_cat_cntr;
5670 return _nl_msg_cat_cntr
b3baf5d0
NC
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
5676if { (eval echo "$as_me:5676: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>&5
5678 ac_status=$?
5679 echo "$as_me:5679: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:5682: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:5685: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
252b5132
RH
5687 CATOBJEXT=.gmo
5688 DATADIRNAME=share
5689else
b3baf5d0
NC
5690 echo "$as_me: failed program was:" >&5
5691cat conftest.$ac_ext >&5
5692CATOBJEXT=.mo
252b5132
RH
5693 DATADIRNAME=lib
5694fi
b3baf5d0 5695rm -f conftest$ac_exeext conftest.$ac_ext
252b5132
RH
5696 INSTOBJEXT=.mo
5697 fi
5698 fi
252b5132 5699
b3baf5d0 5700fi
252b5132 5701
252b5132
RH
5702 if test "$CATOBJEXT" = "NONE"; then
5703 nls_cv_use_gnu_gettext=yes
5704 fi
5705 fi
5706
5707 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5708 INTLOBJS="\$(GETTOBJS)"
5709 # Extract the first word of "msgfmt", so it can be a program name with args.
5710set dummy msgfmt; ac_word=$2
b3baf5d0
NC
5711echo "$as_me:5711: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713if test "${ac_cv_path_MSGFMT+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5715else
5716 case "$MSGFMT" in
5717 /*)
5718 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5719 ;;
5720 *)
5721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5722 for ac_dir in $PATH; do
5723 test -z "$ac_dir" && ac_dir=.
5724 if test -f $ac_dir/$ac_word; then
5725 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5726 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5727 break
5728 fi
5729 fi
5730 done
5731 IFS="$ac_save_ifs"
5732 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5733 ;;
5734esac
5735fi
5736MSGFMT="$ac_cv_path_MSGFMT"
5737if test -n "$MSGFMT"; then
b3baf5d0
NC
5738 echo "$as_me:5738: result: $MSGFMT" >&5
5739echo "${ECHO_T}$MSGFMT" >&6
252b5132 5740else
b3baf5d0
NC
5741 echo "$as_me:5741: result: no" >&5
5742echo "${ECHO_T}no" >&6
252b5132
RH
5743fi
5744
5745 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5746set dummy gmsgfmt; ac_word=$2
b3baf5d0
NC
5747echo "$as_me:5747: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749if test "${ac_cv_path_GMSGFMT+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5751else
b3baf5d0
NC
5752 case $GMSGFMT in
5753 [\\/]* | ?:[\\/]*)
252b5132
RH
5754 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5755 ;;
252b5132 5756 *)
b3baf5d0
NC
5757 ac_save_IFS=$IFS; IFS=$ac_path_separator
5758ac_dummy="$PATH"
5759for ac_dir in $ac_dummy; do
5760 IFS=$ac_save_IFS
5761 test -z "$ac_dir" && ac_dir=.
5762 if $as_executable_p "$ac_dir/$ac_word"; then
5763 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5764 break
5765fi
5766done
5767
252b5132
RH
5768 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5769 ;;
5770esac
5771fi
b3baf5d0
NC
5772GMSGFMT=$ac_cv_path_GMSGFMT
5773
252b5132 5774if test -n "$GMSGFMT"; then
b3baf5d0
NC
5775 echo "$as_me:5775: result: $GMSGFMT" >&5
5776echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5777else
b3baf5d0
NC
5778 echo "$as_me:5778: result: no" >&5
5779echo "${ECHO_T}no" >&6
252b5132
RH
5780fi
5781
5782 # Extract the first word of "xgettext", so it can be a program name with args.
5783set dummy xgettext; ac_word=$2
b3baf5d0
NC
5784echo "$as_me:5784: checking for $ac_word" >&5
5785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786if test "${ac_cv_path_XGETTEXT+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5788else
5789 case "$XGETTEXT" in
5790 /*)
5791 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5792 ;;
5793 *)
5794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5795 for ac_dir in $PATH; do
5796 test -z "$ac_dir" && ac_dir=.
5797 if test -f $ac_dir/$ac_word; then
5798 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5799 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5800 break
5801 fi
5802 fi
5803 done
5804 IFS="$ac_save_ifs"
5805 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5806 ;;
5807esac
5808fi
5809XGETTEXT="$ac_cv_path_XGETTEXT"
5810if test -n "$XGETTEXT"; then
b3baf5d0
NC
5811 echo "$as_me:5811: result: $XGETTEXT" >&5
5812echo "${ECHO_T}$XGETTEXT" >&6
252b5132 5813else
b3baf5d0
NC
5814 echo "$as_me:5814: result: no" >&5
5815echo "${ECHO_T}no" >&6
252b5132
RH
5816fi
5817
252b5132
RH
5818 USE_INCLUDED_LIBINTL=yes
5819 CATOBJEXT=.gmo
5820 INSTOBJEXT=.mo
5821 DATADIRNAME=share
5822 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5823 INTLLIBS=$INTLDEPS
5824 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5825 nls_cv_header_intl=libintl.h
5826 nls_cv_header_libgt=libgettext.h
5827 fi
5828
5829 if test "$XGETTEXT" != ":"; then
5830 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5831 : ;
5832 else
b3baf5d0
NC
5833 echo "$as_me:5833: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5834echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
5835 XGETTEXT=":"
5836 fi
5837 fi
5838
5839 # We need to process the po/ directory.
5840 POSUB=po
5841 else
5842 DATADIRNAME=share
5843 nls_cv_header_intl=libintl.h
5844 nls_cv_header_libgt=libgettext.h
5845 fi
5846
5847 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5848 # because some of the sources are only built for this goal.
5849 if test "$PACKAGE" = gettext; then
5850 USE_NLS=yes
5851 USE_INCLUDED_LIBINTL=yes
5852 fi
5853
5854 for lang in $ALL_LINGUAS; do
5855 GMOFILES="$GMOFILES $lang.gmo"
5856 POFILES="$POFILES $lang.po"
5857 done
5858
252b5132
RH
5859 if test "x$CATOBJEXT" != "x"; then
5860 if test "x$ALL_LINGUAS" = "x"; then
5861 LINGUAS=
5862 else
b3baf5d0
NC
5863 echo "$as_me:5863: checking for catalogs to be installed" >&5
5864echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
5865 NEW_LINGUAS=
5866 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5867 case "$ALL_LINGUAS" in
5868 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5869 esac
5870 done
5871 LINGUAS=$NEW_LINGUAS
b3baf5d0
NC
5872 echo "$as_me:5872: result: $LINGUAS" >&5
5873echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
5874 fi
5875
5876 if test -n "$LINGUAS"; then
5877 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5878 fi
5879 fi
5880
5881 if test $ac_cv_header_locale_h = yes; then
5882 INCLUDE_LOCALE_H="#include <locale.h>"
5883 else
5884 INCLUDE_LOCALE_H="\
5885/* The system does not provide the header <locale.h>. Take care yourself. */"
5886 fi
252b5132
RH
5887
5888 if test -f $srcdir/po2tbl.sed.in; then
5889 if test "$CATOBJEXT" = ".cat"; then
b3baf5d0
NC
5890 echo "$as_me:5890: checking for linux/version.h" >&5
5891echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5892if test "${ac_cv_header_linux_version_h+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
5896#line 5896 "configure"
252b5132
RH
5897#include "confdefs.h"
5898#include <linux/version.h>
b3baf5d0
NC
5899_ACEOF
5900if { (eval echo "$as_me:5900: \"$ac_cpp conftest.$ac_ext\"") >&5
5901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5902 ac_status=$?
5903 egrep -v '^ *\+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit $ac_status); } >/dev/null; then
5908 if test -s conftest.err; then
5909 ac_cpp_err=$ac_c_preproc_warn_flag
5910 else
5911 ac_cpp_err=
5912 fi
5913else
5914 ac_cpp_err=yes
5915fi
5916if test -z "$ac_cpp_err"; then
5917 ac_cv_header_linux_version_h=yes
252b5132 5918else
b3baf5d0 5919 echo "$as_me: failed program was:" >&5
252b5132 5920 cat conftest.$ac_ext >&5
b3baf5d0 5921 ac_cv_header_linux_version_h=no
252b5132 5922fi
b3baf5d0 5923rm -f conftest.err conftest.$ac_ext
252b5132 5924fi
b3baf5d0
NC
5925echo "$as_me:5925: result: $ac_cv_header_linux_version_h" >&5
5926echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5927if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
5928 msgformat=linux
5929else
b3baf5d0 5930 msgformat=xopen
252b5132
RH
5931fi
5932
252b5132
RH
5933 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5934 fi
5935 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5936 $srcdir/po2tbl.sed.in > po2tbl.sed
5937 fi
5938
5939 if test "$PACKAGE" = "gettext"; then
5940 GT_NO="#NO#"
5941 GT_YES=
5942 else
5943 GT_NO=
5944 GT_YES="#YES#"
5945 fi
252b5132
RH
5946
5947 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
252b5132
RH
5948
5949 l=
252b5132
RH
5950
5951 if test -d $srcdir/po; then
5952 test -d po || mkdir po
5953 if test "x$srcdir" != "x."; then
5954 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5955 posrcprefix="$srcdir/"
5956 else
5957 posrcprefix="../$srcdir/"
5958 fi
5959 else
5960 posrcprefix="../"
5961 fi
5962 rm -f po/POTFILES
5963 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5964 < $srcdir/po/POTFILES.in > po/POTFILES
5965 fi
252b5132
RH
5966
5967# Permit host specific settings.
5968. ${srcdir}/configure.host
5969
252b5132
RH
5970# Find a good install program. We prefer a C program (faster),
5971# so one script is as good as another. But avoid the broken or
5972# incompatible versions:
5973# SysV /etc/install, /usr/sbin/install
5974# SunOS /usr/etc/install
5975# IRIX /sbin/install
5976# AIX /bin/install
b3baf5d0 5977# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
5978# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5979# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5980# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5981# ./install, which can be erroneously created by make from ./install.sh.
b3baf5d0
NC
5982echo "$as_me:5982: checking for a BSD compatible install" >&5
5983echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
252b5132 5984if test -z "$INSTALL"; then
b3baf5d0
NC
5985if test "${ac_cv_path_install+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5987else
b3baf5d0 5988 ac_save_IFS=$IFS; IFS=$ac_path_separator
252b5132 5989 for ac_dir in $PATH; do
b3baf5d0 5990 IFS=$ac_save_IFS
252b5132 5991 # Account for people who put trailing slashes in PATH elements.
b3baf5d0
NC
5992 case $ac_dir/ in
5993 / | ./ | .// | /cC/* \
5994 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5995 | /usr/ucb/* ) ;;
252b5132
RH
5996 *)
5997 # OSF1 and SCO ODT 3.0 have their own names for install.
5998 # Don't use installbsd from OSF since it installs stuff as root
5999 # by default.
6000 for ac_prog in ginstall scoinst install; do
b3baf5d0 6001 if $as_executable_p "$ac_dir/$ac_prog"; then
252b5132 6002 if test $ac_prog = install &&
b3baf5d0 6003 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
252b5132
RH
6004 # AIX install. It has an incompatible calling convention.
6005 :
b3baf5d0
NC
6006 elif test $ac_prog = install &&
6007 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6008 # program-specific install script used by HP pwplus--don't use.
6009 :
252b5132
RH
6010 else
6011 ac_cv_path_install="$ac_dir/$ac_prog -c"
6012 break 2
6013 fi
6014 fi
6015 done
6016 ;;
6017 esac
6018 done
252b5132
RH
6019
6020fi
6021 if test "${ac_cv_path_install+set}" = set; then
b3baf5d0 6022 INSTALL=$ac_cv_path_install
252b5132
RH
6023 else
6024 # As a last resort, use the slow shell script. We don't cache a
6025 # path for INSTALL within a source directory, because that will
6026 # break other packages using the cache if that directory is
6027 # removed, or if the path is relative.
b3baf5d0 6028 INSTALL=$ac_install_sh
252b5132
RH
6029 fi
6030fi
b3baf5d0
NC
6031echo "$as_me:6031: result: $INSTALL" >&5
6032echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
6033
6034# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6035# It thinks the first close brace ends the variable substitution.
6036test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6037
b3baf5d0 6038test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
6039
6040test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6041
252b5132
RH
6042BFD_HOST_64BIT_LONG=0
6043BFD_HOST_64_BIT_DEFINED=0
6044BFD_HOST_64_BIT=
6045BFD_HOST_U_64_BIT=
6046if test "x${HOST_64BIT_TYPE}" = "xlong"; then
6047 BFD_HOST_64BIT_LONG=1
6048elif test "x${HOST_64BIT_TYPE}" != "x"; then
6049 BFD_HOST_64_BIT_DEFINED=1
6050 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
6051 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
6052fi
6053
252b5132
RH
6054# Put a plausible default for CC_FOR_BUILD in Makefile.
6055if test -z "$CC_FOR_BUILD"; then
6056 if test "x$cross_compiling" = "xno"; then
6057 CC_FOR_BUILD='$(CC)'
6058 else
6059 CC_FOR_BUILD=gcc
6060 fi
6061fi
6062
6063# Also set EXEEXT_FOR_BUILD.
6064if test "x$cross_compiling" = "xno"; then
6065 EXEEXT_FOR_BUILD='$(EXEEXT)'
6066else
b3baf5d0
NC
6067 echo "$as_me:6067: checking for build system executable suffix" >&5
6068echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
6069if test "${bfd_cv_build_exeext+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6071else
aab08431
ILT
6072 rm -f conftest*
6073 echo 'int main () { return 0; }' > conftest.c
6074 bfd_cv_build_exeext=
6075 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
6076 for file in conftest.*; do
6077 case $file in
6078 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
6079 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
6080 esac
6081 done
6082 rm -f conftest*
6083 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 6084fi
b3baf5d0
NC
6085echo "$as_me:6085: result: $bfd_cv_build_exeext" >&5
6086echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
6087 EXEEXT_FOR_BUILD=""
6088 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
6089fi
6090
b3baf5d0 6091for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 6092do
b3baf5d0
NC
6093ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6094echo "$as_me:6094: checking for $ac_header" >&5
6095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6096if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099 cat >conftest.$ac_ext <<_ACEOF
6100#line 6100 "configure"
252b5132 6101#include "confdefs.h"
b3baf5d0
NC
6102#include <$ac_header>
6103_ACEOF
6104if { (eval echo "$as_me:6104: \"$ac_cpp conftest.$ac_ext\"") >&5
6105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6106 ac_status=$?
6107 egrep -v '^ *\+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:6110: \$? = $ac_status" >&5
6111 (exit $ac_status); } >/dev/null; then
6112 if test -s conftest.err; then
6113 ac_cpp_err=$ac_c_preproc_warn_flag
6114 else
6115 ac_cpp_err=
6116 fi
6117else
6118 ac_cpp_err=yes
6119fi
6120if test -z "$ac_cpp_err"; then
6121 eval "$ac_ac_Header=yes"
252b5132 6122else
b3baf5d0 6123 echo "$as_me: failed program was:" >&5
252b5132 6124 cat conftest.$ac_ext >&5
b3baf5d0 6125 eval "$ac_ac_Header=no"
252b5132 6126fi
b3baf5d0 6127rm -f conftest.err conftest.$ac_ext
252b5132 6128fi
b3baf5d0
NC
6129echo "$as_me:6129: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6130echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6131if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6132 cat >>confdefs.h <<EOF
6133#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 6134EOF
b3baf5d0 6135
252b5132
RH
6136fi
6137done
6138
b3baf5d0 6139for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 6140do
b3baf5d0
NC
6141ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6142echo "$as_me:6142: checking for $ac_header" >&5
6143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6144if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 cat >conftest.$ac_ext <<_ACEOF
6148#line 6148 "configure"
252b5132 6149#include "confdefs.h"
b3baf5d0
NC
6150#include <$ac_header>
6151_ACEOF
6152if { (eval echo "$as_me:6152: \"$ac_cpp conftest.$ac_ext\"") >&5
6153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6154 ac_status=$?
6155 egrep -v '^ *\+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:6158: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev/null; then
6160 if test -s conftest.err; then
6161 ac_cpp_err=$ac_c_preproc_warn_flag
6162 else
6163 ac_cpp_err=
6164 fi
6165else
6166 ac_cpp_err=yes
6167fi
6168if test -z "$ac_cpp_err"; then
6169 eval "$ac_ac_Header=yes"
252b5132 6170else
b3baf5d0 6171 echo "$as_me: failed program was:" >&5
252b5132 6172 cat conftest.$ac_ext >&5
b3baf5d0 6173 eval "$ac_ac_Header=no"
252b5132 6174fi
b3baf5d0 6175rm -f conftest.err conftest.$ac_ext
252b5132 6176fi
b3baf5d0
NC
6177echo "$as_me:6177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6178echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6179if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6180 cat >>confdefs.h <<EOF
6181#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 6182EOF
b3baf5d0 6183
252b5132
RH
6184fi
6185done
6186
b3baf5d0
NC
6187echo "$as_me:6187: checking whether time.h and sys/time.h may both be included" >&5
6188echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6189if test "${ac_cv_header_time+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6191else
b3baf5d0
NC
6192 cat >conftest.$ac_ext <<_ACEOF
6193#line 6193 "configure"
252b5132
RH
6194#include "confdefs.h"
6195#include <sys/types.h>
6196#include <sys/time.h>
6197#include <time.h>
b3baf5d0
NC
6198
6199int
6200main ()
6201{
252b5132 6202struct tm *tp;
b3baf5d0
NC
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext
6208if { (eval echo "$as_me:6208: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 echo "$as_me:6211: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:6214: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:6217: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
252b5132
RH
6219 ac_cv_header_time=yes
6220else
b3baf5d0
NC
6221 echo "$as_me: failed program was:" >&5
6222cat conftest.$ac_ext >&5
6223ac_cv_header_time=no
252b5132 6224fi
b3baf5d0 6225rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 6226fi
b3baf5d0
NC
6227echo "$as_me:6227: result: $ac_cv_header_time" >&5
6228echo "${ECHO_T}$ac_cv_header_time" >&6
252b5132 6229if test $ac_cv_header_time = yes; then
b3baf5d0
NC
6230
6231cat >>confdefs.h <<\EOF
252b5132
RH
6232#define TIME_WITH_SYS_TIME 1
6233EOF
6234
6235fi
6236
6237ac_header_dirent=no
b3baf5d0
NC
6238for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6239 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
6240echo "$as_me:6240: checking for $ac_hdr that defines DIR" >&5
6241echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6242if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245 cat >conftest.$ac_ext <<_ACEOF
6246#line 6246 "configure"
252b5132
RH
6247#include "confdefs.h"
6248#include <sys/types.h>
6249#include <$ac_hdr>
b3baf5d0
NC
6250
6251int
6252main ()
6253{
252b5132 6254DIR *dirp = 0;
b3baf5d0
NC
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>&5
6262 ac_status=$?
6263 echo "$as_me:6263: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:6266: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 eval "$ac_ac_Header=yes"
252b5132 6272else
b3baf5d0
NC
6273 echo "$as_me: failed program was:" >&5
6274cat conftest.$ac_ext >&5
6275eval "$ac_ac_Header=no"
252b5132 6276fi
b3baf5d0 6277rm -f conftest.$ac_objext conftest.$ac_ext
252b5132 6278fi
b3baf5d0
NC
6279echo "$as_me:6279: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6280echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6281if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6282 cat >>confdefs.h <<EOF
6283#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
252b5132 6284EOF
b3baf5d0
NC
6285
6286ac_header_dirent=$ac_hdr; break
252b5132 6287fi
b3baf5d0 6288
252b5132
RH
6289done
6290# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6291if test $ac_header_dirent = dirent.h; then
b3baf5d0
NC
6292 echo "$as_me:6292: checking for opendir in -ldir" >&5
6293echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6294if test "${ac_cv_lib_dir_opendir+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6296else
b3baf5d0 6297 ac_check_lib_save_LIBS=$LIBS
252b5132 6298LIBS="-ldir $LIBS"
b3baf5d0
NC
6299cat >conftest.$ac_ext <<_ACEOF
6300#line 6300 "configure"
252b5132 6301#include "confdefs.h"
b3baf5d0 6302
252b5132 6303/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
6304#ifdef __cplusplus
6305extern "C"
6306#endif
252b5132 6307/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
6308 builtin and then its argument prototype would still apply. */
6309char opendir ();
6310int
6311main ()
6312{
6313opendir ();
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318rm -f conftest.$ac_objext conftest$ac_exeext
6319if { (eval echo "$as_me:6319: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>&5
6321 ac_status=$?
6322 echo "$as_me:6322: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest$ac_exeext'
6325 { (eval echo "$as_me:6325: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:6328: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_lib_dir_opendir=yes
6331else
6332 echo "$as_me: failed program was:" >&5
6333cat conftest.$ac_ext >&5
6334ac_cv_lib_dir_opendir=no
6335fi
6336rm -f conftest$ac_exeext conftest.$ac_ext
6337LIBS=$ac_check_lib_save_LIBS
6338fi
6339echo "$as_me:6339: result: $ac_cv_lib_dir_opendir" >&5
6340echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6341if test $ac_cv_lib_dir_opendir = yes; then
252b5132 6342 LIBS="$LIBS -ldir"
252b5132
RH
6343fi
6344
6345else
b3baf5d0
NC
6346 echo "$as_me:6346: checking for opendir in -lx" >&5
6347echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6348if test "${ac_cv_lib_x_opendir+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 ac_check_lib_save_LIBS=$LIBS
6352LIBS="-lx $LIBS"
6353cat >conftest.$ac_ext <<_ACEOF
6354#line 6354 "configure"
6355#include "confdefs.h"
252b5132 6356
b3baf5d0
NC
6357/* Override any gcc2 internal prototype to avoid an error. */
6358#ifdef __cplusplus
6359extern "C"
6360#endif
6361/* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363char opendir ();
6364int
6365main ()
6366{
6367opendir ();
6368 ;
6369 return 0;
6370}
6371_ACEOF
6372rm -f conftest.$ac_objext conftest$ac_exeext
6373if { (eval echo "$as_me:6373: \"$ac_link\"") >&5
6374 (eval $ac_link) 2>&5
6375 ac_status=$?
6376 echo "$as_me:6376: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:6379: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:6382: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_lib_x_opendir=yes
6385else
6386 echo "$as_me: failed program was:" >&5
6387cat conftest.$ac_ext >&5
6388ac_cv_lib_x_opendir=no
6389fi
6390rm -f conftest$ac_exeext conftest.$ac_ext
6391LIBS=$ac_check_lib_save_LIBS
6392fi
6393echo "$as_me:6393: result: $ac_cv_lib_x_opendir" >&5
6394echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6395if test $ac_cv_lib_x_opendir = yes; then
252b5132 6396 LIBS="$LIBS -lx"
252b5132
RH
6397fi
6398
6399fi
6400
633fd09f 6401for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 6402do
b3baf5d0
NC
6403ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6404echo "$as_me:6404: checking for $ac_func" >&5
6405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6406if eval "test \"\${$ac_ac_var+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409 cat >conftest.$ac_ext <<_ACEOF
6410#line 6410 "configure"
252b5132
RH
6411#include "confdefs.h"
6412/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 6413 which can conflict with char $ac_func (); below. */
252b5132
RH
6414#include <assert.h>
6415/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
6416#ifdef __cplusplus
6417extern "C"
6418#endif
252b5132 6419/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
6420 builtin and then its argument prototype would still apply. */
6421char $ac_func ();
6422char (*f) ();
252b5132 6423
b3baf5d0
NC
6424int
6425main ()
6426{
252b5132
RH
6427/* The GNU C library defines this for functions which it implements
6428 to always fail with ENOSYS. Some functions are actually named
6429 something starting with __ and the normal name is an alias. */
6430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431choke me
6432#else
b3baf5d0 6433f = $ac_func;
252b5132
RH
6434#endif
6435
b3baf5d0
NC
6436 ;
6437 return 0;
6438}
6439_ACEOF
6440rm -f conftest.$ac_objext conftest$ac_exeext
6441if { (eval echo "$as_me:6441: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6443 ac_status=$?
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:6447: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 eval "$ac_ac_var=yes"
6453else
6454 echo "$as_me: failed program was:" >&5
6455cat conftest.$ac_ext >&5
6456eval "$ac_ac_var=no"
6457fi
6458rm -f conftest$ac_exeext conftest.$ac_ext
6459fi
6460echo "$as_me:6460: result: `eval echo '${'$ac_ac_var'}'`" >&5
6461echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6462if test `eval echo '${'$ac_ac_var'}'` = yes; then
6463 cat >>confdefs.h <<EOF
6464#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 6465EOF
252b5132 6466
252b5132
RH
6467fi
6468done
6469
252b5132 6470case "${host}" in
855b0be7 6471*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
b3baf5d0
NC
6472
6473cat >>confdefs.h <<\EOF
252b5132
RH
6474#define USE_BINARY_FOPEN 1
6475EOF
6476 ;;
6477esac
6478
b3baf5d0
NC
6479echo "$as_me:6479: checking whether strstr must be declared" >&5
6480echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
6481if test "${bfd_cv_decl_needed_strstr+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6483else
b3baf5d0
NC
6484 cat >conftest.$ac_ext <<_ACEOF
6485#line 6485 "configure"
252b5132
RH
6486#include "confdefs.h"
6487
6488#include <stdio.h>
6489#ifdef HAVE_STRING_H
6490#include <string.h>
6491#else
6492#ifdef HAVE_STRINGS_H
6493#include <strings.h>
6494#endif
6495#endif
6496#ifdef HAVE_STDLIB_H
6497#include <stdlib.h>
6498#endif
6499#ifdef HAVE_UNISTD_H
6500#include <unistd.h>
6501#endif
b3baf5d0
NC
6502int
6503main ()
6504{
252b5132 6505char *(*pfn) = (char *(*)) strstr
b3baf5d0
NC
6506 ;
6507 return 0;
6508}
6509_ACEOF
6510rm -f conftest.$ac_objext
6511if { (eval echo "$as_me:6511: \"$ac_compile\"") >&5
6512 (eval $ac_compile) 2>&5
6513 ac_status=$?
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -s conftest.$ac_objext'
6517 { (eval echo "$as_me:6517: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:6520: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
252b5132
RH
6522 bfd_cv_decl_needed_strstr=no
6523else
b3baf5d0
NC
6524 echo "$as_me: failed program was:" >&5
6525cat conftest.$ac_ext >&5
6526bfd_cv_decl_needed_strstr=yes
252b5132 6527fi
b3baf5d0 6528rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6529fi
6530
b3baf5d0
NC
6531echo "$as_me:6531: result: $bfd_cv_decl_needed_strstr" >&5
6532echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 6533if test $bfd_cv_decl_needed_strstr = yes; then
b3baf5d0
NC
6534
6535cat >>confdefs.h <<\EOF
252b5132
RH
6536#define NEED_DECLARATION_STRSTR 1
6537EOF
6538
6539fi
6540
b3baf5d0
NC
6541echo "$as_me:6541: checking whether malloc must be declared" >&5
6542echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
6543if test "${bfd_cv_decl_needed_malloc+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6545else
b3baf5d0
NC
6546 cat >conftest.$ac_ext <<_ACEOF
6547#line 6547 "configure"
252b5132
RH
6548#include "confdefs.h"
6549
6550#include <stdio.h>
6551#ifdef HAVE_STRING_H
6552#include <string.h>
6553#else
6554#ifdef HAVE_STRINGS_H
6555#include <strings.h>
6556#endif
6557#endif
6558#ifdef HAVE_STDLIB_H
6559#include <stdlib.h>
6560#endif
6561#ifdef HAVE_UNISTD_H
6562#include <unistd.h>
6563#endif
b3baf5d0
NC
6564int
6565main ()
6566{
252b5132 6567char *(*pfn) = (char *(*)) malloc
b3baf5d0
NC
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (eval echo "$as_me:6573: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6575 ac_status=$?
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:6579: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
252b5132
RH
6584 bfd_cv_decl_needed_malloc=no
6585else
b3baf5d0
NC
6586 echo "$as_me: failed program was:" >&5
6587cat conftest.$ac_ext >&5
6588bfd_cv_decl_needed_malloc=yes
252b5132 6589fi
b3baf5d0 6590rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6591fi
6592
b3baf5d0
NC
6593echo "$as_me:6593: result: $bfd_cv_decl_needed_malloc" >&5
6594echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 6595if test $bfd_cv_decl_needed_malloc = yes; then
b3baf5d0
NC
6596
6597cat >>confdefs.h <<\EOF
252b5132
RH
6598#define NEED_DECLARATION_MALLOC 1
6599EOF
6600
6601fi
6602
b3baf5d0
NC
6603echo "$as_me:6603: checking whether realloc must be declared" >&5
6604echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
6605if test "${bfd_cv_decl_needed_realloc+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6607else
b3baf5d0
NC
6608 cat >conftest.$ac_ext <<_ACEOF
6609#line 6609 "configure"
252b5132
RH
6610#include "confdefs.h"
6611
6612#include <stdio.h>
6613#ifdef HAVE_STRING_H
6614#include <string.h>
6615#else
6616#ifdef HAVE_STRINGS_H
6617#include <strings.h>
6618#endif
6619#endif
6620#ifdef HAVE_STDLIB_H
6621#include <stdlib.h>
6622#endif
6623#ifdef HAVE_UNISTD_H
6624#include <unistd.h>
6625#endif
b3baf5d0
NC
6626int
6627main ()
6628{
252b5132 6629char *(*pfn) = (char *(*)) realloc
b3baf5d0
NC
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest.$ac_objext
6635if { (eval echo "$as_me:6635: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:6641: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
252b5132
RH
6646 bfd_cv_decl_needed_realloc=no
6647else
b3baf5d0
NC
6648 echo "$as_me: failed program was:" >&5
6649cat conftest.$ac_ext >&5
6650bfd_cv_decl_needed_realloc=yes
252b5132 6651fi
b3baf5d0 6652rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6653fi
6654
b3baf5d0
NC
6655echo "$as_me:6655: result: $bfd_cv_decl_needed_realloc" >&5
6656echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 6657if test $bfd_cv_decl_needed_realloc = yes; then
b3baf5d0
NC
6658
6659cat >>confdefs.h <<\EOF
252b5132
RH
6660#define NEED_DECLARATION_REALLOC 1
6661EOF
6662
6663fi
6664
b3baf5d0
NC
6665echo "$as_me:6665: checking whether free must be declared" >&5
6666echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
6667if test "${bfd_cv_decl_needed_free+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6669else
b3baf5d0
NC
6670 cat >conftest.$ac_ext <<_ACEOF
6671#line 6671 "configure"
252b5132
RH
6672#include "confdefs.h"
6673
6674#include <stdio.h>
6675#ifdef HAVE_STRING_H
6676#include <string.h>
6677#else
6678#ifdef HAVE_STRINGS_H
6679#include <strings.h>
6680#endif
6681#endif
6682#ifdef HAVE_STDLIB_H
6683#include <stdlib.h>
6684#endif
6685#ifdef HAVE_UNISTD_H
6686#include <unistd.h>
6687#endif
b3baf5d0
NC
6688int
6689main ()
6690{
252b5132 6691char *(*pfn) = (char *(*)) free
b3baf5d0
NC
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext
6697if { (eval echo "$as_me:6697: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>&5
6699 ac_status=$?
6700 echo "$as_me:6700: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:6703: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:6706: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
252b5132
RH
6708 bfd_cv_decl_needed_free=no
6709else
b3baf5d0
NC
6710 echo "$as_me: failed program was:" >&5
6711cat conftest.$ac_ext >&5
6712bfd_cv_decl_needed_free=yes
252b5132 6713fi
b3baf5d0 6714rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6715fi
6716
b3baf5d0
NC
6717echo "$as_me:6717: result: $bfd_cv_decl_needed_free" >&5
6718echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 6719if test $bfd_cv_decl_needed_free = yes; then
b3baf5d0
NC
6720
6721cat >>confdefs.h <<\EOF
252b5132
RH
6722#define NEED_DECLARATION_FREE 1
6723EOF
6724
6725fi
6726
b3baf5d0
NC
6727echo "$as_me:6727: checking whether getenv must be declared" >&5
6728echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
6729if test "${bfd_cv_decl_needed_getenv+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6731else
b3baf5d0
NC
6732 cat >conftest.$ac_ext <<_ACEOF
6733#line 6733 "configure"
252b5132
RH
6734#include "confdefs.h"
6735
6736#include <stdio.h>
6737#ifdef HAVE_STRING_H
6738#include <string.h>
6739#else
6740#ifdef HAVE_STRINGS_H
6741#include <strings.h>
6742#endif
6743#endif
6744#ifdef HAVE_STDLIB_H
6745#include <stdlib.h>
6746#endif
6747#ifdef HAVE_UNISTD_H
6748#include <unistd.h>
6749#endif
b3baf5d0
NC
6750int
6751main ()
6752{
252b5132 6753char *(*pfn) = (char *(*)) getenv
b3baf5d0
NC
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext
6759if { (eval echo "$as_me:6759: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:6765: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
252b5132
RH
6770 bfd_cv_decl_needed_getenv=no
6771else
b3baf5d0
NC
6772 echo "$as_me: failed program was:" >&5
6773cat conftest.$ac_ext >&5
6774bfd_cv_decl_needed_getenv=yes
252b5132 6775fi
b3baf5d0 6776rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
6777fi
6778
b3baf5d0
NC
6779echo "$as_me:6779: result: $bfd_cv_decl_needed_getenv" >&5
6780echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 6781if test $bfd_cv_decl_needed_getenv = yes; then
b3baf5d0
NC
6782
6783cat >>confdefs.h <<\EOF
252b5132
RH
6784#define NEED_DECLARATION_GETENV 1
6785EOF
6786
6787fi
6788
252b5132
RH
6789# If we are configured native, pick a core file support file.
6790COREFILE=
6791COREFLAG=
6792TRAD_HEADER=
6793if test "${target}" = "${host}"; then
6794 case "${host}" in
46d59bfa
DB
6795 alpha*-*-freebsd*)
6796 COREFILE=''
6797 ;;
252b5132
RH
6798 alpha*-*-linux-gnu*)
6799 COREFILE=trad-core.lo
6800 TRAD_HEADER='"hosts/alphalinux.h"'
6801 ;;
6802 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
6803 alpha*-*-*) COREFILE=osf-core.lo ;;
d4af9775 6804 arm-*-freebsd*) COREFILE='' ;;
252b5132
RH
6805 arm-*-riscix) COREFILE=trad-core.lo ;;
6806 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
6807 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
6808 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
6809 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
6810 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
b3baf5d0 6811 i370-*-*)
5b93d8bb
AM
6812 COREFILE=trad-core.lo
6813 TRAD_HEADER='"hosts/i370linux.h"'
6814 ;;
6815
252b5132 6816 i[3456]86-sequent-bsd*)
5b93d8bb 6817 COREFILE=trad-core.lo
252b5132
RH
6818 TRAD_HEADER='"hosts/symmetry.h"'
6819 ;;
6820 i[3456]86-sequent-sysv4*) ;;
6821 i[3456]86-sequent-sysv*)
6822 COREFILE=trad-core.lo
6823 TRAD_HEADER='"hosts/symmetry.h"'
6824 ;;
d4af9775 6825 i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
252b5132
RH
6826 COREFILE=trad-core.lo
6827 TRAD_HEADER='"hosts/i386bsd.h"'
6828 ;;
d4af9775
DB
6829 i[3456]86-*-freebsd*)
6830 COREFILE=''
6831 TRAD_HEADER='"hosts/i386bsd.h"'
6832 ;;
252b5132
RH
6833 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
6834 COREFILE=netbsd-core.lo
6835 ;;
6836 i[3456]86-esix-sysv3*)
6837 COREFILE=trad-core.lo
6838 TRAD_HEADER='"hosts/esix.h"'
6839 ;;
6840 i[3456]86-*-sco3.2v5*)
6841 COREFILE=sco5-core.lo
6842 ;;
6843 i[3456]86-*-sco* | i[3456]86-*-isc*)
6844 COREFILE=trad-core.lo
6845 TRAD_HEADER='"hosts/i386sco.h"'
6846 ;;
6847 i[3456]86-*-mach3*)
6848 COREFILE=trad-core.lo
6849 TRAD_HEADER='"hosts/i386mach3.h"'
6850 ;;
6851 i[3456]86-*-linux-gnu*)
6852 COREFILE=trad-core.lo
6853 TRAD_HEADER='"hosts/i386linux.h"'
6854 ;;
6855 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
6856 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
6857 i860-*-mach3* | i860-*-osf1*)
6858 COREFILE=trad-core.lo
6859 TRAD_HEADER='"hosts/i860mach3.h"'
6860 ;;
6861 mips-dec-bsd*)
6862 COREFILE=trad-core.lo
6863 TRAD_HEADER='"hosts/mipsbsd.h"'
6864 ;;
6865 mips-dec-mach3*)
6866 COREFILE=trad-core.lo
6867 TRAD_HEADER='"hosts/mipsmach3.h"'
6868 ;;
6869 mips-*-netbsd* | mips*-*-openbsd*)
6870 COREFILE=netbsd-core.lo
6871 ;;
6872 mips-dec-*)
6873 COREFILE=trad-core.lo
6874 TRAD_HEADER='"hosts/decstation.h"'
6875 ;;
6876 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
6877 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
6878 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
6879 mips-*-mach3*)
6880 COREFILE=trad-core.lo
6881 TRAD_HEADER='"hosts/mipsmach3.h"'
6882 ;;
6883 mips-*-sysv4*) ;;
6884 mips-*-sysv* | mips-*-riscos*)
6885 COREFILE=trad-core.lo
6886 TRAD_HEADER='"hosts/riscos.h"'
6887 ;;
6888 mips-sony-bsd*)
6889 COREFILE=trad-core.lo
6890 TRAD_HEADER='"hosts/news-mips.h"'
6891 ;;
6892 m68*-bull*-sysv*)
6893 COREFILE=trad-core.lo
6894 TRAD_HEADER='"hosts/dpx2.h"'
6895 ;;
6896 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
6897 m68*-hp-bsd*)
6898 COREFILE=trad-core.lo
6899 TRAD_HEADER='"hosts/hp300bsd.h"'
6900 ;;
6901 m68*-*-linux-gnu*)
6902 COREFILE=trad-core.lo
6903 TRAD_HEADER='"hosts/m68klinux.h"'
6904 ;;
6905 m68*-motorola-sysv*)
6906 COREFILE=trad-core.lo
6907 TRAD_HEADER='"hosts/delta68.h"'
6908 ;;
6909 m68*-sony-*)
6910 COREFILE=trad-core.lo
6911 TRAD_HEADER='"hosts/news.h"'
6912 ;;
6913 m68*-*-netbsd* | m68*-*-openbsd*)
6914 COREFILE=netbsd-core.lo
6915 ;;
6916 m68*-apple-aux*)
6917 COREFILE=trad-core.lo
6918 TRAD_HEADER='"hosts/m68kaux.h"'
6919 ;;
6920 m88*-*-sysv4*) ;;
6921 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
6922 m88*-*-mach3*)
6923 COREFILE=trad-core.lo
6924 TRAD_HEADER='"hosts/m88kmach3.h"'
6925 ;;
6926 ns32k-pc532-mach)
6927 COREFILE=trad-core.lo
6928 TRAD_HEADER='"hosts/pc532mach.h"'
6929 ;;
6930 ns32k-*-netbsd* | ns32k-*-openbsd*)
6931 COREFILE=netbsd-core.lo
6932 ;;
6933 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
653f71ca
KB
6934 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
6935 COREFILE=rs6000-core.lo
6936 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
6937 ;;
252b5132
RH
6938 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
6939 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
6940 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
6941 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
6942 powerpc-*-beos*) ;;
d4af9775 6943 powerpc-*-freebsd*) COREFILE='' ;;
252b5132 6944 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 6945 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
b3baf5d0 6946 s390*-*-*) COREFILE=trad-core.lo ;;
252b5132
RH
6947 sparc-*-netbsd* | sparc-*-openbsd*)
6948 COREFILE=netbsd-core.lo
6949 ;;
6950 tahoe-*-*)
6951 COREFILE=trad-core.lo
6952 TRAD_HEADER='"hosts/tahoe.h"'
6953 ;;
6954 vax-*-ultrix2*)
6955 COREFILE=trad-core.lo
6956 TRAD_HEADER='"hosts/vaxult2.h"'
6957 ;;
6958 vax-*-ultrix*)
6959 COREFILE=trad-core.lo
6960 TRAD_HEADER='"hosts/vaxult2.h"'
6961 ;;
6962 vax-*-*)
6963 COREFILE=trad-core.lo
6964 TRAD_HEADER='"hosts/vaxbsd.h"'
6965 ;;
6966 esac
6967
6968 case "$COREFILE" in
6969 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
6970 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
6971 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
6972 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
6973 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
6974 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
6975 osf-core.lo) COREFLAG=-DOSF_CORE ;;
6976 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
6977 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
6978 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
6979 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
6980 esac
6981
6982 # ELF corefile support has several flavors, but all of
6983 # them use something called <sys/procfs.h>
b3baf5d0
NC
6984
6985for ac_header in sys/procfs.h
252b5132 6986do
b3baf5d0
NC
6987ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6988echo "$as_me:6988: checking for $ac_header" >&5
6989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 cat >conftest.$ac_ext <<_ACEOF
6994#line 6994 "configure"
252b5132 6995#include "confdefs.h"
b3baf5d0
NC
6996#include <$ac_header>
6997_ACEOF
6998if { (eval echo "$as_me:6998: \"$ac_cpp conftest.$ac_ext\"") >&5
6999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7000 ac_status=$?
7001 egrep -v '^ *\+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 (exit $ac_status); } >/dev/null; then
7006 if test -s conftest.err; then
7007 ac_cpp_err=$ac_c_preproc_warn_flag
7008 else
7009 ac_cpp_err=
7010 fi
7011else
7012 ac_cpp_err=yes
7013fi
7014if test -z "$ac_cpp_err"; then
7015 eval "$ac_ac_Header=yes"
252b5132 7016else
b3baf5d0 7017 echo "$as_me: failed program was:" >&5
252b5132 7018 cat conftest.$ac_ext >&5
b3baf5d0 7019 eval "$ac_ac_Header=no"
252b5132 7020fi
b3baf5d0 7021rm -f conftest.err conftest.$ac_ext
252b5132 7022fi
b3baf5d0
NC
7023echo "$as_me:7023: result: `eval echo '${'$ac_ac_Header'}'`" >&5
7024echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
7025if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7026 cat >>confdefs.h <<EOF
7027#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 7028EOF
b3baf5d0 7029
252b5132
RH
7030fi
7031done
7032
7033 if test "$ac_cv_header_sys_procfs_h" = yes; then
b3baf5d0
NC
7034 echo "$as_me:7034: checking for prstatus_t in sys/procfs.h" >&5
7035echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
7036 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7038else
b3baf5d0
NC
7039 cat >conftest.$ac_ext <<_ACEOF
7040#line 7040 "configure"
252b5132 7041#include "confdefs.h"
7ee38065
MS
7042
7043#define _SYSCALL32
252b5132 7044#include <sys/procfs.h>
b3baf5d0
NC
7045int
7046main ()
7047{
252b5132 7048prstatus_t avar
b3baf5d0
NC
7049 ;
7050 return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext
7054if { (eval echo "$as_me:7054: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>&5
7056 ac_status=$?
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest.$ac_objext'
7060 { (eval echo "$as_me:7060: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:7063: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
252b5132
RH
7065 bfd_cv_have_sys_procfs_type_prstatus_t=yes
7066else
b3baf5d0
NC
7067 echo "$as_me: failed program was:" >&5
7068cat conftest.$ac_ext >&5
7069bfd_cv_have_sys_procfs_type_prstatus_t=no
7070
252b5132 7071fi
b3baf5d0 7072rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7073fi
7074
7075 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
b3baf5d0
NC
7076
7077cat >>confdefs.h <<\EOF
252b5132
RH
7078#define HAVE_PRSTATUS_T 1
7079EOF
7080
7081 fi
b3baf5d0
NC
7082 echo "$as_me:7082: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
7083echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 7084
b3baf5d0
NC
7085 echo "$as_me:7085: checking for prstatus32_t in sys/procfs.h" >&5
7086echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
7087 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 7089else
b3baf5d0
NC
7090 cat >conftest.$ac_ext <<_ACEOF
7091#line 7091 "configure"
7ee38065
MS
7092#include "confdefs.h"
7093
7094#define _SYSCALL32
7095#include <sys/procfs.h>
b3baf5d0
NC
7096int
7097main ()
7098{
7ee38065 7099prstatus32_t avar
b3baf5d0
NC
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>&5
7107 ac_status=$?
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try='test -s conftest.$ac_objext'
7111 { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7ee38065
MS
7116 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
7117else
b3baf5d0
NC
7118 echo "$as_me: failed program was:" >&5
7119cat conftest.$ac_ext >&5
7120bfd_cv_have_sys_procfs_type_prstatus32_t=no
7121
7ee38065 7122fi
b3baf5d0 7123rm -f conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
7124fi
7125
7126 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
b3baf5d0
NC
7127
7128cat >>confdefs.h <<\EOF
7ee38065
MS
7129#define HAVE_PRSTATUS32_T 1
7130EOF
7131
7132 fi
b3baf5d0
NC
7133 echo "$as_me:7133: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
7134echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 7135
b3baf5d0
NC
7136 echo "$as_me:7136: checking for prstatus_t.pr_who in sys/procfs.h" >&5
7137echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
7138 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7140else
b3baf5d0
NC
7141 cat >conftest.$ac_ext <<_ACEOF
7142#line 7142 "configure"
252b5132 7143#include "confdefs.h"
7ee38065
MS
7144
7145#define _SYSCALL32
252b5132 7146#include <sys/procfs.h>
b3baf5d0
NC
7147int
7148main ()
7149{
252b5132 7150prstatus_t avar; void* aref = (void*) &avar.pr_who
b3baf5d0
NC
7151 ;
7152 return 0;
7153}
7154_ACEOF
7155rm -f conftest.$ac_objext
7156if { (eval echo "$as_me:7156: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>&5
7158 ac_status=$?
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:7162: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:7165: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
252b5132
RH
7167 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
7168else
b3baf5d0
NC
7169 echo "$as_me: failed program was:" >&5
7170cat conftest.$ac_ext >&5
7171bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
7172
252b5132 7173fi
b3baf5d0 7174rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7175fi
7176
7177 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
b3baf5d0
NC
7178
7179cat >>confdefs.h <<\EOF
252b5132
RH
7180#define HAVE_PRSTATUS_T_PR_WHO 1
7181EOF
7182
7183 fi
b3baf5d0
NC
7184 echo "$as_me:7184: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
7185echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 7186
b3baf5d0
NC
7187 echo "$as_me:7187: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
7188echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
7189 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 7191else
b3baf5d0
NC
7192 cat >conftest.$ac_ext <<_ACEOF
7193#line 7193 "configure"
7ee38065
MS
7194#include "confdefs.h"
7195
7196#define _SYSCALL32
7197#include <sys/procfs.h>
b3baf5d0
NC
7198int
7199main ()
7200{
7ee38065 7201prstatus32_t avar; void* aref = (void*) &avar.pr_who
b3baf5d0
NC
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext
7207if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7209 ac_status=$?
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7ee38065
MS
7218 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
7219else
b3baf5d0
NC
7220 echo "$as_me: failed program was:" >&5
7221cat conftest.$ac_ext >&5
7222bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
7223
7ee38065 7224fi
b3baf5d0 7225rm -f conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
7226fi
7227
7228 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
b3baf5d0
NC
7229
7230cat >>confdefs.h <<\EOF
7ee38065
MS
7231#define HAVE_PRSTATUS32_T_PR_WHO 1
7232EOF
7233
7234 fi
b3baf5d0
NC
7235 echo "$as_me:7235: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
7236echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 7237
b3baf5d0
NC
7238 echo "$as_me:7238: checking for pstatus_t in sys/procfs.h" >&5
7239echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
7240 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7242else
b3baf5d0
NC
7243 cat >conftest.$ac_ext <<_ACEOF
7244#line 7244 "configure"
252b5132 7245#include "confdefs.h"
7ee38065
MS
7246
7247#define _SYSCALL32
252b5132 7248#include <sys/procfs.h>
b3baf5d0
NC
7249int
7250main ()
7251{
252b5132 7252pstatus_t avar
b3baf5d0
NC
7253 ;
7254 return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext
7258if { (eval echo "$as_me:7258: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7260 ac_status=$?
7261 echo "$as_me:7261: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -s conftest.$ac_objext'
7264 { (eval echo "$as_me:7264: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
252b5132
RH
7269 bfd_cv_have_sys_procfs_type_pstatus_t=yes
7270else
b3baf5d0
NC
7271 echo "$as_me: failed program was:" >&5
7272cat conftest.$ac_ext >&5
7273bfd_cv_have_sys_procfs_type_pstatus_t=no
7274
252b5132 7275fi
b3baf5d0 7276rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7277fi
7278
7279 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
b3baf5d0
NC
7280
7281cat >>confdefs.h <<\EOF
252b5132
RH
7282#define HAVE_PSTATUS_T 1
7283EOF
7284
7285 fi
b3baf5d0
NC
7286 echo "$as_me:7286: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
7287echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 7288
b3baf5d0
NC
7289 echo "$as_me:7289: checking for pxstatus_t in sys/procfs.h" >&5
7290echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
7291 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 7293else
b3baf5d0
NC
7294 cat >conftest.$ac_ext <<_ACEOF
7295#line 7295 "configure"
f572a39d
AM
7296#include "confdefs.h"
7297
7298#define _SYSCALL32
7299#include <sys/procfs.h>
b3baf5d0
NC
7300int
7301main ()
7302{
f572a39d 7303pxstatus_t avar
b3baf5d0
NC
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (eval echo "$as_me:7309: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>&5
7311 ac_status=$?
7312 echo "$as_me:7312: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:7315: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:7318: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
f572a39d
AM
7320 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
7321else
b3baf5d0
NC
7322 echo "$as_me: failed program was:" >&5
7323cat conftest.$ac_ext >&5
7324bfd_cv_have_sys_procfs_type_pxstatus_t=no
7325
f572a39d 7326fi
b3baf5d0 7327rm -f conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
7328fi
7329
7330 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
b3baf5d0
NC
7331
7332cat >>confdefs.h <<\EOF
f572a39d
AM
7333#define HAVE_PXSTATUS_T 1
7334EOF
7335
7336 fi
b3baf5d0
NC
7337 echo "$as_me:7337: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
7338echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 7339
b3baf5d0
NC
7340 echo "$as_me:7340: checking for pstatus32_t in sys/procfs.h" >&5
7341echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
7342 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 7344else
b3baf5d0
NC
7345 cat >conftest.$ac_ext <<_ACEOF
7346#line 7346 "configure"
7ee38065
MS
7347#include "confdefs.h"
7348
7349#define _SYSCALL32
7350#include <sys/procfs.h>
b3baf5d0
NC
7351int
7352main ()
7353{
7ee38065 7354pstatus32_t avar
b3baf5d0
NC
7355 ;
7356 return 0;
7357}
7358_ACEOF
7359rm -f conftest.$ac_objext
7360if { (eval echo "$as_me:7360: \"$ac_compile\"") >&5
7361 (eval $ac_compile) 2>&5
7362 ac_status=$?
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:7366: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:7369: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7ee38065
MS
7371 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
7372else
b3baf5d0
NC
7373 echo "$as_me: failed program was:" >&5
7374cat conftest.$ac_ext >&5
7375bfd_cv_have_sys_procfs_type_pstatus32_t=no
7376
7ee38065 7377fi
b3baf5d0 7378rm -f conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
7379fi
7380
7381 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
b3baf5d0
NC
7382
7383cat >>confdefs.h <<\EOF
7ee38065
MS
7384#define HAVE_PSTATUS32_T 1
7385EOF
7386
7387 fi
b3baf5d0
NC
7388 echo "$as_me:7388: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
7389echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 7390
b3baf5d0
NC
7391 echo "$as_me:7391: checking for prpsinfo_t in sys/procfs.h" >&5
7392echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
7393 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7395else
b3baf5d0
NC
7396 cat >conftest.$ac_ext <<_ACEOF
7397#line 7397 "configure"
252b5132 7398#include "confdefs.h"
7ee38065
MS
7399
7400#define _SYSCALL32
252b5132 7401#include <sys/procfs.h>
b3baf5d0
NC
7402int
7403main ()
7404{
252b5132 7405prpsinfo_t avar
b3baf5d0
NC
7406 ;
7407 return 0;
7408}
7409_ACEOF
7410rm -f conftest.$ac_objext
7411if { (eval echo "$as_me:7411: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>&5
7413 ac_status=$?
7414 echo "$as_me:7414: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:7417: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:7420: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
252b5132
RH
7422 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
7423else
b3baf5d0
NC
7424 echo "$as_me: failed program was:" >&5
7425cat conftest.$ac_ext >&5
7426bfd_cv_have_sys_procfs_type_prpsinfo_t=no
7427
252b5132 7428fi
b3baf5d0 7429rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7430fi
7431
7432 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
b3baf5d0
NC
7433
7434cat >>confdefs.h <<\EOF
252b5132
RH
7435#define HAVE_PRPSINFO_T 1
7436EOF
7437
7438 fi
b3baf5d0
NC
7439 echo "$as_me:7439: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
7440echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 7441
b3baf5d0
NC
7442 echo "$as_me:7442: checking for prpsinfo32_t in sys/procfs.h" >&5
7443echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
7444 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 7446else
b3baf5d0
NC
7447 cat >conftest.$ac_ext <<_ACEOF
7448#line 7448 "configure"
7ee38065
MS
7449#include "confdefs.h"
7450
7451#define _SYSCALL32
7452#include <sys/procfs.h>
b3baf5d0
NC
7453int
7454main ()
7455{
7ee38065 7456prpsinfo32_t avar
b3baf5d0
NC
7457 ;
7458 return 0;
7459}
7460_ACEOF
7461rm -f conftest.$ac_objext
7462if { (eval echo "$as_me:7462: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7464 ac_status=$?
7465 echo "$as_me:7465: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7ee38065
MS
7473 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
7474else
b3baf5d0
NC
7475 echo "$as_me: failed program was:" >&5
7476cat conftest.$ac_ext >&5
7477bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
7478
7ee38065 7479fi
b3baf5d0 7480rm -f conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
7481fi
7482
7483 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
b3baf5d0
NC
7484
7485cat >>confdefs.h <<\EOF
7ee38065
MS
7486#define HAVE_PRPSINFO32_T 1
7487EOF
7488
7489 fi
b3baf5d0
NC
7490 echo "$as_me:7490: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
7491echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 7492
b3baf5d0
NC
7493 echo "$as_me:7493: checking for psinfo_t in sys/procfs.h" >&5
7494echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
7495 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7497else
b3baf5d0
NC
7498 cat >conftest.$ac_ext <<_ACEOF
7499#line 7499 "configure"
252b5132 7500#include "confdefs.h"
7ee38065
MS
7501
7502#define _SYSCALL32
252b5132 7503#include <sys/procfs.h>
b3baf5d0
NC
7504int
7505main ()
7506{
252b5132 7507psinfo_t avar
b3baf5d0
NC
7508 ;
7509 return 0;
7510}
7511_ACEOF
7512rm -f conftest.$ac_objext
7513if { (eval echo "$as_me:7513: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 echo "$as_me:7516: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:7519: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:7522: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
252b5132
RH
7524 bfd_cv_have_sys_procfs_type_psinfo_t=yes
7525else
b3baf5d0
NC
7526 echo "$as_me: failed program was:" >&5
7527cat conftest.$ac_ext >&5
7528bfd_cv_have_sys_procfs_type_psinfo_t=no
7529
252b5132 7530fi
b3baf5d0 7531rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7532fi
7533
7534 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
b3baf5d0
NC
7535
7536cat >>confdefs.h <<\EOF
252b5132
RH
7537#define HAVE_PSINFO_T 1
7538EOF
7539
7540 fi
b3baf5d0
NC
7541 echo "$as_me:7541: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
7542echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 7543
b3baf5d0
NC
7544 echo "$as_me:7544: checking for psinfo32_t in sys/procfs.h" >&5
7545echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
7546 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 7548else
b3baf5d0
NC
7549 cat >conftest.$ac_ext <<_ACEOF
7550#line 7550 "configure"
7ee38065
MS
7551#include "confdefs.h"
7552
7553#define _SYSCALL32
7554#include <sys/procfs.h>
b3baf5d0
NC
7555int
7556main ()
7557{
7ee38065 7558psinfo32_t avar
b3baf5d0
NC
7559 ;
7560 return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext
7564if { (eval echo "$as_me:7564: \"$ac_compile\"") >&5
7565 (eval $ac_compile) 2>&5
7566 ac_status=$?
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -s conftest.$ac_objext'
7570 { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7ee38065
MS
7575 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
7576else
b3baf5d0
NC
7577 echo "$as_me: failed program was:" >&5
7578cat conftest.$ac_ext >&5
7579bfd_cv_have_sys_procfs_type_psinfo32_t=no
7580
7ee38065 7581fi
b3baf5d0 7582rm -f conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
7583fi
7584
7585 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
b3baf5d0
NC
7586
7587cat >>confdefs.h <<\EOF
7ee38065
MS
7588#define HAVE_PSINFO32_T 1
7589EOF
7590
7591 fi
b3baf5d0
NC
7592 echo "$as_me:7592: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
7593echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 7594
b3baf5d0
NC
7595 echo "$as_me:7595: checking for lwpstatus_t in sys/procfs.h" >&5
7596echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
7597 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7599else
b3baf5d0
NC
7600 cat >conftest.$ac_ext <<_ACEOF
7601#line 7601 "configure"
252b5132 7602#include "confdefs.h"
7ee38065
MS
7603
7604#define _SYSCALL32
252b5132 7605#include <sys/procfs.h>
b3baf5d0
NC
7606int
7607main ()
7608{
252b5132 7609lwpstatus_t avar
b3baf5d0
NC
7610 ;
7611 return 0;
7612}
7613_ACEOF
7614rm -f conftest.$ac_objext
7615if { (eval echo "$as_me:7615: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7617 ac_status=$?
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
252b5132
RH
7626 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
7627else
b3baf5d0
NC
7628 echo "$as_me: failed program was:" >&5
7629cat conftest.$ac_ext >&5
7630bfd_cv_have_sys_procfs_type_lwpstatus_t=no
7631
252b5132 7632fi
b3baf5d0 7633rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7634fi
7635
7636 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
b3baf5d0
NC
7637
7638cat >>confdefs.h <<\EOF
252b5132
RH
7639#define HAVE_LWPSTATUS_T 1
7640EOF
7641
7642 fi
b3baf5d0
NC
7643 echo "$as_me:7643: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
7644echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 7645
b3baf5d0
NC
7646 echo "$as_me:7646: checking for lwpxstatus_t in sys/procfs.h" >&5
7647echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
7648 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 7650else
b3baf5d0
NC
7651 cat >conftest.$ac_ext <<_ACEOF
7652#line 7652 "configure"
f572a39d
AM
7653#include "confdefs.h"
7654
7655#define _SYSCALL32
7656#include <sys/procfs.h>
b3baf5d0
NC
7657int
7658main ()
7659{
f572a39d 7660lwpxstatus_t avar
b3baf5d0
NC
7661 ;
7662 return 0;
7663}
7664_ACEOF
7665rm -f conftest.$ac_objext
7666if { (eval echo "$as_me:7666: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
f572a39d
AM
7677 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
7678else
b3baf5d0
NC
7679 echo "$as_me: failed program was:" >&5
7680cat conftest.$ac_ext >&5
7681bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
7682
f572a39d 7683fi
b3baf5d0 7684rm -f conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
7685fi
7686
7687 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
b3baf5d0
NC
7688
7689cat >>confdefs.h <<\EOF
f572a39d
AM
7690#define HAVE_LWPXSTATUS_T 1
7691EOF
7692
7693 fi
b3baf5d0
NC
7694 echo "$as_me:7694: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
7695echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 7696
b3baf5d0
NC
7697 echo "$as_me:7697: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
7698echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
7699 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7701else
b3baf5d0
NC
7702 cat >conftest.$ac_ext <<_ACEOF
7703#line 7703 "configure"
252b5132 7704#include "confdefs.h"
7ee38065
MS
7705
7706#define _SYSCALL32
252b5132 7707#include <sys/procfs.h>
b3baf5d0
NC
7708int
7709main ()
7710{
252b5132 7711lwpstatus_t avar; void* aref = (void*) &avar.pr_context
b3baf5d0
NC
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (eval echo "$as_me:7717: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>&5
7719 ac_status=$?
7720 echo "$as_me:7720: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:7723: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
252b5132
RH
7728 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
7729else
b3baf5d0
NC
7730 echo "$as_me: failed program was:" >&5
7731cat conftest.$ac_ext >&5
7732bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
7733
252b5132 7734fi
b3baf5d0 7735rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7736fi
7737
7738 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
b3baf5d0
NC
7739
7740cat >>confdefs.h <<\EOF
252b5132
RH
7741#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
7742EOF
7743
7744 fi
b3baf5d0
NC
7745 echo "$as_me:7745: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
7746echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 7747
b3baf5d0
NC
7748 echo "$as_me:7748: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
7749echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
7750 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7752else
b3baf5d0
NC
7753 cat >conftest.$ac_ext <<_ACEOF
7754#line 7754 "configure"
252b5132 7755#include "confdefs.h"
7ee38065
MS
7756
7757#define _SYSCALL32
252b5132 7758#include <sys/procfs.h>
b3baf5d0
NC
7759int
7760main ()
7761{
252b5132 7762lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
b3baf5d0
NC
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767rm -f conftest.$ac_objext
7768if { (eval echo "$as_me:7768: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 echo "$as_me:7771: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:7774: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
252b5132
RH
7779 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
7780else
b3baf5d0
NC
7781 echo "$as_me: failed program was:" >&5
7782cat conftest.$ac_ext >&5
7783bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
7784
252b5132 7785fi
b3baf5d0 7786rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7787fi
7788
7789 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
b3baf5d0
NC
7790
7791cat >>confdefs.h <<\EOF
252b5132
RH
7792#define HAVE_LWPSTATUS_T_PR_REG 1
7793EOF
7794
7795 fi
b3baf5d0
NC
7796 echo "$as_me:7796: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
7797echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 7798
b3baf5d0
NC
7799 echo "$as_me:7799: checking for win32_pstatus_t in sys/procfs.h" >&5
7800echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
7801 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 7803else
b3baf5d0
NC
7804 cat >conftest.$ac_ext <<_ACEOF
7805#line 7805 "configure"
e3c976c4 7806#include "confdefs.h"
7ee38065
MS
7807
7808#define _SYSCALL32
e3c976c4 7809#include <sys/procfs.h>
b3baf5d0
NC
7810int
7811main ()
7812{
e3c976c4 7813win32_pstatus_t avar
b3baf5d0
NC
7814 ;
7815 return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext
7819if { (eval echo "$as_me:7819: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>&5
7821 ac_status=$?
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
e3c976c4
ILT
7830 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
7831else
b3baf5d0
NC
7832 echo "$as_me: failed program was:" >&5
7833cat conftest.$ac_ext >&5
7834bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
7835
e3c976c4 7836fi
b3baf5d0 7837rm -f conftest.$ac_objext conftest.$ac_ext
252b5132
RH
7838fi
7839
e3c976c4 7840 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
b3baf5d0
NC
7841
7842cat >>confdefs.h <<\EOF
e3c976c4 7843#define HAVE_WIN32_PSTATUS_T 1
16e9c715
NC
7844EOF
7845
7846 fi
b3baf5d0
NC
7847 echo "$as_me:7847: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
7848echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
7849
7850 fi
7851fi
16e9c715 7852
3f9b03b5 7853if test -n "$TRAD_HEADER"; then
b3baf5d0
NC
7854
7855cat >>confdefs.h <<EOF
252b5132
RH
7856#define TRAD_HEADER $TRAD_HEADER
7857EOF
7858
3f9b03b5 7859fi
252b5132
RH
7860
7861# Horrible hacks to build DLLs on Windows.
7862WIN32LDFLAGS=
7863WIN32LIBADD=
7864case "${host}" in
7865*-*-cygwin*)
7866 if test "$enable_shared" = "yes"; then
7867 WIN32LDFLAGS="-no-undefined"
7868 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
7869 fi
7870 ;;
7871esac
7872
252b5132
RH
7873# target stuff:
7874
7875# Canonicalize the secondary target names.
7876if test -n "$enable_targets" ; then
7877 for targ in `echo $enable_targets | sed 's/,/ /g'`
7878 do
6d83c84b 7879 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
7880 if test -n "$result" ; then
7881 canon_targets="$canon_targets $result"
7882 else
7883 # Allow targets that config.sub doesn't recognize, like "all".
7884 canon_targets="$canon_targets $targ"
7885 fi
7886 done
7887fi
7888
7889all_targets=false
7890defvec=
7891selvecs=
7892selarchs=
7893TDEFINES=
7894for targ in $target $canon_targets
7895do
7896 if test "x$targ" = "xall"; then
7897 all_targets=true
7898 else
7899 . $srcdir/config.bfd
7900 if test "x$targ" = "x$target"; then
7901 defvec=$targ_defvec
7902 fi
7903 selvecs="$selvecs $targ_defvec $targ_selvecs"
7904 selarchs="$selarchs $targ_archs"
7905 TDEFINES="$TDEFINES $targ_cflags"
7906 fi
7907done
7908
252b5132
RH
7909# This processing still needs to be done if we're to decide properly whether
7910# 64-bit support needs to be compiled in. Currently, it will be included if
7911# the default or any other explicitly requested target requires it; it
7912# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 7913# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
7914# used.
7915
7916# uniq the default and selected vectors in all the configured targets.
7917f=""
7918for i in $selvecs ; do
7919 case " $f " in
7920 *" $i "*) ;;
7921 *) f="$f $i" ;;
7922 esac
7923done
7924selvecs="$f"
7925
252b5132
RH
7926# uniq the architectures in all the configured targets.
7927f=""
7928for i in $selarchs ; do
7929 case " $f " in
7930 *" $i "*) ;;
7931 *) f="$f $i" ;;
7932 esac
7933done
7934selarchs="$f"
7935
7936# Target backend .o files.
7937tb=
7938
51db3708 7939elf="elf.lo elflink.lo dwarf1.lo"
252b5132
RH
7940
7941for vec in $selvecs
7942do
7943 case "$vec" in
7944 # This list is alphabetized to make it easy to compare
7945 # with the two vector lists in targets.c.
7946 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
7947 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
7948 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
7949 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
021e3cc0 7950 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
277d1b5e
ILT
7951 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
7952 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
7953 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
7954 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
7955 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
7956 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
7957 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7958 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
7959 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
7960 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
7961 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
7962 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
7963 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
7964 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
7965 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
7966 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 7967 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6433dece 7968 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
fac41780 7969 target64=true ;;
252b5132
RH
7970 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
7971 target64=true ;;
d952f17a
AM
7972 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
7973 tb="$tb elf64-hppa.lo elf64.lo $elf"
e59db122 7974 target64=true ;;
800eeca4
JW
7975 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
7976 target64=true ;;
7977 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
7978 target64=true ;;
b3baf5d0 7979 bfd_elf64_ia64_aix_little_vec)
7b6dab7f
TW
7980 tb="$tb elf64-ia64.lo elf64.lo $elf"
7981 target64=true ;;
7982 bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
7983 target64=true ;;
bbe66d08 7984 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
adde6300 7985 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
252b5132
RH
7986 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7987 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
7988 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
7989 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7990 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
7991 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
7992 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
7993 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
7994 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
7995 target64=true ;;
06c15ad7 7996 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
4da81684 7997 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132
RH
7998 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
7999 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
8000 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
d952f17a
AM
8001 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
8002 tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 8003 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
252b5132 8004 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6e0b89ee
AM
8005 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
8006 target64=true ;;
252b5132 8007 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
9d751335 8008 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 8009 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
252b5132
RH
8010 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
8011 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
8012 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
8013 target64=true ;;
8014 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
60bcf0fa
NC
8015 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
8016 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
252b5132
RH
8017 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
8018 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
8019 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
8020 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
8021 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
8022 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
b3baf5d0 8023 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
0bcb993b
ILT
8024 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
8025 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
252b5132
RH
8026 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
8027 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 8028 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
252b5132
RH
8029 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
8030 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
b129bfef
AO
8031 bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
8032 bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 8033 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
dd745cfa
UC
8034 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
8035 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132
RH
8036 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
8037 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
8038 target64=true ;;
8039 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
8040 target64=true ;;
b3baf5d0 8041 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"
a85d7ed0 8042 target64=true ;;
252b5132
RH
8043 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
8044 target64=true ;;
fdbafa10
L
8045 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
8046 target64=true ;;
8047 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
8048 target64=true ;;
f4bda984
RH
8049 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
8050 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
06c15ad7 8051 cris_aout_vec) tb="$tb aout-cris.lo" ;;
252b5132
RH
8052 demo_64_vec) tb="$tb demo64.lo aout64.lo"
8053 target64=true ;;
8054 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8055 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8056 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8057 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
8058 target64=true ;;
8059 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
8060 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
8061 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
8062 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
8063 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
8064 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
8065 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
8066 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
8067 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
8068 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
8069 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
8070 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
8071 i386msdos_vec) tb="$tb i386msdos.lo" ;;
277d1b5e
ILT
8072 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
8073 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
8074 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
8075 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
8076 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
8077 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
8078 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
8079 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
8080 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
8081 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
8082 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
8083 ieee_vec) tb="$tb ieee.lo" ;;
8084 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
8085 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
8086 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
8087 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
8088 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
8089 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
8090 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
8091 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
8092 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
8093 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
fb67355a
NC
8094 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
8095 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
277d1b5e
ILT
8096 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
8097 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
8098 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
8099 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
252b5132
RH
8100 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
8101 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
7f6d05e8
CP
8102 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
8103 target64=true ;;
252b5132
RH
8104 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
8105 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
8106 target64=true ;;
8107 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
8108 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
8109 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
8110 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
e135f41b 8111 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
252b5132
RH
8112 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
8113 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
b3baf5d0
NC
8114 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
8115 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
277d1b5e
ILT
8116 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
8117 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
252b5132
RH
8118 ppcboot_vec) tb="$tb ppcboot.lo" ;;
8119 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
8120 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
8121 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
8122 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
8123 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
8124 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132
RH
8125 som_vec) tb="$tb som.lo" ;;
8126 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
8127 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
8128 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
8129 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
8130 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
8131 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
8132 srec_vec) tb="$tb srec.lo" ;;
8133 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
8134 symbolsrec_vec) tb="$tb srec.lo" ;;
8135 tekhex_vec) tb="$tb tekhex.lo" ;;
8136 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
8137 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
81635ce4
TW
8138 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
8139 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
8140 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
8141 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
8142 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
8143 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
252b5132
RH
8144 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
8145 versados_vec) tb="$tb versados.lo" ;;
8146 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
8147 target64=true ;;
8148 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
8149 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
8150 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
8151 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
8152
8153 "") ;;
b3baf5d0
NC
8154 *) { { echo "$as_me:8154: error: *** unknown target vector $vec" >&5
8155echo "$as_me: error: *** unknown target vector $vec" >&2;}
8156 { (exit 1); exit 1; }; } ;;
252b5132
RH
8157 esac
8158done
8159
8160# Target architecture .o files.
8161# A couple of CPUs use shorter file names to avoid problems on DOS
8162# filesystems.
8163ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
8164
8165# Weed out duplicate .o files.
8166f=""
8167for i in $tb ; do
8168 case " $f " in
8169 *" $i "*) ;;
8170 *) f="$f $i" ;;
8171 esac
8172done
8173tb="$f"
8174
8175f=""
8176for i in $ta ; do
8177 case " $f " in
8178 *" $i "*) ;;
8179 *) f="$f $i" ;;
8180 esac
8181done
8182ta="$f"
8183
8184bfd_backends="$tb"
8185bfd_machines="$ta"
8186
8187if test x${all_targets} = xtrue ; then
8188 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
8189 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
8190 selvecs=
8191 havevecs=
8192 selarchs=
8193else # all_targets is true
8194 # Only set these if they will be nonempty, for the clever echo.
8195 havevecs=
8196 test -n "$selvecs" &&
8197 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
8198 test -n "$selvecs" &&
8199 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
8200 test -n "$selarchs" &&
8201 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
8202fi # all_targets is true
8203
8204case ${host64}-${target64}-${want64} in
8205 *true*)
8206 wordsize=64
8207 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
8208 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
b3baf5d0
NC
8209 { echo "$as_me:8209: WARNING: You have requested a 64 bit BFD configuration, but" >&5
8210echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
8211 { echo "$as_me:8211: WARNING: your compiler may not have a 64 bit integral type" >&5
8212echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132
RH
8213 fi
8214 ;;
8215 false-false-false)
8216 wordsize=32
8217 all_backends='$(BFD32_BACKENDS)'
8218 ;;
8219esac
8220
252b5132
RH
8221tdefaults=""
8222test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
8223test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
8224test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
8225test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
8226
b3baf5d0 8227for ac_header in stdlib.h unistd.h
252b5132 8228do
b3baf5d0
NC
8229ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8230echo "$as_me:8230: checking for $ac_header" >&5
8231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234else
8235 cat >conftest.$ac_ext <<_ACEOF
8236#line 8236 "configure"
252b5132 8237#include "confdefs.h"
b3baf5d0
NC
8238#include <$ac_header>
8239_ACEOF
8240if { (eval echo "$as_me:8240: \"$ac_cpp conftest.$ac_ext\"") >&5
8241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8242 ac_status=$?
8243 egrep -v '^ *\+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 (exit $ac_status); } >/dev/null; then
8248 if test -s conftest.err; then
8249 ac_cpp_err=$ac_c_preproc_warn_flag
8250 else
8251 ac_cpp_err=
8252 fi
8253else
8254 ac_cpp_err=yes
8255fi
8256if test -z "$ac_cpp_err"; then
8257 eval "$ac_ac_Header=yes"
252b5132 8258else
b3baf5d0 8259 echo "$as_me: failed program was:" >&5
252b5132 8260 cat conftest.$ac_ext >&5
b3baf5d0 8261 eval "$ac_ac_Header=no"
252b5132 8262fi
b3baf5d0 8263rm -f conftest.err conftest.$ac_ext
252b5132 8264fi
b3baf5d0
NC
8265echo "$as_me:8265: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8266echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8267if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8268 cat >>confdefs.h <<EOF
8269#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
252b5132 8270EOF
b3baf5d0 8271
252b5132
RH
8272fi
8273done
8274
8275for ac_func in getpagesize
8276do
b3baf5d0
NC
8277ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8278echo "$as_me:8278: checking for $ac_func" >&5
8279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8280if eval "test \"\${$ac_ac_var+set}\" = set"; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 cat >conftest.$ac_ext <<_ACEOF
8284#line 8284 "configure"
252b5132
RH
8285#include "confdefs.h"
8286/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 8287 which can conflict with char $ac_func (); below. */
252b5132
RH
8288#include <assert.h>
8289/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
8290#ifdef __cplusplus
8291extern "C"
8292#endif
252b5132 8293/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
8294 builtin and then its argument prototype would still apply. */
8295char $ac_func ();
8296char (*f) ();
252b5132 8297
b3baf5d0
NC
8298int
8299main ()
8300{
252b5132
RH
8301/* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8305choke me
8306#else
b3baf5d0 8307f = $ac_func;
252b5132
RH
8308#endif
8309
b3baf5d0
NC
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
8315if { (eval echo "$as_me:8315: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:8321: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 eval "$ac_ac_var=yes"
8327else
8328 echo "$as_me: failed program was:" >&5
8329cat conftest.$ac_ext >&5
8330eval "$ac_ac_var=no"
8331fi
8332rm -f conftest$ac_exeext conftest.$ac_ext
8333fi
8334echo "$as_me:8334: result: `eval echo '${'$ac_ac_var'}'`" >&5
8335echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8336if test `eval echo '${'$ac_ac_var'}'` = yes; then
8337 cat >>confdefs.h <<EOF
8338#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 8339EOF
252b5132 8340
252b5132
RH
8341fi
8342done
8343
b3baf5d0
NC
8344echo "$as_me:8344: checking for working mmap" >&5
8345echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8346if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8348else
8349 if test "$cross_compiling" = yes; then
8350 ac_cv_func_mmap_fixed_mapped=no
8351else
b3baf5d0
NC
8352 cat >conftest.$ac_ext <<_ACEOF
8353#line 8353 "configure"
252b5132 8354#include "confdefs.h"
252b5132
RH
8355/* Thanks to Mike Haertel and Jim Avera for this test.
8356 Here is a matrix of mmap possibilities:
8357 mmap private not fixed
8358 mmap private fixed at somewhere currently unmapped
8359 mmap private fixed at somewhere already mapped
8360 mmap shared not fixed
8361 mmap shared fixed at somewhere currently unmapped
8362 mmap shared fixed at somewhere already mapped
8363 For private mappings, we should verify that changes cannot be read()
8364 back from the file, nor mmap's back from the file at a different
8365 address. (There have been systems where private was not correctly
8366 implemented like the infamous i386 svr4.0, and systems where the
b3baf5d0 8367 VM page cache was not coherent with the file system buffer cache
252b5132
RH
8368 like early versions of FreeBSD and possibly contemporary NetBSD.)
8369 For shared mappings, we should conversely verify that changes get
8370 propogated back to all the places they're supposed to be.
8371
8372 Grep wants private fixed already mapped.
8373 The main things grep needs to know about mmap are:
8374 * does it exist and is it safe to write into the mmap'd area
8375 * how to use it (BSD variants) */
8376#include <sys/types.h>
8377#include <fcntl.h>
8378#include <sys/mman.h>
8379
b3baf5d0
NC
8380#if STDC_HEADERS || HAVE_STDLIB_H
8381# include <stdlib.h>
8382#else
8383char *malloc ();
8384#endif
8385#if HAVE_UNISTD_H
8386# include <unistd.h>
8387#endif
8388#include <sys/stat.h>
252b5132 8389
b3baf5d0
NC
8390/* This mess was copied from the GNU getpagesize.h. */
8391#if !HAVE_GETPAGESIZE
252b5132 8392/* Assume that all systems that can run configure have sys/param.h. */
b3baf5d0 8393# if !HAVE_SYS_PARAM_H
252b5132
RH
8394# define HAVE_SYS_PARAM_H 1
8395# endif
8396
8397# ifdef _SC_PAGESIZE
8398# define getpagesize() sysconf(_SC_PAGESIZE)
8399# else /* no _SC_PAGESIZE */
b3baf5d0 8400# if HAVE_SYS_PARAM_H
252b5132
RH
8401# include <sys/param.h>
8402# ifdef EXEC_PAGESIZE
8403# define getpagesize() EXEC_PAGESIZE
8404# else /* no EXEC_PAGESIZE */
8405# ifdef NBPG
8406# define getpagesize() NBPG * CLSIZE
8407# ifndef CLSIZE
8408# define CLSIZE 1
8409# endif /* no CLSIZE */
8410# else /* no NBPG */
8411# ifdef NBPC
8412# define getpagesize() NBPC
8413# else /* no NBPC */
8414# ifdef PAGESIZE
8415# define getpagesize() PAGESIZE
8416# endif /* PAGESIZE */
8417# endif /* no NBPC */
8418# endif /* no NBPG */
8419# endif /* no EXEC_PAGESIZE */
8420# else /* no HAVE_SYS_PARAM_H */
8421# define getpagesize() 8192 /* punt totally */
8422# endif /* no HAVE_SYS_PARAM_H */
8423# endif /* no _SC_PAGESIZE */
8424
8425#endif /* no HAVE_GETPAGESIZE */
8426
252b5132 8427int
b3baf5d0 8428main ()
252b5132 8429{
b3baf5d0
NC
8430 char *data, *data2, *data3;
8431 int i, pagesize;
8432 int fd;
8433
8434 pagesize = getpagesize ();
8435
8436 /* First, make a file with some known garbage in it. */
8437 data = (char *) malloc (pagesize);
8438 if (!data)
8439 exit (1);
8440 for (i = 0; i < pagesize; ++i)
8441 *(data + i) = rand ();
8442 umask (0);
8443 fd = creat ("conftest.mmap", 0600);
8444 if (fd < 0)
8445 exit (1);
8446 if (write (fd, data, pagesize) != pagesize)
8447 exit (1);
8448 close (fd);
8449
8450 /* Next, try to mmap the file at a fixed address which already has
8451 something else allocated at it. If we can, also make sure that
8452 we see the same garbage. */
8453 fd = open ("conftest.mmap", O_RDWR);
8454 if (fd < 0)
8455 exit (1);
8456 data2 = (char *) malloc (2 * pagesize);
8457 if (!data2)
8458 exit (1);
8459 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8460 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8461 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8462 exit (1);
8463 for (i = 0; i < pagesize; ++i)
8464 if (*(data + i) != *(data2 + i))
8465 exit (1);
8466
8467 /* Finally, make sure that changes to the mapped area do not
8468 percolate back to the file as seen by read(). (This is a bug on
8469 some variants of i386 svr4.0.) */
8470 for (i = 0; i < pagesize; ++i)
8471 *(data2 + i) = *(data2 + i) + 1;
8472 data3 = (char *) malloc (pagesize);
8473 if (!data3)
8474 exit (1);
8475 if (read (fd, data3, pagesize) != pagesize)
8476 exit (1);
8477 for (i = 0; i < pagesize; ++i)
8478 if (*(data + i) != *(data3 + i))
8479 exit (1);
8480 close (fd);
8481 exit (0);
252b5132 8482}
b3baf5d0
NC
8483_ACEOF
8484rm -f conftest$ac_exeext
8485if { (eval echo "$as_me:8485: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>&5
8487 ac_status=$?
8488 echo "$as_me:8488: \$? = $ac_status" >&5
8489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8490 { (eval echo "$as_me:8490: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:8493: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
252b5132
RH
8495 ac_cv_func_mmap_fixed_mapped=yes
8496else
b3baf5d0
NC
8497 echo "$as_me: program exited with status $ac_status" >&5
8498echo "$as_me: failed program was:" >&5
8499cat conftest.$ac_ext >&5
8500ac_cv_func_mmap_fixed_mapped=no
252b5132 8501fi
b3baf5d0 8502rm -f conftest$ac_exeext conftest.$ac_ext
252b5132 8503fi
252b5132 8504fi
b3baf5d0
NC
8505echo "$as_me:8505: result: $ac_cv_func_mmap_fixed_mapped" >&5
8506echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 8507if test $ac_cv_func_mmap_fixed_mapped = yes; then
b3baf5d0
NC
8508
8509cat >>confdefs.h <<\EOF
252b5132
RH
8510#define HAVE_MMAP 1
8511EOF
8512
8513fi
b3baf5d0 8514rm -f conftest.mmap
252b5132
RH
8515
8516for ac_func in madvise mprotect
8517do
b3baf5d0
NC
8518ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8519echo "$as_me:8519: checking for $ac_func" >&5
8520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521if eval "test \"\${$ac_ac_var+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524 cat >conftest.$ac_ext <<_ACEOF
8525#line 8525 "configure"
252b5132
RH
8526#include "confdefs.h"
8527/* System header to define __stub macros and hopefully few prototypes,
b3baf5d0 8528 which can conflict with char $ac_func (); below. */
252b5132
RH
8529#include <assert.h>
8530/* Override any gcc2 internal prototype to avoid an error. */
b3baf5d0
NC
8531#ifdef __cplusplus
8532extern "C"
8533#endif
252b5132 8534/* We use char because int might match the return type of a gcc2
b3baf5d0
NC
8535 builtin and then its argument prototype would still apply. */
8536char $ac_func ();
8537char (*f) ();
252b5132 8538
b3baf5d0
NC
8539int
8540main ()
8541{
252b5132
RH
8542/* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546choke me
8547#else
b3baf5d0 8548f = $ac_func;
252b5132
RH
8549#endif
8550
b3baf5d0
NC
8551 ;
8552 return 0;
8553}
8554_ACEOF
8555rm -f conftest.$ac_objext conftest$ac_exeext
8556if { (eval echo "$as_me:8556: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>&5
8558 ac_status=$?
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:8562: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:8565: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 eval "$ac_ac_var=yes"
8568else
8569 echo "$as_me: failed program was:" >&5
8570cat conftest.$ac_ext >&5
8571eval "$ac_ac_var=no"
8572fi
8573rm -f conftest$ac_exeext conftest.$ac_ext
8574fi
8575echo "$as_me:8575: result: `eval echo '${'$ac_ac_var'}'`" >&5
8576echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8577if test `eval echo '${'$ac_ac_var'}'` = yes; then
8578 cat >>confdefs.h <<EOF
8579#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
252b5132 8580EOF
252b5132 8581
252b5132
RH
8582fi
8583done
8584
8585case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
b3baf5d0
NC
8586 true+yes )
8587cat >>confdefs.h <<\EOF
252b5132
RH
8588#define USE_MMAP 1
8589EOF
8590 ;;
8591esac
8592
8593rm -f doc/config.status
b3baf5d0
NC
8594ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
8595ac_config_commands="$ac_config_commands default"
8596cat >confcache <<\_ACEOF
252b5132
RH
8597# This file is a shell script that caches the results of configure
8598# tests run on this system so they can be shared between configure
b3baf5d0
NC
8599# scripts and configure runs, see configure's option --config-cache.
8600# It is not useful on other systems. If it contains results you don't
8601# want to keep, you may remove or edit it.
252b5132 8602#
b3baf5d0
NC
8603# config.status only pays attention to the cache file if you give it
8604# the --recheck option to rerun configure.
252b5132 8605#
b3baf5d0
NC
8606# `ac_cv_env_foo' variables (set or unset) will be overriden when
8607# loading this file, other *unset* `ac_cv_foo' will be assigned the
8608# following values.
8609
8610_ACEOF
8611
252b5132
RH
8612# The following way of writing the cache mishandles newlines in values,
8613# but we know of no workaround that is simple, portable, and efficient.
8614# So, don't put newlines in cache variables' values.
8615# Ultrix sh set writes to stderr and can't be redirected directly,
8616# and sets the high bit in the cache file unless we assign to the vars.
b3baf5d0
NC
8617{
8618 (set) 2>&1 |
8619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8620 *ac_space=\ *)
8621 # `set' does not quote correctly, so add quotes (double-quote
8622 # substitution turns \\\\ into \\, and sed turns \\ into \).
8623 sed -n \
8624 "s/'/'\\\\''/g;
8625 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8626 ;;
8627 *)
8628 # `set' quotes correctly as required by POSIX, so do not add quotes.
8629 sed -n \
8630 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8631 ;;
8632 esac;
8633} |
8634 sed '
8635 t clear
8636 : clear
8637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8638 t end
8639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8640 : end' >>confcache
8641if cmp -s $cache_file confcache; then :; else
252b5132 8642 if test -w $cache_file; then
b3baf5d0
NC
8643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8644 cat confcache >$cache_file
252b5132
RH
8645 else
8646 echo "not updating unwritable cache $cache_file"
8647 fi
8648fi
8649rm -f confcache
8650
252b5132
RH
8651test "x$prefix" = xNONE && prefix=$ac_default_prefix
8652# Let make expand exec_prefix.
8653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8654
b3baf5d0
NC
8655# VPATH may cause trouble with some makes, so we remove $(srcdir),
8656# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8657# trailing colons and then remove the whole line if VPATH becomes empty
8658# (actually we leave an empty line to preserve line numbers).
252b5132 8659if test "x$srcdir" = x.; then
b3baf5d0
NC
8660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8661s/:*\$(srcdir):*/:/;
8662s/:*\${srcdir}:*/:/;
8663s/:*@srcdir@:*/:/;
8664s/^\([^=]*=[ ]*\):*/\1/;
8665s/:*$//;
8666s/^[^=]*=[ ]*$//;
8667}'
252b5132
RH
8668fi
8669
252b5132
RH
8670DEFS=-DHAVE_CONFIG_H
8671
252b5132 8672: ${CONFIG_STATUS=./config.status}
b3baf5d0
NC
8673ac_clean_files_save=$ac_clean_files
8674ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8675{ echo "$as_me:8675: creating $CONFIG_STATUS" >&5
8676echo "$as_me: creating $CONFIG_STATUS" >&6;}
8677cat >$CONFIG_STATUS <<_ACEOF
8678#! $SHELL
252b5132
RH
8679# Generated automatically by configure.
8680# Run this file to recreate the current configuration.
252b5132 8681# Compiler output produced by configure, useful for debugging
b3baf5d0 8682# configure, is in config.log if it exists.
252b5132 8683
b3baf5d0
NC
8684debug=false
8685as_me=\`echo "\$0" | sed 's,.*/,,'\`
8686SHELL=\${CONFIG_SHELL-$SHELL}
8687
8688_ACEOF
8689
8690cat >>$CONFIG_STATUS <<\_ACEOF
8691# Be Bourne compatible
8692if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8693 emulate sh
8694 NULLCMD=:
8695elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8696 set -o posix
8697fi
8698
8699if expr a : '\(a\)' >/dev/null 2>&1; then
8700 as_expr=expr
8701else
8702 as_expr=false
8703fi
8704
8705rm -f conf$$ conf$$.exe conf$$.file
8706echo >conf$$.file
8707if ln -s conf$$.file conf$$ 2>/dev/null; then
8708 # We could just check for DJGPP; but this test a) works b) is more generic
8709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8710 if test -f conf$$.exe; then
8711 # Don't use ln at all; we don't have any links
8712 as_ln_s='cp -p'
8713 else
8714 as_ln_s='ln -s'
8715 fi
8716elif ln conf$$.file conf$$ 2>/dev/null; then
8717 as_ln_s=ln
8718else
8719 as_ln_s='cp -p'
8720fi
8721rm -f conf$$ conf$$.exe conf$$.file
8722
8723as_executable_p="test -f"
8724
8725# Support unset when possible.
8726if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8727 as_unset=unset
8728else
8729 as_unset=false
8730fi
8731
8732# NLS nuisances.
8733$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8734$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8735$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8736$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8737$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8738$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8739$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8740$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8741
8742# IFS
8743# We need space, tab and new line, in precisely that order.
8744as_nl='
8745'
8746IFS=" $as_nl"
8747
8748# CDPATH.
8749$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8750
8751# File descriptor usage:
8752# 0 standard input
8753# 1 file creation
8754# 2 errors and warnings
8755# 5 compiler messages saved in config.log
8756# 6 checking for... messages and results
8757exec 5>>config.log
8758exec 6>&1
8759
8760cat >&5 << EOF
8761
8762## ----------------------- ##
8763## Running config.status. ##
8764## ----------------------- ##
8765
8766This file was extended by $as_me 2.49d, executed with
8767 > $0 $@
8768on `(hostname || uname -n) 2>/dev/null | sed 1q`
8769
8770EOF
8771
8772_ACEOF
8773
8774# Files that config.status was made for.
8775if test -n "$ac_config_files"; then
8776 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8777fi
8778
8779if test -n "$ac_config_headers"; then
8780 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8781fi
8782
8783if test -n "$ac_config_links"; then
8784 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8785fi
8786
8787if test -n "$ac_config_commands"; then
8788 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8789fi
8790
8791cat >>$CONFIG_STATUS <<\EOF
8792
8793ac_cs_usage="\
8794\`$as_me' instantiates files from templates according to the
8795current configuration.
8796
8797Usage: $0 [OPTIONS] [FILE]...
8798
8799 -h, --help print this help, then exit
8800 -V, --version print version number, then exit
8801 -d, --debug don't remove temporary files
8802 --recheck update $as_me by reconfiguring in the same conditions
8803 --file=FILE[:TEMPLATE]
8804 instantiate the configuration file FILE
8805 --header=FILE[:TEMPLATE]
8806 instantiate the configuration header FILE
8807
8808Configuration files:
8809$config_files
8810
8811Configuration headers:
8812$config_headers
8813
8814Configuration commands:
8815$config_commands
8816
8817Report bugs to <bug-autoconf@gnu.org>."
8818EOF
8819
8820cat >>$CONFIG_STATUS <<EOF
8821ac_cs_version="\\
8822$CONFIG_STATUS generated by $as_me (Autoconf 2.49d).
8823Configured on host $ac_hostname by
8824 `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
8825srcdir=$srcdir
8826INSTALL="$INSTALL"
8827EOF
8828
8829cat >>$CONFIG_STATUS <<\EOF
8830# If no file are specified by the user, then we need to provide default
8831# value. By we need to know if files were specified by the user.
8832ac_need_defaults=:
8833while test $# != 0
252b5132 8834do
b3baf5d0
NC
8835 case $1 in
8836 --*=*)
8837 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8838 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8839 shift
8840 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8841 shift
8842 ;;
8843 -*);;
8844 *) # This is not an option, so the user has probably given explicit
8845 # arguments.
8846 ac_need_defaults=false;;
8847 esac
8848
8849 case $1 in
8850 # Handling of the options.
8851EOF
8852cat >>$CONFIG_STATUS <<EOF
252b5132 8853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b3baf5d0
NC
8854 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8855 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8856EOF
8857cat >>$CONFIG_STATUS <<\EOF
8858 --version | --vers* | -V )
8859 echo "$ac_cs_version"; exit 0 ;;
8860 --he | --h)
8861 # Conflict between --help and --header
8862 { { echo "$as_me:8862: error: ambiguous option: $1
8863Try \`$0 --help' for more information." >&5
8864echo "$as_me: error: ambiguous option: $1
8865Try \`$0 --help' for more information." >&2;}
8866 { (exit 1); exit 1; }; };;
8867 --help | --hel | -h )
8868 echo "$ac_cs_usage"; exit 0 ;;
8869 --debug | --d* | -d )
8870 debug=: ;;
8871 --file | --fil | --fi | --f )
8872 shift
8873 CONFIG_FILES="$CONFIG_FILES $1"
8874 ac_need_defaults=false;;
8875 --header | --heade | --head | --hea )
8876 shift
8877 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8878 ac_need_defaults=false;;
8879
8880 # Handling of arguments.
8881 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8882 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8883 'bfd-in3.h' ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
8884 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8885 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8886 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8887 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8888
8889 # This is an error.
8890 -*) { { echo "$as_me:8890: error: unrecognized option: $1
8891Try \`$0 --help' for more information." >&5
8892echo "$as_me: error: unrecognized option: $1
8893Try \`$0 --help' for more information." >&2;}
8894 { (exit 1); exit 1; }; } ;;
8895 *) { { echo "$as_me:8895: error: invalid argument: $1" >&5
8896echo "$as_me: error: invalid argument: $1" >&2;}
8897 { (exit 1); exit 1; }; };;
252b5132 8898 esac
b3baf5d0 8899 shift
252b5132
RH
8900done
8901
b3baf5d0
NC
8902EOF
8903
8904cat >>$CONFIG_STATUS <<\EOF
8905# If the user did not use the arguments to specify the items to instantiate,
8906# then the envvar interface is used. Set only those that are not.
8907# We use the long form for the default assignment because of an extremely
8908# bizarre bug on SunOS 4.1.3.
8909if $ac_need_defaults; then
8910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8913fi
8914
8915# Create a temporary directory, and hook for its removal unless debugging.
8916$debug ||
8917{
8918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8919 trap '{ (exit $?); exit $?; }' 1 2 13 15
8920}
8921
8922# Create a (secure) tmp directory for tmp files.
8923: ${TMPDIR=/tmp}
8924{
8925 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8926 test -n "$tmp" && test -d "$tmp"
8927} ||
8928{
8929 tmp=$TMPDIR/cs$$-$RANDOM
8930 (umask 077 && mkdir $tmp)
8931} ||
8932{
8933 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8934 { (exit 1); exit 1; }
8935}
252b5132 8936
252b5132 8937EOF
252b5132 8938
b3baf5d0
NC
8939cat >>$CONFIG_STATUS <<EOF
8940#
8941# INIT-COMMANDS section.
8942#
8943
8944EOF
8945
8946cat >>$CONFIG_STATUS <<EOF
252b5132 8947
b3baf5d0
NC
8948#
8949# CONFIG_FILES section.
8950#
8951
8952# No need to generate the scripts if there are no CONFIG_FILES.
8953# This happens for instance when ./config.status config.h
8954if test -n "\$CONFIG_FILES"; then
8955 # Protect against being on the right side of a sed subst in config.status.
8956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958s,@SHELL@,$SHELL,;t t
8959s,@exec_prefix@,$exec_prefix,;t t
8960s,@prefix@,$prefix,;t t
8961s,@program_transform_name@,$program_transform_name,;t t
8962s,@bindir@,$bindir,;t t
8963s,@sbindir@,$sbindir,;t t
8964s,@libexecdir@,$libexecdir,;t t
8965s,@datadir@,$datadir,;t t
8966s,@sysconfdir@,$sysconfdir,;t t
8967s,@sharedstatedir@,$sharedstatedir,;t t
8968s,@localstatedir@,$localstatedir,;t t
8969s,@libdir@,$libdir,;t t
8970s,@includedir@,$includedir,;t t
8971s,@oldincludedir@,$oldincludedir,;t t
8972s,@infodir@,$infodir,;t t
8973s,@mandir@,$mandir,;t t
8974s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8975s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8976s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8977s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8978s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8979s,@ECHO_C@,$ECHO_C,;t t
8980s,@ECHO_N@,$ECHO_N,;t t
8981s,@ECHO_T@,$ECHO_T,;t t
8982s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8983s,@DEFS@,$DEFS,;t t
8984s,@LIBS@,$LIBS,;t t
8985s,@build@,$build,;t t
8986s,@build_cpu@,$build_cpu,;t t
8987s,@build_vendor@,$build_vendor,;t t
8988s,@build_os@,$build_os,;t t
8989s,@host@,$host,;t t
8990s,@host_cpu@,$host_cpu,;t t
8991s,@host_vendor@,$host_vendor,;t t
8992s,@host_os@,$host_os,;t t
8993s,@target@,$target,;t t
8994s,@target_cpu@,$target_cpu,;t t
8995s,@target_vendor@,$target_vendor,;t t
8996s,@target_os@,$target_os,;t t
8997s,@CC@,$CC,;t t
8998s,@CFLAGS@,$CFLAGS,;t t
8999s,@LDFLAGS@,$LDFLAGS,;t t
9000s,@ac_ct_CC@,$ac_ct_CC,;t t
9001s,@EXEEXT@,$EXEEXT,;t t
9002s,@OBJEXT@,$OBJEXT,;t t
9003s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9004s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9005s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9006s,@PACKAGE@,$PACKAGE,;t t
9007s,@VERSION@,$VERSION,;t t
9008s,@ACLOCAL@,$ACLOCAL,;t t
9009s,@AUTOCONF@,$AUTOCONF,;t t
9010s,@AUTOMAKE@,$AUTOMAKE,;t t
9011s,@AUTOHEADER@,$AUTOHEADER,;t t
9012s,@MAKEINFO@,$MAKEINFO,;t t
9013s,@SET_MAKE@,$SET_MAKE,;t t
9014s,@AR@,$AR,;t t
9015s,@ac_ct_AR@,$ac_ct_AR,;t t
9016s,@RANLIB@,$RANLIB,;t t
9017s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9018s,@LN_S@,$LN_S,;t t
9019s,@STRIP@,$STRIP,;t t
9020s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9021s,@LIBTOOL@,$LIBTOOL,;t t
9022s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9023s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9024s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9025s,@MAINT@,$MAINT,;t t
9026s,@CPP@,$CPP,;t t
9027s,@CPPFLAGS@,$CPPFLAGS,;t t
9028s,@ALLOCA@,$ALLOCA,;t t
9029s,@USE_NLS@,$USE_NLS,;t t
9030s,@MSGFMT@,$MSGFMT,;t t
9031s,@GMSGFMT@,$GMSGFMT,;t t
9032s,@XGETTEXT@,$XGETTEXT,;t t
9033s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9034s,@CATALOGS@,$CATALOGS,;t t
9035s,@CATOBJEXT@,$CATOBJEXT,;t t
9036s,@DATADIRNAME@,$DATADIRNAME,;t t
9037s,@GMOFILES@,$GMOFILES,;t t
9038s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9039s,@INTLDEPS@,$INTLDEPS,;t t
9040s,@INTLLIBS@,$INTLLIBS,;t t
9041s,@INTLOBJS@,$INTLOBJS,;t t
9042s,@POFILES@,$POFILES,;t t
9043s,@POSUB@,$POSUB,;t t
9044s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9045s,@GT_NO@,$GT_NO,;t t
9046s,@GT_YES@,$GT_YES,;t t
9047s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9048s,@l@,$l,;t t
9049s,@HDEFINES@,$HDEFINES,;t t
9050s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
9051s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
9052s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
9053s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
9054s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9055s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9056s,@COREFILE@,$COREFILE,;t t
9057s,@COREFLAG@,$COREFLAG,;t t
9058s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9059s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9060s,@TDEFINES@,$TDEFINES,;t t
9061s,@wordsize@,$wordsize,;t t
9062s,@all_backends@,$all_backends,;t t
9063s,@bfd_backends@,$bfd_backends,;t t
9064s,@bfd_machines@,$bfd_machines,;t t
9065s,@tdefaults@,$tdefaults,;t t
252b5132 9066CEOF
b3baf5d0 9067
252b5132
RH
9068EOF
9069
b3baf5d0
NC
9070 cat >>$CONFIG_STATUS <<\EOF
9071 # Split the substitutions into bite-sized pieces for seds with
9072 # small command number limits, like on Digital OSF/1 and HP-UX.
9073 ac_max_sed_lines=48
9074 ac_sed_frag=1 # Number of current file.
9075 ac_beg=1 # First line for current file.
9076 ac_end=$ac_max_sed_lines # Line after last line for current file.
9077 ac_more_lines=:
9078 ac_sed_cmds=
9079 while $ac_more_lines; do
9080 if test $ac_beg -gt 1; then
9081 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9082 else
9083 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9084 fi
9085 if test ! -s $tmp/subs.frag; then
9086 ac_more_lines=false
252b5132 9087 else
b3baf5d0
NC
9088 # The purpose of the label and of the branching condition is to
9089 # speed up the sed processing (if there are no `@' at all, there
9090 # is no need to browse any of the substitutions).
9091 # These are the two extra sed commands mentioned above.
9092 (echo ':t
9093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9094 if test -z "$ac_sed_cmds"; then
9095 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9096 else
9097 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9098 fi
9099 ac_sed_frag=`expr $ac_sed_frag + 1`
9100 ac_beg=$ac_end
9101 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 9102 fi
b3baf5d0
NC
9103 done
9104 if test -z "$ac_sed_cmds"; then
9105 ac_sed_cmds=cat
252b5132 9106 fi
b3baf5d0 9107fi # test -n "$CONFIG_FILES"
252b5132 9108
252b5132 9109EOF
b3baf5d0
NC
9110cat >>$CONFIG_STATUS <<\EOF
9111for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 9112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b3baf5d0
NC
9113 case $ac_file in
9114 - | *:- | *:-:* ) # input from stdin
9115 cat >$tmp/stdin
9116 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9118 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9120 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9121 esac
9122
b3baf5d0
NC
9123 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9124 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9125 X"$ac_file" : 'X\(//\)[^/]' \| \
9126 X"$ac_file" : 'X\(//\)$' \| \
9127 X"$ac_file" : 'X\(/\)' \| \
9128 . : '\(.\)' 2>/dev/null ||
9129echo X"$ac_file" |
9130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9132 /^X\(\/\/\)$/{ s//\1/; q; }
9133 /^X\(\/\).*/{ s//\1/; q; }
9134 s/.*/./; q'`
252b5132 9135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b3baf5d0
NC
9136 { case "$ac_dir" in
9137 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9138 *) as_incr_dir=.;;
9139esac
9140as_dummy="$ac_dir"
9141for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9142 case $as_mkdir_dir in
9143 # Skip DOS drivespec
9144 ?:) as_incr_dir=$as_mkdir_dir ;;
9145 *)
9146 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9147 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9148 ;;
9149 esac
9150done; }
9151
9152 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
252b5132 9153 # A "../" for each directory in $ac_dir_suffix.
b3baf5d0 9154 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
252b5132
RH
9155 else
9156 ac_dir_suffix= ac_dots=
9157 fi
9158
b3baf5d0
NC
9159 case $srcdir in
9160 .) ac_srcdir=.
9161 if test -z "$ac_dots"; then
9162 ac_top_srcdir=.
9163 else
9164 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9165 fi ;;
9166 [\\/]* | ?:[\\/]* )
9167 ac_srcdir=$srcdir$ac_dir_suffix;
9168 ac_top_srcdir=$srcdir ;;
252b5132 9169 *) # Relative path.
b3baf5d0
NC
9170 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9171 ac_top_srcdir=$ac_dots$srcdir ;;
252b5132
RH
9172 esac
9173
b3baf5d0
NC
9174 case $INSTALL in
9175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9176 *) ac_INSTALL=$ac_dots$INSTALL ;;
252b5132
RH
9177 esac
9178
b3baf5d0
NC
9179 if test x"$ac_file" != x-; then
9180 { echo "$as_me:9180: creating $ac_file" >&5
9181echo "$as_me: creating $ac_file" >&6;}
9182 rm -f "$ac_file"
9183 fi
9184 # Let's still pretend it is `configure' which instantiates (i.e., don't
9185 # use $as_me), people would be surprised to read:
9186 # /* config.h. Generated automatically by config.status. */
9187 configure_input="Generated automatically from `echo $ac_file_in |
9188 sed 's,.*/,,'` by configure."
9189
9190 # First look for the input files in the build tree, otherwise in the
9191 # src tree.
9192 ac_file_inputs=`IFS=:
9193 for f in $ac_file_in; do
9194 case $f in
9195 -) echo $tmp/stdin ;;
9196 [\\/$]* | ?:[\\/]*)
9197 # Absolute
9198 test -f "$f" || { { echo "$as_me:9198: error: cannot find input file: $f" >&5
9199echo "$as_me: error: cannot find input file: $f" >&2;}
9200 { (exit 1); exit 1; }; }
9201 echo $f;;
9202 *) # Relative
9203 if test -f "$f"; then
9204 # Build tree
9205 echo $f
9206 elif test -f "$srcdir/$f"; then
9207 # Source tree
9208 echo $srcdir/$f
9209 else
9210 # /dev/null tree
9211 { { echo "$as_me:9211: error: cannot find input file: $f" >&5
9212echo "$as_me: error: cannot find input file: $f" >&2;}
9213 { (exit 1); exit 1; }; }
9214 fi;;
9215 esac
9216 done` || { (exit 1); exit 1; }
9217EOF
9218cat >>$CONFIG_STATUS <<EOF
9219 sed "$ac_vpsub
9220$extrasub
9221EOF
9222cat >>$CONFIG_STATUS <<\EOF
9223:t
9224/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9225s,@configure_input@,$configure_input,;t t
9226s,@srcdir@,$ac_srcdir,;t t
9227s,@top_srcdir@,$ac_top_srcdir,;t t
9228s,@INSTALL@,$ac_INSTALL,;t t
9229" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9230 rm -f $tmp/stdin
9231 if test x"$ac_file" != x-; then
9232 mv $tmp/out $ac_file
9233 else
9234 cat $tmp/out
9235 rm -f $tmp/out
9236 fi
9237
9238done
9239EOF
9240cat >>$CONFIG_STATUS <<\EOF
252b5132 9241
b3baf5d0
NC
9242#
9243# CONFIG_HEADER section.
9244#
252b5132
RH
9245
9246# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9247# NAME is the cpp macro being defined and VALUE is the value it is being given.
9248#
9249# ac_d sets the value in "#define NAME VALUE" lines.
b3baf5d0
NC
9250ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9251ac_dB='[ ].*$,\1#\2'
9252ac_dC=' '
9253ac_dD=',;t'
9254# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9255ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9256ac_uB='$,\1#\2define\3'
252b5132 9257ac_uC=' '
b3baf5d0
NC
9258ac_uD=',;t'
9259
9260for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b3baf5d0
NC
9262 case $ac_file in
9263 - | *:- | *:-:* ) # input from stdin
9264 cat >$tmp/stdin
9265 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9267 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9269 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9270 esac
9271
b3baf5d0
NC
9272 test x"$ac_file" != x- && { echo "$as_me:9272: creating $ac_file" >&5
9273echo "$as_me: creating $ac_file" >&6;}
9274
9275 # First look for the input files in the build tree, otherwise in the
9276 # src tree.
9277 ac_file_inputs=`IFS=:
9278 for f in $ac_file_in; do
9279 case $f in
9280 -) echo $tmp/stdin ;;
9281 [\\/$]* | ?:[\\/]*)
9282 # Absolute
9283 test -f "$f" || { { echo "$as_me:9283: error: cannot find input file: $f" >&5
9284echo "$as_me: error: cannot find input file: $f" >&2;}
9285 { (exit 1); exit 1; }; }
9286 echo $f;;
9287 *) # Relative
9288 if test -f "$f"; then
9289 # Build tree
9290 echo $f
9291 elif test -f "$srcdir/$f"; then
9292 # Source tree
9293 echo $srcdir/$f
9294 else
9295 # /dev/null tree
9296 { { echo "$as_me:9296: error: cannot find input file: $f" >&5
9297echo "$as_me: error: cannot find input file: $f" >&2;}
9298 { (exit 1); exit 1; }; }
9299 fi;;
9300 esac
9301 done` || { (exit 1); exit 1; }
9302 # Remove the trailing spaces.
9303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9304
9305EOF
9306
9307# Transform confdefs.h into two sed scripts, `conftest.defines' and
9308# `conftest.undefs', that substitutes the proper values into
9309# config.h.in to produce config.h. The first handles `#define'
9310# templates, and the second `#undef' templates.
9311# And first: Protect against being on the right side of a sed subst in
9312# config.status. Protect against being in an unquoted here document
9313# in config.status.
9314rm -f conftest.defines conftest.undefs
9315# Using a here document instead of a string reduces the quoting nightmare.
9316# Putting comments in sed scripts is not portable.
9317#
9318# `end' is used to avoid that the second main sed command (meant for
9319# 0-ary CPP macros) applies to n-ary macro definitions.
9320# See the Autoconf documentation for `clear'.
9321cat >confdef2sed.sed <<\EOF
9322s/[\\&,]/\\&/g
9323s,[\\$`],\\&,g
9324t clear
9325: clear
9326s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9327t end
9328s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9329: end
9330EOF
9331# If some macros were called several times there might be several times
9332# the same #defines, which is useless. Nevertheless, we may not want to
9333# sort them, since we want the *last* AC-DEFINE to be honored.
9334uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9335sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9336rm -f confdef2sed.sed
252b5132
RH
9337
9338# This sed command replaces #undef with comments. This is necessary, for
9339# example, in the case of _POSIX_SOURCE, which is predefined and required
9340# on some systems where configure will not decide to define it.
b3baf5d0
NC
9341cat >>conftest.undefs <<\EOF
9342s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
252b5132
RH
9343EOF
9344
b3baf5d0
NC
9345# Break up conftest.defines because some shells have a limit on the size
9346# of here documents, and old seds have small limits too (100 cmds).
9347echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9348echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9349echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9350echo ' :' >>$CONFIG_STATUS
9351rm -f conftest.tail
9352while grep . conftest.defines >/dev/null
9353do
9354 # Write a limited-size here document to $tmp/defines.sed.
9355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9356 # Speed up: don't consider the non `#define' lines.
9357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9358 # Work around the forget-to-reset-the-flag bug.
9359 echo 't clr' >>$CONFIG_STATUS
9360 echo ': clr' >>$CONFIG_STATUS
9361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9362 echo 'CEOF
9363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9364 rm -f $tmp/in
9365 mv $tmp/out $tmp/in
9366' >>$CONFIG_STATUS
9367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9368 rm -f conftest.defines
9369 mv conftest.tail conftest.defines
9370done
9371rm -f conftest.defines
9372echo ' fi # egrep' >>$CONFIG_STATUS
9373echo >>$CONFIG_STATUS
252b5132 9374
b3baf5d0
NC
9375# Break up conftest.undefs because some shells have a limit on the size
9376# of here documents, and old seds have small limits too (100 cmds).
9377echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 9378rm -f conftest.tail
b3baf5d0 9379while grep . conftest.undefs >/dev/null
252b5132 9380do
b3baf5d0
NC
9381 # Write a limited-size here document to $tmp/undefs.sed.
9382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9383 # Speed up: don't consider the non `#undef'
9384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9385 # Work around the forget-to-reset-the-flag bug.
9386 echo 't clr' >>$CONFIG_STATUS
9387 echo ': clr' >>$CONFIG_STATUS
9388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 9389 echo 'CEOF
b3baf5d0
NC
9390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9391 rm -f $tmp/in
9392 mv $tmp/out $tmp/in
9393' >>$CONFIG_STATUS
9394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9395 rm -f conftest.undefs
9396 mv conftest.tail conftest.undefs
252b5132 9397done
b3baf5d0
NC
9398rm -f conftest.undefs
9399
9400cat >>$CONFIG_STATUS <<\EOF
9401 # Let's still pretend it is `configure' which instantiates (i.e., don't
9402 # use $as_me), people would be surprised to read:
9403 # /* config.h. Generated automatically by config.status. */
9404 if test x"$ac_file" = x-; then
9405 echo "/* Generated automatically by configure. */" >$tmp/config.h
252b5132 9406 else
b3baf5d0
NC
9407 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9408 fi
9409 cat $tmp/in >>$tmp/config.h
9410 rm -f $tmp/in
9411 if test x"$ac_file" != x-; then
9412 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9413 { echo "$as_me:9413: $ac_file is unchanged" >&5
9414echo "$as_me: $ac_file is unchanged" >&6;}
9415 else
9416 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9417 X"$ac_file" : 'X\(//\)[^/]' \| \
9418 X"$ac_file" : 'X\(//\)$' \| \
9419 X"$ac_file" : 'X\(/\)' \| \
9420 . : '\(.\)' 2>/dev/null ||
9421echo X"$ac_file" |
9422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9424 /^X\(\/\/\)$/{ s//\1/; q; }
9425 /^X\(\/\).*/{ s//\1/; q; }
9426 s/.*/./; q'`
252b5132 9427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b3baf5d0
NC
9428 { case "$ac_dir" in
9429 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9430 *) as_incr_dir=.;;
9431esac
9432as_dummy="$ac_dir"
9433for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9434 case $as_mkdir_dir in
9435 # Skip DOS drivespec
9436 ?:) as_incr_dir=$as_mkdir_dir ;;
9437 *)
9438 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9439 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9440 ;;
9441 esac
9442done; }
9443
9444 fi
9445 rm -f $ac_file
9446 mv $tmp/config.h $ac_file
252b5132 9447 fi
b3baf5d0
NC
9448 else
9449 cat $tmp/config.h
9450 rm -f $tmp/config.h
252b5132 9451 fi
b3baf5d0 9452done
252b5132 9453EOF
b3baf5d0 9454cat >>$CONFIG_STATUS <<\EOF
252b5132 9455
b3baf5d0
NC
9456#
9457# CONFIG_COMMANDS section.
9458#
9459for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
252b5132 9462
b3baf5d0
NC
9463 case $ac_dest in
9464 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9465 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
9466 esac
9467done
252b5132 9468EOF
b3baf5d0
NC
9469
9470cat >>$CONFIG_STATUS <<\EOF
9471
9472{ (exit 0); exit 0; }
252b5132
RH
9473EOF
9474chmod +x $CONFIG_STATUS
b3baf5d0 9475ac_clean_files=$ac_clean_files_save
252b5132 9476
b3baf5d0 9477test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; }
55c80943 9478