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