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