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