]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/configure
Fixup readline and sim including of override.m4
[thirdparty/binutils-gdb.git] / sim / igen / 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="table.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP AR_FOR_BUILD AR_FLAGS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD RANLIB_FOR_BUILD LIBIBERTY_LIB AR RANLIB ac_ct_RANLIB LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314 ac_pwd=`pwd`
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848
849 cat <<\_ACEOF
850
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-build-warnings Enable build-time compiler warnings if gcc is used
855 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
856
857 Some influential environment variables:
858 CC C compiler command
859 CFLAGS C compiler flags
860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861 nonstandard directory <lib dir>
862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863 headers in a nonstandard directory <include dir>
864 CPP C preprocessor
865
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
868
869 _ACEOF
870 fi
871
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
874 ac_popdir=`pwd`
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
877 ac_builddir=.
878
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 else
884 ac_dir_suffix= ac_top_builddir=
885 fi
886
887 case $srcdir in
888 .) # No --srcdir option. We are building in place.
889 ac_srcdir=.
890 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=.
892 else
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894 fi ;;
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
898 *) # Relative path.
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 esac
902
903 # Do not use `cd foo && pwd` to compute absolute paths, because
904 # the directories may not exist.
905 case `pwd` in
906 .) ac_abs_builddir="$ac_dir";;
907 *)
908 case "$ac_dir" in
909 .) ac_abs_builddir=`pwd`;;
910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
911 *) ac_abs_builddir=`pwd`/"$ac_dir";;
912 esac;;
913 esac
914 case $ac_abs_builddir in
915 .) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *)
917 case ${ac_top_builddir}. in
918 .) ac_abs_top_builddir=$ac_abs_builddir;;
919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_srcdir=$ac_srcdir;;
925 *)
926 case $ac_srcdir in
927 .) ac_abs_srcdir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *)
935 case $ac_top_srcdir in
936 .) ac_abs_top_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939 esac;;
940 esac
941
942 cd $ac_dir
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
945 echo
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
948 echo
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
952 echo
953 $ac_configure --help
954 else
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 fi
957 cd $ac_popdir
958 done
959 fi
960
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963 cat <<\_ACEOF
964
965 Copyright (C) 2003 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
968 _ACEOF
969 exit 0
970 fi
971 exec 5>config.log
972 cat >&5 <<_ACEOF
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
975
976 It was created by $as_me, which was
977 generated by GNU Autoconf 2.59. Invocation command line was
978
979 $ $0 $@
980
981 _ACEOF
982 {
983 cat <<_ASUNAME
984 ## --------- ##
985 ## Platform. ##
986 ## --------- ##
987
988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996
997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004
1005 _ASUNAME
1006
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 for as_dir in $PATH
1009 do
1010 IFS=$as_save_IFS
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1013 done
1014
1015 } >&5
1016
1017 cat >&5 <<_ACEOF
1018
1019
1020 ## ----------- ##
1021 ## Core tests. ##
1022 ## ----------- ##
1023
1024 _ACEOF
1025
1026
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1032 ac_configure_args=
1033 ac_configure_args0=
1034 ac_configure_args1=
1035 ac_sep=
1036 ac_must_keep_next=false
1037 for ac_pass in 1 2
1038 do
1039 for ac_arg
1040 do
1041 case $ac_arg in
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 continue ;;
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048 esac
1049 case $ac_pass in
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 2)
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1055 else
1056 case $ac_arg in
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063 esac
1064 ;;
1065 -* ) ac_must_keep_next=true ;;
1066 esac
1067 fi
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1070 ac_sep=" "
1071 ;;
1072 esac
1073 done
1074 done
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close' the trap.
1083 trap 'exit_status=$?
1084 # Save into config.log some information that might help in debugging.
1085 {
1086 echo
1087
1088 cat <<\_ASBOX
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1092 _ASBOX
1093 echo
1094 # The following way of writing the cache mishandles newlines in values,
1095 {
1096 (set) 2>&1 |
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098 *ac_space=\ *)
1099 sed -n \
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 ;;
1103 *)
1104 sed -n \
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 ;;
1107 esac;
1108 }
1109 echo
1110
1111 cat <<\_ASBOX
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1115 _ASBOX
1116 echo
1117 for ac_var in $ac_subst_vars
1118 do
1119 eval ac_val=$`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1121 done | sort
1122 echo
1123
1124 if test -n "$ac_subst_files"; then
1125 cat <<\_ASBOX
1126 ## ------------- ##
1127 ## Output files. ##
1128 ## ------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_files
1132 do
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1137 fi
1138
1139 if test -s confdefs.h; then
1140 cat <<\_ASBOX
1141 ## ----------- ##
1142 ## confdefs.h. ##
1143 ## ----------- ##
1144 _ASBOX
1145 echo
1146 sed "/^$/d" confdefs.h | sort
1147 echo
1148 fi
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1152 } >&5
1153 rm -f core *.core &&
1154 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155 exit $exit_status
1156 ' 0
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 done
1160 ac_signal=0
1161
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165 echo >confdefs.h
1166
1167 # Predefined preprocessor variables.
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 _ACEOF
1192
1193
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199 else
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201 fi
1202 fi
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's/^/| /' "$ac_site_file" >&5
1208 . "$ac_site_file"
1209 fi
1210 done
1211
1212 if test -r "$cache_file"; then
1213 # Some versions of bash will fail to source /dev/null (special
1214 # files actually), so we avoid doing that.
1215 if test -f "$cache_file"; then
1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217 echo "$as_me: loading cache $cache_file" >&6;}
1218 case $cache_file in
1219 [\\/]* | ?:[\\/]* ) . $cache_file;;
1220 *) . ./$cache_file;;
1221 esac
1222 fi
1223 else
1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225 echo "$as_me: creating cache $cache_file" >&6;}
1226 >$cache_file
1227 fi
1228
1229 # Check that the precious variables saved in the cache have kept the same
1230 # value.
1231 ac_cache_corrupted=false
1232 for ac_var in `(set) 2>&1 |
1233 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235 eval ac_new_set=\$ac_env_${ac_var}_set
1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237 eval ac_new_val="\$ac_env_${ac_var}_value"
1238 case $ac_old_set,$ac_new_set in
1239 set,)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,set)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,);;
1248 *)
1249 if test "x$ac_old_val" != "x$ac_new_val"; then
1250 # differences in whitespace do not lead to failure.
1251 ac_old_val_w=`echo x $ac_old_val`
1252 ac_new_val_w=`echo x $ac_new_val`
1253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 ac_cache_corrupted=:
1257 else
1258 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1259 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1260 eval $ac_var=\$ac_old_val
1261 fi
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 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1279 fi
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1283 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 break
1325 elif test -f $ac_dir/install.sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 break
1329 elif test -f $ac_dir/shtool; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 break
1333 fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344 # Find a good install program. We prefer a C program (faster),
1345 # so one script is as good as another. But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1350 # AIX /bin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366 IFS=$as_save_IFS
1367 test -z "$as_dir" && as_dir=.
1368 # Account for people who put trailing slashes in PATH elements.
1369 case $as_dir/ in
1370 ./ | .// | /cC/* | \
1371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1373 /usr/ucb/* ) ;;
1374 *)
1375 # OSF1 and SCO ODT 3.0 have their own names for install.
1376 # Don't use installbsd from OSF since it installs stuff as root
1377 # by default.
1378 for ac_prog in ginstall scoinst install; do
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381 if test $ac_prog = install &&
1382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1384 :
1385 elif test $ac_prog = install &&
1386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387 # program-specific install script used by HP pwplus--don't use.
1388 :
1389 else
1390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391 break 3
1392 fi
1393 fi
1394 done
1395 done
1396 ;;
1397 esac
1398 done
1399
1400
1401 fi
1402 if test "${ac_cv_path_install+set}" = set; then
1403 INSTALL=$ac_cv_path_install
1404 else
1405 # As a last resort, use the slow shell script. We don't cache a
1406 # path for INSTALL within a source directory, because that will
1407 # break other packages using the cache if that directory is
1408 # removed, or if the path is relative.
1409 INSTALL=$ac_install_sh
1410 fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 ac_ext=c
1424 ac_cpp='$CPP $CPPFLAGS'
1425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1449 fi
1450 done
1451 done
1452
1453 fi
1454 fi
1455 CC=$ac_cv_prog_CC
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1459 else
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464 fi
1465 if test -z "$ac_cv_prog_CC"; then
1466 ac_ct_CC=$CC
1467 # Extract the first word of "gcc", so it can be a program name with args.
1468 set dummy gcc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1479 do
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_ac_ct_CC="gcc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 break 2
1487 fi
1488 done
1489 done
1490
1491 fi
1492 fi
1493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1497 else
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1500 fi
1501
1502 CC=$ac_ct_CC
1503 else
1504 CC="$ac_cv_prog_CC"
1505 fi
1506
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1510 set dummy ${ac_tool_prefix}cc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522 IFS=$as_save_IFS
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_CC="${ac_tool_prefix}cc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 break 2
1529 fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 CC=$ac_cv_prog_CC
1536 if test -n "$CC"; then
1537 echo "$as_me:$LINENO: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1539 else
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544 fi
1545 if test -z "$ac_cv_prog_CC"; then
1546 ac_ct_CC=$CC
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_ac_ct_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1577 else
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 CC=$ac_ct_CC
1583 else
1584 CC="$ac_cv_prog_CC"
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 ac_prog_rejected=no
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1608 ac_prog_rejected=yes
1609 continue
1610 fi
1611 ac_cv_prog_CC="cc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1614 fi
1615 done
1616 done
1617
1618 if test $ac_prog_rejected = yes; then
1619 # We found a bogon in the path, so make sure we never use it.
1620 set dummy $ac_cv_prog_CC
1621 shift
1622 if test $# != 0; then
1623 # We chose a different compiler from the bogus one.
1624 # However, it has the same basename, so the bogon will be chosen
1625 # first if we set CC to just the basename; use the full file name.
1626 shift
1627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1628 fi
1629 fi
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$CC"; then
1643 if test -n "$ac_tool_prefix"; then
1644 for ac_prog in cl
1645 do
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 CC=$ac_cv_prog_CC
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 test -n "$CC" && break
1682 done
1683 fi
1684 if test -z "$CC"; then
1685 ac_ct_CC=$CC
1686 for ac_prog in cl
1687 do
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 test -n "$ac_ct_CC" && break
1724 done
1725
1726 CC=$ac_ct_CC
1727 fi
1728
1729 fi
1730
1731
1732 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1733 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1734 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 /* confdefs.h. */
1762 _ACEOF
1763 cat confdefs.h >>conftest.$ac_ext
1764 cat >>conftest.$ac_ext <<_ACEOF
1765 /* end confdefs.h. */
1766
1767 int
1768 main ()
1769 {
1770
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 ac_clean_files_save=$ac_clean_files
1776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1777 # Try to create an executable without -o first, disregard a.out.
1778 # It will help us diagnose broken compilers, and finding out an intuition
1779 # of exeext.
1780 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784 (eval $ac_link_default) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 # Find the output, starting from the most likely. This scheme is
1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1790 # resort.
1791
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 ac_cv_exeext=
1795 # b.out is created by i960 compilers.
1796 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1797 do
1798 test -f "$ac_file" || continue
1799 case $ac_file in
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1801 ;;
1802 conftest.$ac_ext )
1803 # This is the source file.
1804 ;;
1805 [ab].out )
1806 # We found the default executable, but exeext='' is most
1807 # certainly right.
1808 break;;
1809 *.* )
1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 # FIXME: I believe we export ac_cv_exeext for Libtool,
1812 # but it would be cool to find out if it's true. Does anybody
1813 # maintain Libtool? --akim.
1814 export ac_cv_exeext
1815 break;;
1816 * )
1817 break;;
1818 esac
1819 done
1820 else
1821 echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1825 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&2;}
1830 { (exit 77); exit 77; }; }; }
1831 fi
1832
1833 ac_exeext=$ac_cv_exeext
1834 echo "$as_me:$LINENO: result: $ac_file" >&5
1835 echo "${ECHO_T}$ac_file" >&6
1836
1837 # Check the compiler produces executables we can run. If not, either
1838 # the compiler is broken, or we cross compile.
1839 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1842 # If not cross compiling, check that we can run a simple program.
1843 if test "$cross_compiling" != yes; then
1844 if { ac_try='./$ac_file'
1845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 (eval $ac_try) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1850 cross_compiling=no
1851 else
1852 if test "$cross_compiling" = maybe; then
1853 cross_compiling=yes
1854 else
1855 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1856 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }; }
1864 fi
1865 fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899 done
1900 else
1901 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1902 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h. */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1928
1929 int
1930 main ()
1931 {
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944 case $ac_file in
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947 break;;
1948 esac
1949 done
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1955 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }; }
1961 fi
1962
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1968 ac_objext=$OBJEXT
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1980
1981 int
1982 main ()
1983 {
1984 #ifndef __GNUC__
1985 choke me
1986 #endif
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015 else
2016 echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_compiler_gnu=no
2020 fi
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024 fi
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h. */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2042
2043 int
2044 main ()
2045 {
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_cv_prog_cc_g=no
2079 fi
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092 else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098 fi
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_cv_prog_cc_stdc=no
2105 ac_save_CC=$CC
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2112 #include <stdarg.h>
2113 #include <stdio.h>
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120 char **p;
2121 int i;
2122 {
2123 return p[i];
2124 }
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2126 {
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133 }
2134
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 int argc;
2149 char **argv;
2150 int
2151 main ()
2152 {
2153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX -qlanglvl=ansi
2161 # Ultrix and OSF/1 -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions -Aa -D_HPUX_SOURCE
2164 # SVR4 -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.err conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220 choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252 do
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259 $ac_declaration
2260 #include <stdlib.h>
2261 int
2262 main ()
2263 {
2264 exit (42);
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292 else
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 continue
2297 fi
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2305 $ac_declaration
2306 int
2307 main ()
2308 {
2309 exit (42);
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 fi
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 rm -f conftest*
2345 if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349 fi
2350
2351 else
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
2365
2366 # NOTE: Don't add -Wall or -Wunused, they both include
2367 # -Wunused-parameter which reports bogus warnings.
2368 # NOTE: If you add to this list, remember to update
2369 # gdb/doc/gdbint.texinfo.
2370 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
2371 -Wformat -Wparentheses -Wpointer-arith"
2372 # GCC supports -Wuninitialized only with -O or -On, n != 0.
2373 if test x${CFLAGS+set} = xset; then
2374 case "${CFLAGS}" in
2375 *"-O0"* ) ;;
2376 *"-O"* )
2377 build_warnings="${build_warnings} -Wuninitialized"
2378 ;;
2379 esac
2380 else
2381 build_warnings="${build_warnings} -Wuninitialized"
2382 fi
2383 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
2384 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
2385 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
2386 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
2387 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
2388 # -Woverloaded-virtual -Winline -Werror"
2389 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2390 if test "${enable_build_warnings+set}" = set; then
2391 enableval="$enable_build_warnings"
2392 case "${enableval}" in
2393 yes) ;;
2394 no) build_warnings="-w";;
2395 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2396 build_warnings="${build_warnings} ${t}";;
2397 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2398 build_warnings="${t} ${build_warnings}";;
2399 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2400 esac
2401 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2402 echo "Setting compiler warning flags = $build_warnings" 6>&1
2403 fi
2404 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
2405 if test "${enable_sim_build_warnings+set}" = set; then
2406 enableval="$enable_sim_build_warnings"
2407 case "${enableval}" in
2408 yes) ;;
2409 no) build_warnings="-w";;
2410 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2411 build_warnings="${build_warnings} ${t}";;
2412 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2413 build_warnings="${t} ${build_warnings}";;
2414 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2415 esac
2416 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2417 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
2418 fi
2419 fi; WARN_CFLAGS=""
2420 WERROR_CFLAGS=""
2421 if test "x${build_warnings}" != x -a "x$GCC" = xyes
2422 then
2423 echo "$as_me:$LINENO: checking compiler warning flags" >&5
2424 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
2425 # Separate out the -Werror flag as some files just cannot be
2426 # compiled with it enabled.
2427 for w in ${build_warnings}; do
2428 case $w in
2429 -Werr*) WERROR_CFLAGS=-Werror ;;
2430 *) # Check that GCC accepts it
2431 saved_CFLAGS="$CFLAGS"
2432 CFLAGS="$CFLAGS $w"
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439
2440 int
2441 main ()
2442 {
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 WARN_CFLAGS="${WARN_CFLAGS} $w"
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 fi
2476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 CFLAGS="$saved_CFLAGS"
2478 esac
2479 done
2480 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
2481 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
2482 fi
2483
2484
2485 # Put a plausible default for CC_FOR_BUILD in Makefile.
2486 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
2487 AR_FOR_BUILD='$(AR)'
2488 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
2489 CC_FOR_BUILD='$(CC)'
2490 CFLAGS_FOR_BUILD='$(CFLAGS)'
2491 RANLIB_FOR_BUILD='$(RANLIB)'
2492 LIBIBERTY_LIB=../../libiberty/libiberty.a
2493 else
2494 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2495 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
2496 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2497 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
2498 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2499 LIBIBERTY_LIB=
2500 fi
2501
2502
2503 # Make sure we can run config.sub.
2504 $ac_config_sub sun4 >/dev/null 2>&1 ||
2505 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2506 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2507 { (exit 1); exit 1; }; }
2508
2509 echo "$as_me:$LINENO: checking build system type" >&5
2510 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2511 if test "${ac_cv_build+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 ac_cv_build_alias=$build_alias
2515 test -z "$ac_cv_build_alias" &&
2516 ac_cv_build_alias=`$ac_config_guess`
2517 test -z "$ac_cv_build_alias" &&
2518 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2522 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2523 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2525
2526 fi
2527 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 echo "${ECHO_T}$ac_cv_build" >&6
2529 build=$ac_cv_build
2530 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2531 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2532 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2533
2534
2535 echo "$as_me:$LINENO: checking host system type" >&5
2536 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2537 if test "${ac_cv_host+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 ac_cv_host_alias=$host_alias
2541 test -z "$ac_cv_host_alias" &&
2542 ac_cv_host_alias=$ac_cv_build_alias
2543 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2544 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2545 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2546 { (exit 1); exit 1; }; }
2547
2548 fi
2549 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2550 echo "${ECHO_T}$ac_cv_host" >&6
2551 host=$ac_cv_host
2552 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2553 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2554 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2555
2556
2557 echo "$as_me:$LINENO: checking target system type" >&5
2558 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2559 if test "${ac_cv_target+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 ac_cv_target_alias=$target_alias
2563 test "x$ac_cv_target_alias" = "x" &&
2564 ac_cv_target_alias=$ac_cv_host_alias
2565 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2567 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2568 { (exit 1); exit 1; }; }
2569
2570 fi
2571 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2572 echo "${ECHO_T}$ac_cv_target" >&6
2573 target=$ac_cv_target
2574 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2575 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2576 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2577
2578
2579 # The aliases save the names the user supplied, while $host etc.
2580 # will get canonicalized.
2581 test -n "$target_alias" &&
2582 test "$program_prefix$program_suffix$program_transform_name" = \
2583 NONENONEs,x,x, &&
2584 program_prefix=${target_alias}-
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2590 # Double any \ or $. echo might interpret backslashes.
2591 # By default was `s,x,x', remove it if useless.
2592 cat <<\_ACEOF >conftest.sed
2593 s/[\\$]/&&/g;s/;s,x,x,$//
2594 _ACEOF
2595 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2596 rm conftest.sed
2597
2598
2599 . ${srcdir}/../../bfd/configure.host
2600
2601 ac_config_headers="$ac_config_headers config.h:config.in"
2602
2603
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2610 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2611 # On Suns, sometimes $CPP names a directory.
2612 if test -n "$CPP" && test -d "$CPP"; then
2613 CPP=
2614 fi
2615 if test -z "$CPP"; then
2616 if test "${ac_cv_prog_CPP+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 else
2619 # Double quotes because CPP needs to be expanded
2620 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2621 do
2622 ac_preproc_ok=false
2623 for ac_c_preproc_warn_flag in '' yes
2624 do
2625 # Use a header file that comes with gcc, so configuring glibc
2626 # with a fresh cross-compiler works.
2627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2628 # <limits.h> exists even on freestanding compilers.
2629 # On the NeXT, cc -E runs the code through the compiler's parser,
2630 # not just through cpp. "Syntax error" is here to catch this case.
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 #ifdef __STDC__
2638 # include <limits.h>
2639 #else
2640 # include <assert.h>
2641 #endif
2642 Syntax error
2643 _ACEOF
2644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } >/dev/null; then
2652 if test -s conftest.err; then
2653 ac_cpp_err=$ac_c_preproc_warn_flag
2654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2655 else
2656 ac_cpp_err=
2657 fi
2658 else
2659 ac_cpp_err=yes
2660 fi
2661 if test -z "$ac_cpp_err"; then
2662 :
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 # Broken: fails on valid input.
2668 continue
2669 fi
2670 rm -f conftest.err conftest.$ac_ext
2671
2672 # OK, works on sane cases. Now check whether non-existent headers
2673 # can be detected and how.
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h. */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2680 #include <ac_nonexistent.h>
2681 _ACEOF
2682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } >/dev/null; then
2690 if test -s conftest.err; then
2691 ac_cpp_err=$ac_c_preproc_warn_flag
2692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2693 else
2694 ac_cpp_err=
2695 fi
2696 else
2697 ac_cpp_err=yes
2698 fi
2699 if test -z "$ac_cpp_err"; then
2700 # Broken: success on invalid input.
2701 continue
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2705
2706 # Passes both tests.
2707 ac_preproc_ok=:
2708 break
2709 fi
2710 rm -f conftest.err conftest.$ac_ext
2711
2712 done
2713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2714 rm -f conftest.err conftest.$ac_ext
2715 if $ac_preproc_ok; then
2716 break
2717 fi
2718
2719 done
2720 ac_cv_prog_CPP=$CPP
2721
2722 fi
2723 CPP=$ac_cv_prog_CPP
2724 else
2725 ac_cv_prog_CPP=$CPP
2726 fi
2727 echo "$as_me:$LINENO: result: $CPP" >&5
2728 echo "${ECHO_T}$CPP" >&6
2729 ac_preproc_ok=false
2730 for ac_c_preproc_warn_flag in '' yes
2731 do
2732 # Use a header file that comes with gcc, so configuring glibc
2733 # with a fresh cross-compiler works.
2734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2735 # <limits.h> exists even on freestanding compilers.
2736 # On the NeXT, cc -E runs the code through the compiler's parser,
2737 # not just through cpp. "Syntax error" is here to catch this case.
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2744 #ifdef __STDC__
2745 # include <limits.h>
2746 #else
2747 # include <assert.h>
2748 #endif
2749 Syntax error
2750 _ACEOF
2751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } >/dev/null; then
2759 if test -s conftest.err; then
2760 ac_cpp_err=$ac_c_preproc_warn_flag
2761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2762 else
2763 ac_cpp_err=
2764 fi
2765 else
2766 ac_cpp_err=yes
2767 fi
2768 if test -z "$ac_cpp_err"; then
2769 :
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 # Broken: fails on valid input.
2775 continue
2776 fi
2777 rm -f conftest.err conftest.$ac_ext
2778
2779 # OK, works on sane cases. Now check whether non-existent headers
2780 # can be detected and how.
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2787 #include <ac_nonexistent.h>
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2800 else
2801 ac_cpp_err=
2802 fi
2803 else
2804 ac_cpp_err=yes
2805 fi
2806 if test -z "$ac_cpp_err"; then
2807 # Broken: success on invalid input.
2808 continue
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 # Passes both tests.
2814 ac_preproc_ok=:
2815 break
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819 done
2820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2821 rm -f conftest.err conftest.$ac_ext
2822 if $ac_preproc_ok; then
2823 :
2824 else
2825 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2826 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2830 See \`config.log' for more details." >&2;}
2831 { (exit 1); exit 1; }; }; }
2832 fi
2833
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839
2840
2841 echo "$as_me:$LINENO: checking for egrep" >&5
2842 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2843 if test "${ac_cv_prog_egrep+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2847 then ac_cv_prog_egrep='grep -E'
2848 else ac_cv_prog_egrep='egrep'
2849 fi
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2852 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2853 EGREP=$ac_cv_prog_egrep
2854
2855
2856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2858 if test "${ac_cv_header_stdc+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <stdlib.h>
2868 #include <stdarg.h>
2869 #include <string.h>
2870 #include <float.h>
2871
2872 int
2873 main ()
2874 {
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 ac_cv_header_stdc=yes
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 ac_cv_header_stdc=no
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910
2911 if test $ac_cv_header_stdc = yes; then
2912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2919 #include <string.h>
2920
2921 _ACEOF
2922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2923 $EGREP "memchr" >/dev/null 2>&1; then
2924 :
2925 else
2926 ac_cv_header_stdc=no
2927 fi
2928 rm -f conftest*
2929
2930 fi
2931
2932 if test $ac_cv_header_stdc = yes; then
2933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
2941
2942 _ACEOF
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 $EGREP "free" >/dev/null 2>&1; then
2945 :
2946 else
2947 ac_cv_header_stdc=no
2948 fi
2949 rm -f conftest*
2950
2951 fi
2952
2953 if test $ac_cv_header_stdc = yes; then
2954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2955 if test "$cross_compiling" = yes; then
2956 :
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ctype.h>
2965 #if ((' ' & 0x0FF) == 0x020)
2966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2968 #else
2969 # define ISLOWER(c) \
2970 (('a' <= (c) && (c) <= 'i') \
2971 || ('j' <= (c) && (c) <= 'r') \
2972 || ('s' <= (c) && (c) <= 'z'))
2973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2974 #endif
2975
2976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2977 int
2978 main ()
2979 {
2980 int i;
2981 for (i = 0; i < 256; i++)
2982 if (XOR (islower (i), ISLOWER (i))
2983 || toupper (i) != TOUPPER (i))
2984 exit(2);
2985 exit (0);
2986 }
2987 _ACEOF
2988 rm -f conftest$ac_exeext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2990 (eval $ac_link) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 :
3000 else
3001 echo "$as_me: program exited with status $ac_status" >&5
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 ( exit $ac_status )
3006 ac_cv_header_stdc=no
3007 fi
3008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3009 fi
3010 fi
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3014 if test $ac_cv_header_stdc = yes; then
3015
3016 cat >>confdefs.h <<\_ACEOF
3017 #define STDC_HEADERS 1
3018 _ACEOF
3019
3020 fi
3021
3022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3033 inttypes.h stdint.h unistd.h
3034 do
3035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3036 echo "$as_me:$LINENO: checking for $ac_header" >&5
3037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
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 $ac_includes_default
3048
3049 #include <$ac_header>
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag"
3061 || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 (eval $ac_try) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 eval "$as_ac_Header=yes"
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 eval "$as_ac_Header=no"
3079 fi
3080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3081 fi
3082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3085 cat >>confdefs.h <<_ACEOF
3086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3087 _ACEOF
3088
3089 fi
3090
3091 done
3092
3093
3094
3095
3096
3097
3098
3099
3100 for ac_header in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
3101 do
3102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3104 echo "$as_me:$LINENO: checking for $ac_header" >&5
3105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 fi
3109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3111 else
3112 # Is the header compilable?
3113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 $ac_includes_default
3122 #include <$ac_header>
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag"
3134 || test ! -s conftest.err'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_header_compiler=yes
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_header_compiler=no
3152 fi
3153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3155 echo "${ECHO_T}$ac_header_compiler" >&6
3156
3157 # Is the header present?
3158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 #include <$ac_header>
3167 _ACEOF
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_c_preproc_warn_flag
3178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3179 else
3180 ac_cpp_err=
3181 fi
3182 else
3183 ac_cpp_err=yes
3184 fi
3185 if test -z "$ac_cpp_err"; then
3186 ac_header_preproc=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ac_header_preproc=no
3192 fi
3193 rm -f conftest.err conftest.$ac_ext
3194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3195 echo "${ECHO_T}$ac_header_preproc" >&6
3196
3197 # So? What about this header?
3198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3199 yes:no: )
3200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3204 ac_header_preproc=yes
3205 ;;
3206 no:yes:* )
3207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3219 (
3220 cat <<\_ASBOX
3221 ## ------------------------------------------ ##
3222 ## Report this to the AC_PACKAGE_NAME lists. ##
3223 ## ------------------------------------------ ##
3224 _ASBOX
3225 ) |
3226 sed "s/^/$as_me: WARNING: /" >&2
3227 ;;
3228 esac
3229 echo "$as_me:$LINENO: checking for $ac_header" >&5
3230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 eval "$as_ac_Header=\$ac_header_preproc"
3235 fi
3236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3238
3239 fi
3240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3241 cat >>confdefs.h <<_ACEOF
3242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3243 _ACEOF
3244
3245 fi
3246
3247 done
3248
3249
3250
3251
3252
3253
3254 ac_header_dirent=no
3255 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3256 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3257 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3258 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <sys/types.h>
3269 #include <$ac_hdr>
3270
3271 int
3272 main ()
3273 {
3274 if ((DIR *) 0)
3275 return 0;
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -z "$ac_c_werror_flag"
3290 || test ! -s conftest.err'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 eval "$as_ac_Header=yes"
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 eval "$as_ac_Header=no"
3308 fi
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3314 cat >>confdefs.h <<_ACEOF
3315 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3316 _ACEOF
3317
3318 ac_header_dirent=$ac_hdr; break
3319 fi
3320
3321 done
3322 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3323 if test $ac_header_dirent = dirent.h; then
3324 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3325 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3326 if test "${ac_cv_search_opendir+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 ac_func_search_save_LIBS=$LIBS
3330 ac_cv_search_opendir=no
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337
3338 /* Override any gcc2 internal prototype to avoid an error. */
3339 #ifdef __cplusplus
3340 extern "C"
3341 #endif
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char opendir ();
3345 int
3346 main ()
3347 {
3348 opendir ();
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext conftest$ac_exeext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3355 (eval $ac_link) 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try='test -z "$ac_c_werror_flag"
3363 || test ! -s conftest.err'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; } &&
3369 { ac_try='test -s conftest$ac_exeext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_search_opendir="none required"
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 fi
3381 rm -f conftest.err conftest.$ac_objext \
3382 conftest$ac_exeext conftest.$ac_ext
3383 if test "$ac_cv_search_opendir" = no; then
3384 for ac_lib in dir; do
3385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h. */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 #ifdef __cplusplus
3395 extern "C"
3396 #endif
3397 /* We use char because int might match the return type of a gcc2
3398 builtin and then its argument prototype would still apply. */
3399 char opendir ();
3400 int
3401 main ()
3402 {
3403 opendir ();
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext conftest$ac_exeext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410 (eval $ac_link) 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_c_werror_flag"
3418 || test ! -s conftest.err'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 (eval $ac_try) 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; } &&
3424 { ac_try='test -s conftest$ac_exeext'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 (eval $ac_try) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; }; then
3430 ac_cv_search_opendir="-l$ac_lib"
3431 break
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 fi
3437 rm -f conftest.err conftest.$ac_objext \
3438 conftest$ac_exeext conftest.$ac_ext
3439 done
3440 fi
3441 LIBS=$ac_func_search_save_LIBS
3442 fi
3443 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3444 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3445 if test "$ac_cv_search_opendir" != no; then
3446 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3447
3448 fi
3449
3450 else
3451 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3452 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3453 if test "${ac_cv_search_opendir+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 ac_func_search_save_LIBS=$LIBS
3457 ac_cv_search_opendir=no
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 #ifdef __cplusplus
3467 extern "C"
3468 #endif
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char opendir ();
3472 int
3473 main ()
3474 {
3475 opendir ();
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext conftest$ac_exeext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest$ac_exeext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_search_opendir="none required"
3503 else
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 fi
3508 rm -f conftest.err conftest.$ac_objext \
3509 conftest$ac_exeext conftest.$ac_ext
3510 if test "$ac_cv_search_opendir" = no; then
3511 for ac_lib in x; do
3512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 #ifdef __cplusplus
3522 extern "C"
3523 #endif
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char opendir ();
3527 int
3528 main ()
3529 {
3530 opendir ();
3531 ;
3532 return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext conftest$ac_exeext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3537 (eval $ac_link) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest$ac_exeext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_search_opendir="-l$ac_lib"
3558 break
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 fi
3564 rm -f conftest.err conftest.$ac_objext \
3565 conftest$ac_exeext conftest.$ac_ext
3566 done
3567 fi
3568 LIBS=$ac_func_search_save_LIBS
3569 fi
3570 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3571 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3572 if test "$ac_cv_search_opendir" != no; then
3573 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3574
3575 fi
3576
3577 fi
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_prog_RANLIB+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 if test -n "$RANLIB"; then
3598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613
3614 fi
3615 fi
3616 RANLIB=$ac_cv_prog_RANLIB
3617 if test -n "$RANLIB"; then
3618 echo "$as_me:$LINENO: result: $RANLIB" >&5
3619 echo "${ECHO_T}$RANLIB" >&6
3620 else
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625 fi
3626 if test -z "$ac_cv_prog_RANLIB"; then
3627 ac_ct_RANLIB=$RANLIB
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 if test -n "$ac_ct_RANLIB"; then
3636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_ac_ct_RANLIB="ranlib"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649 done
3650 done
3651
3652 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3653 fi
3654 fi
3655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3656 if test -n "$ac_ct_RANLIB"; then
3657 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3658 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 RANLIB=$ac_ct_RANLIB
3665 else
3666 RANLIB="$ac_cv_prog_RANLIB"
3667 fi
3668
3669
3670 ac_config_files="$ac_config_files Makefile"
3671 ac_config_commands="$ac_config_commands default"
3672 cat >confcache <<\_ACEOF
3673 # This file is a shell script that caches the results of configure
3674 # tests run on this system so they can be shared between configure
3675 # scripts and configure runs, see configure's option --config-cache.
3676 # It is not useful on other systems. If it contains results you don't
3677 # want to keep, you may remove or edit it.
3678 #
3679 # config.status only pays attention to the cache file if you give it
3680 # the --recheck option to rerun configure.
3681 #
3682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3684 # following values.
3685
3686 _ACEOF
3687
3688 # The following way of writing the cache mishandles newlines in values,
3689 # but we know of no workaround that is simple, portable, and efficient.
3690 # So, don't put newlines in cache variables' values.
3691 # Ultrix sh set writes to stderr and can't be redirected directly,
3692 # and sets the high bit in the cache file unless we assign to the vars.
3693 {
3694 (set) 2>&1 |
3695 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3696 *ac_space=\ *)
3697 # `set' does not quote correctly, so add quotes (double-quote
3698 # substitution turns \\\\ into \\, and sed turns \\ into \).
3699 sed -n \
3700 "s/'/'\\\\''/g;
3701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3702 ;;
3703 *)
3704 # `set' quotes correctly as required by POSIX, so do not add quotes.
3705 sed -n \
3706 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3707 ;;
3708 esac;
3709 } |
3710 sed '
3711 t clear
3712 : clear
3713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3714 t end
3715 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3716 : end' >>confcache
3717 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3718 if test -w $cache_file; then
3719 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3720 cat confcache >$cache_file
3721 else
3722 echo "not updating unwritable cache $cache_file"
3723 fi
3724 fi
3725 rm -f confcache
3726
3727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3728 # Let make expand exec_prefix.
3729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3730
3731 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3732 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3733 # trailing colons and then remove the whole line if VPATH becomes empty
3734 # (actually we leave an empty line to preserve line numbers).
3735 if test "x$srcdir" = x.; then
3736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3737 s/:*\$(srcdir):*/:/;
3738 s/:*\${srcdir}:*/:/;
3739 s/:*@srcdir@:*/:/;
3740 s/^\([^=]*=[ ]*\):*/\1/;
3741 s/:*$//;
3742 s/^[^=]*=[ ]*$//;
3743 }'
3744 fi
3745
3746 DEFS=-DHAVE_CONFIG_H
3747
3748 ac_libobjs=
3749 ac_ltlibobjs=
3750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3751 # 1. Remove the extension, and $U if already installed.
3752 ac_i=`echo "$ac_i" |
3753 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3754 # 2. Add them.
3755 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3756 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3757 done
3758 LIBOBJS=$ac_libobjs
3759
3760 LTLIBOBJS=$ac_ltlibobjs
3761
3762
3763
3764 : ${CONFIG_STATUS=./config.status}
3765 ac_clean_files_save=$ac_clean_files
3766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3769 cat >$CONFIG_STATUS <<_ACEOF
3770 #! $SHELL
3771 # Generated by $as_me.
3772 # Run this file to recreate the current configuration.
3773 # Compiler output produced by configure, useful for debugging
3774 # configure, is in config.log if it exists.
3775
3776 debug=false
3777 ac_cs_recheck=false
3778 ac_cs_silent=false
3779 SHELL=\${CONFIG_SHELL-$SHELL}
3780 _ACEOF
3781
3782 cat >>$CONFIG_STATUS <<\_ACEOF
3783 ## --------------------- ##
3784 ## M4sh Initialization. ##
3785 ## --------------------- ##
3786
3787 # Be Bourne compatible
3788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3789 emulate sh
3790 NULLCMD=:
3791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3792 # is contrary to our usage. Disable this feature.
3793 alias -g '${1+"$@"}'='"$@"'
3794 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3795 set -o posix
3796 fi
3797 DUALCASE=1; export DUALCASE # for MKS sh
3798
3799 # Support unset when possible.
3800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3801 as_unset=unset
3802 else
3803 as_unset=false
3804 fi
3805
3806
3807 # Work around bugs in pre-3.0 UWIN ksh.
3808 $as_unset ENV MAIL MAILPATH
3809 PS1='$ '
3810 PS2='> '
3811 PS4='+ '
3812
3813 # NLS nuisances.
3814 for as_var in \
3815 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3816 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3817 LC_TELEPHONE LC_TIME
3818 do
3819 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3820 eval $as_var=C; export $as_var
3821 else
3822 $as_unset $as_var
3823 fi
3824 done
3825
3826 # Required to use basename.
3827 if expr a : '\(a\)' >/dev/null 2>&1; then
3828 as_expr=expr
3829 else
3830 as_expr=false
3831 fi
3832
3833 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3834 as_basename=basename
3835 else
3836 as_basename=false
3837 fi
3838
3839
3840 # Name of the executable.
3841 as_me=`$as_basename "$0" ||
3842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3843 X"$0" : 'X\(//\)$' \| \
3844 X"$0" : 'X\(/\)$' \| \
3845 . : '\(.\)' 2>/dev/null ||
3846 echo X/"$0" |
3847 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3848 /^X\/\(\/\/\)$/{ s//\1/; q; }
3849 /^X\/\(\/\).*/{ s//\1/; q; }
3850 s/.*/./; q'`
3851
3852
3853 # PATH needs CR, and LINENO needs CR and PATH.
3854 # Avoid depending upon Character Ranges.
3855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3858 as_cr_digits='0123456789'
3859 as_cr_alnum=$as_cr_Letters$as_cr_digits
3860
3861 # The user is always right.
3862 if test "${PATH_SEPARATOR+set}" != set; then
3863 echo "#! /bin/sh" >conf$$.sh
3864 echo "exit 0" >>conf$$.sh
3865 chmod +x conf$$.sh
3866 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3867 PATH_SEPARATOR=';'
3868 else
3869 PATH_SEPARATOR=:
3870 fi
3871 rm -f conf$$.sh
3872 fi
3873
3874
3875 as_lineno_1=$LINENO
3876 as_lineno_2=$LINENO
3877 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3878 test "x$as_lineno_1" != "x$as_lineno_2" &&
3879 test "x$as_lineno_3" = "x$as_lineno_2" || {
3880 # Find who we are. Look in the path if we contain no path at all
3881 # relative or not.
3882 case $0 in
3883 *[\\/]* ) as_myself=$0 ;;
3884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3890 done
3891
3892 ;;
3893 esac
3894 # We did not find ourselves, most probably we were run as `sh COMMAND'
3895 # in which case we are not to be found in the path.
3896 if test "x$as_myself" = x; then
3897 as_myself=$0
3898 fi
3899 if test ! -f "$as_myself"; then
3900 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3901 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3902 { (exit 1); exit 1; }; }
3903 fi
3904 case $CONFIG_SHELL in
3905 '')
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for as_base in sh bash ksh sh5; do
3912 case $as_dir in
3913 /*)
3914 if ("$as_dir/$as_base" -c '
3915 as_lineno_1=$LINENO
3916 as_lineno_2=$LINENO
3917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3918 test "x$as_lineno_1" != "x$as_lineno_2" &&
3919 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3920 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3921 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3922 CONFIG_SHELL=$as_dir/$as_base
3923 export CONFIG_SHELL
3924 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3925 fi;;
3926 esac
3927 done
3928 done
3929 ;;
3930 esac
3931
3932 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3933 # uniformly replaced by the line number. The first 'sed' inserts a
3934 # line-number line before each line; the second 'sed' does the real
3935 # work. The second script uses 'N' to pair each line-number line
3936 # with the numbered line, and appends trailing '-' during
3937 # substitution so that $LINENO is not a special case at line end.
3938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3939 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3940 sed '=' <$as_myself |
3941 sed '
3942 N
3943 s,$,-,
3944 : loop
3945 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3946 t loop
3947 s,-$,,
3948 s,^['$as_cr_digits']*\n,,
3949 ' >$as_me.lineno &&
3950 chmod +x $as_me.lineno ||
3951 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3952 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3953 { (exit 1); exit 1; }; }
3954
3955 # Don't try to exec as it changes $[0], causing all sort of problems
3956 # (the dirname of $[0] is not the place where we might find the
3957 # original and so on. Autoconf is especially sensible to this).
3958 . ./$as_me.lineno
3959 # Exit status is that of the last command.
3960 exit
3961 }
3962
3963
3964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3965 *c*,-n*) ECHO_N= ECHO_C='
3966 ' ECHO_T=' ' ;;
3967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3969 esac
3970
3971 if expr a : '\(a\)' >/dev/null 2>&1; then
3972 as_expr=expr
3973 else
3974 as_expr=false
3975 fi
3976
3977 rm -f conf$$ conf$$.exe conf$$.file
3978 echo >conf$$.file
3979 if ln -s conf$$.file conf$$ 2>/dev/null; then
3980 # We could just check for DJGPP; but this test a) works b) is more generic
3981 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3982 if test -f conf$$.exe; then
3983 # Don't use ln at all; we don't have any links
3984 as_ln_s='cp -p'
3985 else
3986 as_ln_s='ln -s'
3987 fi
3988 elif ln conf$$.file conf$$ 2>/dev/null; then
3989 as_ln_s=ln
3990 else
3991 as_ln_s='cp -p'
3992 fi
3993 rm -f conf$$ conf$$.exe conf$$.file
3994
3995 if mkdir -p . 2>/dev/null; then
3996 as_mkdir_p=:
3997 else
3998 test -d ./-p && rmdir ./-p
3999 as_mkdir_p=false
4000 fi
4001
4002 as_executable_p="test -f"
4003
4004 # Sed expression to map a string onto a valid CPP name.
4005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4006
4007 # Sed expression to map a string onto a valid variable name.
4008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4009
4010
4011 # IFS
4012 # We need space, tab and new line, in precisely that order.
4013 as_nl='
4014 '
4015 IFS=" $as_nl"
4016
4017 # CDPATH.
4018 $as_unset CDPATH
4019
4020 exec 6>&1
4021
4022 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4023 # report actual input values of CONFIG_FILES etc. instead of their
4024 # values after options handling. Logging --version etc. is OK.
4025 exec 5>>config.log
4026 {
4027 echo
4028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4029 ## Running $as_me. ##
4030 _ASBOX
4031 } >&5
4032 cat >&5 <<_CSEOF
4033
4034 This file was extended by $as_me, which was
4035 generated by GNU Autoconf 2.59. Invocation command line was
4036
4037 CONFIG_FILES = $CONFIG_FILES
4038 CONFIG_HEADERS = $CONFIG_HEADERS
4039 CONFIG_LINKS = $CONFIG_LINKS
4040 CONFIG_COMMANDS = $CONFIG_COMMANDS
4041 $ $0 $@
4042
4043 _CSEOF
4044 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4045 echo >&5
4046 _ACEOF
4047
4048 # Files that config.status was made for.
4049 if test -n "$ac_config_files"; then
4050 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4051 fi
4052
4053 if test -n "$ac_config_headers"; then
4054 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4055 fi
4056
4057 if test -n "$ac_config_links"; then
4058 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4059 fi
4060
4061 if test -n "$ac_config_commands"; then
4062 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4063 fi
4064
4065 cat >>$CONFIG_STATUS <<\_ACEOF
4066
4067 ac_cs_usage="\
4068 \`$as_me' instantiates files from templates according to the
4069 current configuration.
4070
4071 Usage: $0 [OPTIONS] [FILE]...
4072
4073 -h, --help print this help, then exit
4074 -V, --version print version number, then exit
4075 -q, --quiet do not print progress messages
4076 -d, --debug don't remove temporary files
4077 --recheck update $as_me by reconfiguring in the same conditions
4078 --file=FILE[:TEMPLATE]
4079 instantiate the configuration file FILE
4080 --header=FILE[:TEMPLATE]
4081 instantiate the configuration header FILE
4082
4083 Configuration files:
4084 $config_files
4085
4086 Configuration headers:
4087 $config_headers
4088
4089 Configuration commands:
4090 $config_commands
4091
4092 Report bugs to <bug-autoconf@gnu.org>."
4093 _ACEOF
4094
4095 cat >>$CONFIG_STATUS <<_ACEOF
4096 ac_cs_version="\\
4097 config.status
4098 configured by $0, generated by GNU Autoconf 2.59,
4099 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4100
4101 Copyright (C) 2003 Free Software Foundation, Inc.
4102 This config.status script is free software; the Free Software Foundation
4103 gives unlimited permission to copy, distribute and modify it."
4104 srcdir=$srcdir
4105 INSTALL="$INSTALL"
4106 _ACEOF
4107
4108 cat >>$CONFIG_STATUS <<\_ACEOF
4109 # If no file are specified by the user, then we need to provide default
4110 # value. By we need to know if files were specified by the user.
4111 ac_need_defaults=:
4112 while test $# != 0
4113 do
4114 case $1 in
4115 --*=*)
4116 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4117 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4118 ac_shift=:
4119 ;;
4120 -*)
4121 ac_option=$1
4122 ac_optarg=$2
4123 ac_shift=shift
4124 ;;
4125 *) # This is not an option, so the user has probably given explicit
4126 # arguments.
4127 ac_option=$1
4128 ac_need_defaults=false;;
4129 esac
4130
4131 case $ac_option in
4132 # Handling of the options.
4133 _ACEOF
4134 cat >>$CONFIG_STATUS <<\_ACEOF
4135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4136 ac_cs_recheck=: ;;
4137 --version | --vers* | -V )
4138 echo "$ac_cs_version"; exit 0 ;;
4139 --he | --h)
4140 # Conflict between --help and --header
4141 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4142 Try \`$0 --help' for more information." >&5
4143 echo "$as_me: error: ambiguous option: $1
4144 Try \`$0 --help' for more information." >&2;}
4145 { (exit 1); exit 1; }; };;
4146 --help | --hel | -h )
4147 echo "$ac_cs_usage"; exit 0 ;;
4148 --debug | --d* | -d )
4149 debug=: ;;
4150 --file | --fil | --fi | --f )
4151 $ac_shift
4152 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4153 ac_need_defaults=false;;
4154 --header | --heade | --head | --hea )
4155 $ac_shift
4156 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4157 ac_need_defaults=false;;
4158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4160 ac_cs_silent=: ;;
4161
4162 # This is an error.
4163 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4164 Try \`$0 --help' for more information." >&5
4165 echo "$as_me: error: unrecognized option: $1
4166 Try \`$0 --help' for more information." >&2;}
4167 { (exit 1); exit 1; }; } ;;
4168
4169 *) ac_config_targets="$ac_config_targets $1" ;;
4170
4171 esac
4172 shift
4173 done
4174
4175 ac_configure_extra_args=
4176
4177 if $ac_cs_silent; then
4178 exec 6>/dev/null
4179 ac_configure_extra_args="$ac_configure_extra_args --silent"
4180 fi
4181
4182 _ACEOF
4183 cat >>$CONFIG_STATUS <<_ACEOF
4184 if \$ac_cs_recheck; then
4185 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4186 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4187 fi
4188
4189 _ACEOF
4190
4191
4192
4193
4194
4195 cat >>$CONFIG_STATUS <<\_ACEOF
4196 for ac_config_target in $ac_config_targets
4197 do
4198 case "$ac_config_target" in
4199 # Handling of arguments.
4200 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4201 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4202 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4203 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4204 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4205 { (exit 1); exit 1; }; };;
4206 esac
4207 done
4208
4209 # If the user did not use the arguments to specify the items to instantiate,
4210 # then the envvar interface is used. Set only those that are not.
4211 # We use the long form for the default assignment because of an extremely
4212 # bizarre bug on SunOS 4.1.3.
4213 if $ac_need_defaults; then
4214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4217 fi
4218
4219 # Have a temporary directory for convenience. Make it in the build tree
4220 # simply because there is no reason to put it here, and in addition,
4221 # creating and moving files from /tmp can sometimes cause problems.
4222 # Create a temporary directory, and hook for its removal unless debugging.
4223 $debug ||
4224 {
4225 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4226 trap '{ (exit 1); exit 1; }' 1 2 13 15
4227 }
4228
4229 # Create a (secure) tmp directory for tmp files.
4230
4231 {
4232 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4233 test -n "$tmp" && test -d "$tmp"
4234 } ||
4235 {
4236 tmp=./confstat$$-$RANDOM
4237 (umask 077 && mkdir $tmp)
4238 } ||
4239 {
4240 echo "$me: cannot create a temporary directory in ." >&2
4241 { (exit 1); exit 1; }
4242 }
4243
4244 _ACEOF
4245
4246 cat >>$CONFIG_STATUS <<_ACEOF
4247
4248 #
4249 # CONFIG_FILES section.
4250 #
4251
4252 # No need to generate the scripts if there are no CONFIG_FILES.
4253 # This happens for instance when ./config.status config.h
4254 if test -n "\$CONFIG_FILES"; then
4255 # Protect against being on the right side of a sed subst in config.status.
4256 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4257 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4258 s,@sim_environment@,$sim_environment,;t t
4259 s,@sim_alignment@,$sim_alignment,;t t
4260 s,@sim_assert@,$sim_assert,;t t
4261 s,@sim_bitsize@,$sim_bitsize,;t t
4262 s,@sim_endian@,$sim_endian,;t t
4263 s,@sim_hostendian@,$sim_hostendian,;t t
4264 s,@sim_float@,$sim_float,;t t
4265 s,@sim_scache@,$sim_scache,;t t
4266 s,@sim_default_model@,$sim_default_model,;t t
4267 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
4268 s,@sim_hw_objs@,$sim_hw_objs,;t t
4269 s,@sim_hw@,$sim_hw,;t t
4270 s,@sim_inline@,$sim_inline,;t t
4271 s,@sim_packages@,$sim_packages,;t t
4272 s,@sim_regparm@,$sim_regparm,;t t
4273 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
4274 s,@sim_smp@,$sim_smp,;t t
4275 s,@sim_stdcall@,$sim_stdcall,;t t
4276 s,@sim_xor_endian@,$sim_xor_endian,;t t
4277 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
4278 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
4279 s,@SHELL@,$SHELL,;t t
4280 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4281 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4282 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4283 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4284 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4285 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4286 s,@exec_prefix@,$exec_prefix,;t t
4287 s,@prefix@,$prefix,;t t
4288 s,@program_transform_name@,$program_transform_name,;t t
4289 s,@bindir@,$bindir,;t t
4290 s,@sbindir@,$sbindir,;t t
4291 s,@libexecdir@,$libexecdir,;t t
4292 s,@datadir@,$datadir,;t t
4293 s,@sysconfdir@,$sysconfdir,;t t
4294 s,@sharedstatedir@,$sharedstatedir,;t t
4295 s,@localstatedir@,$localstatedir,;t t
4296 s,@libdir@,$libdir,;t t
4297 s,@includedir@,$includedir,;t t
4298 s,@oldincludedir@,$oldincludedir,;t t
4299 s,@infodir@,$infodir,;t t
4300 s,@mandir@,$mandir,;t t
4301 s,@build_alias@,$build_alias,;t t
4302 s,@host_alias@,$host_alias,;t t
4303 s,@target_alias@,$target_alias,;t t
4304 s,@DEFS@,$DEFS,;t t
4305 s,@ECHO_C@,$ECHO_C,;t t
4306 s,@ECHO_N@,$ECHO_N,;t t
4307 s,@ECHO_T@,$ECHO_T,;t t
4308 s,@LIBS@,$LIBS,;t t
4309 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4310 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4311 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4312 s,@CC@,$CC,;t t
4313 s,@CFLAGS@,$CFLAGS,;t t
4314 s,@LDFLAGS@,$LDFLAGS,;t t
4315 s,@CPPFLAGS@,$CPPFLAGS,;t t
4316 s,@ac_ct_CC@,$ac_ct_CC,;t t
4317 s,@EXEEXT@,$EXEEXT,;t t
4318 s,@OBJEXT@,$OBJEXT,;t t
4319 s,@build@,$build,;t t
4320 s,@build_cpu@,$build_cpu,;t t
4321 s,@build_vendor@,$build_vendor,;t t
4322 s,@build_os@,$build_os,;t t
4323 s,@host@,$host,;t t
4324 s,@host_cpu@,$host_cpu,;t t
4325 s,@host_vendor@,$host_vendor,;t t
4326 s,@host_os@,$host_os,;t t
4327 s,@target@,$target,;t t
4328 s,@target_cpu@,$target_cpu,;t t
4329 s,@target_vendor@,$target_vendor,;t t
4330 s,@target_os@,$target_os,;t t
4331 s,@CPP@,$CPP,;t t
4332 s,@EGREP@,$EGREP,;t t
4333 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
4334 s,@AR_FLAGS_FOR_BUILD@,$AR_FLAGS_FOR_BUILD,;t t
4335 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4336 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
4337 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
4338 s,@LIBIBERTY_LIB@,$LIBIBERTY_LIB,;t t
4339 s,@AR@,$AR,;t t
4340 s,@RANLIB@,$RANLIB,;t t
4341 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4342 s,@LIBOBJS@,$LIBOBJS,;t t
4343 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4344 CEOF
4345
4346 _ACEOF
4347
4348 cat >>$CONFIG_STATUS <<\_ACEOF
4349 # Split the substitutions into bite-sized pieces for seds with
4350 # small command number limits, like on Digital OSF/1 and HP-UX.
4351 ac_max_sed_lines=48
4352 ac_sed_frag=1 # Number of current file.
4353 ac_beg=1 # First line for current file.
4354 ac_end=$ac_max_sed_lines # Line after last line for current file.
4355 ac_more_lines=:
4356 ac_sed_cmds=
4357 while $ac_more_lines; do
4358 if test $ac_beg -gt 1; then
4359 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4360 else
4361 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4362 fi
4363 if test ! -s $tmp/subs.frag; then
4364 ac_more_lines=false
4365 else
4366 # The purpose of the label and of the branching condition is to
4367 # speed up the sed processing (if there are no `@' at all, there
4368 # is no need to browse any of the substitutions).
4369 # These are the two extra sed commands mentioned above.
4370 (echo ':t
4371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4372 if test -z "$ac_sed_cmds"; then
4373 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4374 else
4375 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4376 fi
4377 ac_sed_frag=`expr $ac_sed_frag + 1`
4378 ac_beg=$ac_end
4379 ac_end=`expr $ac_end + $ac_max_sed_lines`
4380 fi
4381 done
4382 if test -z "$ac_sed_cmds"; then
4383 ac_sed_cmds=cat
4384 fi
4385 fi # test -n "$CONFIG_FILES"
4386
4387 _ACEOF
4388 cat >>$CONFIG_STATUS <<\_ACEOF
4389 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4391 case $ac_file in
4392 - | *:- | *:-:* ) # input from stdin
4393 cat >$tmp/stdin
4394 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4396 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4398 * ) ac_file_in=$ac_file.in ;;
4399 esac
4400
4401 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4402 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4404 X"$ac_file" : 'X\(//\)[^/]' \| \
4405 X"$ac_file" : 'X\(//\)$' \| \
4406 X"$ac_file" : 'X\(/\)' \| \
4407 . : '\(.\)' 2>/dev/null ||
4408 echo X"$ac_file" |
4409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4411 /^X\(\/\/\)$/{ s//\1/; q; }
4412 /^X\(\/\).*/{ s//\1/; q; }
4413 s/.*/./; q'`
4414 { if $as_mkdir_p; then
4415 mkdir -p "$ac_dir"
4416 else
4417 as_dir="$ac_dir"
4418 as_dirs=
4419 while test ! -d "$as_dir"; do
4420 as_dirs="$as_dir $as_dirs"
4421 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4423 X"$as_dir" : 'X\(//\)[^/]' \| \
4424 X"$as_dir" : 'X\(//\)$' \| \
4425 X"$as_dir" : 'X\(/\)' \| \
4426 . : '\(.\)' 2>/dev/null ||
4427 echo X"$as_dir" |
4428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4430 /^X\(\/\/\)$/{ s//\1/; q; }
4431 /^X\(\/\).*/{ s//\1/; q; }
4432 s/.*/./; q'`
4433 done
4434 test ! -n "$as_dirs" || mkdir $as_dirs
4435 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4436 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4437 { (exit 1); exit 1; }; }; }
4438
4439 ac_builddir=.
4440
4441 if test "$ac_dir" != .; then
4442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4443 # A "../" for each directory in $ac_dir_suffix.
4444 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4445 else
4446 ac_dir_suffix= ac_top_builddir=
4447 fi
4448
4449 case $srcdir in
4450 .) # No --srcdir option. We are building in place.
4451 ac_srcdir=.
4452 if test -z "$ac_top_builddir"; then
4453 ac_top_srcdir=.
4454 else
4455 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4456 fi ;;
4457 [\\/]* | ?:[\\/]* ) # Absolute path.
4458 ac_srcdir=$srcdir$ac_dir_suffix;
4459 ac_top_srcdir=$srcdir ;;
4460 *) # Relative path.
4461 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4462 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4463 esac
4464
4465 # Do not use `cd foo && pwd` to compute absolute paths, because
4466 # the directories may not exist.
4467 case `pwd` in
4468 .) ac_abs_builddir="$ac_dir";;
4469 *)
4470 case "$ac_dir" in
4471 .) ac_abs_builddir=`pwd`;;
4472 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4473 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4474 esac;;
4475 esac
4476 case $ac_abs_builddir in
4477 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4478 *)
4479 case ${ac_top_builddir}. in
4480 .) ac_abs_top_builddir=$ac_abs_builddir;;
4481 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4482 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4483 esac;;
4484 esac
4485 case $ac_abs_builddir in
4486 .) ac_abs_srcdir=$ac_srcdir;;
4487 *)
4488 case $ac_srcdir in
4489 .) ac_abs_srcdir=$ac_abs_builddir;;
4490 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4491 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4492 esac;;
4493 esac
4494 case $ac_abs_builddir in
4495 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4496 *)
4497 case $ac_top_srcdir in
4498 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4499 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4500 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4501 esac;;
4502 esac
4503
4504
4505 case $INSTALL in
4506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4507 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4508 esac
4509
4510 if test x"$ac_file" != x-; then
4511 { echo "$as_me:$LINENO: creating $ac_file" >&5
4512 echo "$as_me: creating $ac_file" >&6;}
4513 rm -f "$ac_file"
4514 fi
4515 # Let's still pretend it is `configure' which instantiates (i.e., don't
4516 # use $as_me), people would be surprised to read:
4517 # /* config.h. Generated by config.status. */
4518 if test x"$ac_file" = x-; then
4519 configure_input=
4520 else
4521 configure_input="$ac_file. "
4522 fi
4523 configure_input=$configure_input"Generated from `echo $ac_file_in |
4524 sed 's,.*/,,'` by configure."
4525
4526 # First look for the input files in the build tree, otherwise in the
4527 # src tree.
4528 ac_file_inputs=`IFS=:
4529 for f in $ac_file_in; do
4530 case $f in
4531 -) echo $tmp/stdin ;;
4532 [\\/$]*)
4533 # Absolute (can't be DOS-style, as IFS=:)
4534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4535 echo "$as_me: error: cannot find input file: $f" >&2;}
4536 { (exit 1); exit 1; }; }
4537 echo "$f";;
4538 *) # Relative
4539 if test -f "$f"; then
4540 # Build tree
4541 echo "$f"
4542 elif test -f "$srcdir/$f"; then
4543 # Source tree
4544 echo "$srcdir/$f"
4545 else
4546 # /dev/null tree
4547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4548 echo "$as_me: error: cannot find input file: $f" >&2;}
4549 { (exit 1); exit 1; }; }
4550 fi;;
4551 esac
4552 done` || { (exit 1); exit 1; }
4553 _ACEOF
4554 cat >>$CONFIG_STATUS <<_ACEOF
4555 sed "$ac_vpsub
4556 $extrasub
4557 _ACEOF
4558 cat >>$CONFIG_STATUS <<\_ACEOF
4559 :t
4560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4561 s,@configure_input@,$configure_input,;t t
4562 s,@srcdir@,$ac_srcdir,;t t
4563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4564 s,@top_srcdir@,$ac_top_srcdir,;t t
4565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4566 s,@builddir@,$ac_builddir,;t t
4567 s,@abs_builddir@,$ac_abs_builddir,;t t
4568 s,@top_builddir@,$ac_top_builddir,;t t
4569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4570 s,@INSTALL@,$ac_INSTALL,;t t
4571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4572 rm -f $tmp/stdin
4573 if test x"$ac_file" != x-; then
4574 mv $tmp/out $ac_file
4575 else
4576 cat $tmp/out
4577 rm -f $tmp/out
4578 fi
4579
4580 done
4581 _ACEOF
4582 cat >>$CONFIG_STATUS <<\_ACEOF
4583
4584 #
4585 # CONFIG_HEADER section.
4586 #
4587
4588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4590 #
4591 # ac_d sets the value in "#define NAME VALUE" lines.
4592 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4593 ac_dB='[ ].*$,\1#\2'
4594 ac_dC=' '
4595 ac_dD=',;t'
4596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4597 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4598 ac_uB='$,\1#\2define\3'
4599 ac_uC=' '
4600 ac_uD=',;t'
4601
4602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4604 case $ac_file in
4605 - | *:- | *:-:* ) # input from stdin
4606 cat >$tmp/stdin
4607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4611 * ) ac_file_in=$ac_file.in ;;
4612 esac
4613
4614 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4615 echo "$as_me: creating $ac_file" >&6;}
4616
4617 # First look for the input files in the build tree, otherwise in the
4618 # src tree.
4619 ac_file_inputs=`IFS=:
4620 for f in $ac_file_in; do
4621 case $f in
4622 -) echo $tmp/stdin ;;
4623 [\\/$]*)
4624 # Absolute (can't be DOS-style, as IFS=:)
4625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4626 echo "$as_me: error: cannot find input file: $f" >&2;}
4627 { (exit 1); exit 1; }; }
4628 # Do quote $f, to prevent DOS paths from being IFS'd.
4629 echo "$f";;
4630 *) # Relative
4631 if test -f "$f"; then
4632 # Build tree
4633 echo "$f"
4634 elif test -f "$srcdir/$f"; then
4635 # Source tree
4636 echo "$srcdir/$f"
4637 else
4638 # /dev/null tree
4639 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4640 echo "$as_me: error: cannot find input file: $f" >&2;}
4641 { (exit 1); exit 1; }; }
4642 fi;;
4643 esac
4644 done` || { (exit 1); exit 1; }
4645 # Remove the trailing spaces.
4646 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4647
4648 _ACEOF
4649
4650 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4651 # `conftest.undefs', that substitutes the proper values into
4652 # config.h.in to produce config.h. The first handles `#define'
4653 # templates, and the second `#undef' templates.
4654 # And first: Protect against being on the right side of a sed subst in
4655 # config.status. Protect against being in an unquoted here document
4656 # in config.status.
4657 rm -f conftest.defines conftest.undefs
4658 # Using a here document instead of a string reduces the quoting nightmare.
4659 # Putting comments in sed scripts is not portable.
4660 #
4661 # `end' is used to avoid that the second main sed command (meant for
4662 # 0-ary CPP macros) applies to n-ary macro definitions.
4663 # See the Autoconf documentation for `clear'.
4664 cat >confdef2sed.sed <<\_ACEOF
4665 s/[\\&,]/\\&/g
4666 s,[\\$`],\\&,g
4667 t clear
4668 : clear
4669 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4670 t end
4671 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4672 : end
4673 _ACEOF
4674 # If some macros were called several times there might be several times
4675 # the same #defines, which is useless. Nevertheless, we may not want to
4676 # sort them, since we want the *last* AC-DEFINE to be honored.
4677 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4678 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4679 rm -f confdef2sed.sed
4680
4681 # This sed command replaces #undef with comments. This is necessary, for
4682 # example, in the case of _POSIX_SOURCE, which is predefined and required
4683 # on some systems where configure will not decide to define it.
4684 cat >>conftest.undefs <<\_ACEOF
4685 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4686 _ACEOF
4687
4688 # Break up conftest.defines because some shells have a limit on the size
4689 # of here documents, and old seds have small limits too (100 cmds).
4690 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4691 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4692 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4693 echo ' :' >>$CONFIG_STATUS
4694 rm -f conftest.tail
4695 while grep . conftest.defines >/dev/null
4696 do
4697 # Write a limited-size here document to $tmp/defines.sed.
4698 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4699 # Speed up: don't consider the non `#define' lines.
4700 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4701 # Work around the forget-to-reset-the-flag bug.
4702 echo 't clr' >>$CONFIG_STATUS
4703 echo ': clr' >>$CONFIG_STATUS
4704 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4705 echo 'CEOF
4706 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4707 rm -f $tmp/in
4708 mv $tmp/out $tmp/in
4709 ' >>$CONFIG_STATUS
4710 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4711 rm -f conftest.defines
4712 mv conftest.tail conftest.defines
4713 done
4714 rm -f conftest.defines
4715 echo ' fi # grep' >>$CONFIG_STATUS
4716 echo >>$CONFIG_STATUS
4717
4718 # Break up conftest.undefs because some shells have a limit on the size
4719 # of here documents, and old seds have small limits too (100 cmds).
4720 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4721 rm -f conftest.tail
4722 while grep . conftest.undefs >/dev/null
4723 do
4724 # Write a limited-size here document to $tmp/undefs.sed.
4725 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4726 # Speed up: don't consider the non `#undef'
4727 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4728 # Work around the forget-to-reset-the-flag bug.
4729 echo 't clr' >>$CONFIG_STATUS
4730 echo ': clr' >>$CONFIG_STATUS
4731 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4732 echo 'CEOF
4733 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4734 rm -f $tmp/in
4735 mv $tmp/out $tmp/in
4736 ' >>$CONFIG_STATUS
4737 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4738 rm -f conftest.undefs
4739 mv conftest.tail conftest.undefs
4740 done
4741 rm -f conftest.undefs
4742
4743 cat >>$CONFIG_STATUS <<\_ACEOF
4744 # Let's still pretend it is `configure' which instantiates (i.e., don't
4745 # use $as_me), people would be surprised to read:
4746 # /* config.h. Generated by config.status. */
4747 if test x"$ac_file" = x-; then
4748 echo "/* Generated by configure. */" >$tmp/config.h
4749 else
4750 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4751 fi
4752 cat $tmp/in >>$tmp/config.h
4753 rm -f $tmp/in
4754 if test x"$ac_file" != x-; then
4755 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4756 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4757 echo "$as_me: $ac_file is unchanged" >&6;}
4758 else
4759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4761 X"$ac_file" : 'X\(//\)[^/]' \| \
4762 X"$ac_file" : 'X\(//\)$' \| \
4763 X"$ac_file" : 'X\(/\)' \| \
4764 . : '\(.\)' 2>/dev/null ||
4765 echo X"$ac_file" |
4766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4768 /^X\(\/\/\)$/{ s//\1/; q; }
4769 /^X\(\/\).*/{ s//\1/; q; }
4770 s/.*/./; q'`
4771 { if $as_mkdir_p; then
4772 mkdir -p "$ac_dir"
4773 else
4774 as_dir="$ac_dir"
4775 as_dirs=
4776 while test ! -d "$as_dir"; do
4777 as_dirs="$as_dir $as_dirs"
4778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4780 X"$as_dir" : 'X\(//\)[^/]' \| \
4781 X"$as_dir" : 'X\(//\)$' \| \
4782 X"$as_dir" : 'X\(/\)' \| \
4783 . : '\(.\)' 2>/dev/null ||
4784 echo X"$as_dir" |
4785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4787 /^X\(\/\/\)$/{ s//\1/; q; }
4788 /^X\(\/\).*/{ s//\1/; q; }
4789 s/.*/./; q'`
4790 done
4791 test ! -n "$as_dirs" || mkdir $as_dirs
4792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4793 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4794 { (exit 1); exit 1; }; }; }
4795
4796 rm -f $ac_file
4797 mv $tmp/config.h $ac_file
4798 fi
4799 else
4800 cat $tmp/config.h
4801 rm -f $tmp/config.h
4802 fi
4803 done
4804 _ACEOF
4805 cat >>$CONFIG_STATUS <<\_ACEOF
4806
4807 #
4808 # CONFIG_COMMANDS section.
4809 #
4810 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4811 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4812 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4813 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4814 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4815 X"$ac_dest" : 'X\(//\)[^/]' \| \
4816 X"$ac_dest" : 'X\(//\)$' \| \
4817 X"$ac_dest" : 'X\(/\)' \| \
4818 . : '\(.\)' 2>/dev/null ||
4819 echo X"$ac_dest" |
4820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4822 /^X\(\/\/\)$/{ s//\1/; q; }
4823 /^X\(\/\).*/{ s//\1/; q; }
4824 s/.*/./; q'`
4825 { if $as_mkdir_p; then
4826 mkdir -p "$ac_dir"
4827 else
4828 as_dir="$ac_dir"
4829 as_dirs=
4830 while test ! -d "$as_dir"; do
4831 as_dirs="$as_dir $as_dirs"
4832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4834 X"$as_dir" : 'X\(//\)[^/]' \| \
4835 X"$as_dir" : 'X\(//\)$' \| \
4836 X"$as_dir" : 'X\(/\)' \| \
4837 . : '\(.\)' 2>/dev/null ||
4838 echo X"$as_dir" |
4839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4841 /^X\(\/\/\)$/{ s//\1/; q; }
4842 /^X\(\/\).*/{ s//\1/; q; }
4843 s/.*/./; q'`
4844 done
4845 test ! -n "$as_dirs" || mkdir $as_dirs
4846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4848 { (exit 1); exit 1; }; }; }
4849
4850 ac_builddir=.
4851
4852 if test "$ac_dir" != .; then
4853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4854 # A "../" for each directory in $ac_dir_suffix.
4855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4856 else
4857 ac_dir_suffix= ac_top_builddir=
4858 fi
4859
4860 case $srcdir in
4861 .) # No --srcdir option. We are building in place.
4862 ac_srcdir=.
4863 if test -z "$ac_top_builddir"; then
4864 ac_top_srcdir=.
4865 else
4866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4867 fi ;;
4868 [\\/]* | ?:[\\/]* ) # Absolute path.
4869 ac_srcdir=$srcdir$ac_dir_suffix;
4870 ac_top_srcdir=$srcdir ;;
4871 *) # Relative path.
4872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4874 esac
4875
4876 # Do not use `cd foo && pwd` to compute absolute paths, because
4877 # the directories may not exist.
4878 case `pwd` in
4879 .) ac_abs_builddir="$ac_dir";;
4880 *)
4881 case "$ac_dir" in
4882 .) ac_abs_builddir=`pwd`;;
4883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4885 esac;;
4886 esac
4887 case $ac_abs_builddir in
4888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4889 *)
4890 case ${ac_top_builddir}. in
4891 .) ac_abs_top_builddir=$ac_abs_builddir;;
4892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4894 esac;;
4895 esac
4896 case $ac_abs_builddir in
4897 .) ac_abs_srcdir=$ac_srcdir;;
4898 *)
4899 case $ac_srcdir in
4900 .) ac_abs_srcdir=$ac_abs_builddir;;
4901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4903 esac;;
4904 esac
4905 case $ac_abs_builddir in
4906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4907 *)
4908 case $ac_top_srcdir in
4909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4912 esac;;
4913 esac
4914
4915
4916 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4917 echo "$as_me: executing $ac_dest commands" >&6;}
4918 case $ac_dest in
4919 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
4920 esac
4921 done
4922 _ACEOF
4923
4924 cat >>$CONFIG_STATUS <<\_ACEOF
4925
4926 { (exit 0); exit 0; }
4927 _ACEOF
4928 chmod +x $CONFIG_STATUS
4929 ac_clean_files=$ac_clean_files_save
4930
4931
4932 # configure is writing to config.log, and then calls config.status.
4933 # config.status does its own redirection, appending to config.log.
4934 # Unfortunately, on DOS this fails, as config.log is still kept open
4935 # by configure, so config.status won't be able to write to it; its
4936 # output is simply discarded. So we exec the FD to /dev/null,
4937 # effectively closing config.log, so it can be properly (re)opened and
4938 # appended to by config.status. When coming back to configure, we
4939 # need to make the FD available again.
4940 if test "$no_create" != yes; then
4941 ac_cs_success=:
4942 ac_config_status_args=
4943 test "$silent" = yes &&
4944 ac_config_status_args="$ac_config_status_args --quiet"
4945 exec 5>/dev/null
4946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4947 exec 5>>config.log
4948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4949 # would make configure fail if this is the last instruction.
4950 $ac_cs_success || { (exit 1); exit 1; }
4951 fi
4952