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