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