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