* configure.in: Add support for powerpc-*-windiss.
[binutils-gdb.git] / gas / configure
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
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
35 fi
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.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo 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.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if 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
94 fi
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
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
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
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
147 done
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
182 case `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= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if 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
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_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.
219 as_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.
224 as_nl='
225 '
226 IFS=" $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.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${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.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="as.h"
262 # Factoring default headers for most tests.
263 ac_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.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_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.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
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
612 Try \`$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
635 done
636
637 if 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; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
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
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657 do
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
664 done
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.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if 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
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if 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 ||
700 echo 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
710 else
711 ac_srcdir_defaulted=no
712 fi
713 if 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
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if 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
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
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
786 Installation 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
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine 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
816 Program 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
821 System 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
826 fi
827
828 if test -n "$ac_init_help"; then
829
830 cat <<\_ACEOF
831
832 Optional 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
847 Optional 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
854 Some 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
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
865
866 _ACEOF
867 fi
868
869 if 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
876 if 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'`
880 else
881 ac_dir_suffix= ac_top_builddir=
882 fi
883
884 case $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 ;;
898 esac
899 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
900 # absolute.
901 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
902 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
903 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
904 ac_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
923 fi
924
925 test -n "$ac_init_help" && exit 0
926 if $ac_init_version; then
927 cat <<\_ACEOF
928
929 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
930 Free Software Foundation, Inc.
931 This configure script is free software; the Free Software Foundation
932 gives unlimited permission to copy, distribute and modify it.
933 _ACEOF
934 exit 0
935 fi
936 exec 5>config.log
937 cat >&5 <<_ACEOF
938 This file contains any messages produced by compilers while
939 running configure, to aid debugging if configure makes a mistake.
940
941 It was created by $as_me, which was
942 generated by GNU Autoconf 2.53. Invocation command line was
943
944 $ $0 $@
945
946 _ACEOF
947 {
948 cat <<_ASUNAME
949 ## --------- ##
950 ## Platform. ##
951 ## --------- ##
952
953 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
954 uname -m = `(uname -m) 2>/dev/null || echo unknown`
955 uname -r = `(uname -r) 2>/dev/null || echo unknown`
956 uname -s = `(uname -s) 2>/dev/null || echo unknown`
957 uname -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`
965 hostinfo = `(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
972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973 for as_dir in $PATH
974 do
975 IFS=$as_save_IFS
976 test -z "$as_dir" && as_dir=.
977 echo "PATH: $as_dir"
978 done
979
980 } >&5
981
982 cat >&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.
995 ac_configure_args=
996 ac_sep=
997 for ac_arg
998 do
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.
1014 done
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.
1021 trap '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
1065 for ac_signal in 1 2 13 15; do
1066 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1067 done
1068 ac_signal=0
1069
1070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1071 rm -rf conftest* confdefs.h
1072 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 echo >confdefs.h
1074
1075 # Predefined preprocessor variables.
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_NAME "$PACKAGE_NAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_STRING "$PACKAGE_STRING"
1094 _ACEOF
1095
1096
1097 cat >>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.
1104 if 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
1110 fi
1111 for 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
1114 echo "$as_me: loading site script $ac_site_file" >&6;}
1115 sed 's/^/| /' "$ac_site_file" >&5
1116 . "$ac_site_file"
1117 fi
1118 done
1119
1120 if 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
1125 echo "$as_me: loading cache $cache_file" >&6;}
1126 case $cache_file in
1127 [\\/]* | ?:[\\/]* ) . $cache_file;;
1128 *) . ./$cache_file;;
1129 esac
1130 fi
1131 else
1132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1133 echo "$as_me: creating cache $cache_file" >&6;}
1134 >$cache_file
1135 fi
1136
1137 # Check that the precious variables saved in the cache have kept the same
1138 # value.
1139 ac_cache_corrupted=false
1140 for 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
1149 echo "$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
1153 echo "$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
1159 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1160 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1161 echo "$as_me: former value: $ac_old_val" >&2;}
1162 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1163 echo "$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
1179 done
1180 if $ac_cache_corrupted; then
1181 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1182 echo "$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
1184 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1185 { (exit 1); exit 1; }; }
1186 fi
1187
1188 ac_ext=c
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1192 ac_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
1212 ac_aux_dir=
1213 for 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
1227 done
1228 if test -z "$ac_aux_dir"; then
1229 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1230 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1231 { (exit 1); exit 1; }; }
1232 fi
1233 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1234 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1235 ac_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
1240 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1241 { (exit 1); exit 1; }; }
1242
1243 echo "$as_me:$LINENO: checking build system type" >&5
1244 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1245 if test "${ac_cv_build+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" >&6
1247 else
1248 ac_cv_build_alias=$build_alias
1249 test -z "$ac_cv_build_alias" &&
1250 ac_cv_build_alias=`$ac_config_guess`
1251 test -z "$ac_cv_build_alias" &&
1252 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1254 { (exit 1); exit 1; }; }
1255 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1256 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1257 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1258 { (exit 1); exit 1; }; }
1259
1260 fi
1261 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1262 echo "${ECHO_T}$ac_cv_build" >&6
1263 build=$ac_cv_build
1264 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1265 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1266 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1267
1268
1269 echo "$as_me:$LINENO: checking host system type" >&5
1270 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1271 if test "${ac_cv_host+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1273 else
1274 ac_cv_host_alias=$host_alias
1275 test -z "$ac_cv_host_alias" &&
1276 ac_cv_host_alias=$ac_cv_build_alias
1277 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1278 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1279 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1280 { (exit 1); exit 1; }; }
1281
1282 fi
1283 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1284 echo "${ECHO_T}$ac_cv_host" >&6
1285 host=$ac_cv_host
1286 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1287 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1288 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1289
1290
1291 echo "$as_me:$LINENO: checking target system type" >&5
1292 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1293 if test "${ac_cv_target+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 else
1296 ac_cv_target_alias=$target_alias
1297 test "x$ac_cv_target_alias" = "x" &&
1298 ac_cv_target_alias=$ac_cv_host_alias
1299 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1300 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1301 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1302 { (exit 1); exit 1; }; }
1303
1304 fi
1305 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1306 echo "${ECHO_T}$ac_cv_target" >&6
1307 target=$ac_cv_target
1308 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 target_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.
1315 test -n "$target_alias" &&
1316 test "$program_prefix$program_suffix$program_transform_name" = \
1317 NONENONEs,x,x, &&
1318 program_prefix=${target_alias}-
1319 ac_ext=c
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 if 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.
1326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1327 echo "$as_me:$LINENO: checking for $ac_word" >&5
1328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329 if test "${ac_cv_prog_CC+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 else
1332 if test -n "$CC"; then
1333 ac_cv_prog_CC="$CC" # Let the user override the test.
1334 else
1335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336 for as_dir in $PATH
1337 do
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
1346 done
1347 done
1348
1349 fi
1350 fi
1351 CC=$ac_cv_prog_CC
1352 if test -n "$CC"; then
1353 echo "$as_me:$LINENO: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1355 else
1356 echo "$as_me:$LINENO: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1358 fi
1359
1360 fi
1361 if 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.
1364 set dummy gcc; ac_word=$2
1365 echo "$as_me:$LINENO: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$ac_ct_CC"; then
1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372 else
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
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
1384 done
1385 done
1386
1387 fi
1388 fi
1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390 if test -n "$ac_ct_CC"; then
1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1392 echo "${ECHO_T}$ac_ct_CC" >&6
1393 else
1394 echo "$as_me:$LINENO: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1396 fi
1397
1398 CC=$ac_ct_CC
1399 else
1400 CC="$ac_cv_prog_CC"
1401 fi
1402
1403 if 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.
1406 set dummy ${ac_tool_prefix}cc; ac_word=$2
1407 echo "$as_me:$LINENO: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1414 else
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1417 do
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
1426 done
1427 done
1428
1429 fi
1430 fi
1431 CC=$ac_cv_prog_CC
1432 if test -n "$CC"; then
1433 echo "$as_me:$LINENO: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1435 else
1436 echo "$as_me:$LINENO: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1438 fi
1439
1440 fi
1441 if 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.
1444 set dummy cc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1452 else
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
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
1464 done
1465 done
1466
1467 fi
1468 fi
1469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470 if test -n "$ac_ct_CC"; then
1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1472 echo "${ECHO_T}$ac_ct_CC" >&6
1473 else
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 fi
1477
1478 CC=$ac_ct_CC
1479 else
1480 CC="$ac_cv_prog_CC"
1481 fi
1482
1483 fi
1484 if test -z "$CC"; then
1485 # Extract the first word of "cc", so it can be a program name with args.
1486 set dummy cc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 else
1495 ac_prog_rejected=no
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 for as_dir in $PATH
1498 do
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
1511 done
1512 done
1513
1514 if 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
1527 fi
1528 fi
1529 fi
1530 CC=$ac_cv_prog_CC
1531 if test -n "$CC"; then
1532 echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 fi
1540 if 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.
1545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
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
1565 done
1566 done
1567
1568 fi
1569 fi
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 test -n "$CC" && break
1580 done
1581 fi
1582 if test -z "$CC"; then
1583 ac_ct_CC=$CC
1584 for ac_prog in cl
1585 do
1586 # Extract the first word of "$ac_prog", so it can be a program name with args.
1587 set dummy $ac_prog; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1595 else
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1598 do
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
1607 done
1608 done
1609
1610 fi
1611 fi
1612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613 if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615 echo "${ECHO_T}$ac_ct_CC" >&6
1616 else
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1619 fi
1620
1621 test -n "$ac_ct_CC" && break
1622 done
1623
1624 CC=$ac_ct_CC
1625 fi
1626
1627 fi
1628
1629
1630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1631 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1632 { (exit 1); exit 1; }; }
1633
1634 # Provide some information about the compiler.
1635 echo "$as_me:$LINENO:" \
1636 "checking for C compiler version" >&5
1637 ac_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
1654 cat >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
1664 int
1665 main ()
1666 {
1667
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 ac_clean_files_save=$ac_clean_files
1673 ac_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.
1677 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1678 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1679 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1680 if { (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.
1691 ac_cv_exeext=
1692 for 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
1706 done
1707 else
1708 echo "$as_me: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1711 echo "$as_me: error: C compiler cannot create executables" >&2;}
1712 { (exit 77); exit 77; }; }
1713 fi
1714
1715 ac_exeext=$ac_cv_exeext
1716 echo "$as_me:$LINENO: result: $ac_file" >&5
1717 echo "${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.
1721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722 echo $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.
1725 if 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.
1738 If you meant to cross compile, use \`--host'." >&5
1739 echo "$as_me: error: cannot run C compiled programs.
1740 If you meant to cross compile, use \`--host'." >&2;}
1741 { (exit 1); exit 1; }; }
1742 fi
1743 fi
1744 fi
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1747
1748 rm -f a.out a.exe conftest$ac_cv_exeext
1749 ac_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.
1752 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755 echo "${ECHO_T}$cross_compiling" >&6
1756
1757 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759 if { (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'.
1768 for 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
1776 done
1777 else
1778 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1779 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1780 { (exit 1); exit 1; }; }
1781 fi
1782
1783 rm -f conftest$ac_cv_exeext
1784 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1785 echo "${ECHO_T}$ac_cv_exeext" >&6
1786
1787 rm -f conftest.$ac_ext
1788 EXEEXT=$ac_cv_exeext
1789 ac_exeext=$EXEEXT
1790 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1791 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1792 if test "${ac_cv_objext+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
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
1805 int
1806 main ()
1807 {
1808
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 rm -f conftest.o conftest.obj
1814 if { (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
1825 done
1826 else
1827 echo "$as_me: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1830 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833
1834 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 fi
1836 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1837 echo "${ECHO_T}$ac_cv_objext" >&6
1838 OBJEXT=$ac_cv_objext
1839 ac_objext=$OBJEXT
1840 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1841 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1842 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
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
1855 int
1856 main ()
1857 {
1858 #ifndef __GNUC__
1859 choke me
1860 #endif
1861
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 rm -f conftest.$ac_objext
1867 if { (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
1879 else
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 ac_compiler_gnu=no
1883 fi
1884 rm -f conftest.$ac_objext conftest.$ac_ext
1885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1886
1887 fi
1888 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1889 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1890 GCC=`test $ac_compiler_gnu = yes && echo yes`
1891 ac_test_CFLAGS=${CFLAGS+set}
1892 ac_save_CFLAGS=$CFLAGS
1893 CFLAGS="-g"
1894 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1895 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1896 if test "${ac_cv_prog_cc_g+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
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
1909 int
1910 main ()
1911 {
1912
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 rm -f conftest.$ac_objext
1918 if { (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
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 ac_cv_prog_cc_g=no
1934 fi
1935 rm -f conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS=$ac_save_CFLAGS
1941 elif 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
1947 else
1948 if test "$GCC" = yes; then
1949 CFLAGS="-O2"
1950 else
1951 CFLAGS=
1952 fi
1953 fi
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.
1958 cat >conftest.$ac_ext <<_ACEOF
1959 #ifndef __cplusplus
1960 choke me
1961 #endif
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (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);'
1983 do
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
1995 int
1996 main ()
1997 {
1998 exit (42);
1999 ;
2000 return 0;
2001 }
2002 _ACEOF
2003 rm -f conftest.$ac_objext
2004 if { (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 :
2016 else
2017 echo "$as_me: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 continue
2020 fi
2021 rm -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
2032 int
2033 main ()
2034 {
2035 exit (42);
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.$ac_objext
2041 if { (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
2053 else
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 fi
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2058 done
2059 rm -f conftest*
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2064 fi
2065
2066 else
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2069 fi
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076
2077
2078
2079 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2080 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2081 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 ac_check_lib_save_LIBS=$LIBS
2085 LIBS="-lcposix $LIBS"
2086 cat >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
2092 extern "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. */
2096 char strerror ();
2097 #ifdef F77_DUMMY_MAIN
2098 # ifdef __cplusplus
2099 extern "C"
2100 # endif
2101 int F77_DUMMY_MAIN() { return 1; }
2102 #endif
2103 int
2104 main ()
2105 {
2106 strerror ();
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.$ac_objext conftest$ac_exeext
2112 if { (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
2124 else
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 ac_cv_lib_cposix_strerror=no
2128 fi
2129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2130 LIBS=$ac_check_lib_save_LIBS
2131 fi
2132 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2133 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2134 if test $ac_cv_lib_cposix_strerror = yes; then
2135 LIBS="$LIBS -lcposix"
2136 fi
2137
2138
2139
2140
2141 BFD_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.
2154 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2155 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2156 if test -z "$INSTALL"; then
2157 if test "${ac_cv_path_install+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 # Account for people who put trailing slashes in PATH elements.
2166 case $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 ;;
2193 esac
2194 done
2195
2196
2197 fi
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
2207 fi
2208 echo "$as_me:$LINENO: result: $INSTALL" >&5
2209 echo "${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.
2213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214
2215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216
2217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218
2219 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2221 # Just in case
2222 sleep 1
2223 echo 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).
2229 if (
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
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248
2249 test "$2" = conftestfile
2250 )
2251 then
2252 # Ok.
2253 :
2254 else
2255 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
2260 fi
2261 rm -f conftest*
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2264 test "$program_prefix" != NONE &&
2265 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2266 # Use a double $ so make ignores it.
2267 test "$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.
2271 cat <<\_ACEOF >conftest.sed
2272 s/[\\$]/&&/g;s/;s,x,x,$//
2273 _ACEOF
2274 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2275 rm conftest.sed
2276
2277 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2278 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2279 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2280 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 cat >conftest.make <<\_ACEOF
2284 all:
2285 @echo 'ac_maketemp="${MAKE}"'
2286 _ACEOF
2287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2288 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2289 if test -n "$ac_maketemp"; then
2290 eval ac_cv_prog_make_${ac_make}_set=yes
2291 else
2292 eval ac_cv_prog_make_${ac_make}_set=no
2293 fi
2294 rm -f conftest.make
2295 fi
2296 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2297 echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6
2299 SET_MAKE=
2300 else
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2303 SET_MAKE="MAKE=${MAKE-make}"
2304 fi
2305
2306
2307 PACKAGE=gas
2308
2309 VERSION=${BFD_VERSION}
2310
2311 if 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
2313 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2314 { (exit 1); exit 1; }; }
2315 fi
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE "$PACKAGE"
2319 _ACEOF
2320
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define VERSION "$VERSION"
2324 _ACEOF
2325
2326
2327
2328 missing_dir=`cd $ac_aux_dir && pwd`
2329 echo "$as_me:$LINENO: checking for working aclocal" >&5
2330 echo $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.
2334 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2335 ACLOCAL=aclocal
2336 echo "$as_me:$LINENO: result: found" >&5
2337 echo "${ECHO_T}found" >&6
2338 else
2339 ACLOCAL="$missing_dir/missing aclocal"
2340 echo "$as_me:$LINENO: result: missing" >&5
2341 echo "${ECHO_T}missing" >&6
2342 fi
2343
2344 echo "$as_me:$LINENO: checking for working autoconf" >&5
2345 echo $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.
2349 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2350 AUTOCONF=autoconf
2351 echo "$as_me:$LINENO: result: found" >&5
2352 echo "${ECHO_T}found" >&6
2353 else
2354 AUTOCONF="$missing_dir/missing autoconf"
2355 echo "$as_me:$LINENO: result: missing" >&5
2356 echo "${ECHO_T}missing" >&6
2357 fi
2358
2359 echo "$as_me:$LINENO: checking for working automake" >&5
2360 echo $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.
2364 if (automake --version) < /dev/null > /dev/null 2>&1; then
2365 AUTOMAKE=automake
2366 echo "$as_me:$LINENO: result: found" >&5
2367 echo "${ECHO_T}found" >&6
2368 else
2369 AUTOMAKE="$missing_dir/missing automake"
2370 echo "$as_me:$LINENO: result: missing" >&5
2371 echo "${ECHO_T}missing" >&6
2372 fi
2373
2374 echo "$as_me:$LINENO: checking for working autoheader" >&5
2375 echo $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.
2379 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2380 AUTOHEADER=autoheader
2381 echo "$as_me:$LINENO: result: found" >&5
2382 echo "${ECHO_T}found" >&6
2383 else
2384 AUTOHEADER="$missing_dir/missing autoheader"
2385 echo "$as_me:$LINENO: result: missing" >&5
2386 echo "${ECHO_T}missing" >&6
2387 fi
2388
2389 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2390 echo $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.
2394 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2395 MAKEINFO=makeinfo
2396 echo "$as_me:$LINENO: result: found" >&5
2397 echo "${ECHO_T}found" >&6
2398 else
2399 MAKEINFO="$missing_dir/missing makeinfo"
2400 echo "$as_me:$LINENO: result: missing" >&5
2401 echo "${ECHO_T}missing" >&6
2402 fi
2403
2404
2405
2406 # Check whether --enable-shared or --disable-shared was given.
2407 if test "${enable_shared+set}" = set; then
2408 enableval="$enable_shared"
2409 p=${PACKAGE-default}
2410 case $enableval in
2411 yes) enable_shared=yes ;;
2412 no) 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 ;;
2424 esac
2425 else
2426 enable_shared=yes
2427 fi;
2428 # Check whether --enable-static or --disable-static was given.
2429 if test "${enable_static+set}" = set; then
2430 enableval="$enable_static"
2431 p=${PACKAGE-default}
2432 case $enableval in
2433 yes) enable_static=yes ;;
2434 no) 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 ;;
2446 esac
2447 else
2448 enable_static=yes
2449 fi;
2450 # Check whether --enable-fast-install or --disable-fast-install was given.
2451 if test "${enable_fast_install+set}" = set; then
2452 enableval="$enable_fast_install"
2453 p=${PACKAGE-default}
2454 case $enableval in
2455 yes) enable_fast_install=yes ;;
2456 no) 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 ;;
2468 esac
2469 else
2470 enable_fast_install=yes
2471 fi;
2472
2473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2474 if test "${with_gnu_ld+set}" = set; then
2475 withval="$with_gnu_ld"
2476 test "$withval" = no || with_gnu_ld=yes
2477 else
2478 with_gnu_ld=no
2479 fi;
2480 ac_prog=ld
2481 if 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
2484 echo $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
2512 elif test "$with_gnu_ld" = yes; then
2513 echo "$as_me:$LINENO: checking for GNU ld" >&5
2514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2515 else
2516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2518 fi
2519 if test "${lt_cv_path_LD+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
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"
2539 else
2540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2541 fi
2542 fi
2543
2544 LD="$lt_cv_path_LD"
2545 if test -n "$LD"; then
2546 echo "$as_me:$LINENO: result: $LD" >&5
2547 echo "${ECHO_T}$LD" >&6
2548 else
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2551 fi
2552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2554 { (exit 1); exit 1; }; }
2555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2562 lt_cv_prog_gnu_ld=yes
2563 else
2564 lt_cv_prog_gnu_ld=no
2565 fi
2566 fi
2567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2569 with_gnu_ld=$lt_cv_prog_gnu_ld
2570
2571
2572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2574 if test "${lt_cv_ld_reload_flag+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 lt_cv_ld_reload_flag='-r'
2578 fi
2579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2581 reload_flag=$lt_cv_ld_reload_flag
2582 test -n "$reload_flag" && reload_flag=" $reload_flag"
2583
2584 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2586 if test "${lt_cv_path_NM+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$NM"; then
2590 # Let the user override the test.
2591 lt_cv_path_NM="$NM"
2592 else
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
2616 fi
2617 fi
2618
2619 NM="$lt_cv_path_NM"
2620 echo "$as_me:$LINENO: result: $NM" >&5
2621 echo "${ECHO_T}$NM" >&6
2622
2623 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2624 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2625 LN_S=$as_ln_s
2626 if test "$LN_S" = "ln -s"; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2631 echo "${ECHO_T}no, using $LN_S" >&6
2632 fi
2633
2634 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2635 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2636 if test "${lt_cv_deplibs_check_method+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 lt_cv_file_magic_cmd='$MAGIC_CMD'
2640 lt_cv_file_magic_test_file=
2641 lt_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
2653 case $host_os in
2654 aix*)
2655 lt_cv_deplibs_check_method=pass_all
2656 ;;
2657
2658 beos*)
2659 lt_cv_deplibs_check_method=pass_all
2660 ;;
2661
2662 bsdi4*)
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
2668 cygwin* | 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
2673 darwin* | 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
2686 freebsd* )
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
2702 gnu*)
2703 lt_cv_deplibs_check_method=pass_all
2704 ;;
2705
2706 hpux10.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
2721 irix5* | 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.
2743 linux-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
2754 netbsd*)
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
2762 newsos6)
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
2768 osf3* | 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
2775 sco3.2v5*)
2776 lt_cv_deplibs_check_method=pass_all
2777 ;;
2778
2779 solaris*)
2780 lt_cv_deplibs_check_method=pass_all
2781 lt_cv_file_magic_test_file=/lib/libc.so
2782 ;;
2783
2784 sysv5uw[78]* | sysv4*uw2*)
2785 lt_cv_deplibs_check_method=pass_all
2786 ;;
2787
2788 sysv4 | 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 ;;
2799 esac
2800
2801 fi
2802 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2803 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2804 file_magic_cmd=$lt_cv_file_magic_cmd
2805 deplibs_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
2813 case $deplibs_check_method in
2814 file_magic*)
2815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2816 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2817 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
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
2856 EOF
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 ;;
2866 esac
2867 fi
2868
2869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2870 if test -n "$MAGIC_CMD"; then
2871 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2872 echo "${ECHO_T}$MAGIC_CMD" >&6
2873 else
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2876 fi
2877
2878 if 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
2881 echo $ECHO_N "checking for file... $ECHO_C" >&6
2882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
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
2920 EOF
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 ;;
2930 esac
2931 fi
2932
2933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2934 if test -n "$MAGIC_CMD"; then
2935 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2936 echo "${ECHO_T}$MAGIC_CMD" >&6
2937 else
2938 echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6
2940 fi
2941
2942 else
2943 MAGIC_CMD=:
2944 fi
2945 fi
2946
2947 fi
2948 ;;
2949 esac
2950
2951 if 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.
2953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_prog_RANLIB+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$RANLIB"; then
2960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
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
2973 done
2974 done
2975
2976 fi
2977 fi
2978 RANLIB=$ac_cv_prog_RANLIB
2979 if test -n "$RANLIB"; then
2980 echo "$as_me:$LINENO: result: $RANLIB" >&5
2981 echo "${ECHO_T}$RANLIB" >&6
2982 else
2983 echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2985 fi
2986
2987 fi
2988 if 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.
2991 set dummy ranlib; ac_word=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 if test -n "$ac_ct_RANLIB"; then
2998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
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
3011 done
3012 done
3013
3014 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3015 fi
3016 fi
3017 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3018 if test -n "$ac_ct_RANLIB"; then
3019 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3020 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3024 fi
3025
3026 RANLIB=$ac_ct_RANLIB
3027 else
3028 RANLIB="$ac_cv_prog_RANLIB"
3029 fi
3030
3031 if 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.
3033 set dummy ${ac_tool_prefix}strip; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_STRIP+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
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
3053 done
3054 done
3055
3056 fi
3057 fi
3058 STRIP=$ac_cv_prog_STRIP
3059 if test -n "$STRIP"; then
3060 echo "$as_me:$LINENO: result: $STRIP" >&5
3061 echo "${ECHO_T}$STRIP" >&6
3062 else
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066
3067 fi
3068 if 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.
3071 set dummy strip; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 if test -n "$ac_ct_STRIP"; then
3078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
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
3091 done
3092 done
3093
3094 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3095 fi
3096 fi
3097 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3098 if test -n "$ac_ct_STRIP"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3100 echo "${ECHO_T}$ac_ct_STRIP" >&6
3101 else
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 fi
3105
3106 STRIP=$ac_ct_STRIP
3107 else
3108 STRIP="$ac_cv_prog_STRIP"
3109 fi
3110
3111
3112 # Check for any special flags to pass to ltconfig.
3113 libtool_flags="--cache-file=$cache_file"
3114 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3115 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3116 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3117 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3118 test "$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.
3122 if test "${enable_libtool_lock+set}" = set; then
3123 enableval="$enable_libtool_lock"
3124
3125 fi;
3126 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3127 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3128
3129
3130 # Check whether --with-pic or --without-pic was given.
3131 if test "${with_pic+set}" = set; then
3132 withval="$with_pic"
3133 pic_mode="$withval"
3134 else
3135 pic_mode=default
3136 fi;
3137 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3138 test 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.
3142 case $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
3166 ia64-*-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
3191 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3192 if test "${lt_cv_cc_needs_belf+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_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
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext conftest$ac_exeext
3222 if { (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
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 lt_cv_cc_needs_belf=no
3238 fi
3239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
3246 fi
3247 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3248 echo "${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
3256 esac
3257
3258
3259 # Save cache, so that ltconfig can load it
3260 cat >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
3305 if 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
3312 fi
3313 rm -f confcache
3314
3315 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3316 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3317 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3318 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3319 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3320 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3321 deplibs_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
3325 echo "$as_me: error: libtool configure failed" >&2;}
3326 { (exit 1); exit 1; }; }
3327
3328 # Reload cache, that may have been modified by ltconfig
3329 if 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
3334 echo "$as_me: loading cache $cache_file" >&6;}
3335 case $cache_file in
3336 [\\/]* | ?:[\\/]* ) . $cache_file;;
3337 *) . ./$cache_file;;
3338 esac
3339 fi
3340 else
3341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3342 echo "$as_me: creating cache $cache_file" >&6;}
3343 >$cache_file
3344 fi
3345
3346
3347 # This can be used to rebuild libtool when needed
3348 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3349
3350 # Always use our own libtool.
3351 LIBTOOL='$(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.
3355 exec 5>>./config.log
3356
3357
3358
3359
3360
3361
3362
3363 user_bfd_gas=
3364 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3365 if 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
3371 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3372 { (exit 1); exit 1; }; } ;;
3373 esac
3374 fi; # Check whether --enable-targets or --disable-targets was given.
3375 if 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
3379 echo "$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 ;;
3384 esac
3385 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3386 if 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
3392 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3393 { (exit 1); exit 1; }; } ;;
3394 esac
3395 fi;
3396 using_cgen=no
3397
3398 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3399 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3400 if 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"`;;
3410 esac
3411 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3412 echo "Setting warning flags = $build_warnings" 6>&1
3413 fi
3414 fi; WARN_CFLAGS=""
3415 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3416 WARN_CFLAGS="${build_warnings}"
3417 fi
3418
3419
3420 # Generate a header file
3421
3422 ac_config_headers="$ac_config_headers config.h:config.in"
3423
3424 ac_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.
3429 GDBINIT=".gdbinit"
3430 case "${host}" in
3431 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
3432 GDBINIT="gdb.ini"
3433 ;;
3434 esac
3435
3436
3437 te_file=generic
3438
3439 # Makefile target for installing gas in $(tooldir)/bin.
3440 install_tooldir=install-exec-tooldir
3441
3442 canon_targets=""
3443 all_targets=no
3444 if 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=""
3460 for _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
3468 done
3469 canon_targets=$_gas_uniq_newlist
3470
3471 fi
3472
3473 emulations=""
3474
3475 for 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
3642 cat >>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
3653 cat >>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
3676 echo "$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
3731 echo "$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
3768 echo "$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
3775 cat >>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
3782 echo "$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
3877 echo "$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
3892 cat >>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
3901 cat >>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
3985 cat >>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
4058 done
4059
4060 # Turn on all targets if possible
4061 if 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
4077 fi
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.
4082 case ${target_cpu} in
4083 vax | tahoe ) atof=${target_cpu} ;;
4084 pdp11) atof=vax ;;
4085 *) atof=ieee ;;
4086 esac
4087
4088 case "${obj_format}" in
4089 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4090 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4091 { (exit 1); exit 1; }; } ;;
4092 esac
4093
4094 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4095 cgen_cpu_prefix=""
4096 if test $using_cgen = yes ; then
4097 case ${target_cpu} in
4098 *) cgen_cpu_prefix=${target_cpu} ;;
4099 esac
4100
4101
4102 cat >>confdefs.h <<\_ACEOF
4103 #define USING_CGEN 1
4104 _ACEOF
4105
4106 fi
4107
4108
4109 if 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
4111 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4112 { (exit 1); exit 1; }; }
4113 fi
4114
4115 if 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
4117 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4118 { (exit 1); exit 1; }; }
4119 fi
4120
4121 case ${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
4127 echo "$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 ;;
4141 esac
4142
4143 # Some COFF configurations want these random other flags set.
4144 case ${obj_format} in
4145 coff)
4146 case ${target_cpu_type} in
4147 i386)
4148 cat >>confdefs.h <<\_ACEOF
4149 #define I386COFF 1
4150 _ACEOF
4151 ;;
4152 m68k)
4153 cat >>confdefs.h <<\_ACEOF
4154 #define M68KCOFF 1
4155 _ACEOF
4156 ;;
4157 m88k)
4158 cat >>confdefs.h <<\_ACEOF
4159 #define M88KCOFF 1
4160 _ACEOF
4161 ;;
4162 esac
4163 ;;
4164 esac
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
4178 formats="${obj_format}"
4179 emfiles=""
4180 EMULATIONS=""
4181 _gas_uniq_list="$emulations"
4182 _gas_uniq_newlist=""
4183 for _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
4191 done
4192 emulations=$_gas_uniq_newlist
4193
4194 for 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,"
4211 done
4212 _gas_uniq_list="$formats"
4213 _gas_uniq_newlist=""
4214 for _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
4222 done
4223 formats=$_gas_uniq_newlist
4224
4225 _gas_uniq_list="$emfiles"
4226 _gas_uniq_newlist=""
4227 for _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
4235 done
4236 emfiles=$_gas_uniq_newlist
4237
4238 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4239 for fmt in $formats ; do
4240 case $fmt in
4241 aout)
4242 cat >>confdefs.h <<\_ACEOF
4243 #define OBJ_MAYBE_AOUT 1
4244 _ACEOF
4245 ;;
4246 bout)
4247 cat >>confdefs.h <<\_ACEOF
4248 #define OBJ_MAYBE_BOUT 1
4249 _ACEOF
4250 ;;
4251 coff)
4252 cat >>confdefs.h <<\_ACEOF
4253 #define OBJ_MAYBE_COFF 1
4254 _ACEOF
4255 ;;
4256 ecoff)
4257 cat >>confdefs.h <<\_ACEOF
4258 #define OBJ_MAYBE_ECOFF 1
4259 _ACEOF
4260 ;;
4261 elf)
4262 cat >>confdefs.h <<\_ACEOF
4263 #define OBJ_MAYBE_ELF 1
4264 _ACEOF
4265 ;;
4266 generic)
4267 cat >>confdefs.h <<\_ACEOF
4268 #define OBJ_MAYBE_GENERIC 1
4269 _ACEOF
4270 ;;
4271 hp300)
4272 cat >>confdefs.h <<\_ACEOF
4273 #define OBJ_MAYBE_HP300 1
4274 _ACEOF
4275 ;;
4276 ieee)
4277 cat >>confdefs.h <<\_ACEOF
4278 #define OBJ_MAYBE_IEEE 1
4279 _ACEOF
4280 ;;
4281 som)
4282 cat >>confdefs.h <<\_ACEOF
4283 #define OBJ_MAYBE_SOM 1
4284 _ACEOF
4285 ;;
4286 vms)
4287 cat >>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
4295 fi
4296 if 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
4305 cat >>confdefs.h <<\_ACEOF
4306 #define USE_EMULATIONS 1
4307 _ACEOF
4308 ;;
4309 esac
4310 fi
4311
4312
4313 cat >>confdefs.h <<_ACEOF
4314 #define EMULATIONS $EMULATIONS
4315 _ACEOF
4316
4317
4318 cat >>confdefs.h <<_ACEOF
4319 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4320 _ACEOF
4321
4322
4323 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4324 yes-*-coff) need_bfd=yes ;;
4325 no-*-coff) need_bfd=yes
4326
4327 cat >>confdefs.h <<\_ACEOF
4328 #define MANY_SEGMENTS 1
4329 _ACEOF
4330 ;;
4331 esac
4332
4333 reject_dev_configs=yes
4334
4335 case ${reject_dev_configs}-${dev} in
4336 yes-yes) # Oops.
4337 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4338 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4339 { (exit 1); exit 1; }; }
4340 ;;
4341 esac
4342
4343
4344
4345
4346
4347
4348
4349 case "${primary_bfd_gas}" in
4350 yes)
4351 cat >>confdefs.h <<\_ACEOF
4352 #define BFD_ASSEMBLER 1
4353 _ACEOF
4354
4355 need_bfd=yes ;;
4356 esac
4357
4358 # do we need the opcodes library?
4359 case "${need_opcodes}" in
4360 yes)
4361 OPCODES_LIB=../opcodes/libopcodes.la
4362 ;;
4363 esac
4364
4365 case "${need_bfd}" in
4366 yes)
4367 BFDLIB=../bfd/libbfd.la
4368 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
4369 ;;
4370 esac
4371
4372
4373
4374
4375
4376
4377
4378 cat >>confdefs.h <<_ACEOF
4379 #define TARGET_ALIAS "${target_alias}"
4380 _ACEOF
4381
4382
4383 cat >>confdefs.h <<_ACEOF
4384 #define TARGET_CANONICAL "${target}"
4385 _ACEOF
4386
4387
4388 cat >>confdefs.h <<_ACEOF
4389 #define TARGET_CPU "${target_cpu}"
4390 _ACEOF
4391
4392
4393 cat >>confdefs.h <<_ACEOF
4394 #define TARGET_VENDOR "${target_vendor}"
4395 _ACEOF
4396
4397
4398 cat >>confdefs.h <<_ACEOF
4399 #define TARGET_OS "${target_os}"
4400 _ACEOF
4401
4402
4403 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 if 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.
4410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4411 echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4413 if test "${ac_cv_prog_CC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$CC"; then
4417 ac_cv_prog_CC="$CC" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
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
4430 done
4431 done
4432
4433 fi
4434 fi
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437 echo "$as_me:$LINENO: result: $CC" >&5
4438 echo "${ECHO_T}$CC" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 fi
4443
4444 fi
4445 if 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.
4448 set dummy gcc; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 if test -n "$ac_ct_CC"; then
4455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
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
4468 done
4469 done
4470
4471 fi
4472 fi
4473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4474 if test -n "$ac_ct_CC"; then
4475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4476 echo "${ECHO_T}$ac_ct_CC" >&6
4477 else
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482 CC=$ac_ct_CC
4483 else
4484 CC="$ac_cv_prog_CC"
4485 fi
4486
4487 if 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.
4490 set dummy ${ac_tool_prefix}cc; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC="$CC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
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
4510 done
4511 done
4512
4513 fi
4514 fi
4515 CC=$ac_cv_prog_CC
4516 if test -n "$CC"; then
4517 echo "$as_me:$LINENO: result: $CC" >&5
4518 echo "${ECHO_T}$CC" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4522 fi
4523
4524 fi
4525 if 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.
4528 set dummy cc; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$ac_ct_CC"; then
4535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
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
4548 done
4549 done
4550
4551 fi
4552 fi
4553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4554 if test -n "$ac_ct_CC"; then
4555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4556 echo "${ECHO_T}$ac_ct_CC" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562 CC=$ac_ct_CC
4563 else
4564 CC="$ac_cv_prog_CC"
4565 fi
4566
4567 fi
4568 if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4578 else
4579 ac_prog_rejected=no
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
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
4595 done
4596 done
4597
4598 if 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
4611 fi
4612 fi
4613 fi
4614 CC=$ac_cv_prog_CC
4615 if test -n "$CC"; then
4616 echo "$as_me:$LINENO: result: $CC" >&5
4617 echo "${ECHO_T}$CC" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4621 fi
4622
4623 fi
4624 if 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.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
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
4649 done
4650 done
4651
4652 fi
4653 fi
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 echo "$as_me:$LINENO: result: $CC" >&5
4657 echo "${ECHO_T}$CC" >&6
4658 else
4659 echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662
4663 test -n "$CC" && break
4664 done
4665 fi
4666 if test -z "$CC"; then
4667 ac_ct_CC=$CC
4668 for ac_prog in cl
4669 do
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
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
4691 done
4692 done
4693
4694 fi
4695 fi
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699 echo "${ECHO_T}$ac_ct_CC" >&6
4700 else
4701 echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4703 fi
4704
4705 test -n "$ac_ct_CC" && break
4706 done
4707
4708 CC=$ac_ct_CC
4709 fi
4710
4711 fi
4712
4713
4714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
4715 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
4716 { (exit 1); exit 1; }; }
4717
4718 # Provide some information about the compiler.
4719 echo "$as_me:$LINENO:" \
4720 "checking for C compiler version" >&5
4721 ac_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
4738 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
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
4753 int
4754 main ()
4755 {
4756 #ifndef __GNUC__
4757 choke me
4758 #endif
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (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
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 ac_compiler_gnu=no
4781 fi
4782 rm -f conftest.$ac_objext conftest.$ac_ext
4783 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4784
4785 fi
4786 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4787 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4788 GCC=`test $ac_compiler_gnu = yes && echo yes`
4789 ac_test_CFLAGS=${CFLAGS+set}
4790 ac_save_CFLAGS=$CFLAGS
4791 CFLAGS="-g"
4792 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4793 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4794 if test "${ac_cv_prog_cc_g+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
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
4807 int
4808 main ()
4809 {
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (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
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 ac_cv_prog_cc_g=no
4832 fi
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 fi
4835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4837 if test "$ac_test_CFLAGS" = set; then
4838 CFLAGS=$ac_save_CFLAGS
4839 elif 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
4845 else
4846 if test "$GCC" = yes; then
4847 CFLAGS="-O2"
4848 else
4849 CFLAGS=
4850 fi
4851 fi
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.
4856 cat >conftest.$ac_ext <<_ACEOF
4857 #ifndef __cplusplus
4858 choke me
4859 #endif
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (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);'
4881 do
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
4893 int
4894 main ()
4895 {
4896 exit (42);
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 rm -f conftest.$ac_objext
4902 if { (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 :
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 continue
4918 fi
4919 rm -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
4930 int
4931 main ()
4932 {
4933 exit (42);
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (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
4951 else
4952 echo "$as_me: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4954 fi
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4956 done
4957 rm -f conftest*
4958 if test -n "$ac_declaration"; then
4959 echo '#ifdef __cplusplus' >>confdefs.h
4960 echo $ac_declaration >>confdefs.h
4961 echo '#endif' >>confdefs.h
4962 fi
4963
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 fi
4968 rm -f conftest.$ac_objext conftest.$ac_ext
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975
4976 for ac_prog in 'bison -y' byacc
4977 do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy $ac_prog; ac_word=$2
4980 echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982 if test "${ac_cv_prog_YACC+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 if test -n "$YACC"; then
4986 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
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
4999 done
5000 done
5001
5002 fi
5003 fi
5004 YACC=$ac_cv_prog_YACC
5005 if test -n "$YACC"; then
5006 echo "$as_me:$LINENO: result: $YACC" >&5
5007 echo "${ECHO_T}$YACC" >&6
5008 else
5009 echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
5011 fi
5012
5013 test -n "$YACC" && break
5014 done
5015 test -n "$YACC" || YACC="yacc"
5016
5017 missing_dir=`cd $ac_aux_dir && pwd`
5018 for ac_prog in flex lex
5019 do
5020 # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024 if test "${ac_cv_prog_LEX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 if test -n "$LEX"; then
5028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
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
5041 done
5042 done
5043
5044 fi
5045 fi
5046 LEX=$ac_cv_prog_LEX
5047 if test -n "$LEX"; then
5048 echo "$as_me:$LINENO: result: $LEX" >&5
5049 echo "${ECHO_T}$LEX" >&6
5050 else
5051 echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5053 fi
5054
5055 test -n "$LEX" && break
5056 done
5057 test -n "$LEX" || LEX=""$missing_dir/missing flex""
5058
5059 for ac_prog in flex lex
5060 do
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_LEX+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 if test -n "$LEX"; then
5069 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
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
5082 done
5083 done
5084
5085 fi
5086 fi
5087 LEX=$ac_cv_prog_LEX
5088 if test -n "$LEX"; then
5089 echo "$as_me:$LINENO: result: $LEX" >&5
5090 echo "${ECHO_T}$LEX" >&6
5091 else
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 test -n "$LEX" && break
5097 done
5098 test -n "$LEX" || LEX=":"
5099
5100 if test -z "$LEXLIB"
5101 then
5102 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5103 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5104 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lfl $LIBS"
5109 cat >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
5115 extern "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. */
5119 char yywrap ();
5120 #ifdef F77_DUMMY_MAIN
5121 # ifdef __cplusplus
5122 extern "C"
5123 # endif
5124 int F77_DUMMY_MAIN() { return 1; }
5125 #endif
5126 int
5127 main ()
5128 {
5129 yywrap ();
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (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
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 ac_cv_lib_fl_yywrap=no
5151 fi
5152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5154 fi
5155 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5156 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5157 if test $ac_cv_lib_fl_yywrap = yes; then
5158 LEXLIB="-lfl"
5159 else
5160 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5161 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5162 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 ac_check_lib_save_LIBS=$LIBS
5166 LIBS="-ll $LIBS"
5167 cat >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
5173 extern "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. */
5177 char yywrap ();
5178 #ifdef F77_DUMMY_MAIN
5179 # ifdef __cplusplus
5180 extern "C"
5181 # endif
5182 int F77_DUMMY_MAIN() { return 1; }
5183 #endif
5184 int
5185 main ()
5186 {
5187 yywrap ();
5188 ;
5189 return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (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
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 ac_cv_lib_l_yywrap=no
5209 fi
5210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211 LIBS=$ac_check_lib_save_LIBS
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5214 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5215 if test $ac_cv_lib_l_yywrap = yes; then
5216 LEXLIB="-ll"
5217 fi
5218
5219 fi
5220
5221 fi
5222
5223 if test "x$LEX" != "x:"; then
5224 echo "$as_me:$LINENO: checking lex output file root" >&5
5225 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5226 if test "${ac_cv_prog_lex_root+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
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.
5231 cat >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); }
5240 if test -f lex.yy.c; then
5241 ac_cv_prog_lex_root=lex.yy
5242 elif test -f lexyy.c; then
5243 ac_cv_prog_lex_root=lexyy
5244 else
5245 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5246 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5247 { (exit 1); exit 1; }; }
5248 fi
5249 fi
5250 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5251 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5252 rm -f conftest.l
5253 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5254
5255 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5256 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5257 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
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.
5263 ac_cv_prog_lex_yytext_pointer=no
5264 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5265 ac_save_LIBS=$LIBS
5266 LIBS="$LIBS $LEXLIB"
5267 cat >conftest.$ac_ext <<_ACEOF
5268 `cat $LEX_OUTPUT_ROOT.c`
5269 _ACEOF
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (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
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 fi
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_save_LIBS
5289 rm -f "${LEX_OUTPUT_ROOT}.c"
5290
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5293 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define YYTEXT_POINTER 1
5298 _ACEOF
5299
5300 fi
5301
5302 fi
5303
5304
5305 ALL_LINGUAS="fr tr es"
5306 if 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.
5308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5309 echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311 if test "${ac_cv_prog_RANLIB+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 if test -n "$RANLIB"; then
5315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
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
5328 done
5329 done
5330
5331 fi
5332 fi
5333 RANLIB=$ac_cv_prog_RANLIB
5334 if test -n "$RANLIB"; then
5335 echo "$as_me:$LINENO: result: $RANLIB" >&5
5336 echo "${ECHO_T}$RANLIB" >&6
5337 else
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341
5342 fi
5343 if 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.
5346 set dummy ranlib; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 if test -n "$ac_ct_RANLIB"; then
5353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
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
5366 done
5367 done
5368
5369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5370 fi
5371 fi
5372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5373 if test -n "$ac_ct_RANLIB"; then
5374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5379 fi
5380
5381 RANLIB=$ac_ct_RANLIB
5382 else
5383 RANLIB="$ac_cv_prog_RANLIB"
5384 fi
5385
5386 ac_ext=c
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5393 # On Suns, sometimes $CPP names a directory.
5394 if test -n "$CPP" && test -d "$CPP"; then
5395 CPP=
5396 fi
5397 if test -z "$CPP"; then
5398 if test "${ac_cv_prog_CPP+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
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
5405 for ac_c_preproc_warn_flag in '' yes
5406 do
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
5417 if { (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
5430 else
5431 ac_cpp_err=yes
5432 fi
5433 if test -z "$ac_cpp_err"; then
5434 :
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 # Broken: fails on valid input.
5439 continue
5440 fi
5441 rm -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
5450 if { (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
5463 else
5464 ac_cpp_err=yes
5465 fi
5466 if test -z "$ac_cpp_err"; then
5467 # Broken: success on invalid input.
5468 continue
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 # Passes both tests.
5473 ac_preproc_ok=:
5474 break
5475 fi
5476 rm -f conftest.err conftest.$ac_ext
5477
5478 done
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.err conftest.$ac_ext
5481 if $ac_preproc_ok; then
5482 break
5483 fi
5484
5485 done
5486 ac_cv_prog_CPP=$CPP
5487
5488 fi
5489 CPP=$ac_cv_prog_CPP
5490 else
5491 ac_cv_prog_CPP=$CPP
5492 fi
5493 echo "$as_me:$LINENO: result: $CPP" >&5
5494 echo "${ECHO_T}$CPP" >&6
5495 ac_preproc_ok=false
5496 for ac_c_preproc_warn_flag in '' yes
5497 do
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
5508 if { (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
5521 else
5522 ac_cpp_err=yes
5523 fi
5524 if test -z "$ac_cpp_err"; then
5525 :
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 # Broken: fails on valid input.
5530 continue
5531 fi
5532 rm -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
5541 if { (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
5554 else
5555 ac_cpp_err=yes
5556 fi
5557 if test -z "$ac_cpp_err"; then
5558 # Broken: success on invalid input.
5559 continue
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5563 # Passes both tests.
5564 ac_preproc_ok=:
5565 break
5566 fi
5567 rm -f conftest.err conftest.$ac_ext
5568
5569 done
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.err conftest.$ac_ext
5572 if $ac_preproc_ok; then
5573 :
5574 else
5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
5576 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5577 { (exit 1); exit 1; }; }
5578 fi
5579
5580 ac_ext=c
5581 ac_cpp='$CPP $CPPFLAGS'
5582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585
5586
5587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5589 if test "${ac_cv_header_stdc+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
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
5601 if { (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
5614 else
5615 ac_cpp_err=yes
5616 fi
5617 if test -z "$ac_cpp_err"; then
5618 ac_cv_header_stdc=yes
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f conftest.err conftest.$ac_ext
5625
5626 if 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
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 egrep "memchr" >/dev/null 2>&1; then
5636 :
5637 else
5638 ac_cv_header_stdc=no
5639 fi
5640 rm -f conftest*
5641
5642 fi
5643
5644 if 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
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 egrep "free" >/dev/null 2>&1; then
5654 :
5655 else
5656 ac_cv_header_stdc=no
5657 fi
5658 rm -f conftest*
5659
5660 fi
5661
5662 if 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 :
5666 else
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)))
5682 int
5683 main ()
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
5693 rm -f conftest$ac_exeext
5694 if { (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 :
5705 else
5706 echo "$as_me: program exited with status $ac_status" >&5
5707 echo "$as_me: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5709 ( exit $ac_status )
5710 ac_cv_header_stdc=no
5711 fi
5712 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5713 fi
5714 fi
5715 fi
5716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5718 if test $ac_cv_header_stdc = yes; then
5719
5720 cat >>confdefs.h <<\_ACEOF
5721 #define STDC_HEADERS 1
5722 _ACEOF
5723
5724 fi
5725
5726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 ac_cv_prog_cc_stdc=no
5732 ac_save_CC=$CC
5733 cat >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. */
5741 struct buf { int x; };
5742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5743 static char *e (p, i)
5744 char **p;
5745 int i;
5746 {
5747 return p[i];
5748 }
5749 static 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 }
5758 int test (int i, double x);
5759 struct s1 {int (*f) (int a);};
5760 struct s2 {int (*f) (double a);};
5761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5762 int argc;
5763 char **argv;
5764 #ifdef F77_DUMMY_MAIN
5765 # ifdef __cplusplus
5766 extern "C"
5767 # endif
5768 int F77_DUMMY_MAIN() { return 1; }
5769 #endif
5770 int
5771 main ()
5772 {
5773 return 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__
5785 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5786 do
5787 CC="$ac_save_CC $ac_arg"
5788 rm -f conftest.$ac_objext
5789 if { (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
5801 break
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 fi
5806 rm -f conftest.$ac_objext
5807 done
5808 rm -f conftest.$ac_ext conftest.$ac_objext
5809 CC=$ac_save_CC
5810
5811 fi
5812
5813 case "x$ac_cv_prog_cc_stdc" in
5814 x|xno)
5815 echo "$as_me:$LINENO: result: none needed" >&5
5816 echo "${ECHO_T}none needed" >&6 ;;
5817 *)
5818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5819 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5820 CC="$CC $ac_cv_prog_cc_stdc" ;;
5821 esac
5822
5823 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5825 if test "${ac_cv_c_const+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
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
5838 int
5839 main ()
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
5892 rm -f conftest.$ac_objext
5893 if { (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
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_c_const=no
5909 fi
5910 rm -f conftest.$ac_objext conftest.$ac_ext
5911 fi
5912 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5913 echo "${ECHO_T}$ac_cv_c_const" >&6
5914 if test $ac_cv_c_const = no; then
5915
5916 cat >>confdefs.h <<\_ACEOF
5917 #define const
5918 _ACEOF
5919
5920 fi
5921
5922 echo "$as_me:$LINENO: checking for inline" >&5
5923 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5924 if test "${ac_cv_c_inline+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 ac_cv_c_inline=no
5928 for ac_kw in inline __inline__ __inline; do
5929 cat >conftest.$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5931 #include "confdefs.h"
5932 #ifndef __cplusplus
5933 static $ac_kw int static_foo () {return 0; }
5934 $ac_kw int foo () {return 0; }
5935 #endif
5936
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (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
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 fi
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 done
5957
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5960 echo "${ECHO_T}$ac_cv_c_inline" >&6
5961 case $ac_cv_c_inline in
5962 inline | yes) ;;
5963 no)
5964 cat >>confdefs.h <<\_ACEOF
5965 #define inline
5966 _ACEOF
5967 ;;
5968 *) cat >>confdefs.h <<_ACEOF
5969 #define inline $ac_cv_c_inline
5970 _ACEOF
5971 ;;
5972 esac
5973
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5985 inttypes.h stdint.h unistd.h
5986 do
5987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
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
6000 rm -f conftest.$ac_objext
6001 if { (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"
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 eval "$as_ac_Header=no"
6017 fi
6018 rm -f conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if 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
6027 fi
6028
6029 done
6030
6031
6032 echo "$as_me:$LINENO: checking for off_t" >&5
6033 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6034 if test "${ac_cv_type_off_t+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
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
6047 int
6048 main ()
6049 {
6050 if ((off_t *) 0)
6051 return 0;
6052 if (sizeof (off_t))
6053 return 0;
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (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
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6074 ac_cv_type_off_t=no
6075 fi
6076 rm -f conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6079 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6080 if test $ac_cv_type_off_t = yes; then
6081 :
6082 else
6083
6084 cat >>confdefs.h <<_ACEOF
6085 #define off_t long
6086 _ACEOF
6087
6088 fi
6089
6090 echo "$as_me:$LINENO: checking for size_t" >&5
6091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6092 if test "${ac_cv_type_size_t+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
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
6105 int
6106 main ()
6107 {
6108 if ((size_t *) 0)
6109 return 0;
6110 if (sizeof (size_t))
6111 return 0;
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (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
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6132 ac_cv_type_size_t=no
6133 fi
6134 rm -f conftest.$ac_objext conftest.$ac_ext
6135 fi
6136 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6137 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6138 if test $ac_cv_type_size_t = yes; then
6139 :
6140 else
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define size_t unsigned
6144 _ACEOF
6145
6146 fi
6147
6148 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6149 # for constant arguments. Useless!
6150 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6151 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6152 if test "${ac_cv_working_alloca_h+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
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
6165 int
6166 main ()
6167 {
6168 char *p = (char *) alloca (2 * sizeof (int));
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (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
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 ac_cv_working_alloca_h=no
6190 fi
6191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192 fi
6193 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6194 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6195 if test $ac_cv_working_alloca_h = yes; then
6196
6197 cat >>confdefs.h <<\_ACEOF
6198 #define HAVE_ALLOCA_H 1
6199 _ACEOF
6200
6201 fi
6202
6203 echo "$as_me:$LINENO: checking for alloca" >&5
6204 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6205 if test "${ac_cv_func_alloca_works+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
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 */
6225 char *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
6238 int
6239 main ()
6240 {
6241 char *p = (char *) alloca (1);
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (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
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 ac_cv_func_alloca_works=no
6263 fi
6264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6265 fi
6266 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6267 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6268
6269 if test $ac_cv_func_alloca_works = yes; then
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_ALLOCA 1
6273 _ACEOF
6274
6275 else
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
6281 ALLOCA=alloca.$ac_objext
6282
6283 cat >>confdefs.h <<\_ACEOF
6284 #define C_ALLOCA 1
6285 _ACEOF
6286
6287
6288 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6289 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6290 if test "${ac_cv_os_cray+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6296 #if defined(CRAY) && ! defined(CRAY2)
6297 webecray
6298 #else
6299 wenotbecray
6300 #endif
6301
6302 _ACEOF
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 egrep "webecray" >/dev/null 2>&1; then
6305 ac_cv_os_cray=yes
6306 else
6307 ac_cv_os_cray=no
6308 fi
6309 rm -f conftest*
6310
6311 fi
6312 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6313 echo "${ECHO_T}$ac_cv_os_cray" >&6
6314 if 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`
6317 echo "$as_me:$LINENO: checking for $ac_func" >&5
6318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6319 if eval "test \"\${$as_ac_var+set}\" = set"; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
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
6330 extern "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. */
6334 char $ac_func ();
6335 char (*f) ();
6336
6337 #ifdef F77_DUMMY_MAIN
6338 # ifdef __cplusplus
6339 extern "C"
6340 # endif
6341 int F77_DUMMY_MAIN() { return 1; }
6342 #endif
6343 int
6344 main ()
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)
6350 choke me
6351 #else
6352 f = $ac_func;
6353 #endif
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (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"
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 eval "$as_ac_var=no"
6376 fi
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6381 if test `eval echo '${'$as_ac_var'}'` = yes; then
6382
6383 cat >>confdefs.h <<_ACEOF
6384 #define CRAY_STACKSEG_END $ac_func
6385 _ACEOF
6386
6387 break
6388 fi
6389
6390 done
6391 fi
6392
6393 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6394 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6395 if test "${ac_cv_c_stack_direction+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 if test "$cross_compiling" = yes; then
6399 ac_cv_c_stack_direction=0
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 #line $LINENO "configure"
6403 #include "confdefs.h"
6404 int
6405 find_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
6418 int
6419 main ()
6420 {
6421 exit (find_stack_direction () < 0);
6422 }
6423 _ACEOF
6424 rm -f conftest$ac_exeext
6425 if { (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
6436 else
6437 echo "$as_me: program exited with status $ac_status" >&5
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 ( exit $ac_status )
6441 ac_cv_c_stack_direction=-1
6442 fi
6443 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 fi
6446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6448
6449 cat >>confdefs.h <<_ACEOF
6450 #define STACK_DIRECTION $ac_cv_c_stack_direction
6451 _ACEOF
6452
6453
6454 fi
6455
6456
6457
6458 for ac_header in stdlib.h unistd.h
6459 do
6460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 fi
6467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469 else
6470 # Is the header compilable?
6471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6476 $ac_includes_default
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (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
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 ac_header_compiler=no
6496 fi
6497 rm -f conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 echo "${ECHO_T}$ac_header_compiler" >&6
6500
6501 # Is the header present?
6502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6505 #line $LINENO "configure"
6506 #include "confdefs.h"
6507 #include <$ac_header>
6508 _ACEOF
6509 if { (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
6522 else
6523 ac_cpp_err=yes
6524 fi
6525 if test -z "$ac_cpp_err"; then
6526 ac_header_preproc=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6530 ac_header_preproc=no
6531 fi
6532 rm -f conftest.err conftest.$ac_ext
6533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6534 echo "${ECHO_T}$ac_header_preproc" >&6
6535
6536 # So? What about this header?
6537 case $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
6540 echo "$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
6542 echo "$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
6545 echo "$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
6547 echo "$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
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6550 esac
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 eval "$as_ac_Header=$ac_header_preproc"
6557 fi
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560
6561 fi
6562 if 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
6567 fi
6568
6569 done
6570
6571
6572 for ac_func in getpagesize
6573 do
6574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6575 echo "$as_me:$LINENO: checking for $ac_func" >&5
6576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6577 if eval "test \"\${$as_ac_var+set}\" = set"; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
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
6588 extern "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. */
6592 char $ac_func ();
6593 char (*f) ();
6594
6595 #ifdef F77_DUMMY_MAIN
6596 # ifdef __cplusplus
6597 extern "C"
6598 # endif
6599 int F77_DUMMY_MAIN() { return 1; }
6600 #endif
6601 int
6602 main ()
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)
6608 choke me
6609 #else
6610 f = $ac_func;
6611 #endif
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (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"
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6633 eval "$as_ac_var=no"
6634 fi
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 fi
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if 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
6644 fi
6645 done
6646
6647 echo "$as_me:$LINENO: checking for working mmap" >&5
6648 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6649 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 if test "$cross_compiling" = yes; then
6653 ac_cv_func_mmap_fixed_mapped=no
6654 else
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
6688 char *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
6728 int
6729 main ()
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
6785 rm -f conftest$ac_exeext
6786 if { (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
6797 else
6798 echo "$as_me: program exited with status $ac_status" >&5
6799 echo "$as_me: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 ( exit $ac_status )
6802 ac_cv_func_mmap_fixed_mapped=no
6803 fi
6804 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6808 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6809 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_MMAP 1
6813 _ACEOF
6814
6815 fi
6816 rm -f conftest.mmap
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6829 unistd.h values.h sys/param.h
6830 do
6831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6833 echo "$as_me:$LINENO: checking for $ac_header" >&5
6834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 fi
6838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6840 else
6841 # Is the header compilable?
6842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 #include "confdefs.h"
6847 $ac_includes_default
6848 #include <$ac_header>
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (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
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6866 ac_header_compiler=no
6867 fi
6868 rm -f conftest.$ac_objext conftest.$ac_ext
6869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870 echo "${ECHO_T}$ac_header_compiler" >&6
6871
6872 # Is the header present?
6873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6875 cat >conftest.$ac_ext <<_ACEOF
6876 #line $LINENO "configure"
6877 #include "confdefs.h"
6878 #include <$ac_header>
6879 _ACEOF
6880 if { (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
6893 else
6894 ac_cpp_err=yes
6895 fi
6896 if test -z "$ac_cpp_err"; then
6897 ac_header_preproc=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 ac_header_preproc=no
6902 fi
6903 rm -f conftest.err conftest.$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6905 echo "${ECHO_T}$ac_header_preproc" >&6
6906
6907 # So? What about this header?
6908 case $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
6911 echo "$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
6913 echo "$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
6916 echo "$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
6918 echo "$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
6920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6921 esac
6922 echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 eval "$as_ac_Header=$ac_header_preproc"
6928 fi
6929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931
6932 fi
6933 if 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
6938 fi
6939
6940 done
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6953 __argz_count __argz_stringify __argz_next
6954 do
6955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_func" >&5
6957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
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
6969 extern "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. */
6973 char $ac_func ();
6974 char (*f) ();
6975
6976 #ifdef F77_DUMMY_MAIN
6977 # ifdef __cplusplus
6978 extern "C"
6979 # endif
6980 int F77_DUMMY_MAIN() { return 1; }
6981 #endif
6982 int
6983 main ()
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)
6989 choke me
6990 #else
6991 f = $ac_func;
6992 #endif
6993
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (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"
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 eval "$as_ac_var=no"
7015 fi
7016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017 fi
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7020 if 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
7025 fi
7026 done
7027
7028
7029 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7030
7031 for ac_func in stpcpy
7032 do
7033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034 echo "$as_me:$LINENO: checking for $ac_func" >&5
7035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7036 if eval "test \"\${$as_ac_var+set}\" = set"; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
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
7047 extern "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. */
7051 char $ac_func ();
7052 char (*f) ();
7053
7054 #ifdef F77_DUMMY_MAIN
7055 # ifdef __cplusplus
7056 extern "C"
7057 # endif
7058 int F77_DUMMY_MAIN() { return 1; }
7059 #endif
7060 int
7061 main ()
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)
7067 choke me
7068 #else
7069 f = $ac_func;
7070 #endif
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (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"
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7092 eval "$as_ac_var=no"
7093 fi
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 fi
7096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098 if 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
7103 fi
7104 done
7105
7106 fi
7107 if test "${ac_cv_func_stpcpy}" = "yes"; then
7108
7109 cat >>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
7117 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7118 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
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
7131 int
7132 main ()
7133 {
7134 return LC_MESSAGES
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (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
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 cat conftest.$ac_ext >&5
7155 am_cv_val_LC_MESSAGES=no
7156 fi
7157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7158 fi
7159 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7160 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7161 if test $am_cv_val_LC_MESSAGES = yes; then
7162
7163 cat >>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
7170 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7171 # Check whether --enable-nls or --disable-nls was given.
7172 if test "${enable_nls+set}" = set; then
7173 enableval="$enable_nls"
7174 USE_NLS=$enableval
7175 else
7176 USE_NLS=yes
7177 fi;
7178 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7179 echo "${ECHO_T}$USE_NLS" >&6
7180
7181
7182 USE_INCLUDED_LIBINTL=no
7183
7184 if test "$USE_NLS" = "yes"; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define ENABLE_NLS 1
7188 _ACEOF
7189
7190 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7191 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7192
7193 # Check whether --with-included-gettext or --without-included-gettext was given.
7194 if test "${with_included_gettext+set}" = set; then
7195 withval="$with_included_gettext"
7196 nls_cv_force_use_gnu_gettext=$withval
7197 else
7198 nls_cv_force_use_gnu_gettext=no
7199 fi;
7200 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7201 echo "${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
7211 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7212 if test "${ac_cv_header_libintl_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 fi
7215 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7216 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7217 else
7218 # Is the header compilable?
7219 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7220 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 $ac_includes_default
7225 #include <libintl.h>
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (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
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 ac_header_compiler=no
7244 fi
7245 rm -f conftest.$ac_objext conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7247 echo "${ECHO_T}$ac_header_compiler" >&6
7248
7249 # Is the header present?
7250 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7251 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 #include <libintl.h>
7256 _ACEOF
7257 if { (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
7270 else
7271 ac_cpp_err=yes
7272 fi
7273 if test -z "$ac_cpp_err"; then
7274 ac_header_preproc=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 ac_header_preproc=no
7279 fi
7280 rm -f conftest.err conftest.$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7282 echo "${ECHO_T}$ac_header_preproc" >&6
7283
7284 # So? What about this header?
7285 case $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
7288 echo "$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
7290 echo "$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
7293 echo "$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
7295 echo "$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
7297 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7298 esac
7299 echo "$as_me:$LINENO: checking for libintl.h" >&5
7300 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7301 if test "${ac_cv_header_libintl_h+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 ac_cv_header_libintl_h=$ac_header_preproc
7305 fi
7306 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7307 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7308
7309 fi
7310 if test $ac_cv_header_libintl_h = yes; then
7311 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7312 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7313 if test "${gt_cv_func_gettext_libc+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
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
7326 int
7327 main ()
7328 {
7329 return (int) gettext ("")
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (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
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 cat conftest.$ac_ext >&5
7350 gt_cv_func_gettext_libc=no
7351 fi
7352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7353 fi
7354 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7355 echo "${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
7359 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7360 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 ac_check_lib_save_LIBS=$LIBS
7364 LIBS="-lintl $LIBS"
7365 cat >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
7371 extern "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. */
7375 char bindtextdomain ();
7376 #ifdef F77_DUMMY_MAIN
7377 # ifdef __cplusplus
7378 extern "C"
7379 # endif
7380 int F77_DUMMY_MAIN() { return 1; }
7381 #endif
7382 int
7383 main ()
7384 {
7385 bindtextdomain ();
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext conftest$ac_exeext
7391 if { (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
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7406 ac_cv_lib_intl_bindtextdomain=no
7407 fi
7408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7409 LIBS=$ac_check_lib_save_LIBS
7410 fi
7411 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7412 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7413 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7414 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7415 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7416 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
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
7429 int
7430 main ()
7431 {
7432 return (int) gettext ("")
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (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
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 gt_cv_func_gettext_libintl=no
7454 fi
7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 fi
7457 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7458 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7459 fi
7460
7461 fi
7462
7463 if test "$gt_cv_func_gettext_libc" = "yes" \
7464 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7465
7466 cat >>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.
7471 set dummy msgfmt; ac_word=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_path_MSGFMT+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
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 ;;
7495 esac
7496 fi
7497 MSGFMT="$ac_cv_path_MSGFMT"
7498 if test -n "$MSGFMT"; then
7499 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7500 echo "${ECHO_T}$MSGFMT" >&6
7501 else
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7504 fi
7505 if test "$MSGFMT" != "no"; then
7506
7507 for ac_func in dcgettext
7508 do
7509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7510 echo "$as_me:$LINENO: checking for $ac_func" >&5
7511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_var+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
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
7523 extern "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. */
7527 char $ac_func ();
7528 char (*f) ();
7529
7530 #ifdef F77_DUMMY_MAIN
7531 # ifdef __cplusplus
7532 extern "C"
7533 # endif
7534 int F77_DUMMY_MAIN() { return 1; }
7535 #endif
7536 int
7537 main ()
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)
7543 choke me
7544 #else
7545 f = $ac_func;
7546 #endif
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (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"
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 eval "$as_ac_var=no"
7569 fi
7570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7571 fi
7572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7574 if 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
7579 fi
7580 done
7581
7582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7583 set dummy gmsgfmt; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
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
7595 for as_dir in $PATH
7596 do
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
7605 done
7606 done
7607
7608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7609 ;;
7610 esac
7611 fi
7612 GMSGFMT=$ac_cv_path_GMSGFMT
7613
7614 if test -n "$GMSGFMT"; then
7615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7616 echo "${ECHO_T}$GMSGFMT" >&6
7617 else
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7620 fi
7621
7622 # Extract the first word of "xgettext", so it can be a program name with args.
7623 set dummy xgettext; ac_word=$2
7624 echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
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 ;;
7647 esac
7648 fi
7649 XGETTEXT="$ac_cv_path_XGETTEXT"
7650 if test -n "$XGETTEXT"; then
7651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7652 echo "${ECHO_T}$XGETTEXT" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7656 fi
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
7668 int
7669 main ()
7670 {
7671 extern int _nl_msg_cat_cntr;
7672 return _nl_msg_cat_cntr
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (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
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 CATOBJEXT=.mo
7695 DATADIRNAME=lib
7696 fi
7697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7698 INSTOBJEXT=.mo
7699 fi
7700 fi
7701
7702 fi
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.
7715 set dummy msgfmt; ac_word=$2
7716 echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718 if test "${ac_cv_path_MSGFMT+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
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 ;;
7739 esac
7740 fi
7741 MSGFMT="$ac_cv_path_MSGFMT"
7742 if test -n "$MSGFMT"; then
7743 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7744 echo "${ECHO_T}$MSGFMT" >&6
7745 else
7746 echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6
7748 fi
7749
7750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7751 set dummy gmsgfmt; ac_word=$2
7752 echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
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
7763 for as_dir in $PATH
7764 do
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
7773 done
7774 done
7775
7776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7777 ;;
7778 esac
7779 fi
7780 GMSGFMT=$ac_cv_path_GMSGFMT
7781
7782 if test -n "$GMSGFMT"; then
7783 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7784 echo "${ECHO_T}$GMSGFMT" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7788 fi
7789
7790 # Extract the first word of "xgettext", so it can be a program name with args.
7791 set dummy xgettext; ac_word=$2
7792 echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
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 ;;
7815 esac
7816 fi
7817 XGETTEXT="$ac_cv_path_XGETTEXT"
7818 if test -n "$XGETTEXT"; then
7819 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7820 echo "${ECHO_T}$XGETTEXT" >&6
7821 else
7822 echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824 fi
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
7843 echo "${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
7886 echo $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
7895 echo "${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
7915 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7916 if test "${ac_cv_header_linux_version_h+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7921 else
7922 # Is the header compilable?
7923 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7924 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line $LINENO "configure"
7927 #include "confdefs.h"
7928 $ac_includes_default
7929 #include <linux/version.h>
7930 _ACEOF
7931 rm -f conftest.$ac_objext
7932 if { (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
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 ac_header_compiler=no
7948 fi
7949 rm -f conftest.$ac_objext conftest.$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7951 echo "${ECHO_T}$ac_header_compiler" >&6
7952
7953 # Is the header present?
7954 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7955 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 #include <linux/version.h>
7960 _ACEOF
7961 if { (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
7974 else
7975 ac_cpp_err=yes
7976 fi
7977 if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 ac_header_preproc=no
7983 fi
7984 rm -f conftest.err conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7986 echo "${ECHO_T}$ac_header_preproc" >&6
7987
7988 # So? What about this header?
7989 case $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
7992 echo "$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
7994 echo "$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
7997 echo "$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
7999 echo "$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
8001 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8002 esac
8003 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8004 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8005 if test "${ac_cv_header_linux_version_h+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 ac_cv_header_linux_version_h=$ac_header_preproc
8009 fi
8010 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8011 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8012
8013 fi
8014 if test $ac_cv_header_linux_version_h = yes; then
8015 msgformat=linux
8016 else
8017 msgformat=xopen
8018 fi
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
8061 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8062 echo $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.
8064 if test "${enable_maintainer_mode+set}" = set; then
8065 enableval="$enable_maintainer_mode"
8066 USE_MAINTAINER_MODE=$enableval
8067 else
8068 USE_MAINTAINER_MODE=no
8069 fi;
8070 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8071 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8072
8073
8074 if test $USE_MAINTAINER_MODE = yes; then
8075 MAINTAINER_MODE_TRUE=
8076 MAINTAINER_MODE_FALSE='#'
8077 else
8078 MAINTAINER_MODE_TRUE='#'
8079 MAINTAINER_MODE_FALSE=
8080 fi
8081 MAINT=$MAINTAINER_MODE_TRUE
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
8096 do
8097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 fi
8104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106 else
8107 # Is the header compilable?
8108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8113 $ac_includes_default
8114 #include <$ac_header>
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (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
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 ac_header_compiler=no
8133 fi
8134 rm -f conftest.$ac_objext conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136 echo "${ECHO_T}$ac_header_compiler" >&6
8137
8138 # Is the header present?
8139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8143 #include "confdefs.h"
8144 #include <$ac_header>
8145 _ACEOF
8146 if { (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
8159 else
8160 ac_cpp_err=yes
8161 fi
8162 if test -z "$ac_cpp_err"; then
8163 ac_header_preproc=yes
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 ac_header_preproc=no
8168 fi
8169 rm -f conftest.err conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8171 echo "${ECHO_T}$ac_header_preproc" >&6
8172
8173 # So? What about this header?
8174 case $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
8177 echo "$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
8179 echo "$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
8182 echo "$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
8184 echo "$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
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8187 esac
8188 echo "$as_me:$LINENO: checking for $ac_header" >&5
8189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 eval "$as_ac_Header=$ac_header_preproc"
8194 fi
8195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8197
8198 fi
8199 if 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
8204 fi
8205
8206 done
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.
8211 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
8212 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
8213 if test "${host}" = "${target}"; then
8214 cross_gas=no
8215 else
8216 cross_gas=yes
8217
8218 cat >>confdefs.h <<\_ACEOF
8219 #define CROSS_COMPILE 1
8220 _ACEOF
8221
8222 fi
8223 echo "$as_me:$LINENO: result: $cross_gas" >&5
8224 echo "${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!
8228 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8229 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8230 if test "${ac_cv_working_alloca_h+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
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
8243 int
8244 main ()
8245 {
8246 char *p = (char *) alloca (2 * sizeof (int));
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (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
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 ac_cv_working_alloca_h=no
8268 fi
8269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 fi
8271 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8272 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8273 if test $ac_cv_working_alloca_h = yes; then
8274
8275 cat >>confdefs.h <<\_ACEOF
8276 #define HAVE_ALLOCA_H 1
8277 _ACEOF
8278
8279 fi
8280
8281 echo "$as_me:$LINENO: checking for alloca" >&5
8282 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8283 if test "${ac_cv_func_alloca_works+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
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 */
8303 char *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
8316 int
8317 main ()
8318 {
8319 char *p = (char *) alloca (1);
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (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
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 ac_cv_func_alloca_works=no
8341 fi
8342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 fi
8344 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8345 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8346
8347 if test $ac_cv_func_alloca_works = yes; then
8348
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_ALLOCA 1
8351 _ACEOF
8352
8353 else
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
8359 ALLOCA=alloca.$ac_objext
8360
8361 cat >>confdefs.h <<\_ACEOF
8362 #define C_ALLOCA 1
8363 _ACEOF
8364
8365
8366 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8367 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8368 if test "${ac_cv_os_cray+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 cat >conftest.$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 #include "confdefs.h"
8374 #if defined(CRAY) && ! defined(CRAY2)
8375 webecray
8376 #else
8377 wenotbecray
8378 #endif
8379
8380 _ACEOF
8381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8382 egrep "webecray" >/dev/null 2>&1; then
8383 ac_cv_os_cray=yes
8384 else
8385 ac_cv_os_cray=no
8386 fi
8387 rm -f conftest*
8388
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8391 echo "${ECHO_T}$ac_cv_os_cray" >&6
8392 if 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`
8395 echo "$as_me:$LINENO: checking for $ac_func" >&5
8396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8397 if eval "test \"\${$as_ac_var+set}\" = set"; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
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
8408 extern "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. */
8412 char $ac_func ();
8413 char (*f) ();
8414
8415 #ifdef F77_DUMMY_MAIN
8416 # ifdef __cplusplus
8417 extern "C"
8418 # endif
8419 int F77_DUMMY_MAIN() { return 1; }
8420 #endif
8421 int
8422 main ()
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)
8428 choke me
8429 #else
8430 f = $ac_func;
8431 #endif
8432
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (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"
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8453 eval "$as_ac_var=no"
8454 fi
8455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8456 fi
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8459 if test `eval echo '${'$as_ac_var'}'` = yes; then
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define CRAY_STACKSEG_END $ac_func
8463 _ACEOF
8464
8465 break
8466 fi
8467
8468 done
8469 fi
8470
8471 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8472 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8473 if test "${ac_cv_c_stack_direction+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476 if test "$cross_compiling" = yes; then
8477 ac_cv_c_stack_direction=0
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8482 int
8483 find_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
8496 int
8497 main ()
8498 {
8499 exit (find_stack_direction () < 0);
8500 }
8501 _ACEOF
8502 rm -f conftest$ac_exeext
8503 if { (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
8514 else
8515 echo "$as_me: program exited with status $ac_status" >&5
8516 echo "$as_me: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8518 ( exit $ac_status )
8519 ac_cv_c_stack_direction=-1
8520 fi
8521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8522 fi
8523 fi
8524 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8525 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8526
8527 cat >>confdefs.h <<_ACEOF
8528 #define STACK_DIRECTION $ac_cv_c_stack_direction
8529 _ACEOF
8530
8531
8532 fi
8533
8534 echo "$as_me:$LINENO: checking for inline" >&5
8535 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8536 if test "${ac_cv_c_inline+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 ac_cv_c_inline=no
8540 for ac_kw in inline __inline__ __inline; do
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8543 #include "confdefs.h"
8544 #ifndef __cplusplus
8545 static $ac_kw int static_foo () {return 0; }
8546 $ac_kw int foo () {return 0; }
8547 #endif
8548
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (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
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8566 fi
8567 rm -f conftest.$ac_objext conftest.$ac_ext
8568 done
8569
8570 fi
8571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8572 echo "${ECHO_T}$ac_cv_c_inline" >&6
8573 case $ac_cv_c_inline in
8574 inline | yes) ;;
8575 no)
8576 cat >>confdefs.h <<\_ACEOF
8577 #define inline
8578 _ACEOF
8579 ;;
8580 *) cat >>confdefs.h <<_ACEOF
8581 #define inline $ac_cv_c_inline
8582 _ACEOF
8583 ;;
8584 esac
8585
8586
8587 # VMS doesn't have unlink.
8588
8589
8590 for ac_func in unlink remove
8591 do
8592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8593 echo "$as_me:$LINENO: checking for $ac_func" >&5
8594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8595 if eval "test \"\${$as_ac_var+set}\" = set"; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
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
8606 extern "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. */
8610 char $ac_func ();
8611 char (*f) ();
8612
8613 #ifdef F77_DUMMY_MAIN
8614 # ifdef __cplusplus
8615 extern "C"
8616 # endif
8617 int F77_DUMMY_MAIN() { return 1; }
8618 #endif
8619 int
8620 main ()
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)
8626 choke me
8627 #else
8628 f = $ac_func;
8629 #endif
8630
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (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"
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8651 eval "$as_ac_var=no"
8652 fi
8653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8654 fi
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8657 if 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
8662 fi
8663 done
8664
8665
8666 # Some systems don't have sbrk().
8667
8668 for ac_func in sbrk
8669 do
8670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671 echo "$as_me:$LINENO: checking for $ac_func" >&5
8672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_var+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
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
8684 extern "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. */
8688 char $ac_func ();
8689 char (*f) ();
8690
8691 #ifdef F77_DUMMY_MAIN
8692 # ifdef __cplusplus
8693 extern "C"
8694 # endif
8695 int F77_DUMMY_MAIN() { return 1; }
8696 #endif
8697 int
8698 main ()
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)
8704 choke me
8705 #else
8706 f = $ac_func;
8707 #endif
8708
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (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"
8726 else
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 eval "$as_ac_var=no"
8730 fi
8731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735 if 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
8740 fi
8741 done
8742
8743
8744 # do we need the math library?
8745 case "${need_libm}" in
8746 yes)
8747 LIBM=
8748 case $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
8754 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
8755 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 ac_check_lib_save_LIBS=$LIBS
8759 LIBS="-lmw $LIBS"
8760 cat >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
8766 extern "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. */
8770 char _mwvalidcheckl ();
8771 #ifdef F77_DUMMY_MAIN
8772 # ifdef __cplusplus
8773 extern "C"
8774 # endif
8775 int F77_DUMMY_MAIN() { return 1; }
8776 #endif
8777 int
8778 main ()
8779 {
8780 _mwvalidcheckl ();
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (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
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_cv_lib_mw__mwvalidcheckl=no
8802 fi
8803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8804 LIBS=$ac_check_lib_save_LIBS
8805 fi
8806 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8807 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8808 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
8809 LIBM="-lmw"
8810 fi
8811
8812 echo "$as_me:$LINENO: checking for main in -lm" >&5
8813 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8814 if test "${ac_cv_lib_m_main+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-lm $LIBS"
8819 cat >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
8830 int
8831 main ()
8832 {
8833 main ();
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (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
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 ac_cv_lib_m_main=no
8855 fi
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8860 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8861 if test $ac_cv_lib_m_main = yes; then
8862 LIBM="$LIBM -lm"
8863 fi
8864
8865 ;;
8866 *)
8867 echo "$as_me:$LINENO: checking for main in -lm" >&5
8868 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8869 if test "${ac_cv_lib_m_main+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 ac_check_lib_save_LIBS=$LIBS
8873 LIBS="-lm $LIBS"
8874 cat >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
8885 int
8886 main ()
8887 {
8888 main ();
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (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
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 ac_cv_lib_m_main=no
8910 fi
8911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8915 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8916 if test $ac_cv_lib_m_main = yes; then
8917 LIBM="-lm"
8918 fi
8919
8920 ;;
8921 esac
8922
8923
8924 ;;
8925 esac
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!
8930 echo "$as_me:$LINENO: checking for working assert macro" >&5
8931 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8932 if test "${gas_cv_assert_ok+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
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
8946 int
8947 main ()
8948 {
8949
8950 /* check for requoting problems */
8951 static int a, b, c, d;
8952 static char *s;
8953 assert (!strcmp(s, "foo bar baz quux"));
8954 /* check for newline handling */
8955 assert (a == b
8956 || c == d);
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (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
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 gas_cv_assert_ok=no
8979 fi
8980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8981 fi
8982 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8983 echo "${ECHO_T}$gas_cv_assert_ok" >&6
8984 test $gas_cv_assert_ok = yes ||
8985 cat >>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.
8994 gas_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
9013 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9014 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9015 if test "${gas_cv_decl_needed_strstr+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
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
9028 int
9029 main ()
9030 {
9031
9032 typedef char *(*f)();
9033 f x;
9034 x = (f) strstr;
9035
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (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
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9056 gas_cv_decl_needed_strstr=yes
9057 fi
9058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9059 fi
9060 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9061 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
9062 if test $gas_cv_decl_needed_strstr = yes; then
9063
9064 cat >>confdefs.h <<\_ACEOF
9065 #define NEED_DECLARATION_STRSTR 1
9066 _ACEOF
9067
9068 fi
9069
9070
9071 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9072 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9073 if test "${gas_cv_decl_needed_malloc+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
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
9086 int
9087 main ()
9088 {
9089
9090 typedef char *(*f)();
9091 f x;
9092 x = (f) malloc;
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (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
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 gas_cv_decl_needed_malloc=yes
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 fi
9118 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9119 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9120 if test $gas_cv_decl_needed_malloc = yes; then
9121
9122 cat >>confdefs.h <<\_ACEOF
9123 #define NEED_DECLARATION_MALLOC 1
9124 _ACEOF
9125
9126 fi
9127
9128
9129 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9130 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9131 if test "${gas_cv_decl_needed_free+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
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
9144 int
9145 main ()
9146 {
9147
9148 typedef void (*f)();
9149 f x;
9150 x = (f) free;
9151
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (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
9169 else
9170 echo "$as_me: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9172 gas_cv_decl_needed_free=yes
9173 fi
9174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9175 fi
9176 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
9177 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
9178 if test $gas_cv_decl_needed_free = yes; then
9179
9180 cat >>confdefs.h <<\_ACEOF
9181 #define NEED_DECLARATION_FREE 1
9182 _ACEOF
9183
9184 fi
9185
9186
9187 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
9188 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
9189 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
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
9202 int
9203 main ()
9204 {
9205
9206 typedef char *(*f)();
9207 f x;
9208 x = (f) sbrk;
9209
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (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
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 gas_cv_decl_needed_sbrk=yes
9231 fi
9232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9233 fi
9234 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
9235 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
9236 if test $gas_cv_decl_needed_sbrk = yes; then
9237
9238 cat >>confdefs.h <<\_ACEOF
9239 #define NEED_DECLARATION_SBRK 1
9240 _ACEOF
9241
9242 fi
9243
9244
9245 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
9246 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
9247 if test "${gas_cv_decl_needed_environ+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
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
9260 int
9261 main ()
9262 {
9263
9264 typedef char **f;
9265 f x;
9266 x = (f) environ;
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (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
9285 else
9286 echo "$as_me: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 gas_cv_decl_needed_environ=yes
9289 fi
9290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9291 fi
9292 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
9293 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
9294 if test $gas_cv_decl_needed_environ = yes; then
9295
9296 cat >>confdefs.h <<\_ACEOF
9297 #define NEED_DECLARATION_ENVIRON 1
9298 _ACEOF
9299
9300 fi
9301
9302
9303 # Does errno.h declare errno, or do we have to add a separate declaration
9304 # for it?
9305
9306 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
9307 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
9308 if test "${gas_cv_decl_needed_errno+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
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
9325 int
9326 main ()
9327 {
9328
9329 typedef int f;
9330 f x;
9331 x = (f) errno;
9332
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (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
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 gas_cv_decl_needed_errno=yes
9354 fi
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356 fi
9357 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
9358 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
9359 if test $gas_cv_decl_needed_errno = yes; then
9360
9361 cat >>confdefs.h <<\_ACEOF
9362 #define NEED_DECLARATION_ERRNO 1
9363 _ACEOF
9364
9365 fi
9366
9367
9368
9369
9370 ac_config_files="$ac_config_files Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"
9371 ac_config_commands="$ac_config_commands default"
9372 cat >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
9417 if 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
9424 fi
9425 rm -f confcache
9426
9427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9428 # Let make expand exec_prefix.
9429 test "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).
9435 if test "x$srcdir" = x.; then
9436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9437 s/:*\$(srcdir):*/:/;
9438 s/:*\${srcdir}:*/:/;
9439 s/:*@srcdir@:*/:/;
9440 s/^\([^=]*=[ ]*\):*/\1/;
9441 s/:*$//;
9442 s/^[^=]*=[ ]*$//;
9443 }'
9444 fi
9445
9446 DEFS=-DHAVE_CONFIG_H
9447
9448
9449 : ${CONFIG_STATUS=./config.status}
9450 ac_clean_files_save=$ac_clean_files
9451 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9452 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9453 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9454 cat >$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
9461 debug=false
9462 SHELL=\${CONFIG_SHELL-$SHELL}
9463 _ACEOF
9464
9465 cat >>$CONFIG_STATUS <<\_ACEOF
9466
9467 ## --------------------- ##
9468 ## M4sh Initialization. ##
9469 ## --------------------- ##
9470
9471 # Be Bourne compatible
9472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9473 emulate sh
9474 NULLCMD=:
9475 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9476 set -o posix
9477 fi
9478
9479 # NLS nuisances.
9480 # Support unset when possible.
9481 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9482 as_unset=unset
9483 else
9484 as_unset=false
9485 fi
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.
9514 as_me=`(basename "$0") 2>/dev/null ||
9515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9516 X"$0" : 'X\(//\)$' \| \
9517 X"$0" : 'X\(/\)$' \| \
9518 . : '\(.\)' 2>/dev/null ||
9519 echo 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.
9527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9530 as_cr_digits='0123456789'
9531 as_cr_alnum=$as_cr_Letters$as_cr_digits
9532
9533 # The user is always right.
9534 if 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
9544 fi
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
9557 for as_dir in $PATH
9558 do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9562 done
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
9573 echo "$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
9579 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9580 do
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
9598 done
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
9622 echo "$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
9634 case `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= ;;
9639 esac
9640
9641 if expr a : '\(a\)' >/dev/null 2>&1; then
9642 as_expr=expr
9643 else
9644 as_expr=false
9645 fi
9646
9647 rm -f conf$$ conf$$.exe conf$$.file
9648 echo >conf$$.file
9649 if 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
9658 elif ln conf$$.file conf$$ 2>/dev/null; then
9659 as_ln_s=ln
9660 else
9661 as_ln_s='cp -p'
9662 fi
9663 rm -f conf$$ conf$$.exe conf$$.file
9664
9665 as_executable_p="test -f"
9666
9667 # Sed expression to map a string onto a valid CPP name.
9668 as_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.
9671 as_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.
9676 as_nl='
9677 '
9678 IFS=" $as_nl"
9679
9680 # CDPATH.
9681 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9682
9683 exec 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.
9688 exec 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
9695 cat >&5 <<_CSEOF
9696
9697 This file was extended by $as_me, which was
9698 generated 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
9707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9708 echo >&5
9709 _ACEOF
9710
9711 # Files that config.status was made for.
9712 if test -n "$ac_config_files"; then
9713 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9714 fi
9715
9716 if test -n "$ac_config_headers"; then
9717 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9718 fi
9719
9720 if test -n "$ac_config_links"; then
9721 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9722 fi
9723
9724 if test -n "$ac_config_commands"; then
9725 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9726 fi
9727
9728 cat >>$CONFIG_STATUS <<\_ACEOF
9729
9730 ac_cs_usage="\
9731 \`$as_me' instantiates files from templates according to the
9732 current configuration.
9733
9734 Usage: $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
9745 Configuration files:
9746 $config_files
9747
9748 Configuration headers:
9749 $config_headers
9750
9751 Configuration commands:
9752 $config_commands
9753
9754 Report bugs to <bug-autoconf@gnu.org>."
9755 _ACEOF
9756
9757 cat >>$CONFIG_STATUS <<_ACEOF
9758 ac_cs_version="\\
9759 config.status
9760 configured by $0, generated by GNU Autoconf 2.53,
9761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9762
9763 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9764 Free Software Foundation, Inc.
9765 This config.status script is free software; the Free Software Foundation
9766 gives unlimited permission to copy, distribute and modify it."
9767 srcdir=$srcdir
9768 INSTALL="$INSTALL"
9769 _ACEOF
9770
9771 cat >>$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.
9774 ac_need_defaults=:
9775 while test $# != 0
9776 do
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
9794 cat >>$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
9799 cat >>$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
9805 Try \`$0 --help' for more information." >&5
9806 echo "$as_me: error: ambiguous option: $1
9807 Try \`$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
9824 Try \`$0 --help' for more information." >&5
9825 echo "$as_me: error: unrecognized option: $1
9826 Try \`$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
9833 done
9834
9835 _ACEOF
9836
9837 cat >>$CONFIG_STATUS <<_ACEOF
9838 #
9839 # INIT-COMMANDS section.
9840 #
9841
9842
9843 target_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
9852 cat >>$CONFIG_STATUS <<\_ACEOF
9853 for ac_config_target in $ac_config_targets
9854 do
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
9865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9866 { (exit 1); exit 1; }; };;
9867 esac
9868 done
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.
9874 if $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
9878 fi
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
9904 cat >>$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
9912 if 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
9916 s,@SHELL@,$SHELL,;t t
9917 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9918 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9919 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9920 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9921 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9922 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9923 s,@exec_prefix@,$exec_prefix,;t t
9924 s,@prefix@,$prefix,;t t
9925 s,@program_transform_name@,$program_transform_name,;t t
9926 s,@bindir@,$bindir,;t t
9927 s,@sbindir@,$sbindir,;t t
9928 s,@libexecdir@,$libexecdir,;t t
9929 s,@datadir@,$datadir,;t t
9930 s,@sysconfdir@,$sysconfdir,;t t
9931 s,@sharedstatedir@,$sharedstatedir,;t t
9932 s,@localstatedir@,$localstatedir,;t t
9933 s,@libdir@,$libdir,;t t
9934 s,@includedir@,$includedir,;t t
9935 s,@oldincludedir@,$oldincludedir,;t t
9936 s,@infodir@,$infodir,;t t
9937 s,@mandir@,$mandir,;t t
9938 s,@build_alias@,$build_alias,;t t
9939 s,@host_alias@,$host_alias,;t t
9940 s,@target_alias@,$target_alias,;t t
9941 s,@DEFS@,$DEFS,;t t
9942 s,@ECHO_C@,$ECHO_C,;t t
9943 s,@ECHO_N@,$ECHO_N,;t t
9944 s,@ECHO_T@,$ECHO_T,;t t
9945 s,@LIBS@,$LIBS,;t t
9946 s,@build@,$build,;t t
9947 s,@build_cpu@,$build_cpu,;t t
9948 s,@build_vendor@,$build_vendor,;t t
9949 s,@build_os@,$build_os,;t t
9950 s,@host@,$host,;t t
9951 s,@host_cpu@,$host_cpu,;t t
9952 s,@host_vendor@,$host_vendor,;t t
9953 s,@host_os@,$host_os,;t t
9954 s,@target@,$target,;t t
9955 s,@target_cpu@,$target_cpu,;t t
9956 s,@target_vendor@,$target_vendor,;t t
9957 s,@target_os@,$target_os,;t t
9958 s,@CC@,$CC,;t t
9959 s,@CFLAGS@,$CFLAGS,;t t
9960 s,@LDFLAGS@,$LDFLAGS,;t t
9961 s,@CPPFLAGS@,$CPPFLAGS,;t t
9962 s,@ac_ct_CC@,$ac_ct_CC,;t t
9963 s,@EXEEXT@,$EXEEXT,;t t
9964 s,@OBJEXT@,$OBJEXT,;t t
9965 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9966 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9967 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9968 s,@PACKAGE@,$PACKAGE,;t t
9969 s,@VERSION@,$VERSION,;t t
9970 s,@ACLOCAL@,$ACLOCAL,;t t
9971 s,@AUTOCONF@,$AUTOCONF,;t t
9972 s,@AUTOMAKE@,$AUTOMAKE,;t t
9973 s,@AUTOHEADER@,$AUTOHEADER,;t t
9974 s,@MAKEINFO@,$MAKEINFO,;t t
9975 s,@SET_MAKE@,$SET_MAKE,;t t
9976 s,@LN_S@,$LN_S,;t t
9977 s,@RANLIB@,$RANLIB,;t t
9978 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9979 s,@STRIP@,$STRIP,;t t
9980 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9981 s,@LIBTOOL@,$LIBTOOL,;t t
9982 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9983 s,@GDBINIT@,$GDBINIT,;t t
9984 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9985 s,@extra_objects@,$extra_objects,;t t
9986 s,@target_cpu_type@,$target_cpu_type,;t t
9987 s,@obj_format@,$obj_format,;t t
9988 s,@te_file@,$te_file,;t t
9989 s,@install_tooldir@,$install_tooldir,;t t
9990 s,@atof@,$atof,;t t
9991 s,@BFDLIB@,$BFDLIB,;t t
9992 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
9993 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
9994 s,@YACC@,$YACC,;t t
9995 s,@LEX@,$LEX,;t t
9996 s,@LEXLIB@,$LEXLIB,;t t
9997 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9998 s,@CPP@,$CPP,;t t
9999 s,@ALLOCA@,$ALLOCA,;t t
10000 s,@USE_NLS@,$USE_NLS,;t t
10001 s,@MSGFMT@,$MSGFMT,;t t
10002 s,@GMSGFMT@,$GMSGFMT,;t t
10003 s,@XGETTEXT@,$XGETTEXT,;t t
10004 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10005 s,@CATALOGS@,$CATALOGS,;t t
10006 s,@CATOBJEXT@,$CATOBJEXT,;t t
10007 s,@DATADIRNAME@,$DATADIRNAME,;t t
10008 s,@GMOFILES@,$GMOFILES,;t t
10009 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10010 s,@INTLDEPS@,$INTLDEPS,;t t
10011 s,@INTLLIBS@,$INTLLIBS,;t t
10012 s,@INTLOBJS@,$INTLOBJS,;t t
10013 s,@POFILES@,$POFILES,;t t
10014 s,@POSUB@,$POSUB,;t t
10015 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10016 s,@GT_NO@,$GT_NO,;t t
10017 s,@GT_YES@,$GT_YES,;t t
10018 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10019 s,@l@,$l,;t t
10020 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10021 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10022 s,@MAINT@,$MAINT,;t t
10023 s,@LIBM@,$LIBM,;t t
10024 CEOF
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
10065 fi # test -n "$CONFIG_FILES"
10066
10067 _ACEOF
10068 cat >>$CONFIG_STATUS <<\_ACEOF
10069 for 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 ||
10088 echo 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=.;;
10097 esac
10098 as_dummy="$ac_dir"
10099 for 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
10108 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10109 { (exit 1); exit 1; }; }
10110 ;;
10111 esac
10112 done; }
10113
10114 ac_builddir=.
10115
10116 if 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'`
10120 else
10121 ac_dir_suffix= ac_top_builddir=
10122 fi
10123
10124 case $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 ;;
10138 esac
10139 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10140 # absolute.
10141 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10142 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10143 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10144 ac_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
10154 echo "$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
10177 echo "$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
10190 echo "$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
10196 cat >>$CONFIG_STATUS <<_ACEOF
10197 sed "$ac_vpsub
10198 $extrasub
10199 _ACEOF
10200 cat >>$CONFIG_STATUS <<\_ACEOF
10201 :t
10202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10203 s,@configure_input@,$configure_input,;t t
10204 s,@srcdir@,$ac_srcdir,;t t
10205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10206 s,@top_srcdir@,$ac_top_srcdir,;t t
10207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10208 s,@builddir@,$ac_builddir,;t t
10209 s,@abs_builddir@,$ac_abs_builddir,;t t
10210 s,@top_builddir@,$ac_top_builddir,;t t
10211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10212 s,@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
10222 done
10223 _ACEOF
10224 cat >>$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.
10234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10235 ac_dB='[ ].*$,\1#\2'
10236 ac_dC=' '
10237 ac_dD=',;t'
10238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10240 ac_uB='$,\1#\2define\3'
10241 ac_uC=' '
10242 ac_uD=',;t'
10243
10244 for 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
10257 echo "$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
10268 echo "$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
10281 echo "$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.
10298 rm -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'.
10305 cat >confdef2sed.sed <<\_ACEOF
10306 s/[\\&,]/\\&/g
10307 s,[\\$`],\\&,g
10308 t clear
10309 : clear
10310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10311 t end
10312 s,^[ ]*#[ ]*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.
10318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10320 rm -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.
10325 cat >>conftest.undefs <<\_ACEOF
10326 s,^[ ]*#[ ]*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).
10331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10332 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10334 echo ' :' >>$CONFIG_STATUS
10335 rm -f conftest.tail
10336 while grep . conftest.defines >/dev/null
10337 do
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
10354 done
10355 rm -f conftest.defines
10356 echo ' fi # egrep' >>$CONFIG_STATUS
10357 echo >>$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).
10361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10362 rm -f conftest.tail
10363 while grep . conftest.undefs >/dev/null
10364 do
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
10381 done
10382 rm -f conftest.undefs
10383
10384 cat >>$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
10398 echo "$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 ||
10406 echo 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=.;;
10415 esac
10416 as_dummy="$ac_dir"
10417 for 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
10426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10427 { (exit 1); exit 1; }; }
10428 ;;
10429 esac
10430 done; }
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
10439 done
10440 _ACEOF
10441 cat >>$CONFIG_STATUS <<\_ACEOF
10442
10443 #
10444 # CONFIG_COMMANDS section.
10445 #
10446 for 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 ||
10455 echo 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
10463 if 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'`
10467 else
10468 ac_dir_suffix= ac_top_builddir=
10469 fi
10470
10471 case $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 ;;
10485 esac
10486 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10487 # absolute.
10488 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10489 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10490 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10491 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10492
10493
10494 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10495 echo "$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
10509 done
10510 _ACEOF
10511
10512 cat >>$CONFIG_STATUS <<\_ACEOF
10513
10514 { (exit 0); exit 0; }
10515 _ACEOF
10516 chmod +x $CONFIG_STATUS
10517 ac_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.
10528 if 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; }
10536 fi
10537