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