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