]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/cr16/configure
Fixup readline and sim including of override.m4
[thirdparty/binutils-gdb.git] / sim / cr16 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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_pwd=`pwd`
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848
849 cat <<\_ACEOF
850
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
868 --with-bugurl=URL Direct users to URL to report a bug
869
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
877 CPP C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
891
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
954
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
970 cd $ac_popdir
971 done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
991
992 $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317 ac_config_headers="$ac_config_headers config.h:config.in"
1318
1319
1320 # This file contains common code used by all simulators.
1321 #
1322 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1323 # directory. It is intended to be invoked before any target specific stuff.
1324 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1325 # It is intended to be invoked last.
1326 #
1327 # The simulator's configure.in should look like:
1328 #
1329 # dnl Process this file with autoconf to produce a configure script.
1330 # sinclude(../common/aclocal.m4)
1331 # AC_PREREQ(2.5)dnl
1332 # AC_INIT(Makefile.in)
1333 #
1334 # SIM_AC_COMMON
1335 #
1336 # ... target specific stuff ...
1337 #
1338 # SIM_AC_OUTPUT
1339
1340 # Include global overrides and fixes for Autoconf.
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371 # _AC_OUTPUT_SUBDIRS
1372 # ------------------
1373 # This is a subroutine of AC_OUTPUT, but it does not go into
1374 # config.status, rather, it is called after running config.status.
1375 # _AC_OUTPUT_SUBDIRS
1376
1377
1378
1379
1380 # _AC_ARG_VAR_VALIDATE
1381 # --------------------
1382 # The code is the same as autoconf 2.59, but with a more lenient check
1383 # on precious variables and an output of pwd that have been added in
1384 # autoconf 2.62.
1385 # _AC_ARG_VAR_VALIDATE
1386
1387
1388
1389
1390 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1391 # ----------------------------------------
1392 # This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449 sim_inline="-DDEFAULT_INLINE=0"
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 # intl sister-directory configuration rules.
1487 #
1488
1489 # The idea behind this macro is that there's no need to repeat all the
1490 # autoconf probes done by the intl directory - it's already done them
1491 # for us. In fact, there's no need even to look at the cache for the
1492 # answers. All we need to do is nab a few pieces of information.
1493 # The intl directory is set up to make this easy, by generating a
1494 # small file which can be sourced as a shell script; then we produce
1495 # the necessary substitutions and definitions for this directory.
1496
1497
1498
1499 # Autoconf M4 include file defining utility macros for complex Canadian
1500 # cross builds.
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510 ####
1511 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1512 # or AC_INIT.
1513 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1514
1515 ####
1516 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1517 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1518
1519
1520 ####
1521 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1522 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1523
1524
1525
1526 # Backported from Autoconf 2.5x; can go away when and if
1527 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1528
1529
1530
1531
1532 # ACX_HAVE_GCC_FOR_TARGET
1533 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1534
1535
1536 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1537 # Searching for installed target binutils. We need to take extra care,
1538 # else we may find the wrong assembler, linker, etc., and lose.
1539 #
1540 # First try --with-build-time-tools, if specified.
1541 #
1542 # For build != host, we ask the installed GCC for the name of the tool it
1543 # uses, and accept it if it is an absolute path. This is because the
1544 # only good choice for a compiler is the same GCC version that is being
1545 # installed (or we couldn't make target libraries), and we assume that
1546 # on the host system we'll have not only the same GCC version, but also
1547 # the same binutils version.
1548 #
1549 # For build == host, search the same directories that the installed
1550 # compiler will search. We used to do this for the assembler, linker,
1551 # and nm only; for simplicity of configuration, however, we extend this
1552 # criterion to tools (such as ar and ranlib) that are never invoked by
1553 # the compiler, to avoid mismatches.
1554 #
1555 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1556 # if build == target. This makes the most sense only when bootstrapping,
1557 # but we also do so when build != host. In this case, we hope that the
1558 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1559 #
1560 # If we do not find a suitable binary, then try the user's path.
1561
1562
1563 ###
1564 # AC_PROG_CPP_WERROR
1565 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1566 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1567 # For now, using this also overrides header checks to use only the
1568 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1569 # bit harder from here).
1570 # Eventually autoconf will default to checking headers with the compiler
1571 # instead, and we'll have to do this differently.
1572
1573 # AC_PROG_CPP_WERROR
1574
1575 # Test for GNAT.
1576 # We require the gnatbind program, and a compiler driver that
1577 # understands Ada. We use the user's CC setting, already found,
1578 # and possibly add $1 to the command-line parameters.
1579 #
1580 # Sets the shell variable have_gnat to yes or no as appropriate, and
1581 # substitutes GNATBIND and GNATMAKE.
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1608 # it by inlining the macro's contents.
1609 # This file contains common code used by all simulators.
1610 #
1611 # common.m4 invokes AC macros used by all simulators and by the common
1612 # directory. It is intended to be included before any target specific
1613 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1614 # the Makefile. It is intended to be invoked last.
1615 #
1616 # The simulator's configure.in should look like:
1617 #
1618 # dnl Process this file with autoconf to produce a configure script.
1619 # AC_PREREQ(2.5)dnl
1620 # AC_INIT(Makefile.in)
1621 # AC_CONFIG_HEADER(config.h:config.in)
1622 #
1623 # sinclude(../common/aclocal.m4)
1624 # sinclude(../common/common.m4)
1625 #
1626 # ... target specific stuff ...
1627
1628 ac_aux_dir=
1629 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630 if test -f $ac_dir/install-sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install-sh -c"
1633 break
1634 elif test -f $ac_dir/install.sh; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/install.sh -c"
1637 break
1638 elif test -f $ac_dir/shtool; then
1639 ac_aux_dir=$ac_dir
1640 ac_install_sh="$ac_aux_dir/shtool install -c"
1641 break
1642 fi
1643 done
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4 >/dev/null 2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1658
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_build_alias=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1679 build=$ac_cv_build
1680 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 ac_cv_host_alias=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias=$ac_cv_build_alias
1693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698 fi
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1701 host=$ac_cv_host
1702 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705
1706
1707 echo "$as_me:$LINENO: checking target system type" >&5
1708 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1709 if test "${ac_cv_target+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 ac_cv_target_alias=$target_alias
1713 test "x$ac_cv_target_alias" = "x" &&
1714 ac_cv_target_alias=$ac_cv_host_alias
1715 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1716 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1717 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1718 { (exit 1); exit 1; }; }
1719
1720 fi
1721 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1722 echo "${ECHO_T}$ac_cv_target" >&6
1723 target=$ac_cv_target
1724 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1725 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1726 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1727
1728
1729 # The aliases save the names the user supplied, while $host etc.
1730 # will get canonicalized.
1731 test -n "$target_alias" &&
1732 test "$program_prefix$program_suffix$program_transform_name" = \
1733 NONENONEs,x,x, &&
1734 program_prefix=${target_alias}-
1735 test "$program_prefix" != NONE &&
1736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737 # Use a double $ so make ignores it.
1738 test "$program_suffix" != NONE &&
1739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740 # Double any \ or $. echo might interpret backslashes.
1741 # By default was `s,x,x', remove it if useless.
1742 cat <<\_ACEOF >conftest.sed
1743 s/[\\$]/&&/g;s/;s,x,x,$//
1744 _ACEOF
1745 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1746 rm conftest.sed
1747
1748 ac_ext=c
1749 ac_cpp='$CPP $CPPFLAGS'
1750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1753 if test -n "$ac_tool_prefix"; then
1754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 if test -n "$CC"; then
1762 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 CC=$ac_cv_prog_CC
1781 if test -n "$CC"; then
1782 echo "$as_me:$LINENO: result: $CC" >&5
1783 echo "${ECHO_T}$CC" >&6
1784 else
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789 fi
1790 if test -z "$ac_cv_prog_CC"; then
1791 ac_ct_CC=$CC
1792 # Extract the first word of "gcc", so it can be a program name with args.
1793 set dummy gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 if test -n "$ac_ct_CC"; then
1800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_ac_ct_CC="gcc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1812 fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1819 if test -n "$ac_ct_CC"; then
1820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1821 echo "${ECHO_T}$ac_ct_CC" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 CC=$ac_ct_CC
1828 else
1829 CC="$ac_cv_prog_CC"
1830 fi
1831
1832 if test -z "$CC"; then
1833 if test -n "$ac_tool_prefix"; then
1834 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1835 set dummy ${ac_tool_prefix}cc; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_CC="${ac_tool_prefix}cc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855 done
1856 done
1857
1858 fi
1859 fi
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862 echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869 fi
1870 if test -z "$ac_cv_prog_CC"; then
1871 ac_ct_CC=$CC
1872 # Extract the first word of "cc", so it can be a program name with args.
1873 set dummy cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_ac_ct_CC="cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1899 if test -n "$ac_ct_CC"; then
1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1901 echo "${ECHO_T}$ac_ct_CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 CC=$ac_ct_CC
1908 else
1909 CC="$ac_cv_prog_CC"
1910 fi
1911
1912 fi
1913 if test -z "$CC"; then
1914 # Extract the first word of "cc", so it can be a program name with args.
1915 set dummy cc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 ac_prog_rejected=no
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1933 ac_prog_rejected=yes
1934 continue
1935 fi
1936 ac_cv_prog_CC="cc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1939 fi
1940 done
1941 done
1942
1943 if test $ac_prog_rejected = yes; then
1944 # We found a bogon in the path, so make sure we never use it.
1945 set dummy $ac_cv_prog_CC
1946 shift
1947 if test $# != 0; then
1948 # We chose a different compiler from the bogus one.
1949 # However, it has the same basename, so the bogon will be chosen
1950 # first if we set CC to just the basename; use the full file name.
1951 shift
1952 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1953 fi
1954 fi
1955 fi
1956 fi
1957 CC=$ac_cv_prog_CC
1958 if test -n "$CC"; then
1959 echo "$as_me:$LINENO: result: $CC" >&5
1960 echo "${ECHO_T}$CC" >&6
1961 else
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1964 fi
1965
1966 fi
1967 if test -z "$CC"; then
1968 if test -n "$ac_tool_prefix"; then
1969 for ac_prog in cl
1970 do
1971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1991 fi
1992 done
1993 done
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999 echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6
2001 else
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006 test -n "$CC" && break
2007 done
2008 fi
2009 if test -z "$CC"; then
2010 ac_ct_CC=$CC
2011 for ac_prog in cl
2012 do
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_ac_ct_CC="$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 test -n "$ac_ct_CC" && break
2049 done
2050
2051 CC=$ac_ct_CC
2052 fi
2053
2054 fi
2055
2056
2057 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2058 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }; }
2064
2065 # Provide some information about the compiler.
2066 echo "$as_me:$LINENO:" \
2067 "checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2070 (eval $ac_compiler --version </dev/null >&5) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2075 (eval $ac_compiler -v </dev/null >&5) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2080 (eval $ac_compiler -V </dev/null >&5) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084
2085 cat >conftest.$ac_ext <<_ACEOF
2086 /* confdefs.h. */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2091
2092 int
2093 main ()
2094 {
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 ac_clean_files_save=$ac_clean_files
2101 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2102 # Try to create an executable without -o first, disregard a.out.
2103 # It will help us diagnose broken compilers, and finding out an intuition
2104 # of exeext.
2105 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2106 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2107 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2108 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2109 (eval $ac_link_default) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; then
2113 # Find the output, starting from the most likely. This scheme is
2114 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2115 # resort.
2116
2117 # Be careful to initialize this variable, since it used to be cached.
2118 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2119 ac_cv_exeext=
2120 # b.out is created by i960 compilers.
2121 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2122 do
2123 test -f "$ac_file" || continue
2124 case $ac_file in
2125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2126 ;;
2127 conftest.$ac_ext )
2128 # This is the source file.
2129 ;;
2130 [ab].out )
2131 # We found the default executable, but exeext='' is most
2132 # certainly right.
2133 break;;
2134 *.* )
2135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 # FIXME: I believe we export ac_cv_exeext for Libtool,
2137 # but it would be cool to find out if it's true. Does anybody
2138 # maintain Libtool? --akim.
2139 export ac_cv_exeext
2140 break;;
2141 * )
2142 break;;
2143 esac
2144 done
2145 else
2146 echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2150 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: C compiler cannot create executables
2154 See \`config.log' for more details." >&2;}
2155 { (exit 77); exit 77; }; }; }
2156 fi
2157
2158 ac_exeext=$ac_cv_exeext
2159 echo "$as_me:$LINENO: result: $ac_file" >&5
2160 echo "${ECHO_T}$ac_file" >&6
2161
2162 # Check the compiler produces executables we can run. If not, either
2163 # the compiler is broken, or we cross compile.
2164 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2165 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167 # If not cross compiling, check that we can run a simple program.
2168 if test "$cross_compiling" != yes; then
2169 if { ac_try='./$ac_file'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 cross_compiling=no
2176 else
2177 if test "$cross_compiling" = maybe; then
2178 cross_compiling=yes
2179 else
2180 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2181 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2183 If you meant to cross compile, use \`--host'.
2184 See \`config.log' for more details." >&5
2185 echo "$as_me: error: cannot run C compiled programs.
2186 If you meant to cross compile, use \`--host'.
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }; }
2189 fi
2190 fi
2191 fi
2192 echo "$as_me:$LINENO: result: yes" >&5
2193 echo "${ECHO_T}yes" >&6
2194
2195 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2196 ac_clean_files=$ac_clean_files_save
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2200 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2201 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2202 echo "${ECHO_T}$cross_compiling" >&6
2203
2204 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2205 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2207 (eval $ac_link) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2212 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2213 # work properly (i.e., refer to `conftest.exe'), while it won't with
2214 # `rm'.
2215 for ac_file in conftest.exe conftest conftest.*; do
2216 test -f "$ac_file" || continue
2217 case $ac_file in
2218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2219 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220 export ac_cv_exeext
2221 break;;
2222 * ) break;;
2223 esac
2224 done
2225 else
2226 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2227 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }; }
2233 fi
2234
2235 rm -f conftest$ac_cv_exeext
2236 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237 echo "${ECHO_T}$ac_cv_exeext" >&6
2238
2239 rm -f conftest.$ac_ext
2240 EXEEXT=$ac_cv_exeext
2241 ac_exeext=$EXEEXT
2242 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244 if test "${ac_cv_objext+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253
2254 int
2255 main ()
2256 {
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2269 case $ac_file in
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272 break;;
2273 esac
2274 done
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2280 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }; }
2286 fi
2287
2288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2289 fi
2290 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2291 echo "${ECHO_T}$ac_cv_objext" >&6
2292 OBJEXT=$ac_cv_objext
2293 ac_objext=$OBJEXT
2294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2305
2306 int
2307 main ()
2308 {
2309 #ifndef __GNUC__
2310 choke me
2311 #endif
2312
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_compiler_gnu=yes
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_compiler_gnu=no
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2348
2349 fi
2350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2352 GCC=`test $ac_compiler_gnu = yes && echo yes`
2353 ac_test_CFLAGS=${CFLAGS+set}
2354 ac_save_CFLAGS=$CFLAGS
2355 CFLAGS="-g"
2356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2358 if test "${ac_cv_prog_cc_g+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367
2368 int
2369 main ()
2370 {
2371
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_prog_cc_g=yes
2399 else
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_cv_prog_cc_g=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2409 if test "$ac_test_CFLAGS" = set; then
2410 CFLAGS=$ac_save_CFLAGS
2411 elif test $ac_cv_prog_cc_g = yes; then
2412 if test "$GCC" = yes; then
2413 CFLAGS="-g -O2"
2414 else
2415 CFLAGS="-g"
2416 fi
2417 else
2418 if test "$GCC" = yes; then
2419 CFLAGS="-O2"
2420 else
2421 CFLAGS=
2422 fi
2423 fi
2424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 ac_cv_prog_cc_stdc=no
2430 ac_save_CC=$CC
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2437 #include <stdarg.h>
2438 #include <stdio.h>
2439 #include <sys/types.h>
2440 #include <sys/stat.h>
2441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2442 struct buf { int x; };
2443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444 static char *e (p, i)
2445 char **p;
2446 int i;
2447 {
2448 return p[i];
2449 }
2450 static char *f (char * (*g) (char **, int), char **p, ...)
2451 {
2452 char *s;
2453 va_list v;
2454 va_start (v,p);
2455 s = g (p, va_arg (v,int));
2456 va_end (v);
2457 return s;
2458 }
2459
2460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2461 function prototypes and stuff, but not '\xHH' hex character constants.
2462 These don't provoke an error unfortunately, instead are silently treated
2463 as 'x'. The following induces an error, until -std1 is added to get
2464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2465 array size at least. It's necessary to write '\x00'==0 to get something
2466 that's true only with -std1. */
2467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2468
2469 int test (int i, double x);
2470 struct s1 {int (*f) (int a);};
2471 struct s2 {int (*f) (double a);};
2472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2473 int argc;
2474 char **argv;
2475 int
2476 main ()
2477 {
2478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX 10.20 and later -Ae
2488 # HP-UX older versions -Aa -D_HPUX_SOURCE
2489 # SVR4 -Xc -D__EXTENSIONS__
2490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2491 do
2492 CC="$ac_save_CC $ac_arg"
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_prog_cc_stdc=$ac_arg
2516 break
2517 else
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 fi
2522 rm -f conftest.err conftest.$ac_objext
2523 done
2524 rm -f conftest.$ac_ext conftest.$ac_objext
2525 CC=$ac_save_CC
2526
2527 fi
2528
2529 case "x$ac_cv_prog_cc_stdc" in
2530 x|xno)
2531 echo "$as_me:$LINENO: result: none needed" >&5
2532 echo "${ECHO_T}none needed" >&6 ;;
2533 *)
2534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536 CC="$CC $ac_cv_prog_cc_stdc" ;;
2537 esac
2538
2539 # Some people use a C++ compiler to compile C. Since we use `exit',
2540 # in C++ we need to declare it. In case someone uses the same compiler
2541 # for both compiling C and C++ we need to have the C++ compiler decide
2542 # the declaration of exit, since it's the most demanding environment.
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #ifndef __cplusplus
2545 choke me
2546 #endif
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 for ac_declaration in \
2571 '' \
2572 'extern "C" void std::exit (int) throw (); using std::exit;' \
2573 'extern "C" void std::exit (int); using std::exit;' \
2574 'extern "C" void exit (int) throw ();' \
2575 'extern "C" void exit (int);' \
2576 'void exit (int);'
2577 do
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 $ac_declaration
2585 #include <stdlib.h>
2586 int
2587 main ()
2588 {
2589 exit (42);
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 :
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 continue
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 $ac_declaration
2631 int
2632 main ()
2633 {
2634 exit (42);
2635 ;
2636 return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2642 ac_status=$?
2643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 break
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 fi
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 done
2669 rm -f conftest*
2670 if test -n "$ac_declaration"; then
2671 echo '#ifdef __cplusplus' >>confdefs.h
2672 echo $ac_declaration >>confdefs.h
2673 echo '#endif' >>confdefs.h
2674 fi
2675
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 fi
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688 # Find a good install program. We prefer a C program (faster),
2689 # so one script is as good as another. But avoid the broken or
2690 # incompatible versions:
2691 # SysV /etc/install, /usr/sbin/install
2692 # SunOS /usr/etc/install
2693 # IRIX /sbin/install
2694 # AIX /bin/install
2695 # AmigaOS /C/install, which installs bootblocks on floppy discs
2696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2699 # OS/2's system install, which has a completely different semantic
2700 # ./install, which can be erroneously created by make from ./install.sh.
2701 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2702 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2703 if test -z "$INSTALL"; then
2704 if test "${ac_cv_path_install+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 # Account for people who put trailing slashes in PATH elements.
2713 case $as_dir/ in
2714 ./ | .// | /cC/* | \
2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2717 /usr/ucb/* ) ;;
2718 *)
2719 # OSF1 and SCO ODT 3.0 have their own names for install.
2720 # Don't use installbsd from OSF since it installs stuff as root
2721 # by default.
2722 for ac_prog in ginstall scoinst install; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2725 if test $ac_prog = install &&
2726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # AIX install. It has an incompatible calling convention.
2728 :
2729 elif test $ac_prog = install &&
2730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # program-specific install script used by HP pwplus--don't use.
2732 :
2733 else
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
2737 fi
2738 done
2739 done
2740 ;;
2741 esac
2742 done
2743
2744
2745 fi
2746 if test "${ac_cv_path_install+set}" = set; then
2747 INSTALL=$ac_cv_path_install
2748 else
2749 # As a last resort, use the slow shell script. We don't cache a
2750 # path for INSTALL within a source directory, because that will
2751 # break other packages using the cache if that directory is
2752 # removed, or if the path is relative.
2753 INSTALL=$ac_install_sh
2754 fi
2755 fi
2756 echo "$as_me:$LINENO: result: $INSTALL" >&5
2757 echo "${ECHO_T}$INSTALL" >&6
2758
2759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760 # It thinks the first close brace ends the variable substitution.
2761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762
2763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764
2765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766
2767
2768 # Put a plausible default for CC_FOR_BUILD in Makefile.
2769 if test "x$cross_compiling" = "xno"; then
2770 CC_FOR_BUILD='$(CC)'
2771 else
2772 CC_FOR_BUILD=gcc
2773 fi
2774
2775
2776
2777
2778 AR=${AR-ar}
2779
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2783 echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_RANLIB+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 if test -n "$RANLIB"; then
2789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804
2805 fi
2806 fi
2807 RANLIB=$ac_cv_prog_RANLIB
2808 if test -n "$RANLIB"; then
2809 echo "$as_me:$LINENO: result: $RANLIB" >&5
2810 echo "${ECHO_T}$RANLIB" >&6
2811 else
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2814 fi
2815
2816 fi
2817 if test -z "$ac_cv_prog_RANLIB"; then
2818 ac_ct_RANLIB=$RANLIB
2819 # Extract the first word of "ranlib", so it can be a program name with args.
2820 set dummy ranlib; ac_word=$2
2821 echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -n "$ac_ct_RANLIB"; then
2827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_ac_ct_RANLIB="ranlib"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842
2843 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2844 fi
2845 fi
2846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2847 if test -n "$ac_ct_RANLIB"; then
2848 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2849 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2850 else
2851 echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2853 fi
2854
2855 RANLIB=$ac_ct_RANLIB
2856 else
2857 RANLIB="$ac_cv_prog_RANLIB"
2858 fi
2859
2860
2861 ALL_LINGUAS=
2862 # If we haven't got the data from the intl directory,
2863 # assume NLS is disabled.
2864 USE_NLS=no
2865 LIBINTL=
2866 LIBINTL_DEP=
2867 INCINTL=
2868 XGETTEXT=
2869 GMSGFMT=
2870 POSUB=
2871
2872 if test -f ../../intl/config.intl; then
2873 . ../../intl/config.intl
2874 fi
2875 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2876 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2877 if test x"$USE_NLS" != xyes; then
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2880 else
2881 echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6
2883
2884 cat >>confdefs.h <<\_ACEOF
2885 #define ENABLE_NLS 1
2886 _ACEOF
2887
2888
2889 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2890 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2891 # Look for .po and .gmo files in the source directory.
2892 CATALOGS=
2893 XLINGUAS=
2894 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2895 # If there aren't any .gmo files the shell will give us the
2896 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2897 # weeded out.
2898 case "$cat" in *\**)
2899 continue;;
2900 esac
2901 # The quadruple backslash is collapsed to a double backslash
2902 # by the backticks, then collapsed again by the double quotes,
2903 # leaving us with one backslash in the sed expression (right
2904 # before the dot that mustn't act as a wildcard).
2905 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2906 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2907 # The user is allowed to set LINGUAS to a list of languages to
2908 # install catalogs for. If it's empty that means "all of them."
2909 if test "x$LINGUAS" = x; then
2910 CATALOGS="$CATALOGS $cat"
2911 XLINGUAS="$XLINGUAS $lang"
2912 else
2913 case "$LINGUAS" in *$lang*)
2914 CATALOGS="$CATALOGS $cat"
2915 XLINGUAS="$XLINGUAS $lang"
2916 ;;
2917 esac
2918 fi
2919 done
2920 LINGUAS="$XLINGUAS"
2921 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2922 echo "${ECHO_T}$LINGUAS" >&6
2923
2924
2925 DATADIRNAME=share
2926
2927 INSTOBJEXT=.mo
2928
2929 GENCAT=gencat
2930
2931 CATOBJEXT=.gmo
2932
2933 fi
2934
2935 # Check for common headers.
2936 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2937 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2945 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2946 # On Suns, sometimes $CPP names a directory.
2947 if test -n "$CPP" && test -d "$CPP"; then
2948 CPP=
2949 fi
2950 if test -z "$CPP"; then
2951 if test "${ac_cv_prog_CPP+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 # Double quotes because CPP needs to be expanded
2955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2956 do
2957 ac_preproc_ok=false
2958 for ac_c_preproc_warn_flag in '' yes
2959 do
2960 # Use a header file that comes with gcc, so configuring glibc
2961 # with a fresh cross-compiler works.
2962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2963 # <limits.h> exists even on freestanding compilers.
2964 # On the NeXT, cc -E runs the code through the compiler's parser,
2965 # not just through cpp. "Syntax error" is here to catch this case.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #ifdef __STDC__
2973 # include <limits.h>
2974 #else
2975 # include <assert.h>
2976 #endif
2977 Syntax error
2978 _ACEOF
2979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } >/dev/null; then
2987 if test -s conftest.err; then
2988 ac_cpp_err=$ac_c_preproc_warn_flag
2989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2990 else
2991 ac_cpp_err=
2992 fi
2993 else
2994 ac_cpp_err=yes
2995 fi
2996 if test -z "$ac_cpp_err"; then
2997 :
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 # Broken: fails on valid input.
3003 continue
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007 # OK, works on sane cases. Now check whether non-existent headers
3008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #include <ac_nonexistent.h>
3016 _ACEOF
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028 else
3029 ac_cpp_err=
3030 fi
3031 else
3032 ac_cpp_err=yes
3033 fi
3034 if test -z "$ac_cpp_err"; then
3035 # Broken: success on invalid input.
3036 continue
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047 done
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then
3051 break
3052 fi
3053
3054 done
3055 ac_cv_prog_CPP=$CPP
3056
3057 fi
3058 CPP=$ac_cv_prog_CPP
3059 else
3060 ac_cv_prog_CPP=$CPP
3061 fi
3062 echo "$as_me:$LINENO: result: $CPP" >&5
3063 echo "${ECHO_T}$CPP" >&6
3064 ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #ifdef __STDC__
3080 # include <limits.h>
3081 #else
3082 # include <assert.h>
3083 #endif
3084 Syntax error
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 else
3098 ac_cpp_err=
3099 fi
3100 else
3101 ac_cpp_err=yes
3102 fi
3103 if test -z "$ac_cpp_err"; then
3104 :
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 # Broken: fails on valid input.
3110 continue
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114 # OK, works on sane cases. Now check whether non-existent headers
3115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_c_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 else
3136 ac_cpp_err=
3137 fi
3138 else
3139 ac_cpp_err=yes
3140 fi
3141 if test -z "$ac_cpp_err"; then
3142 # Broken: success on invalid input.
3143 continue
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 # Passes both tests.
3149 ac_preproc_ok=:
3150 break
3151 fi
3152 rm -f conftest.err conftest.$ac_ext
3153
3154 done
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3158 :
3159 else
3160 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3161 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }; }
3167 fi
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176 echo "$as_me:$LINENO: checking for egrep" >&5
3177 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3178 if test "${ac_cv_prog_egrep+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3182 then ac_cv_prog_egrep='grep -E'
3183 else ac_cv_prog_egrep='egrep'
3184 fi
3185 fi
3186 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3187 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3188 EGREP=$ac_cv_prog_egrep
3189
3190
3191 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3193 if test "${ac_cv_header_stdc+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <stdlib.h>
3203 #include <stdarg.h>
3204 #include <string.h>
3205 #include <float.h>
3206
3207 int
3208 main ()
3209 {
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag"
3225 || test ! -s conftest.err'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_cv_header_stdc=yes
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 ac_cv_header_stdc=no
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245
3246 if test $ac_cv_header_stdc = yes; then
3247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <string.h>
3255
3256 _ACEOF
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258 $EGREP "memchr" >/dev/null 2>&1; then
3259 :
3260 else
3261 ac_cv_header_stdc=no
3262 fi
3263 rm -f conftest*
3264
3265 fi
3266
3267 if test $ac_cv_header_stdc = yes; then
3268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <stdlib.h>
3276
3277 _ACEOF
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279 $EGREP "free" >/dev/null 2>&1; then
3280 :
3281 else
3282 ac_cv_header_stdc=no
3283 fi
3284 rm -f conftest*
3285
3286 fi
3287
3288 if test $ac_cv_header_stdc = yes; then
3289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3290 if test "$cross_compiling" = yes; then
3291 :
3292 else
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <ctype.h>
3300 #if ((' ' & 0x0FF) == 0x020)
3301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3303 #else
3304 # define ISLOWER(c) \
3305 (('a' <= (c) && (c) <= 'i') \
3306 || ('j' <= (c) && (c) <= 'r') \
3307 || ('s' <= (c) && (c) <= 'z'))
3308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3309 #endif
3310
3311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3312 int
3313 main ()
3314 {
3315 int i;
3316 for (i = 0; i < 256; i++)
3317 if (XOR (islower (i), ISLOWER (i))
3318 || toupper (i) != TOUPPER (i))
3319 exit(2);
3320 exit (0);
3321 }
3322 _ACEOF
3323 rm -f conftest$ac_exeext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3325 (eval $ac_link) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 :
3335 else
3336 echo "$as_me: program exited with status $ac_status" >&5
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 ( exit $ac_status )
3341 ac_cv_header_stdc=no
3342 fi
3343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 fi
3346 fi
3347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3349 if test $ac_cv_header_stdc = yes; then
3350
3351 cat >>confdefs.h <<\_ACEOF
3352 #define STDC_HEADERS 1
3353 _ACEOF
3354
3355 fi
3356
3357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3368 inttypes.h stdint.h unistd.h
3369 do
3370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3371 echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 $ac_includes_default
3383
3384 #include <$ac_header>
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
3395 { ac_try='test -z "$ac_c_werror_flag"
3396 || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 eval "$as_ac_Header=yes"
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 eval "$as_ac_Header=no"
3414 fi
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3420 cat >>confdefs.h <<_ACEOF
3421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 _ACEOF
3423
3424 fi
3425
3426 done
3427
3428
3429
3430
3431
3432
3433
3434 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3435 do
3436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 fi
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 else
3446 # Is the header compilable?
3447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 $ac_includes_default
3456 #include <$ac_header>
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_header_compiler=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_header_compiler=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3489 echo "${ECHO_T}$ac_header_compiler" >&6
3490
3491 # Is the header present?
3492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <$ac_header>
3501 _ACEOF
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null; then
3510 if test -s conftest.err; then
3511 ac_cpp_err=$ac_c_preproc_warn_flag
3512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3513 else
3514 ac_cpp_err=
3515 fi
3516 else
3517 ac_cpp_err=yes
3518 fi
3519 if test -z "$ac_cpp_err"; then
3520 ac_header_preproc=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 ac_header_preproc=no
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3529 echo "${ECHO_T}$ac_header_preproc" >&6
3530
3531 # So? What about this header?
3532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3533 yes:no: )
3534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3538 ac_header_preproc=yes
3539 ;;
3540 no:yes:* )
3541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3553 (
3554 cat <<\_ASBOX
3555 ## ------------------------------------------ ##
3556 ## Report this to the AC_PACKAGE_NAME lists. ##
3557 ## ------------------------------------------ ##
3558 _ASBOX
3559 ) |
3560 sed "s/^/$as_me: WARNING: /" >&2
3561 ;;
3562 esac
3563 echo "$as_me:$LINENO: checking for $ac_header" >&5
3564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 eval "$as_ac_Header=\$ac_header_preproc"
3569 fi
3570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572
3573 fi
3574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3575 cat >>confdefs.h <<_ACEOF
3576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3577 _ACEOF
3578
3579 fi
3580
3581 done
3582
3583
3584
3585 for ac_header in sys/time.h sys/resource.h
3586 do
3587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3589 echo "$as_me:$LINENO: checking for $ac_header" >&5
3590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 fi
3594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3596 else
3597 # Is the header compilable?
3598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 $ac_includes_default
3607 #include <$ac_header>
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag"
3619 || test ! -s conftest.err'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 ac_header_compiler=yes
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 ac_header_compiler=no
3637 fi
3638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3640 echo "${ECHO_T}$ac_header_compiler" >&6
3641
3642 # Is the header present?
3643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <$ac_header>
3652 _ACEOF
3653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } >/dev/null; then
3661 if test -s conftest.err; then
3662 ac_cpp_err=$ac_c_preproc_warn_flag
3663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664 else
3665 ac_cpp_err=
3666 fi
3667 else
3668 ac_cpp_err=yes
3669 fi
3670 if test -z "$ac_cpp_err"; then
3671 ac_header_preproc=yes
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 ac_header_preproc=no
3677 fi
3678 rm -f conftest.err conftest.$ac_ext
3679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3680 echo "${ECHO_T}$ac_header_preproc" >&6
3681
3682 # So? What about this header?
3683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3684 yes:no: )
3685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3689 ac_header_preproc=yes
3690 ;;
3691 no:yes:* )
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3704 (
3705 cat <<\_ASBOX
3706 ## ------------------------------------------ ##
3707 ## Report this to the AC_PACKAGE_NAME lists. ##
3708 ## ------------------------------------------ ##
3709 _ASBOX
3710 ) |
3711 sed "s/^/$as_me: WARNING: /" >&2
3712 ;;
3713 esac
3714 echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 eval "$as_ac_Header=\$ac_header_preproc"
3720 fi
3721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723
3724 fi
3725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3726 cat >>confdefs.h <<_ACEOF
3727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3728 _ACEOF
3729
3730 fi
3731
3732 done
3733
3734
3735
3736 for ac_header in fcntl.h fpu_control.h
3737 do
3738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3740 echo "$as_me:$LINENO: checking for $ac_header" >&5
3741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 fi
3745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3747 else
3748 # Is the header compilable?
3749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3758 #include <$ac_header>
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 ac_header_compiler=yes
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 ac_header_compiler=no
3788 fi
3789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3791 echo "${ECHO_T}$ac_header_compiler" >&6
3792
3793 # Is the header present?
3794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <$ac_header>
3803 _ACEOF
3804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } >/dev/null; then
3812 if test -s conftest.err; then
3813 ac_cpp_err=$ac_c_preproc_warn_flag
3814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3815 else
3816 ac_cpp_err=
3817 fi
3818 else
3819 ac_cpp_err=yes
3820 fi
3821 if test -z "$ac_cpp_err"; then
3822 ac_header_preproc=yes
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 ac_header_preproc=no
3828 fi
3829 rm -f conftest.err conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3831 echo "${ECHO_T}$ac_header_preproc" >&6
3832
3833 # So? What about this header?
3834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3835 yes:no: )
3836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3840 ac_header_preproc=yes
3841 ;;
3842 no:yes:* )
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3855 (
3856 cat <<\_ASBOX
3857 ## ------------------------------------------ ##
3858 ## Report this to the AC_PACKAGE_NAME lists. ##
3859 ## ------------------------------------------ ##
3860 _ASBOX
3861 ) |
3862 sed "s/^/$as_me: WARNING: /" >&2
3863 ;;
3864 esac
3865 echo "$as_me:$LINENO: checking for $ac_header" >&5
3866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 eval "$as_ac_Header=\$ac_header_preproc"
3871 fi
3872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3874
3875 fi
3876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877 cat >>confdefs.h <<_ACEOF
3878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3879 _ACEOF
3880
3881 fi
3882
3883 done
3884
3885
3886
3887
3888 for ac_header in dlfcn.h errno.h sys/stat.h
3889 do
3890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 fi
3897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3899 else
3900 # Is the header compilable?
3901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3910 #include <$ac_header>
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_header_compiler=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3944
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <$ac_header>
3955 _ACEOF
3956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3969 fi
3970 else
3971 ac_cpp_err=yes
3972 fi
3973 if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ac_header_preproc=no
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3984
3985 # So? What about this header?
3986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3987 yes:no: )
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992 ac_header_preproc=yes
3993 ;;
3994 no:yes:* )
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4007 (
4008 cat <<\_ASBOX
4009 ## ------------------------------------------ ##
4010 ## Report this to the AC_PACKAGE_NAME lists. ##
4011 ## ------------------------------------------ ##
4012 _ASBOX
4013 ) |
4014 sed "s/^/$as_me: WARNING: /" >&2
4015 ;;
4016 esac
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 eval "$as_ac_Header=\$ac_header_preproc"
4023 fi
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026
4027 fi
4028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029 cat >>confdefs.h <<_ACEOF
4030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031 _ACEOF
4032
4033 fi
4034
4035 done
4036
4037
4038
4039
4040
4041 for ac_func in getrusage time sigaction __setfpucw
4042 do
4043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4044 echo "$as_me:$LINENO: checking for $ac_func" >&5
4045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4046 if eval "test \"\${$as_ac_var+set}\" = set"; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4057 #define $ac_func innocuous_$ac_func
4058
4059 /* System header to define __stub macros and hopefully few prototypes,
4060 which can conflict with char $ac_func (); below.
4061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062 <limits.h> exists even on freestanding compilers. */
4063
4064 #ifdef __STDC__
4065 # include <limits.h>
4066 #else
4067 # include <assert.h>
4068 #endif
4069
4070 #undef $ac_func
4071
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 #ifdef __cplusplus
4074 extern "C"
4075 {
4076 #endif
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079 char $ac_func ();
4080 /* The GNU C library defines this for functions which it implements
4081 to always fail with ENOSYS. Some functions are actually named
4082 something starting with __ and the normal name is an alias. */
4083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4084 choke me
4085 #else
4086 char (*f) () = $ac_func;
4087 #endif
4088 #ifdef __cplusplus
4089 }
4090 #endif
4091
4092 int
4093 main ()
4094 {
4095 return f != $ac_func;
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest.$ac_objext conftest$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag"
4110 || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 (eval $ac_try) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 eval "$as_ac_var=yes"
4123 else
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 eval "$as_ac_var=no"
4128 fi
4129 rm -f conftest.err conftest.$ac_objext \
4130 conftest$ac_exeext conftest.$ac_ext
4131 fi
4132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4134 if test `eval echo '${'$as_ac_var'}'` = yes; then
4135 cat >>confdefs.h <<_ACEOF
4136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4137 _ACEOF
4138
4139 fi
4140 done
4141
4142
4143 # Check for socket libraries
4144
4145 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4146 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4147 if test "${ac_cv_lib_socket_bind+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 ac_check_lib_save_LIBS=$LIBS
4151 LIBS="-lsocket $LIBS"
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158
4159 /* Override any gcc2 internal prototype to avoid an error. */
4160 #ifdef __cplusplus
4161 extern "C"
4162 #endif
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4165 char bind ();
4166 int
4167 main ()
4168 {
4169 bind ();
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext conftest$ac_exeext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_lib_socket_bind=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 ac_cv_lib_socket_bind=no
4202 fi
4203 rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205 LIBS=$ac_check_lib_save_LIBS
4206 fi
4207 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4208 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4209 if test $ac_cv_lib_socket_bind = yes; then
4210 cat >>confdefs.h <<_ACEOF
4211 #define HAVE_LIBSOCKET 1
4212 _ACEOF
4213
4214 LIBS="-lsocket $LIBS"
4215
4216 fi
4217
4218
4219 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4220 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4221 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-lnsl $LIBS"
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 #ifdef __cplusplus
4235 extern "C"
4236 #endif
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4239 char gethostbyname ();
4240 int
4241 main ()
4242 {
4243 gethostbyname ();
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250 (eval $ac_link) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest$ac_exeext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_cv_lib_nsl_gethostbyname=yes
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_cv_lib_nsl_gethostbyname=no
4276 fi
4277 rm -f conftest.err conftest.$ac_objext \
4278 conftest$ac_exeext conftest.$ac_ext
4279 LIBS=$ac_check_lib_save_LIBS
4280 fi
4281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4284 cat >>confdefs.h <<_ACEOF
4285 #define HAVE_LIBNSL 1
4286 _ACEOF
4287
4288 LIBS="-lnsl $LIBS"
4289
4290 fi
4291
4292
4293 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4294 # using the same condition.
4295 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4296 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4297 if test "${ac_cv_search_zlibVersion+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 ac_func_search_save_LIBS=$LIBS
4301 ac_cv_search_zlibVersion=no
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308
4309 /* Override any gcc2 internal prototype to avoid an error. */
4310 #ifdef __cplusplus
4311 extern "C"
4312 #endif
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4315 char zlibVersion ();
4316 int
4317 main ()
4318 {
4319 zlibVersion ();
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest$ac_exeext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_search_zlibVersion="none required"
4347 else
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 fi
4352 rm -f conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
4354 if test "$ac_cv_search_zlibVersion" = no; then
4355 for ac_lib in z; do
4356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363
4364 /* Override any gcc2 internal prototype to avoid an error. */
4365 #ifdef __cplusplus
4366 extern "C"
4367 #endif
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4370 char zlibVersion ();
4371 int
4372 main ()
4373 {
4374 zlibVersion ();
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 rm -f conftest.$ac_objext conftest$ac_exeext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4381 (eval $ac_link) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag"
4389 || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_search_zlibVersion="-l$ac_lib"
4402 break
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407 fi
4408 rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410 done
4411 fi
4412 LIBS=$ac_func_search_save_LIBS
4413 fi
4414 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4415 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4416 if test "$ac_cv_search_zlibVersion" != no; then
4417 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4418
4419 for ac_header in zlib.h
4420 do
4421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 echo "$as_me:$LINENO: checking for $ac_header" >&5
4424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 fi
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430 else
4431 # Is the header compilable?
4432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 $ac_includes_default
4441 #include <$ac_header>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag"
4453 || test ! -s conftest.err'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_header_compiler=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 ac_header_compiler=no
4471 fi
4472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474 echo "${ECHO_T}$ac_header_compiler" >&6
4475
4476 # Is the header present?
4477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <$ac_header>
4486 _ACEOF
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null; then
4495 if test -s conftest.err; then
4496 ac_cpp_err=$ac_c_preproc_warn_flag
4497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4498 else
4499 ac_cpp_err=
4500 fi
4501 else
4502 ac_cpp_err=yes
4503 fi
4504 if test -z "$ac_cpp_err"; then
4505 ac_header_preproc=yes
4506 else
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 ac_header_preproc=no
4511 fi
4512 rm -f conftest.err conftest.$ac_ext
4513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514 echo "${ECHO_T}$ac_header_preproc" >&6
4515
4516 # So? What about this header?
4517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4518 yes:no: )
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4523 ac_header_preproc=yes
4524 ;;
4525 no:yes:* )
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4538 (
4539 cat <<\_ASBOX
4540 ## ------------------------------------------ ##
4541 ## Report this to the AC_PACKAGE_NAME lists. ##
4542 ## ------------------------------------------ ##
4543 _ASBOX
4544 ) |
4545 sed "s/^/$as_me: WARNING: /" >&2
4546 ;;
4547 esac
4548 echo "$as_me:$LINENO: checking for $ac_header" >&5
4549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 eval "$as_ac_Header=\$ac_header_preproc"
4554 fi
4555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4557
4558 fi
4559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4560 cat >>confdefs.h <<_ACEOF
4561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4562 _ACEOF
4563
4564 fi
4565
4566 done
4567
4568 fi
4569
4570
4571 . ${srcdir}/../../bfd/configure.host
4572
4573
4574
4575 USE_MAINTAINER_MODE=no
4576 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4577 if test "${enable_maintainer_mode+set}" = set; then
4578 enableval="$enable_maintainer_mode"
4579 case "${enableval}" in
4580 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4581 no) MAINT="#" ;;
4582 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4583 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4584 { (exit 1); exit 1; }; }; MAINT="#" ;;
4585 esac
4586 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4587 echo "Setting maintainer mode" 6>&1
4588 fi
4589 else
4590 MAINT="#"
4591 fi;
4592
4593
4594 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4595 if test "${enable_sim_bswap+set}" = set; then
4596 enableval="$enable_sim_bswap"
4597 case "${enableval}" in
4598 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4599 no) sim_bswap="-DWITH_BSWAP=0";;
4600 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4601 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4602 { (exit 1); exit 1; }; }; sim_bswap="";;
4603 esac
4604 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4605 echo "Setting bswap flags = $sim_bswap" 6>&1
4606 fi
4607 else
4608 sim_bswap=""
4609 fi;
4610
4611
4612 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4613 if test "${enable_sim_cflags+set}" = set; then
4614 enableval="$enable_sim_cflags"
4615 case "${enableval}" in
4616 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4617 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4618 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4619 { (exit 1); exit 1; }; }; sim_cflags="";;
4620 no) sim_cflags="";;
4621 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4622 esac
4623 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4624 echo "Setting sim cflags = $sim_cflags" 6>&1
4625 fi
4626 else
4627 sim_cflags=""
4628 fi;
4629
4630
4631 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4632 if test "${enable_sim_debug+set}" = set; then
4633 enableval="$enable_sim_debug"
4634 case "${enableval}" in
4635 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4636 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4637 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4638 esac
4639 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4640 echo "Setting sim debug = $sim_debug" 6>&1
4641 fi
4642 else
4643 sim_debug=""
4644 fi;
4645
4646
4647 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4648 if test "${enable_sim_stdio+set}" = set; then
4649 enableval="$enable_sim_stdio"
4650 case "${enableval}" in
4651 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4652 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4653 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4654 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4655 { (exit 1); exit 1; }; }; sim_stdio="";;
4656 esac
4657 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4658 echo "Setting stdio flags = $sim_stdio" 6>&1
4659 fi
4660 else
4661 sim_stdio=""
4662 fi;
4663
4664
4665 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4666 if test "${enable_sim_trace+set}" = set; then
4667 enableval="$enable_sim_trace"
4668 case "${enableval}" in
4669 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4670 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4671 [-0-9]*)
4672 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4673 [a-z]*)
4674 sim_trace=""
4675 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4676 if test x"$sim_trace" = x; then
4677 sim_trace="-DWITH_TRACE='(TRACE_$x"
4678 else
4679 sim_trace="${sim_trace}|TRACE_$x"
4680 fi
4681 done
4682 sim_trace="$sim_trace)'" ;;
4683 esac
4684 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4685 echo "Setting sim trace = $sim_trace" 6>&1
4686 fi
4687 else
4688 sim_trace=""
4689 fi;
4690
4691
4692 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4693 if test "${enable_sim_profile+set}" = set; then
4694 enableval="$enable_sim_profile"
4695 case "${enableval}" in
4696 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4697 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4698 [-0-9]*)
4699 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4700 [a-z]*)
4701 sim_profile=""
4702 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4703 if test x"$sim_profile" = x; then
4704 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4705 else
4706 sim_profile="${sim_profile}|PROFILE_$x"
4707 fi
4708 done
4709 sim_profile="$sim_profile)'" ;;
4710 esac
4711 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4712 echo "Setting sim profile = $sim_profile" 6>&1
4713 fi
4714 else
4715 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4716 fi;
4717
4718
4719
4720 # Check whether --with-pkgversion or --without-pkgversion was given.
4721 if test "${with_pkgversion+set}" = set; then
4722 withval="$with_pkgversion"
4723 case "$withval" in
4724 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4725 echo "$as_me: error: package version not specified" >&2;}
4726 { (exit 1); exit 1; }; } ;;
4727 no) PKGVERSION= ;;
4728 *) PKGVERSION="($withval) " ;;
4729 esac
4730 else
4731 PKGVERSION="(GDB) "
4732
4733 fi;
4734
4735
4736
4737
4738 # Check whether --with-bugurl or --without-bugurl was given.
4739 if test "${with_bugurl+set}" = set; then
4740 withval="$with_bugurl"
4741 case "$withval" in
4742 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4743 echo "$as_me: error: bug URL not specified" >&2;}
4744 { (exit 1); exit 1; }; } ;;
4745 no) BUGURL=
4746 ;;
4747 *) BUGURL="$withval"
4748 ;;
4749 esac
4750 else
4751 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4752
4753 fi;
4754 case ${BUGURL} in
4755 "")
4756 REPORT_BUGS_TO=
4757 REPORT_BUGS_TEXI=
4758 ;;
4759 *)
4760 REPORT_BUGS_TO="<$BUGURL>"
4761 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4762 ;;
4763 esac;
4764
4765
4766
4767
4768 cat >>confdefs.h <<_ACEOF
4769 #define PKGVERSION "$PKGVERSION"
4770 _ACEOF
4771
4772
4773 cat >>confdefs.h <<_ACEOF
4774 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4775 _ACEOF
4776
4777
4778 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4780 if test "${ac_cv_type_signal+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <sys/types.h>
4790 #include <signal.h>
4791 #ifdef signal
4792 # undef signal
4793 #endif
4794 #ifdef __cplusplus
4795 extern "C" void (*signal (int, void (*)(int)))(int);
4796 #else
4797 void (*signal ()) ();
4798 #endif
4799
4800 int
4801 main ()
4802 {
4803 int i;
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_cv_type_signal=void
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 ac_cv_type_signal=int
4836 fi
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4840 echo "${ECHO_T}$ac_cv_type_signal" >&6
4841
4842 cat >>confdefs.h <<_ACEOF
4843 #define RETSIGTYPE $ac_cv_type_signal
4844 _ACEOF
4845
4846
4847
4848
4849
4850 sim_link_files=
4851 sim_link_links=
4852
4853 sim_link_links=tconfig.h
4854 if test -f ${srcdir}/tconfig.in
4855 then
4856 sim_link_files=tconfig.in
4857 else
4858 sim_link_files=../common/tconfig.in
4859 fi
4860
4861 # targ-vals.def points to the libc macro description file.
4862 case "${target}" in
4863 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4864 esac
4865 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4866 sim_link_links="${sim_link_links} targ-vals.def"
4867
4868
4869
4870 # NOTE: Don't add -Wall or -Wunused, they both include
4871 # -Wunused-parameter which reports bogus warnings.
4872 # NOTE: If you add to this list, remember to update
4873 # gdb/doc/gdbint.texinfo.
4874 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4875 -Wformat -Wparentheses -Wpointer-arith"
4876 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4877 if test x${CFLAGS+set} = xset; then
4878 case "${CFLAGS}" in
4879 *"-O0"* ) ;;
4880 *"-O"* )
4881 build_warnings="${build_warnings} -Wuninitialized"
4882 ;;
4883 esac
4884 else
4885 build_warnings="${build_warnings} -Wuninitialized"
4886 fi
4887 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4888 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4889 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4890 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4891 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4892 # -Woverloaded-virtual -Winline -Werror"
4893 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4894 if test "${enable_build_warnings+set}" = set; then
4895 enableval="$enable_build_warnings"
4896 case "${enableval}" in
4897 yes) ;;
4898 no) build_warnings="-w";;
4899 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4900 build_warnings="${build_warnings} ${t}";;
4901 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4902 build_warnings="${t} ${build_warnings}";;
4903 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4904 esac
4905 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4906 echo "Setting compiler warning flags = $build_warnings" 6>&1
4907 fi
4908 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4909 if test "${enable_sim_build_warnings+set}" = set; then
4910 enableval="$enable_sim_build_warnings"
4911 case "${enableval}" in
4912 yes) ;;
4913 no) build_warnings="-w";;
4914 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4915 build_warnings="${build_warnings} ${t}";;
4916 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4917 build_warnings="${t} ${build_warnings}";;
4918 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4919 esac
4920 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4921 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4922 fi
4923 fi; WARN_CFLAGS=""
4924 WERROR_CFLAGS=""
4925 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4926 then
4927 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4928 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4929 # Separate out the -Werror flag as some files just cannot be
4930 # compiled with it enabled.
4931 for w in ${build_warnings}; do
4932 case $w in
4933 -Werr*) WERROR_CFLAGS=-Werror ;;
4934 *) # Check that GCC accepts it
4935 saved_CFLAGS="$CFLAGS"
4936 CFLAGS="$CFLAGS $w"
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 WARN_CFLAGS="${WARN_CFLAGS} $w"
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 fi
4980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981 CFLAGS="$saved_CFLAGS"
4982 esac
4983 done
4984 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4985 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4986 fi
4987
4988
4989
4990 for ac_header in unistd.h
4991 do
4992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4994 echo "$as_me:$LINENO: checking for $ac_header" >&5
4995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 fi
4999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5001 else
5002 # Is the header compilable?
5003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5012 #include <$ac_header>
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_header_compiler=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 ac_header_compiler=no
5042 fi
5043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5045 echo "${ECHO_T}$ac_header_compiler" >&6
5046
5047 # Is the header present?
5048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <$ac_header>
5057 _ACEOF
5058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5066 if test -s conftest.err; then
5067 ac_cpp_err=$ac_c_preproc_warn_flag
5068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5069 else
5070 ac_cpp_err=
5071 fi
5072 else
5073 ac_cpp_err=yes
5074 fi
5075 if test -z "$ac_cpp_err"; then
5076 ac_header_preproc=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 ac_header_preproc=no
5082 fi
5083 rm -f conftest.err conftest.$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085 echo "${ECHO_T}$ac_header_preproc" >&6
5086
5087 # So? What about this header?
5088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5089 yes:no: )
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5094 ac_header_preproc=yes
5095 ;;
5096 no:yes:* )
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5109 (
5110 cat <<\_ASBOX
5111 ## ------------------------------------------ ##
5112 ## Report this to the AC_PACKAGE_NAME lists. ##
5113 ## ------------------------------------------ ##
5114 _ASBOX
5115 ) |
5116 sed "s/^/$as_me: WARNING: /" >&2
5117 ;;
5118 esac
5119 echo "$as_me:$LINENO: checking for $ac_header" >&5
5120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 eval "$as_ac_Header=\$ac_header_preproc"
5125 fi
5126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5128
5129 fi
5130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5131 cat >>confdefs.h <<_ACEOF
5132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5133 _ACEOF
5134
5135 fi
5136
5137 done
5138
5139
5140
5141
5142 ac_sources="$sim_link_files"
5143 ac_dests="$sim_link_links"
5144 while test -n "$ac_sources"; do
5145 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5146 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5147 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5148 done
5149 ac_config_links="$ac_config_links $ac_config_links_1"
5150
5151 cgen_breaks=""
5152 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5153 cgen_breaks="break cgen_rtx_error";
5154 fi
5155
5156 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5157
5158 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5159
5160 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5161
5162 ac_config_commands="$ac_config_commands Makefile"
5163
5164 ac_config_commands="$ac_config_commands stamp-h"
5165
5166 cat >confcache <<\_ACEOF
5167 # This file is a shell script that caches the results of configure
5168 # tests run on this system so they can be shared between configure
5169 # scripts and configure runs, see configure's option --config-cache.
5170 # It is not useful on other systems. If it contains results you don't
5171 # want to keep, you may remove or edit it.
5172 #
5173 # config.status only pays attention to the cache file if you give it
5174 # the --recheck option to rerun configure.
5175 #
5176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5178 # following values.
5179
5180 _ACEOF
5181
5182 # The following way of writing the cache mishandles newlines in values,
5183 # but we know of no workaround that is simple, portable, and efficient.
5184 # So, don't put newlines in cache variables' values.
5185 # Ultrix sh set writes to stderr and can't be redirected directly,
5186 # and sets the high bit in the cache file unless we assign to the vars.
5187 {
5188 (set) 2>&1 |
5189 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5190 *ac_space=\ *)
5191 # `set' does not quote correctly, so add quotes (double-quote
5192 # substitution turns \\\\ into \\, and sed turns \\ into \).
5193 sed -n \
5194 "s/'/'\\\\''/g;
5195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5196 ;;
5197 *)
5198 # `set' quotes correctly as required by POSIX, so do not add quotes.
5199 sed -n \
5200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5201 ;;
5202 esac;
5203 } |
5204 sed '
5205 t clear
5206 : clear
5207 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5208 t end
5209 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5210 : end' >>confcache
5211 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5212 if test -w $cache_file; then
5213 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5214 cat confcache >$cache_file
5215 else
5216 echo "not updating unwritable cache $cache_file"
5217 fi
5218 fi
5219 rm -f confcache
5220
5221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5222 # Let make expand exec_prefix.
5223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5224
5225 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5226 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5227 # trailing colons and then remove the whole line if VPATH becomes empty
5228 # (actually we leave an empty line to preserve line numbers).
5229 if test "x$srcdir" = x.; then
5230 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5231 s/:*\$(srcdir):*/:/;
5232 s/:*\${srcdir}:*/:/;
5233 s/:*@srcdir@:*/:/;
5234 s/^\([^=]*=[ ]*\):*/\1/;
5235 s/:*$//;
5236 s/^[^=]*=[ ]*$//;
5237 }'
5238 fi
5239
5240 DEFS=-DHAVE_CONFIG_H
5241
5242 ac_libobjs=
5243 ac_ltlibobjs=
5244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5245 # 1. Remove the extension, and $U if already installed.
5246 ac_i=`echo "$ac_i" |
5247 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5248 # 2. Add them.
5249 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5250 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5251 done
5252 LIBOBJS=$ac_libobjs
5253
5254 LTLIBOBJS=$ac_ltlibobjs
5255
5256
5257
5258 : ${CONFIG_STATUS=./config.status}
5259 ac_clean_files_save=$ac_clean_files
5260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5263 cat >$CONFIG_STATUS <<_ACEOF
5264 #! $SHELL
5265 # Generated by $as_me.
5266 # Run this file to recreate the current configuration.
5267 # Compiler output produced by configure, useful for debugging
5268 # configure, is in config.log if it exists.
5269
5270 debug=false
5271 ac_cs_recheck=false
5272 ac_cs_silent=false
5273 SHELL=\${CONFIG_SHELL-$SHELL}
5274 _ACEOF
5275
5276 cat >>$CONFIG_STATUS <<\_ACEOF
5277 ## --------------------- ##
5278 ## M4sh Initialization. ##
5279 ## --------------------- ##
5280
5281 # Be Bourne compatible
5282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5283 emulate sh
5284 NULLCMD=:
5285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5286 # is contrary to our usage. Disable this feature.
5287 alias -g '${1+"$@"}'='"$@"'
5288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5289 set -o posix
5290 fi
5291 DUALCASE=1; export DUALCASE # for MKS sh
5292
5293 # Support unset when possible.
5294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5295 as_unset=unset
5296 else
5297 as_unset=false
5298 fi
5299
5300
5301 # Work around bugs in pre-3.0 UWIN ksh.
5302 $as_unset ENV MAIL MAILPATH
5303 PS1='$ '
5304 PS2='> '
5305 PS4='+ '
5306
5307 # NLS nuisances.
5308 for as_var in \
5309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5311 LC_TELEPHONE LC_TIME
5312 do
5313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5314 eval $as_var=C; export $as_var
5315 else
5316 $as_unset $as_var
5317 fi
5318 done
5319
5320 # Required to use basename.
5321 if expr a : '\(a\)' >/dev/null 2>&1; then
5322 as_expr=expr
5323 else
5324 as_expr=false
5325 fi
5326
5327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5328 as_basename=basename
5329 else
5330 as_basename=false
5331 fi
5332
5333
5334 # Name of the executable.
5335 as_me=`$as_basename "$0" ||
5336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5337 X"$0" : 'X\(//\)$' \| \
5338 X"$0" : 'X\(/\)$' \| \
5339 . : '\(.\)' 2>/dev/null ||
5340 echo X/"$0" |
5341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5342 /^X\/\(\/\/\)$/{ s//\1/; q; }
5343 /^X\/\(\/\).*/{ s//\1/; q; }
5344 s/.*/./; q'`
5345
5346
5347 # PATH needs CR, and LINENO needs CR and PATH.
5348 # Avoid depending upon Character Ranges.
5349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5352 as_cr_digits='0123456789'
5353 as_cr_alnum=$as_cr_Letters$as_cr_digits
5354
5355 # The user is always right.
5356 if test "${PATH_SEPARATOR+set}" != set; then
5357 echo "#! /bin/sh" >conf$$.sh
5358 echo "exit 0" >>conf$$.sh
5359 chmod +x conf$$.sh
5360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5361 PATH_SEPARATOR=';'
5362 else
5363 PATH_SEPARATOR=:
5364 fi
5365 rm -f conf$$.sh
5366 fi
5367
5368
5369 as_lineno_1=$LINENO
5370 as_lineno_2=$LINENO
5371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5372 test "x$as_lineno_1" != "x$as_lineno_2" &&
5373 test "x$as_lineno_3" = "x$as_lineno_2" || {
5374 # Find who we are. Look in the path if we contain no path at all
5375 # relative or not.
5376 case $0 in
5377 *[\\/]* ) as_myself=$0 ;;
5378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5384 done
5385
5386 ;;
5387 esac
5388 # We did not find ourselves, most probably we were run as `sh COMMAND'
5389 # in which case we are not to be found in the path.
5390 if test "x$as_myself" = x; then
5391 as_myself=$0
5392 fi
5393 if test ! -f "$as_myself"; then
5394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5396 { (exit 1); exit 1; }; }
5397 fi
5398 case $CONFIG_SHELL in
5399 '')
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for as_base in sh bash ksh sh5; do
5406 case $as_dir in
5407 /*)
5408 if ("$as_dir/$as_base" -c '
5409 as_lineno_1=$LINENO
5410 as_lineno_2=$LINENO
5411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5412 test "x$as_lineno_1" != "x$as_lineno_2" &&
5413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5416 CONFIG_SHELL=$as_dir/$as_base
5417 export CONFIG_SHELL
5418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5419 fi;;
5420 esac
5421 done
5422 done
5423 ;;
5424 esac
5425
5426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5427 # uniformly replaced by the line number. The first 'sed' inserts a
5428 # line-number line before each line; the second 'sed' does the real
5429 # work. The second script uses 'N' to pair each line-number line
5430 # with the numbered line, and appends trailing '-' during
5431 # substitution so that $LINENO is not a special case at line end.
5432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5434 sed '=' <$as_myself |
5435 sed '
5436 N
5437 s,$,-,
5438 : loop
5439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5440 t loop
5441 s,-$,,
5442 s,^['$as_cr_digits']*\n,,
5443 ' >$as_me.lineno &&
5444 chmod +x $as_me.lineno ||
5445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5447 { (exit 1); exit 1; }; }
5448
5449 # Don't try to exec as it changes $[0], causing all sort of problems
5450 # (the dirname of $[0] is not the place where we might find the
5451 # original and so on. Autoconf is especially sensible to this).
5452 . ./$as_me.lineno
5453 # Exit status is that of the last command.
5454 exit
5455 }
5456
5457
5458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5459 *c*,-n*) ECHO_N= ECHO_C='
5460 ' ECHO_T=' ' ;;
5461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5463 esac
5464
5465 if expr a : '\(a\)' >/dev/null 2>&1; then
5466 as_expr=expr
5467 else
5468 as_expr=false
5469 fi
5470
5471 rm -f conf$$ conf$$.exe conf$$.file
5472 echo >conf$$.file
5473 if ln -s conf$$.file conf$$ 2>/dev/null; then
5474 # We could just check for DJGPP; but this test a) works b) is more generic
5475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5476 if test -f conf$$.exe; then
5477 # Don't use ln at all; we don't have any links
5478 as_ln_s='cp -p'
5479 else
5480 as_ln_s='ln -s'
5481 fi
5482 elif ln conf$$.file conf$$ 2>/dev/null; then
5483 as_ln_s=ln
5484 else
5485 as_ln_s='cp -p'
5486 fi
5487 rm -f conf$$ conf$$.exe conf$$.file
5488
5489 if mkdir -p . 2>/dev/null; then
5490 as_mkdir_p=:
5491 else
5492 test -d ./-p && rmdir ./-p
5493 as_mkdir_p=false
5494 fi
5495
5496 as_executable_p="test -f"
5497
5498 # Sed expression to map a string onto a valid CPP name.
5499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5500
5501 # Sed expression to map a string onto a valid variable name.
5502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5503
5504
5505 # IFS
5506 # We need space, tab and new line, in precisely that order.
5507 as_nl='
5508 '
5509 IFS=" $as_nl"
5510
5511 # CDPATH.
5512 $as_unset CDPATH
5513
5514 exec 6>&1
5515
5516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5517 # report actual input values of CONFIG_FILES etc. instead of their
5518 # values after options handling. Logging --version etc. is OK.
5519 exec 5>>config.log
5520 {
5521 echo
5522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5523 ## Running $as_me. ##
5524 _ASBOX
5525 } >&5
5526 cat >&5 <<_CSEOF
5527
5528 This file was extended by $as_me, which was
5529 generated by GNU Autoconf 2.59. Invocation command line was
5530
5531 CONFIG_FILES = $CONFIG_FILES
5532 CONFIG_HEADERS = $CONFIG_HEADERS
5533 CONFIG_LINKS = $CONFIG_LINKS
5534 CONFIG_COMMANDS = $CONFIG_COMMANDS
5535 $ $0 $@
5536
5537 _CSEOF
5538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5539 echo >&5
5540 _ACEOF
5541
5542 # Files that config.status was made for.
5543 if test -n "$ac_config_files"; then
5544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5545 fi
5546
5547 if test -n "$ac_config_headers"; then
5548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5549 fi
5550
5551 if test -n "$ac_config_links"; then
5552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5553 fi
5554
5555 if test -n "$ac_config_commands"; then
5556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5557 fi
5558
5559 cat >>$CONFIG_STATUS <<\_ACEOF
5560
5561 ac_cs_usage="\
5562 \`$as_me' instantiates files from templates according to the
5563 current configuration.
5564
5565 Usage: $0 [OPTIONS] [FILE]...
5566
5567 -h, --help print this help, then exit
5568 -V, --version print version number, then exit
5569 -q, --quiet do not print progress messages
5570 -d, --debug don't remove temporary files
5571 --recheck update $as_me by reconfiguring in the same conditions
5572 --file=FILE[:TEMPLATE]
5573 instantiate the configuration file FILE
5574 --header=FILE[:TEMPLATE]
5575 instantiate the configuration header FILE
5576
5577 Configuration files:
5578 $config_files
5579
5580 Configuration headers:
5581 $config_headers
5582
5583 Configuration links:
5584 $config_links
5585
5586 Configuration commands:
5587 $config_commands
5588
5589 Report bugs to <bug-autoconf@gnu.org>."
5590 _ACEOF
5591
5592 cat >>$CONFIG_STATUS <<_ACEOF
5593 ac_cs_version="\\
5594 config.status
5595 configured by $0, generated by GNU Autoconf 2.59,
5596 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5597
5598 Copyright (C) 2003 Free Software Foundation, Inc.
5599 This config.status script is free software; the Free Software Foundation
5600 gives unlimited permission to copy, distribute and modify it."
5601 srcdir=$srcdir
5602 INSTALL="$INSTALL"
5603 _ACEOF
5604
5605 cat >>$CONFIG_STATUS <<\_ACEOF
5606 # If no file are specified by the user, then we need to provide default
5607 # value. By we need to know if files were specified by the user.
5608 ac_need_defaults=:
5609 while test $# != 0
5610 do
5611 case $1 in
5612 --*=*)
5613 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5614 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5615 ac_shift=:
5616 ;;
5617 -*)
5618 ac_option=$1
5619 ac_optarg=$2
5620 ac_shift=shift
5621 ;;
5622 *) # This is not an option, so the user has probably given explicit
5623 # arguments.
5624 ac_option=$1
5625 ac_need_defaults=false;;
5626 esac
5627
5628 case $ac_option in
5629 # Handling of the options.
5630 _ACEOF
5631 cat >>$CONFIG_STATUS <<\_ACEOF
5632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5633 ac_cs_recheck=: ;;
5634 --version | --vers* | -V )
5635 echo "$ac_cs_version"; exit 0 ;;
5636 --he | --h)
5637 # Conflict between --help and --header
5638 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5639 Try \`$0 --help' for more information." >&5
5640 echo "$as_me: error: ambiguous option: $1
5641 Try \`$0 --help' for more information." >&2;}
5642 { (exit 1); exit 1; }; };;
5643 --help | --hel | -h )
5644 echo "$ac_cs_usage"; exit 0 ;;
5645 --debug | --d* | -d )
5646 debug=: ;;
5647 --file | --fil | --fi | --f )
5648 $ac_shift
5649 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5650 ac_need_defaults=false;;
5651 --header | --heade | --head | --hea )
5652 $ac_shift
5653 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5654 ac_need_defaults=false;;
5655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5656 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5657 ac_cs_silent=: ;;
5658
5659 # This is an error.
5660 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5661 Try \`$0 --help' for more information." >&5
5662 echo "$as_me: error: unrecognized option: $1
5663 Try \`$0 --help' for more information." >&2;}
5664 { (exit 1); exit 1; }; } ;;
5665
5666 *) ac_config_targets="$ac_config_targets $1" ;;
5667
5668 esac
5669 shift
5670 done
5671
5672 ac_configure_extra_args=
5673
5674 if $ac_cs_silent; then
5675 exec 6>/dev/null
5676 ac_configure_extra_args="$ac_configure_extra_args --silent"
5677 fi
5678
5679 _ACEOF
5680 cat >>$CONFIG_STATUS <<_ACEOF
5681 if \$ac_cs_recheck; then
5682 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5683 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5684 fi
5685
5686 _ACEOF
5687
5688
5689
5690
5691
5692 cat >>$CONFIG_STATUS <<\_ACEOF
5693 for ac_config_target in $ac_config_targets
5694 do
5695 case "$ac_config_target" in
5696 # Handling of arguments.
5697 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5698 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5699 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5700 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5701 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5702 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5703 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5704 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5705 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5706 { (exit 1); exit 1; }; };;
5707 esac
5708 done
5709
5710 # If the user did not use the arguments to specify the items to instantiate,
5711 # then the envvar interface is used. Set only those that are not.
5712 # We use the long form for the default assignment because of an extremely
5713 # bizarre bug on SunOS 4.1.3.
5714 if $ac_need_defaults; then
5715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5717 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5719 fi
5720
5721 # Have a temporary directory for convenience. Make it in the build tree
5722 # simply because there is no reason to put it here, and in addition,
5723 # creating and moving files from /tmp can sometimes cause problems.
5724 # Create a temporary directory, and hook for its removal unless debugging.
5725 $debug ||
5726 {
5727 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5728 trap '{ (exit 1); exit 1; }' 1 2 13 15
5729 }
5730
5731 # Create a (secure) tmp directory for tmp files.
5732
5733 {
5734 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5735 test -n "$tmp" && test -d "$tmp"
5736 } ||
5737 {
5738 tmp=./confstat$$-$RANDOM
5739 (umask 077 && mkdir $tmp)
5740 } ||
5741 {
5742 echo "$me: cannot create a temporary directory in ." >&2
5743 { (exit 1); exit 1; }
5744 }
5745
5746 _ACEOF
5747
5748 cat >>$CONFIG_STATUS <<_ACEOF
5749
5750 #
5751 # CONFIG_FILES section.
5752 #
5753
5754 # No need to generate the scripts if there are no CONFIG_FILES.
5755 # This happens for instance when ./config.status config.h
5756 if test -n "\$CONFIG_FILES"; then
5757 # Protect against being on the right side of a sed subst in config.status.
5758 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5759 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5760 s,@SHELL@,$SHELL,;t t
5761 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5762 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5763 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5764 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5765 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5766 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5767 s,@exec_prefix@,$exec_prefix,;t t
5768 s,@prefix@,$prefix,;t t
5769 s,@program_transform_name@,$program_transform_name,;t t
5770 s,@bindir@,$bindir,;t t
5771 s,@sbindir@,$sbindir,;t t
5772 s,@libexecdir@,$libexecdir,;t t
5773 s,@datadir@,$datadir,;t t
5774 s,@sysconfdir@,$sysconfdir,;t t
5775 s,@sharedstatedir@,$sharedstatedir,;t t
5776 s,@localstatedir@,$localstatedir,;t t
5777 s,@libdir@,$libdir,;t t
5778 s,@includedir@,$includedir,;t t
5779 s,@oldincludedir@,$oldincludedir,;t t
5780 s,@infodir@,$infodir,;t t
5781 s,@mandir@,$mandir,;t t
5782 s,@build_alias@,$build_alias,;t t
5783 s,@host_alias@,$host_alias,;t t
5784 s,@target_alias@,$target_alias,;t t
5785 s,@DEFS@,$DEFS,;t t
5786 s,@ECHO_C@,$ECHO_C,;t t
5787 s,@ECHO_N@,$ECHO_N,;t t
5788 s,@ECHO_T@,$ECHO_T,;t t
5789 s,@LIBS@,$LIBS,;t t
5790 s,@sim_environment@,$sim_environment,;t t
5791 s,@sim_alignment@,$sim_alignment,;t t
5792 s,@sim_assert@,$sim_assert,;t t
5793 s,@sim_bitsize@,$sim_bitsize,;t t
5794 s,@sim_endian@,$sim_endian,;t t
5795 s,@sim_hostendian@,$sim_hostendian,;t t
5796 s,@sim_float@,$sim_float,;t t
5797 s,@sim_scache@,$sim_scache,;t t
5798 s,@sim_default_model@,$sim_default_model,;t t
5799 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5800 s,@sim_hw_objs@,$sim_hw_objs,;t t
5801 s,@sim_hw@,$sim_hw,;t t
5802 s,@sim_inline@,$sim_inline,;t t
5803 s,@sim_packages@,$sim_packages,;t t
5804 s,@sim_regparm@,$sim_regparm,;t t
5805 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5806 s,@sim_smp@,$sim_smp,;t t
5807 s,@sim_stdcall@,$sim_stdcall,;t t
5808 s,@sim_xor_endian@,$sim_xor_endian,;t t
5809 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5810 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5811 s,@build@,$build,;t t
5812 s,@build_cpu@,$build_cpu,;t t
5813 s,@build_vendor@,$build_vendor,;t t
5814 s,@build_os@,$build_os,;t t
5815 s,@host@,$host,;t t
5816 s,@host_cpu@,$host_cpu,;t t
5817 s,@host_vendor@,$host_vendor,;t t
5818 s,@host_os@,$host_os,;t t
5819 s,@target@,$target,;t t
5820 s,@target_cpu@,$target_cpu,;t t
5821 s,@target_vendor@,$target_vendor,;t t
5822 s,@target_os@,$target_os,;t t
5823 s,@CC@,$CC,;t t
5824 s,@CFLAGS@,$CFLAGS,;t t
5825 s,@LDFLAGS@,$LDFLAGS,;t t
5826 s,@CPPFLAGS@,$CPPFLAGS,;t t
5827 s,@ac_ct_CC@,$ac_ct_CC,;t t
5828 s,@EXEEXT@,$EXEEXT,;t t
5829 s,@OBJEXT@,$OBJEXT,;t t
5830 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5831 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5832 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5833 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5834 s,@HDEFINES@,$HDEFINES,;t t
5835 s,@AR@,$AR,;t t
5836 s,@RANLIB@,$RANLIB,;t t
5837 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5838 s,@USE_NLS@,$USE_NLS,;t t
5839 s,@LIBINTL@,$LIBINTL,;t t
5840 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5841 s,@INCINTL@,$INCINTL,;t t
5842 s,@XGETTEXT@,$XGETTEXT,;t t
5843 s,@GMSGFMT@,$GMSGFMT,;t t
5844 s,@POSUB@,$POSUB,;t t
5845 s,@CATALOGS@,$CATALOGS,;t t
5846 s,@DATADIRNAME@,$DATADIRNAME,;t t
5847 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5848 s,@GENCAT@,$GENCAT,;t t
5849 s,@CATOBJEXT@,$CATOBJEXT,;t t
5850 s,@CPP@,$CPP,;t t
5851 s,@EGREP@,$EGREP,;t t
5852 s,@MAINT@,$MAINT,;t t
5853 s,@sim_bswap@,$sim_bswap,;t t
5854 s,@sim_cflags@,$sim_cflags,;t t
5855 s,@sim_debug@,$sim_debug,;t t
5856 s,@sim_stdio@,$sim_stdio,;t t
5857 s,@sim_trace@,$sim_trace,;t t
5858 s,@sim_profile@,$sim_profile,;t t
5859 s,@PKGVERSION@,$PKGVERSION,;t t
5860 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5861 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5862 s,@cgen_breaks@,$cgen_breaks,;t t
5863 s,@LIBOBJS@,$LIBOBJS,;t t
5864 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5865 CEOF
5866
5867 _ACEOF
5868
5869 cat >>$CONFIG_STATUS <<\_ACEOF
5870 # Split the substitutions into bite-sized pieces for seds with
5871 # small command number limits, like on Digital OSF/1 and HP-UX.
5872 ac_max_sed_lines=48
5873 ac_sed_frag=1 # Number of current file.
5874 ac_beg=1 # First line for current file.
5875 ac_end=$ac_max_sed_lines # Line after last line for current file.
5876 ac_more_lines=:
5877 ac_sed_cmds=
5878 while $ac_more_lines; do
5879 if test $ac_beg -gt 1; then
5880 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5881 else
5882 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5883 fi
5884 if test ! -s $tmp/subs.frag; then
5885 ac_more_lines=false
5886 else
5887 # The purpose of the label and of the branching condition is to
5888 # speed up the sed processing (if there are no `@' at all, there
5889 # is no need to browse any of the substitutions).
5890 # These are the two extra sed commands mentioned above.
5891 (echo ':t
5892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5893 if test -z "$ac_sed_cmds"; then
5894 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5895 else
5896 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5897 fi
5898 ac_sed_frag=`expr $ac_sed_frag + 1`
5899 ac_beg=$ac_end
5900 ac_end=`expr $ac_end + $ac_max_sed_lines`
5901 fi
5902 done
5903 if test -z "$ac_sed_cmds"; then
5904 ac_sed_cmds=cat
5905 fi
5906 fi # test -n "$CONFIG_FILES"
5907
5908 _ACEOF
5909 cat >>$CONFIG_STATUS <<\_ACEOF
5910 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5912 case $ac_file in
5913 - | *:- | *:-:* ) # input from stdin
5914 cat >$tmp/stdin
5915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5919 * ) ac_file_in=$ac_file.in ;;
5920 esac
5921
5922 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5925 X"$ac_file" : 'X\(//\)[^/]' \| \
5926 X"$ac_file" : 'X\(//\)$' \| \
5927 X"$ac_file" : 'X\(/\)' \| \
5928 . : '\(.\)' 2>/dev/null ||
5929 echo X"$ac_file" |
5930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5932 /^X\(\/\/\)$/{ s//\1/; q; }
5933 /^X\(\/\).*/{ s//\1/; q; }
5934 s/.*/./; q'`
5935 { if $as_mkdir_p; then
5936 mkdir -p "$ac_dir"
5937 else
5938 as_dir="$ac_dir"
5939 as_dirs=
5940 while test ! -d "$as_dir"; do
5941 as_dirs="$as_dir $as_dirs"
5942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5944 X"$as_dir" : 'X\(//\)[^/]' \| \
5945 X"$as_dir" : 'X\(//\)$' \| \
5946 X"$as_dir" : 'X\(/\)' \| \
5947 . : '\(.\)' 2>/dev/null ||
5948 echo X"$as_dir" |
5949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5951 /^X\(\/\/\)$/{ s//\1/; q; }
5952 /^X\(\/\).*/{ s//\1/; q; }
5953 s/.*/./; q'`
5954 done
5955 test ! -n "$as_dirs" || mkdir $as_dirs
5956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5958 { (exit 1); exit 1; }; }; }
5959
5960 ac_builddir=.
5961
5962 if test "$ac_dir" != .; then
5963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5964 # A "../" for each directory in $ac_dir_suffix.
5965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5966 else
5967 ac_dir_suffix= ac_top_builddir=
5968 fi
5969
5970 case $srcdir in
5971 .) # No --srcdir option. We are building in place.
5972 ac_srcdir=.
5973 if test -z "$ac_top_builddir"; then
5974 ac_top_srcdir=.
5975 else
5976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5977 fi ;;
5978 [\\/]* | ?:[\\/]* ) # Absolute path.
5979 ac_srcdir=$srcdir$ac_dir_suffix;
5980 ac_top_srcdir=$srcdir ;;
5981 *) # Relative path.
5982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5984 esac
5985
5986 # Do not use `cd foo && pwd` to compute absolute paths, because
5987 # the directories may not exist.
5988 case `pwd` in
5989 .) ac_abs_builddir="$ac_dir";;
5990 *)
5991 case "$ac_dir" in
5992 .) ac_abs_builddir=`pwd`;;
5993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5995 esac;;
5996 esac
5997 case $ac_abs_builddir in
5998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5999 *)
6000 case ${ac_top_builddir}. in
6001 .) ac_abs_top_builddir=$ac_abs_builddir;;
6002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6004 esac;;
6005 esac
6006 case $ac_abs_builddir in
6007 .) ac_abs_srcdir=$ac_srcdir;;
6008 *)
6009 case $ac_srcdir in
6010 .) ac_abs_srcdir=$ac_abs_builddir;;
6011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6013 esac;;
6014 esac
6015 case $ac_abs_builddir in
6016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6017 *)
6018 case $ac_top_srcdir in
6019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6022 esac;;
6023 esac
6024
6025
6026 case $INSTALL in
6027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6028 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6029 esac
6030
6031 if test x"$ac_file" != x-; then
6032 { echo "$as_me:$LINENO: creating $ac_file" >&5
6033 echo "$as_me: creating $ac_file" >&6;}
6034 rm -f "$ac_file"
6035 fi
6036 # Let's still pretend it is `configure' which instantiates (i.e., don't
6037 # use $as_me), people would be surprised to read:
6038 # /* config.h. Generated by config.status. */
6039 if test x"$ac_file" = x-; then
6040 configure_input=
6041 else
6042 configure_input="$ac_file. "
6043 fi
6044 configure_input=$configure_input"Generated from `echo $ac_file_in |
6045 sed 's,.*/,,'` by configure."
6046
6047 # First look for the input files in the build tree, otherwise in the
6048 # src tree.
6049 ac_file_inputs=`IFS=:
6050 for f in $ac_file_in; do
6051 case $f in
6052 -) echo $tmp/stdin ;;
6053 [\\/$]*)
6054 # Absolute (can't be DOS-style, as IFS=:)
6055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6056 echo "$as_me: error: cannot find input file: $f" >&2;}
6057 { (exit 1); exit 1; }; }
6058 echo "$f";;
6059 *) # Relative
6060 if test -f "$f"; then
6061 # Build tree
6062 echo "$f"
6063 elif test -f "$srcdir/$f"; then
6064 # Source tree
6065 echo "$srcdir/$f"
6066 else
6067 # /dev/null tree
6068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6069 echo "$as_me: error: cannot find input file: $f" >&2;}
6070 { (exit 1); exit 1; }; }
6071 fi;;
6072 esac
6073 done` || { (exit 1); exit 1; }
6074 _ACEOF
6075 cat >>$CONFIG_STATUS <<_ACEOF
6076 sed "$ac_vpsub
6077 $extrasub
6078 _ACEOF
6079 cat >>$CONFIG_STATUS <<\_ACEOF
6080 :t
6081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6082 s,@configure_input@,$configure_input,;t t
6083 s,@srcdir@,$ac_srcdir,;t t
6084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6085 s,@top_srcdir@,$ac_top_srcdir,;t t
6086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6087 s,@builddir@,$ac_builddir,;t t
6088 s,@abs_builddir@,$ac_abs_builddir,;t t
6089 s,@top_builddir@,$ac_top_builddir,;t t
6090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6091 s,@INSTALL@,$ac_INSTALL,;t t
6092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6093 rm -f $tmp/stdin
6094 if test x"$ac_file" != x-; then
6095 mv $tmp/out $ac_file
6096 else
6097 cat $tmp/out
6098 rm -f $tmp/out
6099 fi
6100
6101 done
6102 _ACEOF
6103 cat >>$CONFIG_STATUS <<\_ACEOF
6104
6105 #
6106 # CONFIG_HEADER section.
6107 #
6108
6109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6111 #
6112 # ac_d sets the value in "#define NAME VALUE" lines.
6113 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6114 ac_dB='[ ].*$,\1#\2'
6115 ac_dC=' '
6116 ac_dD=',;t'
6117 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6118 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6119 ac_uB='$,\1#\2define\3'
6120 ac_uC=' '
6121 ac_uD=',;t'
6122
6123 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6125 case $ac_file in
6126 - | *:- | *:-:* ) # input from stdin
6127 cat >$tmp/stdin
6128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6132 * ) ac_file_in=$ac_file.in ;;
6133 esac
6134
6135 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6136 echo "$as_me: creating $ac_file" >&6;}
6137
6138 # First look for the input files in the build tree, otherwise in the
6139 # src tree.
6140 ac_file_inputs=`IFS=:
6141 for f in $ac_file_in; do
6142 case $f in
6143 -) echo $tmp/stdin ;;
6144 [\\/$]*)
6145 # Absolute (can't be DOS-style, as IFS=:)
6146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6147 echo "$as_me: error: cannot find input file: $f" >&2;}
6148 { (exit 1); exit 1; }; }
6149 # Do quote $f, to prevent DOS paths from being IFS'd.
6150 echo "$f";;
6151 *) # Relative
6152 if test -f "$f"; then
6153 # Build tree
6154 echo "$f"
6155 elif test -f "$srcdir/$f"; then
6156 # Source tree
6157 echo "$srcdir/$f"
6158 else
6159 # /dev/null tree
6160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6161 echo "$as_me: error: cannot find input file: $f" >&2;}
6162 { (exit 1); exit 1; }; }
6163 fi;;
6164 esac
6165 done` || { (exit 1); exit 1; }
6166 # Remove the trailing spaces.
6167 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6168
6169 _ACEOF
6170
6171 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6172 # `conftest.undefs', that substitutes the proper values into
6173 # config.h.in to produce config.h. The first handles `#define'
6174 # templates, and the second `#undef' templates.
6175 # And first: Protect against being on the right side of a sed subst in
6176 # config.status. Protect against being in an unquoted here document
6177 # in config.status.
6178 rm -f conftest.defines conftest.undefs
6179 # Using a here document instead of a string reduces the quoting nightmare.
6180 # Putting comments in sed scripts is not portable.
6181 #
6182 # `end' is used to avoid that the second main sed command (meant for
6183 # 0-ary CPP macros) applies to n-ary macro definitions.
6184 # See the Autoconf documentation for `clear'.
6185 cat >confdef2sed.sed <<\_ACEOF
6186 s/[\\&,]/\\&/g
6187 s,[\\$`],\\&,g
6188 t clear
6189 : clear
6190 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6191 t end
6192 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6193 : end
6194 _ACEOF
6195 # If some macros were called several times there might be several times
6196 # the same #defines, which is useless. Nevertheless, we may not want to
6197 # sort them, since we want the *last* AC-DEFINE to be honored.
6198 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6199 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6200 rm -f confdef2sed.sed
6201
6202 # This sed command replaces #undef with comments. This is necessary, for
6203 # example, in the case of _POSIX_SOURCE, which is predefined and required
6204 # on some systems where configure will not decide to define it.
6205 cat >>conftest.undefs <<\_ACEOF
6206 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6207 _ACEOF
6208
6209 # Break up conftest.defines because some shells have a limit on the size
6210 # of here documents, and old seds have small limits too (100 cmds).
6211 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6212 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6213 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6214 echo ' :' >>$CONFIG_STATUS
6215 rm -f conftest.tail
6216 while grep . conftest.defines >/dev/null
6217 do
6218 # Write a limited-size here document to $tmp/defines.sed.
6219 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6220 # Speed up: don't consider the non `#define' lines.
6221 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6222 # Work around the forget-to-reset-the-flag bug.
6223 echo 't clr' >>$CONFIG_STATUS
6224 echo ': clr' >>$CONFIG_STATUS
6225 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6226 echo 'CEOF
6227 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6228 rm -f $tmp/in
6229 mv $tmp/out $tmp/in
6230 ' >>$CONFIG_STATUS
6231 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6232 rm -f conftest.defines
6233 mv conftest.tail conftest.defines
6234 done
6235 rm -f conftest.defines
6236 echo ' fi # grep' >>$CONFIG_STATUS
6237 echo >>$CONFIG_STATUS
6238
6239 # Break up conftest.undefs because some shells have a limit on the size
6240 # of here documents, and old seds have small limits too (100 cmds).
6241 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6242 rm -f conftest.tail
6243 while grep . conftest.undefs >/dev/null
6244 do
6245 # Write a limited-size here document to $tmp/undefs.sed.
6246 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6247 # Speed up: don't consider the non `#undef'
6248 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6249 # Work around the forget-to-reset-the-flag bug.
6250 echo 't clr' >>$CONFIG_STATUS
6251 echo ': clr' >>$CONFIG_STATUS
6252 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6253 echo 'CEOF
6254 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6255 rm -f $tmp/in
6256 mv $tmp/out $tmp/in
6257 ' >>$CONFIG_STATUS
6258 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6259 rm -f conftest.undefs
6260 mv conftest.tail conftest.undefs
6261 done
6262 rm -f conftest.undefs
6263
6264 cat >>$CONFIG_STATUS <<\_ACEOF
6265 # Let's still pretend it is `configure' which instantiates (i.e., don't
6266 # use $as_me), people would be surprised to read:
6267 # /* config.h. Generated by config.status. */
6268 if test x"$ac_file" = x-; then
6269 echo "/* Generated by configure. */" >$tmp/config.h
6270 else
6271 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6272 fi
6273 cat $tmp/in >>$tmp/config.h
6274 rm -f $tmp/in
6275 if test x"$ac_file" != x-; then
6276 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6277 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6278 echo "$as_me: $ac_file is unchanged" >&6;}
6279 else
6280 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6282 X"$ac_file" : 'X\(//\)[^/]' \| \
6283 X"$ac_file" : 'X\(//\)$' \| \
6284 X"$ac_file" : 'X\(/\)' \| \
6285 . : '\(.\)' 2>/dev/null ||
6286 echo X"$ac_file" |
6287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6289 /^X\(\/\/\)$/{ s//\1/; q; }
6290 /^X\(\/\).*/{ s//\1/; q; }
6291 s/.*/./; q'`
6292 { if $as_mkdir_p; then
6293 mkdir -p "$ac_dir"
6294 else
6295 as_dir="$ac_dir"
6296 as_dirs=
6297 while test ! -d "$as_dir"; do
6298 as_dirs="$as_dir $as_dirs"
6299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6301 X"$as_dir" : 'X\(//\)[^/]' \| \
6302 X"$as_dir" : 'X\(//\)$' \| \
6303 X"$as_dir" : 'X\(/\)' \| \
6304 . : '\(.\)' 2>/dev/null ||
6305 echo X"$as_dir" |
6306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6308 /^X\(\/\/\)$/{ s//\1/; q; }
6309 /^X\(\/\).*/{ s//\1/; q; }
6310 s/.*/./; q'`
6311 done
6312 test ! -n "$as_dirs" || mkdir $as_dirs
6313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6315 { (exit 1); exit 1; }; }; }
6316
6317 rm -f $ac_file
6318 mv $tmp/config.h $ac_file
6319 fi
6320 else
6321 cat $tmp/config.h
6322 rm -f $tmp/config.h
6323 fi
6324 done
6325 _ACEOF
6326 cat >>$CONFIG_STATUS <<\_ACEOF
6327
6328 #
6329 # CONFIG_LINKS section.
6330 #
6331
6332 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6333 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6334 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6335
6336 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6337 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6338
6339 if test ! -r $srcdir/$ac_source; then
6340 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6341 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6342 { (exit 1); exit 1; }; }
6343 fi
6344 rm -f $ac_dest
6345
6346 # Make relative symlinks.
6347 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6348 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6349 X"$ac_dest" : 'X\(//\)[^/]' \| \
6350 X"$ac_dest" : 'X\(//\)$' \| \
6351 X"$ac_dest" : 'X\(/\)' \| \
6352 . : '\(.\)' 2>/dev/null ||
6353 echo X"$ac_dest" |
6354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6356 /^X\(\/\/\)$/{ s//\1/; q; }
6357 /^X\(\/\).*/{ s//\1/; q; }
6358 s/.*/./; q'`
6359 { if $as_mkdir_p; then
6360 mkdir -p "$ac_dest_dir"
6361 else
6362 as_dir="$ac_dest_dir"
6363 as_dirs=
6364 while test ! -d "$as_dir"; do
6365 as_dirs="$as_dir $as_dirs"
6366 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6368 X"$as_dir" : 'X\(//\)[^/]' \| \
6369 X"$as_dir" : 'X\(//\)$' \| \
6370 X"$as_dir" : 'X\(/\)' \| \
6371 . : '\(.\)' 2>/dev/null ||
6372 echo X"$as_dir" |
6373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6375 /^X\(\/\/\)$/{ s//\1/; q; }
6376 /^X\(\/\).*/{ s//\1/; q; }
6377 s/.*/./; q'`
6378 done
6379 test ! -n "$as_dirs" || mkdir $as_dirs
6380 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6381 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6382 { (exit 1); exit 1; }; }; }
6383
6384 ac_builddir=.
6385
6386 if test "$ac_dest_dir" != .; then
6387 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6388 # A "../" for each directory in $ac_dir_suffix.
6389 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6390 else
6391 ac_dir_suffix= ac_top_builddir=
6392 fi
6393
6394 case $srcdir in
6395 .) # No --srcdir option. We are building in place.
6396 ac_srcdir=.
6397 if test -z "$ac_top_builddir"; then
6398 ac_top_srcdir=.
6399 else
6400 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6401 fi ;;
6402 [\\/]* | ?:[\\/]* ) # Absolute path.
6403 ac_srcdir=$srcdir$ac_dir_suffix;
6404 ac_top_srcdir=$srcdir ;;
6405 *) # Relative path.
6406 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6407 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6408 esac
6409
6410 # Do not use `cd foo && pwd` to compute absolute paths, because
6411 # the directories may not exist.
6412 case `pwd` in
6413 .) ac_abs_builddir="$ac_dest_dir";;
6414 *)
6415 case "$ac_dest_dir" in
6416 .) ac_abs_builddir=`pwd`;;
6417 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6418 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6419 esac;;
6420 esac
6421 case $ac_abs_builddir in
6422 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6423 *)
6424 case ${ac_top_builddir}. in
6425 .) ac_abs_top_builddir=$ac_abs_builddir;;
6426 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6427 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6428 esac;;
6429 esac
6430 case $ac_abs_builddir in
6431 .) ac_abs_srcdir=$ac_srcdir;;
6432 *)
6433 case $ac_srcdir in
6434 .) ac_abs_srcdir=$ac_abs_builddir;;
6435 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6436 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6437 esac;;
6438 esac
6439 case $ac_abs_builddir in
6440 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6441 *)
6442 case $ac_top_srcdir in
6443 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6444 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6445 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6446 esac;;
6447 esac
6448
6449
6450 case $srcdir in
6451 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6452 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6453 esac
6454
6455 # Try a symlink, then a hard link, then a copy.
6456 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6457 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6458 cp -p $srcdir/$ac_source $ac_dest ||
6459 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6460 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6461 { (exit 1); exit 1; }; }
6462 done
6463 _ACEOF
6464 cat >>$CONFIG_STATUS <<\_ACEOF
6465
6466 #
6467 # CONFIG_COMMANDS section.
6468 #
6469 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6470 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6471 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6472 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6473 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6474 X"$ac_dest" : 'X\(//\)[^/]' \| \
6475 X"$ac_dest" : 'X\(//\)$' \| \
6476 X"$ac_dest" : 'X\(/\)' \| \
6477 . : '\(.\)' 2>/dev/null ||
6478 echo X"$ac_dest" |
6479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6481 /^X\(\/\/\)$/{ s//\1/; q; }
6482 /^X\(\/\).*/{ s//\1/; q; }
6483 s/.*/./; q'`
6484 { if $as_mkdir_p; then
6485 mkdir -p "$ac_dir"
6486 else
6487 as_dir="$ac_dir"
6488 as_dirs=
6489 while test ! -d "$as_dir"; do
6490 as_dirs="$as_dir $as_dirs"
6491 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6493 X"$as_dir" : 'X\(//\)[^/]' \| \
6494 X"$as_dir" : 'X\(//\)$' \| \
6495 X"$as_dir" : 'X\(/\)' \| \
6496 . : '\(.\)' 2>/dev/null ||
6497 echo X"$as_dir" |
6498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6500 /^X\(\/\/\)$/{ s//\1/; q; }
6501 /^X\(\/\).*/{ s//\1/; q; }
6502 s/.*/./; q'`
6503 done
6504 test ! -n "$as_dirs" || mkdir $as_dirs
6505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6506 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6507 { (exit 1); exit 1; }; }; }
6508
6509 ac_builddir=.
6510
6511 if test "$ac_dir" != .; then
6512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6513 # A "../" for each directory in $ac_dir_suffix.
6514 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6515 else
6516 ac_dir_suffix= ac_top_builddir=
6517 fi
6518
6519 case $srcdir in
6520 .) # No --srcdir option. We are building in place.
6521 ac_srcdir=.
6522 if test -z "$ac_top_builddir"; then
6523 ac_top_srcdir=.
6524 else
6525 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6526 fi ;;
6527 [\\/]* | ?:[\\/]* ) # Absolute path.
6528 ac_srcdir=$srcdir$ac_dir_suffix;
6529 ac_top_srcdir=$srcdir ;;
6530 *) # Relative path.
6531 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6532 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6533 esac
6534
6535 # Do not use `cd foo && pwd` to compute absolute paths, because
6536 # the directories may not exist.
6537 case `pwd` in
6538 .) ac_abs_builddir="$ac_dir";;
6539 *)
6540 case "$ac_dir" in
6541 .) ac_abs_builddir=`pwd`;;
6542 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6543 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6544 esac;;
6545 esac
6546 case $ac_abs_builddir in
6547 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6548 *)
6549 case ${ac_top_builddir}. in
6550 .) ac_abs_top_builddir=$ac_abs_builddir;;
6551 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6552 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6553 esac;;
6554 esac
6555 case $ac_abs_builddir in
6556 .) ac_abs_srcdir=$ac_srcdir;;
6557 *)
6558 case $ac_srcdir in
6559 .) ac_abs_srcdir=$ac_abs_builddir;;
6560 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6561 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6562 esac;;
6563 esac
6564 case $ac_abs_builddir in
6565 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6566 *)
6567 case $ac_top_srcdir in
6568 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6569 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6570 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6571 esac;;
6572 esac
6573
6574
6575 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6576 echo "$as_me: executing $ac_dest commands" >&6;}
6577 case $ac_dest in
6578 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6579 rm -f Makesim1.tmp Makesim2.tmp Makefile
6580 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6581 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6582 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6583 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6584 <Makefile.sim >Makefile
6585 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6586 ;;
6587 stamp-h ) echo > stamp-h ;;
6588 esac
6589 done
6590 _ACEOF
6591
6592 cat >>$CONFIG_STATUS <<\_ACEOF
6593
6594 { (exit 0); exit 0; }
6595 _ACEOF
6596 chmod +x $CONFIG_STATUS
6597 ac_clean_files=$ac_clean_files_save
6598
6599
6600 # configure is writing to config.log, and then calls config.status.
6601 # config.status does its own redirection, appending to config.log.
6602 # Unfortunately, on DOS this fails, as config.log is still kept open
6603 # by configure, so config.status won't be able to write to it; its
6604 # output is simply discarded. So we exec the FD to /dev/null,
6605 # effectively closing config.log, so it can be properly (re)opened and
6606 # appended to by config.status. When coming back to configure, we
6607 # need to make the FD available again.
6608 if test "$no_create" != yes; then
6609 ac_cs_success=:
6610 ac_config_status_args=
6611 test "$silent" = yes &&
6612 ac_config_status_args="$ac_config_status_args --quiet"
6613 exec 5>/dev/null
6614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6615 exec 5>>config.log
6616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6617 # would make configure fail if this is the last instruction.
6618 $ac_cs_success || { (exit 1); exit 1; }
6619 fi
6620
6621