PR target/18973
[official-gcc.git] / libcpp / configure
blob274fb0130e63ead41d10be424a34ee1cbf7c00fe
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
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 ## --------------------- ##
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
24 DUALCASE=1; export DUALCASE # for MKS sh
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
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
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
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
51 done
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
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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'`
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
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=:
98 rm -f conf$$.sh
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
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
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
156 esac
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 '
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; }; }
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
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
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
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
227 as_executable_p="test -f"
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'"
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
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`
251 exec 6>&1
254 # Initializations.
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}
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}
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'
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"
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 CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures cpplib to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cpplib :";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-werror-always enable -Werror despite compiler version
853 --disable-rpath do not hardcode runtime library paths
854 --enable-maintainer-mode enable rules only needed by maintainers
855 --enable-checking enable expensive run-time checks
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
862 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <gcc-bugs@gcc.gnu.org>.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
913 case `pwd` in
914 .) ac_abs_builddir="$ac_dir";;
916 case "$ac_dir" in
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
934 case $ac_srcdir in
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 esac;;
948 esac
950 cd $ac_dir
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
953 echo
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
956 echo
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
960 echo
961 $ac_configure --help
962 else
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 cd $ac_popdir
966 done
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971 cat <<\_ACEOF
972 cpplib configure
973 generated by GNU Autoconf 2.59
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by cpplib $as_me , which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 case ../config in
1324 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1325 *) ac_macro_dir=$srcdir/../config ;;
1326 esac
1327 if test -d "$ac_macro_dir"; then :
1328 else
1329 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1330 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1331 { (exit 1); exit 1; }; }
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
1344 elif test -f $ac_dir/shtool; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 break
1349 done
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1385 build=$ac_cv_build
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1407 host=$ac_cv_host
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1439 NONENONEs,x,x, &&
1440 program_prefix=${target_alias}-
1442 # Checks for programs.
1443 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1444 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1445 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1446 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 cat >conftest.make <<\_ACEOF
1450 all:
1451 @echo 'ac_maketemp="$(MAKE)"'
1452 _ACEOF
1453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1454 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1455 if test -n "$ac_maketemp"; then
1456 eval ac_cv_prog_make_${ac_make}_set=yes
1457 else
1458 eval ac_cv_prog_make_${ac_make}_set=no
1460 rm -f conftest.make
1462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 SET_MAKE=
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 SET_MAKE="MAKE=${MAKE-make}"
1472 # Find a good install program. We prefer a C program (faster),
1473 # so one script is as good as another. But avoid the broken or
1474 # incompatible versions:
1475 # SysV /etc/install, /usr/sbin/install
1476 # SunOS /usr/etc/install
1477 # IRIX /sbin/install
1478 # AIX /bin/install
1479 # AmigaOS /C/install, which installs bootblocks on floppy discs
1480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1483 # OS/2's system install, which has a completely different semantic
1484 # ./install, which can be erroneously created by make from ./install.sh.
1485 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1486 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1487 if test -z "$INSTALL"; then
1488 if test "${ac_cv_path_install+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 # Account for people who put trailing slashes in PATH elements.
1497 case $as_dir/ in
1498 ./ | .// | /cC/* | \
1499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1500 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1501 /usr/ucb/* ) ;;
1503 # OSF1 and SCO ODT 3.0 have their own names for install.
1504 # Don't use installbsd from OSF since it installs stuff as root
1505 # by default.
1506 for ac_prog in ginstall scoinst install; do
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1509 if test $ac_prog = install &&
1510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1513 elif test $ac_prog = install &&
1514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515 # program-specific install script used by HP pwplus--don't use.
1517 else
1518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519 break 3
1522 done
1523 done
1525 esac
1526 done
1530 if test "${ac_cv_path_install+set}" = set; then
1531 INSTALL=$ac_cv_path_install
1532 else
1533 # As a last resort, use the slow shell script. We don't cache a
1534 # path for INSTALL within a source directory, because that will
1535 # break other packages using the cache if that directory is
1536 # removed, or if the path is relative.
1537 INSTALL=$ac_install_sh
1540 echo "$as_me:$LINENO: result: $INSTALL" >&5
1541 echo "${ECHO_T}$INSTALL" >&6
1543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1544 # It thinks the first close brace ends the variable substitution.
1545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1551 ac_ext=c
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1556 if test -n "$ac_tool_prefix"; then
1557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1583 CC=$ac_cv_prog_CC
1584 if test -n "$CC"; then
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586 echo "${ECHO_T}$CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1593 if test -z "$ac_cv_prog_CC"; then
1594 ac_ct_CC=$CC
1595 # Extract the first word of "gcc", so it can be a program name with args.
1596 set dummy gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1616 done
1617 done
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 CC=$ac_ct_CC
1631 else
1632 CC="$ac_cv_prog_CC"
1635 if test -z "$CC"; then
1636 if test -n "$ac_tool_prefix"; then
1637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}cc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_CC="${ac_tool_prefix}cc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1658 done
1659 done
1663 CC=$ac_cv_prog_CC
1664 if test -n "$CC"; then
1665 echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1667 else
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1673 if test -z "$ac_cv_prog_CC"; then
1674 ac_ct_CC=$CC
1675 # Extract the first word of "cc", so it can be a program name with args.
1676 set dummy cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 if test -n "$ac_ct_CC"; then
1683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_ac_ct_CC="cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 break 2
1696 done
1697 done
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1705 else
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1710 CC=$ac_ct_CC
1711 else
1712 CC="$ac_cv_prog_CC"
1716 if test -z "$CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727 ac_prog_rejected=no
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1736 ac_prog_rejected=yes
1737 continue
1739 ac_cv_prog_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1746 if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy $ac_cv_prog_CC
1749 shift
1750 if test $# != 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1754 shift
1755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762 echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 if test -n "$ac_tool_prefix"; then
1772 for ac_prog in cl
1774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 break 2
1795 done
1796 done
1800 CC=$ac_cv_prog_CC
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1809 test -n "$CC" && break
1810 done
1812 if test -z "$CC"; then
1813 ac_ct_CC=$CC
1814 for ac_prog in cl
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 if test -n "$ac_ct_CC"; then
1824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_ac_ct_CC="$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1837 done
1838 done
1842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1843 if test -n "$ac_ct_CC"; then
1844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1845 echo "${ECHO_T}$ac_ct_CC" >&6
1846 else
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1851 test -n "$ac_ct_CC" && break
1852 done
1854 CC=$ac_ct_CC
1860 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: no acceptable C compiler found in \$PATH
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1866 # Provide some information about the compiler.
1867 echo "$as_me:$LINENO:" \
1868 "checking for C compiler version" >&5
1869 ac_compiler=`set X $ac_compile; echo $2`
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1871 (eval $ac_compiler --version </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1876 (eval $ac_compiler -v </dev/null >&5) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }
1880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1881 (eval $ac_compiler -V </dev/null >&5) 2>&5
1882 ac_status=$?
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }
1886 cat >conftest.$ac_ext <<_ACEOF
1887 /* confdefs.h. */
1888 _ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1894 main ()
1898 return 0;
1900 _ACEOF
1901 ac_clean_files_save=$ac_clean_files
1902 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1905 # of exeext.
1906 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1907 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1908 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910 (eval $ac_link_default) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # Find the output, starting from the most likely. This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1916 # resort.
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1920 ac_cv_exeext=
1921 # b.out is created by i960 compilers.
1922 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1924 test -f "$ac_file" || continue
1925 case $ac_file in
1926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1928 conftest.$ac_ext )
1929 # This is the source file.
1931 [ab].out )
1932 # We found the default executable, but exeext='' is most
1933 # certainly right.
1934 break;;
1935 *.* )
1936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 # FIXME: I believe we export ac_cv_exeext for Libtool,
1938 # but it would be cool to find out if it's true. Does anybody
1939 # maintain Libtool? --akim.
1940 export ac_cv_exeext
1941 break;;
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: C compiler cannot create executables
1953 See \`config.log' for more details." >&2;}
1954 { (exit 77); exit 77; }; }
1957 ac_exeext=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1964 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1965 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1966 # If not cross compiling, check that we can run a simple program.
1967 if test "$cross_compiling" != yes; then
1968 if { ac_try='./$ac_file'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 cross_compiling=no
1975 else
1976 if test "$cross_compiling" = maybe; then
1977 cross_compiling=yes
1978 else
1979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1980 If you meant to cross compile, use \`--host'.
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot run C compiled programs.
1983 If you meant to cross compile, use \`--host'.
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1989 echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1993 ac_clean_files=$ac_clean_files_save
1994 # Check the compiler produces executables we can run. If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1998 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1999 echo "${ECHO_T}$cross_compiling" >&6
2001 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2004 (eval $ac_link) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; then
2008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2010 # work properly (i.e., refer to `conftest.exe'), while it won't with
2011 # `rm'.
2012 for ac_file in conftest.exe conftest conftest.*; do
2013 test -f "$ac_file" || continue
2014 case $ac_file in
2015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017 export ac_cv_exeext
2018 break;;
2019 * ) break;;
2020 esac
2021 done
2022 else
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2030 rm -f conftest$ac_cv_exeext
2031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2032 echo "${ECHO_T}$ac_cv_exeext" >&6
2034 rm -f conftest.$ac_ext
2035 EXEEXT=$ac_cv_exeext
2036 ac_exeext=$EXEEXT
2037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2039 if test "${ac_cv_objext+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2050 main ()
2054 return 0;
2056 _ACEOF
2057 rm -f conftest.o conftest.obj
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2064 case $ac_file in
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2067 break;;
2068 esac
2069 done
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2083 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2084 echo "${ECHO_T}$ac_cv_objext" >&6
2085 OBJEXT=$ac_cv_objext
2086 ac_objext=$OBJEXT
2087 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2088 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092 cat >conftest.$ac_ext <<_ACEOF
2093 /* confdefs.h. */
2094 _ACEOF
2095 cat confdefs.h >>conftest.$ac_ext
2096 cat >>conftest.$ac_ext <<_ACEOF
2097 /* end confdefs.h. */
2100 main ()
2102 #ifndef __GNUC__
2103 choke me
2104 #endif
2107 return 0;
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>conftest.er1
2113 ac_status=$?
2114 grep -v '^ *+' conftest.er1 >conftest.err
2115 rm -f conftest.er1
2116 cat conftest.err >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -z "$ac_c_werror_flag"
2120 || test ! -s conftest.err'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; } &&
2126 { ac_try='test -s conftest.$ac_objext'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; }; then
2132 ac_compiler_gnu=yes
2133 else
2134 echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 ac_compiler_gnu=no
2139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2143 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2145 GCC=`test $ac_compiler_gnu = yes && echo yes`
2146 ac_test_CFLAGS=${CFLAGS+set}
2147 ac_save_CFLAGS=$CFLAGS
2148 CFLAGS="-g"
2149 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2151 if test "${ac_cv_prog_cc_g+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_g=yes
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_cv_prog_cc_g=no
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2202 if test "$ac_test_CFLAGS" = set; then
2203 CFLAGS=$ac_save_CFLAGS
2204 elif test $ac_cv_prog_cc_g = yes; then
2205 if test "$GCC" = yes; then
2206 CFLAGS="-g -O2"
2207 else
2208 CFLAGS="-g"
2210 else
2211 if test "$GCC" = yes; then
2212 CFLAGS="-O2"
2213 else
2214 CFLAGS=
2217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 ac_cv_prog_cc_stdc=no
2223 ac_save_CC=$CC
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230 #include <stdarg.h>
2231 #include <stdio.h>
2232 #include <sys/types.h>
2233 #include <sys/stat.h>
2234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2235 struct buf { int x; };
2236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2237 static char *e (p, i)
2238 char **p;
2239 int i;
2241 return p[i];
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2245 char *s;
2246 va_list v;
2247 va_start (v,p);
2248 s = g (p, va_arg (v,int));
2249 va_end (v);
2250 return s;
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2254 function prototypes and stuff, but not '\xHH' hex character constants.
2255 These don't provoke an error unfortunately, instead are silently treated
2256 as 'x'. The following induces an error, until -std1 is added to get
2257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2258 array size at least. It's necessary to write '\x00'==0 to get something
2259 that's true only with -std1. */
2260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2262 int test (int i, double x);
2263 struct s1 {int (*f) (int a);};
2264 struct s2 {int (*f) (double a);};
2265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2266 int argc;
2267 char **argv;
2269 main ()
2271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2273 return 0;
2275 _ACEOF
2276 # Don't try gcc -ansi; that turns off useful extensions and
2277 # breaks some systems' header files.
2278 # AIX -qlanglvl=ansi
2279 # Ultrix and OSF/1 -std1
2280 # HP-UX 10.20 and later -Ae
2281 # HP-UX older versions -Aa -D_HPUX_SOURCE
2282 # SVR4 -Xc -D__EXTENSIONS__
2283 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2285 CC="$ac_save_CC $ac_arg"
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_prog_cc_stdc=$ac_arg
2309 break
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.err conftest.$ac_objext
2316 done
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2318 CC=$ac_save_CC
2322 case "x$ac_cv_prog_cc_stdc" in
2323 x|xno)
2324 echo "$as_me:$LINENO: result: none needed" >&5
2325 echo "${ECHO_T}none needed" >&6 ;;
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2329 CC="$CC $ac_cv_prog_cc_stdc" ;;
2330 esac
2332 # Some people use a C++ compiler to compile C. Since we use `exit',
2333 # in C++ we need to declare it. In case someone uses the same compiler
2334 # for both compiling C and C++ we need to have the C++ compiler decide
2335 # the declaration of exit, since it's the most demanding environment.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #ifndef __cplusplus
2338 choke me
2339 #endif
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 for ac_declaration in \
2364 '' \
2365 'extern "C" void std::exit (int) throw (); using std::exit;' \
2366 'extern "C" void std::exit (int); using std::exit;' \
2367 'extern "C" void exit (int) throw ();' \
2368 'extern "C" void exit (int);' \
2369 'void exit (int);'
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2378 #include <stdlib.h>
2380 main ()
2382 exit (42);
2384 return 0;
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2414 continue
2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2423 $ac_declaration
2425 main ()
2427 exit (42);
2429 return 0;
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 break
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 rm -f conftest*
2463 if test -n "$ac_declaration"; then
2464 echo '#ifdef __cplusplus' >>confdefs.h
2465 echo $ac_declaration >>confdefs.h
2466 echo '#endif' >>confdefs.h
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_RANLIB+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$RANLIB"; then
2490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2508 RANLIB=$ac_cv_prog_RANLIB
2509 if test -n "$RANLIB"; then
2510 echo "$as_me:$LINENO: result: $RANLIB" >&5
2511 echo "${ECHO_T}$RANLIB" >&6
2512 else
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2518 if test -z "$ac_cv_prog_RANLIB"; then
2519 ac_ct_RANLIB=$RANLIB
2520 # Extract the first word of "ranlib", so it can be a program name with args.
2521 set dummy 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_ac_ct_RANLIB+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$ac_ct_RANLIB"; then
2528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
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_ac_ct_RANLIB="ranlib"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2544 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2548 if test -n "$ac_ct_RANLIB"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2551 else
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 RANLIB=$ac_ct_RANLIB
2557 else
2558 RANLIB="$ac_cv_prog_RANLIB"
2562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2563 for ac_prog in aclocal
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -n "$ACLOCAL"; then
2573 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ACLOCAL="$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2591 ACLOCAL=$ac_cv_prog_ACLOCAL
2592 if test -n "$ACLOCAL"; then
2593 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2594 echo "${ECHO_T}$ACLOCAL" >&6
2595 else
2596 echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2600 test -n "$ACLOCAL" && break
2601 done
2602 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2604 for ac_prog in autoconf
2606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2607 set dummy $ac_prog; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -n "$AUTOCONF"; then
2614 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_AUTOCONF="$ac_prog"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2627 done
2628 done
2632 AUTOCONF=$ac_cv_prog_AUTOCONF
2633 if test -n "$AUTOCONF"; then
2634 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2635 echo "${ECHO_T}$AUTOCONF" >&6
2636 else
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2641 test -n "$AUTOCONF" && break
2642 done
2643 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2645 for ac_prog in autoheader
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 if test -n "$AUTOHEADER"; then
2655 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_AUTOHEADER="$ac_prog"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2673 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2674 if test -n "$AUTOHEADER"; then
2675 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2676 echo "${ECHO_T}$AUTOHEADER" >&6
2677 else
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2682 test -n "$AUTOHEADER" && break
2683 done
2684 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2687 # Figure out what compiler warnings we can enable.
2688 # See config/warnings.m4 for details.
2691 WARN_CFLAGS=
2692 save_CFLAGS="$CFLAGS"
2693 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2694 -Wmissing-prototypes -Wold-style-definition; do
2695 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2697 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2698 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2699 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 CFLAGS="$option"
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2711 main ()
2715 return 0;
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 eval "$as_acx_Woption=yes"
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 eval "$as_acx_Woption=no"
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2751 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2752 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2753 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2756 done
2757 CFLAGS="$save_CFLAGS"
2759 WARN_PEDANTIC=
2760 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2761 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2762 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 save_CFLAGS="$CFLAGS"
2766 CFLAGS="-pedantic -Wno-long-long"
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_c_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 acx_cv_prog_cc_pedantic__Wno_long_long=no
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 CFLAGS="$save_CFLAGS"
2814 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2815 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2816 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2817 WARN_PEDANTIC="-pedantic -Wno-long-long"
2822 # Only enable with --enable-werror-always until existing warnings are
2823 # corrected.
2824 WERROR=
2825 # Check whether --enable-werror-always or --disable-werror-always was given.
2826 if test "${enable_werror_always+set}" = set; then
2827 enableval="$enable_werror_always"
2829 else
2830 enable_werror_always=no
2832 if test $enable_werror_always = yes; then
2833 WERROR=-Werror
2838 # Checks for header files.
2839 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2840 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2841 if test "${ac_cv_header_time+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 #include <sys/types.h>
2851 #include <sys/time.h>
2852 #include <time.h>
2855 main ()
2857 if ((struct tm *) 0)
2858 return 0;
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 ac_cv_header_time=yes
2886 else
2887 echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2890 ac_cv_header_time=no
2892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2895 echo "${ECHO_T}$ac_cv_header_time" >&6
2896 if test $ac_cv_header_time = yes; then
2898 cat >>confdefs.h <<\_ACEOF
2899 #define TIME_WITH_SYS_TIME 1
2900 _ACEOF
2904 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2905 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2906 if test "${gcc_cv_header_string+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <string.h>
2916 #include <strings.h>
2918 main ()
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 gcc_cv_header_string=yes
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 gcc_cv_header_string=no
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2957 echo "${ECHO_T}$gcc_cv_header_string" >&6
2958 if test $gcc_cv_header_string = yes; then
2960 cat >>confdefs.h <<\_ACEOF
2961 #define STRING_WITH_STRINGS 1
2962 _ACEOF
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2973 # On Suns, sometimes $CPP names a directory.
2974 if test -n "$CPP" && test -d "$CPP"; then
2975 CPP=
2977 if test -z "$CPP"; then
2978 if test "${ac_cv_prog_CPP+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 # Double quotes because CPP needs to be expanded
2982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2984 ac_preproc_ok=false
2985 for ac_c_preproc_warn_flag in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #ifdef __STDC__
3000 # include <limits.h>
3001 #else
3002 # include <assert.h>
3003 #endif
3004 Syntax error
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null; then
3014 if test -s conftest.err; then
3015 ac_cpp_err=$ac_c_preproc_warn_flag
3016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017 else
3018 ac_cpp_err=
3020 else
3021 ac_cpp_err=yes
3023 if test -z "$ac_cpp_err"; then
3025 else
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Broken: fails on valid input.
3030 continue
3032 rm -f conftest.err conftest.$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h. */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 else
3056 ac_cpp_err=
3058 else
3059 ac_cpp_err=yes
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3063 continue
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Passes both tests.
3069 ac_preproc_ok=:
3070 break
3072 rm -f conftest.err conftest.$ac_ext
3074 done
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then
3078 break
3081 done
3082 ac_cv_prog_CPP=$CPP
3085 CPP=$ac_cv_prog_CPP
3086 else
3087 ac_cv_prog_CPP=$CPP
3089 echo "$as_me:$LINENO: result: $CPP" >&5
3090 echo "${ECHO_T}$CPP" >&6
3091 ac_preproc_ok=false
3092 for ac_c_preproc_warn_flag in '' yes
3094 # Use a header file that comes with gcc, so configuring glibc
3095 # with a fresh cross-compiler works.
3096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3097 # <limits.h> exists even on freestanding compilers.
3098 # On the NeXT, cc -E runs the code through the compiler's parser,
3099 # not just through cpp. "Syntax error" is here to catch this case.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #ifdef __STDC__
3107 # include <limits.h>
3108 #else
3109 # include <assert.h>
3110 #endif
3111 Syntax error
3112 _ACEOF
3113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } >/dev/null; then
3121 if test -s conftest.err; then
3122 ac_cpp_err=$ac_c_preproc_warn_flag
3123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3124 else
3125 ac_cpp_err=
3127 else
3128 ac_cpp_err=yes
3130 if test -z "$ac_cpp_err"; then
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 # Broken: fails on valid input.
3137 continue
3139 rm -f conftest.err conftest.$ac_ext
3141 # OK, works on sane cases. Now check whether non-existent headers
3142 # can be detected and how.
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 #include <ac_nonexistent.h>
3150 _ACEOF
3151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null; then
3159 if test -s conftest.err; then
3160 ac_cpp_err=$ac_c_preproc_warn_flag
3161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 else
3163 ac_cpp_err=
3165 else
3166 ac_cpp_err=yes
3168 if test -z "$ac_cpp_err"; then
3169 # Broken: success on invalid input.
3170 continue
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 # Passes both tests.
3176 ac_preproc_ok=:
3177 break
3179 rm -f conftest.err conftest.$ac_ext
3181 done
3182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3183 rm -f conftest.err conftest.$ac_ext
3184 if $ac_preproc_ok; then
3186 else
3187 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3188 See \`config.log' for more details." >&5
3189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 echo "$as_me:$LINENO: checking for egrep" >&5
3202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3203 if test "${ac_cv_prog_egrep+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3207 then ac_cv_prog_egrep='grep -E'
3208 else ac_cv_prog_egrep='egrep'
3211 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3212 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3213 EGREP=$ac_cv_prog_egrep
3216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3218 if test "${ac_cv_header_stdc+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227 #include <stdlib.h>
3228 #include <stdarg.h>
3229 #include <string.h>
3230 #include <float.h>
3233 main ()
3237 return 0;
3239 _ACEOF
3240 rm -f conftest.$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -z "$ac_c_werror_flag"
3250 || test ! -s conftest.err'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_header_stdc=yes
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3267 ac_cv_header_stdc=no
3269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3271 if test $ac_cv_header_stdc = yes; then
3272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <string.h>
3281 _ACEOF
3282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283 $EGREP "memchr" >/dev/null 2>&1; then
3285 else
3286 ac_cv_header_stdc=no
3288 rm -f conftest*
3292 if test $ac_cv_header_stdc = yes; then
3293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <stdlib.h>
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "free" >/dev/null 2>&1; then
3306 else
3307 ac_cv_header_stdc=no
3309 rm -f conftest*
3313 if test $ac_cv_header_stdc = yes; then
3314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3315 if test "$cross_compiling" = yes; then
3317 else
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 #include <ctype.h>
3325 #if ((' ' & 0x0FF) == 0x020)
3326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3328 #else
3329 # define ISLOWER(c) \
3330 (('a' <= (c) && (c) <= 'i') \
3331 || ('j' <= (c) && (c) <= 'r') \
3332 || ('s' <= (c) && (c) <= 'z'))
3333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3334 #endif
3336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3338 main ()
3340 int i;
3341 for (i = 0; i < 256; i++)
3342 if (XOR (islower (i), ISLOWER (i))
3343 || toupper (i) != TOUPPER (i))
3344 exit(2);
3345 exit (0);
3347 _ACEOF
3348 rm -f conftest$ac_exeext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3350 (eval $ac_link) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3360 else
3361 echo "$as_me: program exited with status $ac_status" >&5
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 ( exit $ac_status )
3366 ac_cv_header_stdc=no
3368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3374 if test $ac_cv_header_stdc = yes; then
3376 cat >>confdefs.h <<\_ACEOF
3377 #define STDC_HEADERS 1
3378 _ACEOF
3382 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3393 inttypes.h stdint.h unistd.h
3395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3396 echo "$as_me:$LINENO: checking for $ac_header" >&5
3397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 $ac_includes_default
3409 #include <$ac_header>
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -z "$ac_c_werror_flag"
3421 || test ! -s conftest.err'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 eval "$as_ac_Header=yes"
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 eval "$as_ac_Header=no"
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3447 _ACEOF
3451 done
3464 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3465 stdlib.h strings.h string.h sys/file.h unistd.h
3467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469 echo "$as_me:$LINENO: checking for $ac_header" >&5
3470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3476 else
3477 # Is the header compilable?
3478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3487 #include <$ac_header>
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 ac_header_compiler=yes
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_header_compiler=no
3518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3520 echo "${ECHO_T}$ac_header_compiler" >&6
3522 # Is the header present?
3523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <$ac_header>
3532 _ACEOF
3533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev/null; then
3541 if test -s conftest.err; then
3542 ac_cpp_err=$ac_c_preproc_warn_flag
3543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3544 else
3545 ac_cpp_err=
3547 else
3548 ac_cpp_err=yes
3550 if test -z "$ac_cpp_err"; then
3551 ac_header_preproc=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 ac_header_preproc=no
3558 rm -f conftest.err conftest.$ac_ext
3559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3560 echo "${ECHO_T}$ac_header_preproc" >&6
3562 # So? What about this header?
3563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3564 yes:no: )
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3569 ac_header_preproc=yes
3571 no:yes:* )
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3585 cat <<\_ASBOX
3586 ## ----------------------------------- ##
3587 ## Report this to gcc-bugs@gcc.gnu.org ##
3588 ## ----------------------------------- ##
3589 _ASBOX
3591 sed "s/^/$as_me: WARNING: /" >&2
3593 esac
3594 echo "$as_me:$LINENO: checking for $ac_header" >&5
3595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 eval "$as_ac_Header=\$ac_header_preproc"
3601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3606 cat >>confdefs.h <<_ACEOF
3607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3608 _ACEOF
3612 done
3615 # Checks for typedefs, structures, and compiler characteristics.
3616 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3617 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3618 if test "${ac_cv_c_const+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 main ()
3631 /* FIXME: Include the comments suggested by Paul. */
3632 #ifndef __cplusplus
3633 /* Ultrix mips cc rejects this. */
3634 typedef int charset[2];
3635 const charset x;
3636 /* SunOS 4.1.1 cc rejects this. */
3637 char const *const *ccp;
3638 char **p;
3639 /* NEC SVR4.0.2 mips cc rejects this. */
3640 struct point {int x, y;};
3641 static struct point const zero = {0,0};
3642 /* AIX XL C 1.02.0.0 rejects this.
3643 It does not let you subtract one const X* pointer from another in
3644 an arm of an if-expression whose if-part is not a constant
3645 expression */
3646 const char *g = "string";
3647 ccp = &g + (g ? g-g : 0);
3648 /* HPUX 7.0 cc rejects these. */
3649 ++ccp;
3650 p = (char**) ccp;
3651 ccp = (char const *const *) p;
3652 { /* SCO 3.2v4 cc rejects this. */
3653 char *t;
3654 char const *s = 0 ? (char *) 0 : (char const *) 0;
3656 *t++ = 0;
3658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3659 int x[] = {25, 17};
3660 const int *foo = &x[0];
3661 ++foo;
3663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3664 typedef const int *iptr;
3665 iptr p = 0;
3666 ++p;
3668 { /* AIX XL C 1.02.0.0 rejects this saying
3669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3670 struct s { int j; const int *ap[3]; };
3671 struct s *b; b->j = 5;
3673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3674 const int foo = 10;
3676 #endif
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_c_const=yes
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 ac_cv_c_const=no
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3713 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3714 echo "${ECHO_T}$ac_cv_c_const" >&6
3715 if test $ac_cv_c_const = no; then
3717 cat >>confdefs.h <<\_ACEOF
3718 #define const
3719 _ACEOF
3723 echo "$as_me:$LINENO: checking for inline" >&5
3724 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3725 if test "${ac_cv_c_inline+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 ac_cv_c_inline=no
3729 for ac_kw in inline __inline__ __inline; do
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 #ifndef __cplusplus
3737 typedef int foo_t;
3738 static $ac_kw foo_t static_foo () {return 0; }
3739 $ac_kw foo_t foo () {return 0; }
3740 #endif
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_c_inline=$ac_kw; break
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772 done
3775 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3776 echo "${ECHO_T}$ac_cv_c_inline" >&6
3779 case $ac_cv_c_inline in
3780 inline | yes) ;;
3782 case $ac_cv_c_inline in
3783 no) ac_val=;;
3784 *) ac_val=$ac_cv_c_inline;;
3785 esac
3786 cat >>confdefs.h <<_ACEOF
3787 #ifndef __cplusplus
3788 #define inline $ac_val
3789 #endif
3790 _ACEOF
3792 esac
3794 echo "$as_me:$LINENO: checking for obstacks" >&5
3795 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3796 if test "${ac_cv_func_obstack+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #include "obstack.h"
3807 main ()
3809 struct obstack *mem; obstack_free(mem,(char *) 0)
3811 return 0;
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816 (eval $ac_link) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest$ac_exeext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_func_obstack=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_cv_func_obstack=no
3843 rm -f conftest.err conftest.$ac_objext \
3844 conftest$ac_exeext conftest.$ac_ext
3846 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3847 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3848 if test $ac_cv_func_obstack = yes; then
3850 cat >>confdefs.h <<\_ACEOF
3851 #define HAVE_OBSTACK 1
3852 _ACEOF
3854 else
3855 case $LIBOBJS in
3856 "obstack.$ac_objext" | \
3857 *" obstack.$ac_objext" | \
3858 "obstack.$ac_objext "* | \
3859 *" obstack.$ac_objext "* ) ;;
3860 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3861 esac
3865 echo "$as_me:$LINENO: checking for off_t" >&5
3866 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3867 if test "${ac_cv_type_off_t+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3878 main ()
3880 if ((off_t *) 0)
3881 return 0;
3882 if (sizeof (off_t))
3883 return 0;
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_c_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_type_off_t=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_type_off_t=no
3917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3920 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3921 if test $ac_cv_type_off_t = yes; then
3923 else
3925 cat >>confdefs.h <<_ACEOF
3926 #define off_t long
3927 _ACEOF
3931 echo "$as_me:$LINENO: checking for size_t" >&5
3932 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3933 if test "${ac_cv_type_size_t+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_includes_default
3944 main ()
3946 if ((size_t *) 0)
3947 return 0;
3948 if (sizeof (size_t))
3949 return 0;
3951 return 0;
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } &&
3963 { ac_try='test -z "$ac_c_werror_flag"
3964 || test ! -s conftest.err'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; } &&
3970 { ac_try='test -s conftest.$ac_objext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_cv_type_size_t=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_type_size_t=no
3983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3986 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3987 if test $ac_cv_type_size_t = yes; then
3989 else
3991 cat >>confdefs.h <<_ACEOF
3992 #define size_t unsigned
3993 _ACEOF
3997 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3998 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3999 if test "${ac_cv_struct_tm+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 #include <sys/types.h>
4009 #include <time.h>
4012 main ()
4014 struct tm *tp; tp->tm_sec;
4016 return 0;
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_struct_tm=time.h
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cv_struct_tm=sys/time.h
4048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4051 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4052 if test $ac_cv_struct_tm = sys/time.h; then
4054 cat >>confdefs.h <<\_ACEOF
4055 #define TM_IN_SYS_TIME 1
4056 _ACEOF
4060 echo "$as_me:$LINENO: checking for int" >&5
4061 echo $ECHO_N "checking for int... $ECHO_C" >&6
4062 if test "${ac_cv_type_int+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 $ac_includes_default
4073 main ()
4075 if ((int *) 0)
4076 return 0;
4077 if (sizeof (int))
4078 return 0;
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_type_int=yes
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_type_int=no
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4115 echo "${ECHO_T}$ac_cv_type_int" >&6
4117 echo "$as_me:$LINENO: checking size of int" >&5
4118 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4119 if test "${ac_cv_sizeof_int+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122 if test "$ac_cv_type_int" = yes; then
4123 # The cast to unsigned long works around a bug in the HP C Compiler
4124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4126 # This bug is HP SR number 8606223364.
4127 if test "$cross_compiling" = yes; then
4128 # Depending upon the size, compute the lo and hi bounds.
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4137 main ()
4139 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4140 test_array [0] = 0
4143 return 0;
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_lo=0 ac_mid=0
4169 while :; do
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4178 main ()
4180 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4181 test_array [0] = 0
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_hi=$ac_mid; break
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_lo=`expr $ac_mid + 1`
4215 if test $ac_lo -le $ac_mid; then
4216 ac_lo= ac_hi=
4217 break
4219 ac_mid=`expr 2 '*' $ac_mid + 1`
4221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222 done
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 $ac_includes_default
4235 main ()
4237 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4238 test_array [0] = 0
4241 return 0;
4243 _ACEOF
4244 rm -f conftest.$ac_objext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4246 (eval $ac_compile) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try='test -z "$ac_c_werror_flag"
4254 || test ! -s conftest.err'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 (eval $ac_try) 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 ac_hi=-1 ac_mid=-1
4267 while :; do
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4276 main ()
4278 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4279 test_array [0] = 0
4282 return 0;
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_lo=$ac_mid; break
4308 else
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_hi=`expr '(' $ac_mid ')' - 1`
4313 if test $ac_mid -le $ac_hi; then
4314 ac_lo= ac_hi=
4315 break
4317 ac_mid=`expr 2 '*' $ac_mid`
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 done
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ac_lo= ac_hi=
4327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4330 # Binary search between lo and hi bounds.
4331 while test "x$ac_lo" != "x$ac_hi"; do
4332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 $ac_includes_default
4341 main ()
4343 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4344 test_array [0] = 0
4347 return 0;
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 ac_hi=$ac_mid
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 ac_lo=`expr '(' $ac_mid ')' + 1`
4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380 done
4381 case $ac_lo in
4382 ?*) ac_cv_sizeof_int=$ac_lo;;
4383 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4384 See \`config.log' for more details." >&5
4385 echo "$as_me: error: cannot compute sizeof (int), 77
4386 See \`config.log' for more details." >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388 esac
4389 else
4390 if test "$cross_compiling" = yes; then
4391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4392 See \`config.log' for more details." >&5
4393 echo "$as_me: error: cannot run test program while cross compiling
4394 See \`config.log' for more details." >&2;}
4395 { (exit 1); exit 1; }; }
4396 else
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 $ac_includes_default
4404 long longval () { return (long) (sizeof (int)); }
4405 unsigned long ulongval () { return (long) (sizeof (int)); }
4406 #include <stdio.h>
4407 #include <stdlib.h>
4409 main ()
4412 FILE *f = fopen ("conftest.val", "w");
4413 if (! f)
4414 exit (1);
4415 if (((long) (sizeof (int))) < 0)
4417 long i = longval ();
4418 if (i != ((long) (sizeof (int))))
4419 exit (1);
4420 fprintf (f, "%ld\n", i);
4422 else
4424 unsigned long i = ulongval ();
4425 if (i != ((long) (sizeof (int))))
4426 exit (1);
4427 fprintf (f, "%lu\n", i);
4429 exit (ferror (f) || fclose (f) != 0);
4432 return 0;
4434 _ACEOF
4435 rm -f conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_sizeof_int=`cat conftest.val`
4447 else
4448 echo "$as_me: program exited with status $ac_status" >&5
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ( exit $ac_status )
4453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: cannot compute sizeof (int), 77
4456 See \`config.log' for more details." >&2;}
4457 { (exit 1); exit 1; }; }
4459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462 rm -f conftest.val
4463 else
4464 ac_cv_sizeof_int=0
4467 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4468 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4469 cat >>confdefs.h <<_ACEOF
4470 #define SIZEOF_INT $ac_cv_sizeof_int
4471 _ACEOF
4474 echo "$as_me:$LINENO: checking for long" >&5
4475 echo $ECHO_N "checking for long... $ECHO_C" >&6
4476 if test "${ac_cv_type_long+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4487 main ()
4489 if ((long *) 0)
4490 return 0;
4491 if (sizeof (long))
4492 return 0;
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_cv_type_long=yes
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ac_cv_type_long=no
4526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4529 echo "${ECHO_T}$ac_cv_type_long" >&6
4531 echo "$as_me:$LINENO: checking size of long" >&5
4532 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4533 if test "${ac_cv_sizeof_long+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 if test "$ac_cv_type_long" = yes; then
4537 # The cast to unsigned long works around a bug in the HP C Compiler
4538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4540 # This bug is HP SR number 8606223364.
4541 if test "$cross_compiling" = yes; then
4542 # Depending upon the size, compute the lo and hi bounds.
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4551 main ()
4553 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4554 test_array [0] = 0
4557 return 0;
4559 _ACEOF
4560 rm -f conftest.$ac_objext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -z "$ac_c_werror_flag"
4570 || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_lo=0 ac_mid=0
4583 while :; do
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4592 main ()
4594 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4595 test_array [0] = 0
4598 return 0;
4600 _ACEOF
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_hi=$ac_mid; break
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_lo=`expr $ac_mid + 1`
4629 if test $ac_lo -le $ac_mid; then
4630 ac_lo= ac_hi=
4631 break
4633 ac_mid=`expr 2 '*' $ac_mid + 1`
4635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 done
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4649 main ()
4651 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4652 test_array [0] = 0
4655 return 0;
4657 _ACEOF
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -z "$ac_c_werror_flag"
4668 || test ! -s conftest.err'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 ac_hi=-1 ac_mid=-1
4681 while :; do
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 $ac_includes_default
4690 main ()
4692 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4693 test_array [0] = 0
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_lo=$ac_mid; break
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_hi=`expr '(' $ac_mid ')' - 1`
4727 if test $ac_mid -le $ac_hi; then
4728 ac_lo= ac_hi=
4729 break
4731 ac_mid=`expr 2 '*' $ac_mid`
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 done
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 ac_lo= ac_hi=
4741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 # Binary search between lo and hi bounds.
4745 while test "x$ac_lo" != "x$ac_hi"; do
4746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4755 main ()
4757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4758 test_array [0] = 0
4761 return 0;
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_hi=$ac_mid
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 ac_lo=`expr '(' $ac_mid ')' + 1`
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 done
4795 case $ac_lo in
4796 ?*) ac_cv_sizeof_long=$ac_lo;;
4797 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4798 See \`config.log' for more details." >&5
4799 echo "$as_me: error: cannot compute sizeof (long), 77
4800 See \`config.log' for more details." >&2;}
4801 { (exit 1); exit 1; }; } ;;
4802 esac
4803 else
4804 if test "$cross_compiling" = yes; then
4805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4806 See \`config.log' for more details." >&5
4807 echo "$as_me: error: cannot run test program while cross compiling
4808 See \`config.log' for more details." >&2;}
4809 { (exit 1); exit 1; }; }
4810 else
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4818 long longval () { return (long) (sizeof (long)); }
4819 unsigned long ulongval () { return (long) (sizeof (long)); }
4820 #include <stdio.h>
4821 #include <stdlib.h>
4823 main ()
4826 FILE *f = fopen ("conftest.val", "w");
4827 if (! f)
4828 exit (1);
4829 if (((long) (sizeof (long))) < 0)
4831 long i = longval ();
4832 if (i != ((long) (sizeof (long))))
4833 exit (1);
4834 fprintf (f, "%ld\n", i);
4836 else
4838 unsigned long i = ulongval ();
4839 if (i != ((long) (sizeof (long))))
4840 exit (1);
4841 fprintf (f, "%lu\n", i);
4843 exit (ferror (f) || fclose (f) != 0);
4846 return 0;
4848 _ACEOF
4849 rm -f conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851 (eval $ac_link) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_sizeof_long=`cat conftest.val`
4861 else
4862 echo "$as_me: program exited with status $ac_status" >&5
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ( exit $ac_status )
4867 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4868 See \`config.log' for more details." >&5
4869 echo "$as_me: error: cannot compute sizeof (long), 77
4870 See \`config.log' for more details." >&2;}
4871 { (exit 1); exit 1; }; }
4873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4876 rm -f conftest.val
4877 else
4878 ac_cv_sizeof_long=0
4881 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4882 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4883 cat >>confdefs.h <<_ACEOF
4884 #define SIZEOF_LONG $ac_cv_sizeof_long
4885 _ACEOF
4893 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
4894 fwrite_unlocked fprintf_unlocked
4896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4897 echo "$as_me:$LINENO: checking for $ac_func" >&5
4898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4899 if eval "test \"\${$as_ac_var+set}\" = set"; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4910 #define $ac_func innocuous_$ac_func
4912 /* System header to define __stub macros and hopefully few prototypes,
4913 which can conflict with char $ac_func (); below.
4914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 <limits.h> exists even on freestanding compilers. */
4917 #ifdef __STDC__
4918 # include <limits.h>
4919 #else
4920 # include <assert.h>
4921 #endif
4923 #undef $ac_func
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 #ifdef __cplusplus
4927 extern "C"
4929 #endif
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char $ac_func ();
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 choke me
4938 #else
4939 char (*f) () = $ac_func;
4940 #endif
4941 #ifdef __cplusplus
4943 #endif
4946 main ()
4948 return f != $ac_func;
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955 (eval $ac_link) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try='test -z "$ac_c_werror_flag"
4963 || test ! -s conftest.err'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; } &&
4969 { ac_try='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 eval "$as_ac_var=yes"
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 eval "$as_ac_var=no"
4982 rm -f conftest.err conftest.$ac_objext \
4983 conftest$ac_exeext conftest.$ac_ext
4985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4987 if test `eval echo '${'$as_ac_var'}'` = yes; then
4988 cat >>confdefs.h <<_ACEOF
4989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4990 _ACEOF
4993 done
4995 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4996 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4997 if test "${ac_cv_have_decl_abort+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5008 main ()
5010 #ifndef abort
5011 char *p = (char *) abort;
5012 #endif
5015 return 0;
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest.$ac_objext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_have_decl_abort=yes
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_have_decl_abort=no
5047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5050 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5051 if test $ac_cv_have_decl_abort = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define HAVE_DECL_ABORT 1
5055 _ACEOF
5058 else
5059 cat >>confdefs.h <<_ACEOF
5060 #define HAVE_DECL_ABORT 0
5061 _ACEOF
5065 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5066 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5067 if test "${ac_cv_have_decl_errno+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 main ()
5080 #ifndef errno
5081 char *p = (char *) errno;
5082 #endif
5085 return 0;
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_have_decl_errno=yes
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_cv_have_decl_errno=no
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5120 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5121 if test $ac_cv_have_decl_errno = yes; then
5123 cat >>confdefs.h <<_ACEOF
5124 #define HAVE_DECL_ERRNO 1
5125 _ACEOF
5128 else
5129 cat >>confdefs.h <<_ACEOF
5130 #define HAVE_DECL_ERRNO 0
5131 _ACEOF
5135 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5136 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5137 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5148 main ()
5150 #ifndef putc_unlocked
5151 char *p = (char *) putc_unlocked;
5152 #endif
5155 return 0;
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_have_decl_putc_unlocked=yes
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 ac_cv_have_decl_putc_unlocked=no
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5190 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5191 if test $ac_cv_have_decl_putc_unlocked = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_DECL_PUTC_UNLOCKED 1
5195 _ACEOF
5198 else
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_DECL_PUTC_UNLOCKED 0
5201 _ACEOF
5205 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5206 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5207 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5218 main ()
5220 #ifndef fputc_unlocked
5221 char *p = (char *) fputc_unlocked;
5222 #endif
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_have_decl_fputc_unlocked=yes
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_have_decl_fputc_unlocked=no
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5260 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5261 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_DECL_FPUTC_UNLOCKED 1
5265 _ACEOF
5268 else
5269 cat >>confdefs.h <<_ACEOF
5270 #define HAVE_DECL_FPUTC_UNLOCKED 0
5271 _ACEOF
5275 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5276 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5277 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5288 main ()
5290 #ifndef fputs_unlocked
5291 char *p = (char *) fputs_unlocked;
5292 #endif
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_have_decl_fputs_unlocked=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 ac_cv_have_decl_fputs_unlocked=no
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5330 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5331 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define HAVE_DECL_FPUTS_UNLOCKED 1
5335 _ACEOF
5338 else
5339 cat >>confdefs.h <<_ACEOF
5340 #define HAVE_DECL_FPUTS_UNLOCKED 0
5341 _ACEOF
5345 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5346 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5347 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 $ac_includes_default
5358 main ()
5360 #ifndef fwrite_unlocked
5361 char *p = (char *) fwrite_unlocked;
5362 #endif
5365 return 0;
5367 _ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_have_decl_fwrite_unlocked=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_have_decl_fwrite_unlocked=no
5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5400 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5401 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define HAVE_DECL_FWRITE_UNLOCKED 1
5405 _ACEOF
5408 else
5409 cat >>confdefs.h <<_ACEOF
5410 #define HAVE_DECL_FWRITE_UNLOCKED 0
5411 _ACEOF
5415 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5416 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5417 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 main ()
5430 #ifndef fprintf_unlocked
5431 char *p = (char *) fprintf_unlocked;
5432 #endif
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_have_decl_fprintf_unlocked=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_have_decl_fprintf_unlocked=no
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5470 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5471 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5475 _ACEOF
5478 else
5479 cat >>confdefs.h <<_ACEOF
5480 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5481 _ACEOF
5488 # Checks for library functions.
5489 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5490 # for constant arguments. Useless!
5491 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5492 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5493 if test "${ac_cv_working_alloca_h+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <alloca.h>
5504 main ()
5506 char *p = (char *) alloca (2 * sizeof (int));
5508 return 0;
5510 _ACEOF
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5513 (eval $ac_link) 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_c_werror_flag"
5521 || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_working_alloca_h=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_cv_working_alloca_h=no
5540 rm -f conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5544 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5545 if test $ac_cv_working_alloca_h = yes; then
5547 cat >>confdefs.h <<\_ACEOF
5548 #define HAVE_ALLOCA_H 1
5549 _ACEOF
5553 echo "$as_me:$LINENO: checking for alloca" >&5
5554 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5555 if test "${ac_cv_func_alloca_works+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #ifdef __GNUC__
5565 # define alloca __builtin_alloca
5566 #else
5567 # ifdef _MSC_VER
5568 # include <malloc.h>
5569 # define alloca _alloca
5570 # else
5571 # if HAVE_ALLOCA_H
5572 # include <alloca.h>
5573 # else
5574 # ifdef _AIX
5575 #pragma alloca
5576 # else
5577 # ifndef alloca /* predefined by HP cc +Olibcalls */
5578 char *alloca ();
5579 # endif
5580 # endif
5581 # endif
5582 # endif
5583 #endif
5586 main ()
5588 char *p = (char *) alloca (1);
5590 return 0;
5592 _ACEOF
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_func_alloca_works=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_func_alloca_works=no
5622 rm -f conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5626 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5628 if test $ac_cv_func_alloca_works = yes; then
5630 cat >>confdefs.h <<\_ACEOF
5631 #define HAVE_ALLOCA 1
5632 _ACEOF
5634 else
5635 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5636 # that cause trouble. Some versions do not even contain alloca or
5637 # contain a buggy version. If you still want to use their alloca,
5638 # use ar to extract alloca.o from them instead of compiling alloca.c.
5640 ALLOCA=alloca.$ac_objext
5642 cat >>confdefs.h <<\_ACEOF
5643 #define C_ALLOCA 1
5644 _ACEOF
5647 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5648 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5649 if test "${ac_cv_os_cray+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #if defined(CRAY) && ! defined(CRAY2)
5659 webecray
5660 #else
5661 wenotbecray
5662 #endif
5664 _ACEOF
5665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "webecray" >/dev/null 2>&1; then
5667 ac_cv_os_cray=yes
5668 else
5669 ac_cv_os_cray=no
5671 rm -f conftest*
5674 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5675 echo "${ECHO_T}$ac_cv_os_cray" >&6
5676 if test $ac_cv_os_cray = yes; then
5677 for ac_func in _getb67 GETB67 getb67; do
5678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679 echo "$as_me:$LINENO: checking for $ac_func" >&5
5680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5681 if eval "test \"\${$as_ac_var+set}\" = set"; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5692 #define $ac_func innocuous_$ac_func
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func (); below.
5696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 <limits.h> exists even on freestanding compilers. */
5699 #ifdef __STDC__
5700 # include <limits.h>
5701 #else
5702 # include <assert.h>
5703 #endif
5705 #undef $ac_func
5707 /* Override any gcc2 internal prototype to avoid an error. */
5708 #ifdef __cplusplus
5709 extern "C"
5711 #endif
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5714 char $ac_func ();
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719 choke me
5720 #else
5721 char (*f) () = $ac_func;
5722 #endif
5723 #ifdef __cplusplus
5725 #endif
5728 main ()
5730 return f != $ac_func;
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 eval "$as_ac_var=yes"
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 eval "$as_ac_var=no"
5764 rm -f conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5769 if test `eval echo '${'$as_ac_var'}'` = yes; then
5771 cat >>confdefs.h <<_ACEOF
5772 #define CRAY_STACKSEG_END $ac_func
5773 _ACEOF
5775 break
5778 done
5781 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5782 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5783 if test "${ac_cv_c_stack_direction+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 if test "$cross_compiling" = yes; then
5787 ac_cv_c_stack_direction=0
5788 else
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5796 find_stack_direction ()
5798 static char *addr = 0;
5799 auto char dummy;
5800 if (addr == 0)
5802 addr = &dummy;
5803 return find_stack_direction ();
5805 else
5806 return (&dummy > addr) ? 1 : -1;
5810 main ()
5812 exit (find_stack_direction () < 0);
5814 _ACEOF
5815 rm -f conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_c_stack_direction=1
5827 else
5828 echo "$as_me: program exited with status $ac_status" >&5
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 ( exit $ac_status )
5833 ac_cv_c_stack_direction=-1
5835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5838 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5839 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5841 cat >>confdefs.h <<_ACEOF
5842 #define STACK_DIRECTION $ac_cv_c_stack_direction
5843 _ACEOF
5848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5850 if test "${ac_cv_header_stdc+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <stdlib.h>
5860 #include <stdarg.h>
5861 #include <string.h>
5862 #include <float.h>
5865 main ()
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_header_stdc=yes
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_cv_header_stdc=no
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5903 if test $ac_cv_header_stdc = yes; then
5904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <string.h>
5913 _ACEOF
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "memchr" >/dev/null 2>&1; then
5917 else
5918 ac_cv_header_stdc=no
5920 rm -f conftest*
5924 if test $ac_cv_header_stdc = yes; then
5925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #include <stdlib.h>
5934 _ACEOF
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 $EGREP "free" >/dev/null 2>&1; then
5938 else
5939 ac_cv_header_stdc=no
5941 rm -f conftest*
5945 if test $ac_cv_header_stdc = yes; then
5946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5947 if test "$cross_compiling" = yes; then
5949 else
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 #include <ctype.h>
5957 #if ((' ' & 0x0FF) == 0x020)
5958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5960 #else
5961 # define ISLOWER(c) \
5962 (('a' <= (c) && (c) <= 'i') \
5963 || ('j' <= (c) && (c) <= 'r') \
5964 || ('s' <= (c) && (c) <= 'z'))
5965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5966 #endif
5968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5970 main ()
5972 int i;
5973 for (i = 0; i < 256; i++)
5974 if (XOR (islower (i), ISLOWER (i))
5975 || toupper (i) != TOUPPER (i))
5976 exit(2);
5977 exit (0);
5979 _ACEOF
5980 rm -f conftest$ac_exeext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5992 else
5993 echo "$as_me: program exited with status $ac_status" >&5
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ( exit $ac_status )
5998 ac_cv_header_stdc=no
6000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6006 if test $ac_cv_header_stdc = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define STDC_HEADERS 1
6010 _ACEOF
6015 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6016 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6017 if test "${am_cv_langinfo_codeset+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <langinfo.h>
6028 main ()
6030 char* cs = nl_langinfo(CODESET);
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 am_cv_langinfo_codeset=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 am_cv_langinfo_codeset=no
6064 rm -f conftest.err conftest.$ac_objext \
6065 conftest$ac_exeext conftest.$ac_ext
6068 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6069 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6070 if test $am_cv_langinfo_codeset = yes; then
6072 cat >>confdefs.h <<\_ACEOF
6073 #define HAVE_LANGINFO_CODESET 1
6074 _ACEOF
6078 # If we haven't got the data from the intl directory,
6079 # assume NLS is disabled.
6080 USE_NLS=no
6081 LIBINTL=
6082 LIBINTL_DEP=
6083 INCINTL=
6084 XGETTEXT=
6085 GMSGFMT=
6086 POSUB=
6087 if test -f ../intl/config.intl; then
6088 . ../intl/config.intl
6090 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6091 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6092 if test x"$USE_NLS" != xyes; then
6093 echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6
6095 else
6096 echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6
6099 cat >>confdefs.h <<\_ACEOF
6100 #define ENABLE_NLS 1
6101 _ACEOF
6104 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6105 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6106 # Look for .po and .gmo files in the source directory.
6107 CATALOGS=
6108 XLINGUAS=
6109 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6110 # If there aren't any .gmo files the shell will give us the
6111 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6112 # weeded out.
6113 case "$cat" in *\**)
6114 continue;;
6115 esac
6116 # The quadruple backslash is collapsed to a double backslash
6117 # by the backticks, then collapsed again by the double quotes,
6118 # leaving us with one backslash in the sed expression (right
6119 # before the dot that mustn't act as a wildcard).
6120 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6121 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6122 # The user is allowed to set LINGUAS to a list of languages to
6123 # install catalogs for. If it's empty that means "all of them."
6124 if test "x$LINGUAS" = x; then
6125 CATALOGS="$CATALOGS $cat"
6126 XLINGUAS="$XLINGUAS $lang"
6127 else
6128 case "$LINGUAS" in *$lang*)
6129 CATALOGS="$CATALOGS $cat"
6130 XLINGUAS="$XLINGUAS $lang"
6132 esac
6134 done
6135 LINGUAS="$XLINGUAS"
6136 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6137 echo "${ECHO_T}$LINGUAS" >&6
6140 echo "$as_me:$LINENO: checking for uchar" >&5
6141 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
6142 if test "${gcc_cv_type_uchar+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6152 #include <sys/types.h>
6155 main ()
6157 if ((uchar *)0) return 0;
6158 if (sizeof(uchar)) return 0;
6160 return 0;
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag"
6173 || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_type_uchar=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_cv_type_uchar=no
6192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6194 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6195 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6196 if test $ac_cv_type_uchar = yes; then
6198 cat >>confdefs.h <<\_ACEOF
6199 #define HAVE_UCHAR 1
6200 _ACEOF
6205 if test "X$prefix" = "XNONE"; then
6206 acl_final_prefix="$ac_default_prefix"
6207 else
6208 acl_final_prefix="$prefix"
6210 if test "X$exec_prefix" = "XNONE"; then
6211 acl_final_exec_prefix='${prefix}'
6212 else
6213 acl_final_exec_prefix="$exec_prefix"
6215 acl_save_prefix="$prefix"
6216 prefix="$acl_final_prefix"
6217 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6218 prefix="$acl_save_prefix"
6221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then
6223 withval="$with_gnu_ld"
6224 test "$withval" = no || with_gnu_ld=yes
6225 else
6226 with_gnu_ld=no
6228 # Prepare PATH_SEPARATOR.
6229 # The user is always right.
6230 if test "${PATH_SEPARATOR+set}" != set; then
6231 echo "#! /bin/sh" >conf$$.sh
6232 echo "exit 0" >>conf$$.sh
6233 chmod +x conf$$.sh
6234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6235 PATH_SEPARATOR=';'
6236 else
6237 PATH_SEPARATOR=:
6239 rm -f conf$$.sh
6241 ac_prog=ld
6242 if test "$GCC" = yes; then
6243 # Check if gcc -print-prog-name=ld gives a path.
6244 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6245 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6246 case $host in
6247 *-*-mingw*)
6248 # gcc leaves a trailing carriage return which upsets mingw
6249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6252 esac
6253 case $ac_prog in
6254 # Accept absolute paths.
6255 [\\/]* | [A-Za-z]:[\\/]*)
6256 re_direlt='/[^/][^/]*/\.\./'
6257 # Canonicalize the path of ld
6258 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6260 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6261 done
6262 test -z "$LD" && LD="$ac_prog"
6265 # If it fails, then pretend we aren't using GCC.
6266 ac_prog=ld
6269 # If it is relative, then search for the first ld in PATH.
6270 with_gnu_ld=unknown
6272 esac
6273 elif test "$with_gnu_ld" = yes; then
6274 echo "$as_me:$LINENO: checking for GNU ld" >&5
6275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6276 else
6277 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6280 if test "${acl_cv_path_LD+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 if test -z "$LD"; then
6284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6285 for ac_dir in $PATH; do
6286 test -z "$ac_dir" && ac_dir=.
6287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6288 acl_cv_path_LD="$ac_dir/$ac_prog"
6289 # Check to see if the program is GNU ld. I'd rather use --version,
6290 # but apparently some GNU ld's only accept -v.
6291 # Break only if it was the GNU/non-GNU ld that we prefer.
6292 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6293 test "$with_gnu_ld" != no && break
6294 else
6295 test "$with_gnu_ld" != yes && break
6298 done
6299 IFS="$ac_save_ifs"
6300 else
6301 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6305 LD="$acl_cv_path_LD"
6306 if test -n "$LD"; then
6307 echo "$as_me:$LINENO: result: $LD" >&5
6308 echo "${ECHO_T}$LD" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6315 { (exit 1); exit 1; }; }
6316 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6318 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6322 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6323 acl_cv_prog_gnu_ld=yes
6324 else
6325 acl_cv_prog_gnu_ld=no
6328 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6329 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6330 with_gnu_ld=$acl_cv_prog_gnu_ld
6334 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6335 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6336 if test "${acl_cv_rpath+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6340 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6341 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6342 . ./conftest.sh
6343 rm -f ./conftest.sh
6344 acl_cv_rpath=done
6347 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6348 echo "${ECHO_T}$acl_cv_rpath" >&6
6349 wl="$acl_cv_wl"
6350 libext="$acl_cv_libext"
6351 shlibext="$acl_cv_shlibext"
6352 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6353 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6354 hardcode_direct="$acl_cv_hardcode_direct"
6355 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6356 # Check whether --enable-rpath or --disable-rpath was given.
6357 if test "${enable_rpath+set}" = set; then
6358 enableval="$enable_rpath"
6360 else
6361 enable_rpath=yes
6370 use_additional=yes
6372 acl_save_prefix="$prefix"
6373 prefix="$acl_final_prefix"
6374 acl_save_exec_prefix="$exec_prefix"
6375 exec_prefix="$acl_final_exec_prefix"
6377 eval additional_includedir=\"$includedir\"
6378 eval additional_libdir=\"$libdir\"
6380 exec_prefix="$acl_save_exec_prefix"
6381 prefix="$acl_save_prefix"
6384 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6385 if test "${with_libiconv_prefix+set}" = set; then
6386 withval="$with_libiconv_prefix"
6388 if test "X$withval" = "Xno"; then
6389 use_additional=no
6390 else
6391 if test "X$withval" = "X"; then
6393 acl_save_prefix="$prefix"
6394 prefix="$acl_final_prefix"
6395 acl_save_exec_prefix="$exec_prefix"
6396 exec_prefix="$acl_final_exec_prefix"
6398 eval additional_includedir=\"$includedir\"
6399 eval additional_libdir=\"$libdir\"
6401 exec_prefix="$acl_save_exec_prefix"
6402 prefix="$acl_save_prefix"
6404 else
6405 additional_includedir="$withval/include"
6406 additional_libdir="$withval/lib"
6411 LIBICONV=
6412 LTLIBICONV=
6413 INCICONV=
6414 rpathdirs=
6415 ltrpathdirs=
6416 names_already_handled=
6417 names_next_round='iconv '
6418 while test -n "$names_next_round"; do
6419 names_this_round="$names_next_round"
6420 names_next_round=
6421 for name in $names_this_round; do
6422 already_handled=
6423 for n in $names_already_handled; do
6424 if test "$n" = "$name"; then
6425 already_handled=yes
6426 break
6428 done
6429 if test -z "$already_handled"; then
6430 names_already_handled="$names_already_handled $name"
6431 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6432 eval value=\"\$HAVE_LIB$uppername\"
6433 if test -n "$value"; then
6434 if test "$value" = yes; then
6435 eval value=\"\$LIB$uppername\"
6436 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6437 eval value=\"\$LTLIB$uppername\"
6438 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6439 else
6442 else
6443 found_dir=
6444 found_la=
6445 found_so=
6446 found_a=
6447 if test $use_additional = yes; then
6448 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6449 found_dir="$additional_libdir"
6450 found_so="$additional_libdir/lib$name.$shlibext"
6451 if test -f "$additional_libdir/lib$name.la"; then
6452 found_la="$additional_libdir/lib$name.la"
6454 else
6455 if test -f "$additional_libdir/lib$name.$libext"; then
6456 found_dir="$additional_libdir"
6457 found_a="$additional_libdir/lib$name.$libext"
6458 if test -f "$additional_libdir/lib$name.la"; then
6459 found_la="$additional_libdir/lib$name.la"
6464 if test "X$found_dir" = "X"; then
6465 for x in $LDFLAGS $LTLIBICONV; do
6467 acl_save_prefix="$prefix"
6468 prefix="$acl_final_prefix"
6469 acl_save_exec_prefix="$exec_prefix"
6470 exec_prefix="$acl_final_exec_prefix"
6471 eval x=\"$x\"
6472 exec_prefix="$acl_save_exec_prefix"
6473 prefix="$acl_save_prefix"
6475 case "$x" in
6476 -L*)
6477 dir=`echo "X$x" | sed -e 's/^X-L//'`
6478 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6479 found_dir="$dir"
6480 found_so="$dir/lib$name.$shlibext"
6481 if test -f "$dir/lib$name.la"; then
6482 found_la="$dir/lib$name.la"
6484 else
6485 if test -f "$dir/lib$name.$libext"; then
6486 found_dir="$dir"
6487 found_a="$dir/lib$name.$libext"
6488 if test -f "$dir/lib$name.la"; then
6489 found_la="$dir/lib$name.la"
6494 esac
6495 if test "X$found_dir" != "X"; then
6496 break
6498 done
6500 if test "X$found_dir" != "X"; then
6501 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6502 if test "X$found_so" != "X"; then
6503 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6505 else
6506 haveit=
6507 for x in $ltrpathdirs; do
6508 if test "X$x" = "X$found_dir"; then
6509 haveit=yes
6510 break
6512 done
6513 if test -z "$haveit"; then
6514 ltrpathdirs="$ltrpathdirs $found_dir"
6516 if test "$hardcode_direct" = yes; then
6517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6518 else
6519 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6521 haveit=
6522 for x in $rpathdirs; do
6523 if test "X$x" = "X$found_dir"; then
6524 haveit=yes
6525 break
6527 done
6528 if test -z "$haveit"; then
6529 rpathdirs="$rpathdirs $found_dir"
6531 else
6532 haveit=
6533 for x in $LDFLAGS $LIBICONV; do
6535 acl_save_prefix="$prefix"
6536 prefix="$acl_final_prefix"
6537 acl_save_exec_prefix="$exec_prefix"
6538 exec_prefix="$acl_final_exec_prefix"
6539 eval x=\"$x\"
6540 exec_prefix="$acl_save_exec_prefix"
6541 prefix="$acl_save_prefix"
6543 if test "X$x" = "X-L$found_dir"; then
6544 haveit=yes
6545 break
6547 done
6548 if test -z "$haveit"; then
6549 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6551 if test "$hardcode_minus_L" != no; then
6552 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6553 else
6554 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6559 else
6560 if test "X$found_a" != "X"; then
6561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6562 else
6563 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6566 additional_includedir=
6567 case "$found_dir" in
6568 */lib | */lib/)
6569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6570 additional_includedir="$basedir/include"
6572 esac
6573 if test "X$additional_includedir" != "X"; then
6574 if test "X$additional_includedir" != "X/usr/include"; then
6575 haveit=
6576 if test "X$additional_includedir" = "X/usr/local/include"; then
6577 if test -n "$GCC"; then
6578 case $host_os in
6579 linux*) haveit=yes;;
6580 esac
6583 if test -z "$haveit"; then
6584 for x in $CPPFLAGS $INCICONV; do
6586 acl_save_prefix="$prefix"
6587 prefix="$acl_final_prefix"
6588 acl_save_exec_prefix="$exec_prefix"
6589 exec_prefix="$acl_final_exec_prefix"
6590 eval x=\"$x\"
6591 exec_prefix="$acl_save_exec_prefix"
6592 prefix="$acl_save_prefix"
6594 if test "X$x" = "X-I$additional_includedir"; then
6595 haveit=yes
6596 break
6598 done
6599 if test -z "$haveit"; then
6600 if test -d "$additional_includedir"; then
6601 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6607 if test -n "$found_la"; then
6608 save_libdir="$libdir"
6609 case "$found_la" in
6610 */* | *\\*) . "$found_la" ;;
6611 *) . "./$found_la" ;;
6612 esac
6613 libdir="$save_libdir"
6614 for dep in $dependency_libs; do
6615 case "$dep" in
6616 -L*)
6617 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6618 if test "X$additional_libdir" != "X/usr/lib"; then
6619 haveit=
6620 if test "X$additional_libdir" = "X/usr/local/lib"; then
6621 if test -n "$GCC"; then
6622 case $host_os in
6623 linux*) haveit=yes;;
6624 esac
6627 if test -z "$haveit"; then
6628 haveit=
6629 for x in $LDFLAGS $LIBICONV; do
6631 acl_save_prefix="$prefix"
6632 prefix="$acl_final_prefix"
6633 acl_save_exec_prefix="$exec_prefix"
6634 exec_prefix="$acl_final_exec_prefix"
6635 eval x=\"$x\"
6636 exec_prefix="$acl_save_exec_prefix"
6637 prefix="$acl_save_prefix"
6639 if test "X$x" = "X-L$additional_libdir"; then
6640 haveit=yes
6641 break
6643 done
6644 if test -z "$haveit"; then
6645 if test -d "$additional_libdir"; then
6646 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6649 haveit=
6650 for x in $LDFLAGS $LTLIBICONV; do
6652 acl_save_prefix="$prefix"
6653 prefix="$acl_final_prefix"
6654 acl_save_exec_prefix="$exec_prefix"
6655 exec_prefix="$acl_final_exec_prefix"
6656 eval x=\"$x\"
6657 exec_prefix="$acl_save_exec_prefix"
6658 prefix="$acl_save_prefix"
6660 if test "X$x" = "X-L$additional_libdir"; then
6661 haveit=yes
6662 break
6664 done
6665 if test -z "$haveit"; then
6666 if test -d "$additional_libdir"; then
6667 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6673 -R*)
6674 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6675 if test "$enable_rpath" != no; then
6676 haveit=
6677 for x in $rpathdirs; do
6678 if test "X$x" = "X$dir"; then
6679 haveit=yes
6680 break
6682 done
6683 if test -z "$haveit"; then
6684 rpathdirs="$rpathdirs $dir"
6686 haveit=
6687 for x in $ltrpathdirs; do
6688 if test "X$x" = "X$dir"; then
6689 haveit=yes
6690 break
6692 done
6693 if test -z "$haveit"; then
6694 ltrpathdirs="$ltrpathdirs $dir"
6698 -l*)
6699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6701 *.la)
6702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6705 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6708 esac
6709 done
6711 else
6712 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6717 done
6718 done
6719 if test "X$rpathdirs" != "X"; then
6720 if test -n "$hardcode_libdir_separator"; then
6721 alldirs=
6722 for found_dir in $rpathdirs; do
6723 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6724 done
6725 acl_save_libdir="$libdir"
6726 libdir="$alldirs"
6727 eval flag=\"$hardcode_libdir_flag_spec\"
6728 libdir="$acl_save_libdir"
6729 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6730 else
6731 for found_dir in $rpathdirs; do
6732 acl_save_libdir="$libdir"
6733 libdir="$found_dir"
6734 eval flag=\"$hardcode_libdir_flag_spec\"
6735 libdir="$acl_save_libdir"
6736 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6737 done
6740 if test "X$ltrpathdirs" != "X"; then
6741 for found_dir in $ltrpathdirs; do
6742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6743 done
6752 am_save_CPPFLAGS="$CPPFLAGS"
6754 for element in $INCICONV; do
6755 haveit=
6756 for x in $CPPFLAGS; do
6758 acl_save_prefix="$prefix"
6759 prefix="$acl_final_prefix"
6760 acl_save_exec_prefix="$exec_prefix"
6761 exec_prefix="$acl_final_exec_prefix"
6762 eval x=\"$x\"
6763 exec_prefix="$acl_save_exec_prefix"
6764 prefix="$acl_save_prefix"
6766 if test "X$x" = "X$element"; then
6767 haveit=yes
6768 break
6770 done
6771 if test -z "$haveit"; then
6772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6774 done
6777 echo "$as_me:$LINENO: checking for iconv" >&5
6778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6779 if test "${am_cv_func_iconv+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6783 am_cv_func_iconv="no, consider installing GNU libiconv"
6784 am_cv_lib_iconv=no
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <stdlib.h>
6792 #include <iconv.h>
6794 main ()
6796 iconv_t cd = iconv_open("","");
6797 iconv(cd,NULL,NULL,NULL,NULL);
6798 iconv_close(cd);
6800 return 0;
6802 _ACEOF
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805 (eval $ac_link) 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } &&
6812 { ac_try='test -z "$ac_c_werror_flag"
6813 || test ! -s conftest.err'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; } &&
6819 { ac_try='test -s conftest$ac_exeext'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 am_cv_func_iconv=yes
6826 else
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6831 rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 if test "$am_cv_func_iconv" != yes; then
6834 am_save_LIBS="$LIBS"
6835 LIBS="$LIBS $LIBICONV"
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <stdlib.h>
6843 #include <iconv.h>
6845 main ()
6847 iconv_t cd = iconv_open("","");
6848 iconv(cd,NULL,NULL,NULL,NULL);
6849 iconv_close(cd);
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext conftest$ac_exeext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856 (eval $ac_link) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest$ac_exeext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 am_cv_lib_iconv=yes
6877 am_cv_func_iconv=yes
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6883 rm -f conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 LIBS="$am_save_LIBS"
6889 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6890 echo "${ECHO_T}$am_cv_func_iconv" >&6
6891 if test "$am_cv_func_iconv" = yes; then
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_ICONV 1
6895 _ACEOF
6898 if test "$am_cv_lib_iconv" = yes; then
6899 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6900 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6901 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6902 echo "${ECHO_T}$LIBICONV" >&6
6903 else
6904 CPPFLAGS="$am_save_CPPFLAGS"
6905 LIBICONV=
6906 LTLIBICONV=
6911 if test "$am_cv_func_iconv" = yes; then
6912 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6913 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6914 if test "${am_cv_proto_iconv+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6925 #include <stdlib.h>
6926 #include <iconv.h>
6927 extern
6928 #ifdef __cplusplus
6930 #endif
6931 #if defined(__STDC__) || defined(__cplusplus)
6932 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6933 #else
6934 size_t iconv();
6935 #endif
6938 main ()
6942 return 0;
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 am_cv_proto_iconv_arg1=""
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 am_cv_proto_iconv_arg1="const"
6974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 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);"
6978 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6979 echo "$as_me:$LINENO: result: ${ac_t:-
6980 }$am_cv_proto_iconv" >&5
6981 echo "${ECHO_T}${ac_t:-
6982 }$am_cv_proto_iconv" >&6
6984 cat >>confdefs.h <<_ACEOF
6985 #define ICONV_CONST $am_cv_proto_iconv_arg1
6986 _ACEOF
6991 # More defines and substitutions.
6992 PACKAGE="$PACKAGE_TARNAME"
6994 cat >>confdefs.h <<_ACEOF
6995 #define PACKAGE "$PACKAGE"
6996 _ACEOF
7000 if test "x$enable_nls" != xno; then
7001 USED_CATALOGS='$(CATALOGS)'
7002 else
7003 USED_CATALOGS=
7007 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7008 if test "${enable_maintainer_mode+set}" = set; then
7009 enableval="$enable_maintainer_mode"
7011 else
7012 enable_maintainer_mode=no
7015 if test "x$enable_maintainer_mode" = xno; then
7016 MAINT='#'
7017 else
7018 MAINT=
7022 # Check whether --enable-checking or --disable-checking was given.
7023 if test "${enable_checking+set}" = set; then
7024 enableval="$enable_checking"
7026 else
7027 enable_checking=no
7030 if test $enable_checking != no ; then
7032 cat >>confdefs.h <<\_ACEOF
7033 #define ENABLE_CHECKING 1
7034 _ACEOF
7039 case $target in
7040 alpha*-*-* | \
7041 arm*-*-eabi* | \
7042 arm*-*-symbianelf* | \
7043 x86_64-*-* | \
7044 ia64-*-* | \
7045 hppa*64*-*-* | parisc*64*-*-* | \
7046 i[34567]86-*-solaris2.1[0-9]* | \
7047 mips*-*-* | \
7048 mmix-*-* | \
7049 powerpc*-*-* | \
7050 rs6000*-*-* | \
7051 s390*-*-* | \
7052 sparc64*-*-* | ultrasparc-*-freebsd* | \
7053 sparcv9-*-solaris2* | \
7054 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
7055 sh[123456789l]*-*-*)
7056 need_64bit_hwint=yes ;;
7058 need_64bit_hwint=no ;;
7059 esac
7061 case $need_64bit_hwint:$ac_cv_sizeof_long in
7062 *:8 | no:*) host_wide_int=long ;;
7063 *) host_wide_int='long long' ;;
7064 esac
7068 cat >>confdefs.h <<_ACEOF
7069 #define HOST_WIDE_INT $host_wide_int
7070 _ACEOF
7073 # Output.
7075 ac_config_headers="$ac_config_headers config.h:config.in"
7077 ac_config_files="$ac_config_files Makefile"
7079 cat >confcache <<\_ACEOF
7080 # This file is a shell script that caches the results of configure
7081 # tests run on this system so they can be shared between configure
7082 # scripts and configure runs, see configure's option --config-cache.
7083 # It is not useful on other systems. If it contains results you don't
7084 # want to keep, you may remove or edit it.
7086 # config.status only pays attention to the cache file if you give it
7087 # the --recheck option to rerun configure.
7089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7091 # following values.
7093 _ACEOF
7095 # The following way of writing the cache mishandles newlines in values,
7096 # but we know of no workaround that is simple, portable, and efficient.
7097 # So, don't put newlines in cache variables' values.
7098 # Ultrix sh set writes to stderr and can't be redirected directly,
7099 # and sets the high bit in the cache file unless we assign to the vars.
7101 (set) 2>&1 |
7102 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7103 *ac_space=\ *)
7104 # `set' does not quote correctly, so add quotes (double-quote
7105 # substitution turns \\\\ into \\, and sed turns \\ into \).
7106 sed -n \
7107 "s/'/'\\\\''/g;
7108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7111 # `set' quotes correctly as required by POSIX, so do not add quotes.
7112 sed -n \
7113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7115 esac;
7117 sed '
7118 t clear
7119 : clear
7120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7121 t end
7122 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7123 : end' >>confcache
7124 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7125 if test -w $cache_file; then
7126 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7127 cat confcache >$cache_file
7128 else
7129 echo "not updating unwritable cache $cache_file"
7132 rm -f confcache
7134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7135 # Let make expand exec_prefix.
7136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7138 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7139 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7140 # trailing colons and then remove the whole line if VPATH becomes empty
7141 # (actually we leave an empty line to preserve line numbers).
7142 if test "x$srcdir" = x.; then
7143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7144 s/:*\$(srcdir):*/:/;
7145 s/:*\${srcdir}:*/:/;
7146 s/:*@srcdir@:*/:/;
7147 s/^\([^=]*=[ ]*\):*/\1/;
7148 s/:*$//;
7149 s/^[^=]*=[ ]*$//;
7153 DEFS=-DHAVE_CONFIG_H
7155 ac_libobjs=
7156 ac_ltlibobjs=
7157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7158 # 1. Remove the extension, and $U if already installed.
7159 ac_i=`echo "$ac_i" |
7160 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7161 # 2. Add them.
7162 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7163 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7164 done
7165 LIBOBJS=$ac_libobjs
7167 LTLIBOBJS=$ac_ltlibobjs
7171 : ${CONFIG_STATUS=./config.status}
7172 ac_clean_files_save=$ac_clean_files
7173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7174 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7175 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7176 cat >$CONFIG_STATUS <<_ACEOF
7177 #! $SHELL
7178 # Generated by $as_me.
7179 # Run this file to recreate the current configuration.
7180 # Compiler output produced by configure, useful for debugging
7181 # configure, is in config.log if it exists.
7183 debug=false
7184 ac_cs_recheck=false
7185 ac_cs_silent=false
7186 SHELL=\${CONFIG_SHELL-$SHELL}
7187 _ACEOF
7189 cat >>$CONFIG_STATUS <<\_ACEOF
7190 ## --------------------- ##
7191 ## M4sh Initialization. ##
7192 ## --------------------- ##
7194 # Be Bourne compatible
7195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7196 emulate sh
7197 NULLCMD=:
7198 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7199 # is contrary to our usage. Disable this feature.
7200 alias -g '${1+"$@"}'='"$@"'
7201 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7202 set -o posix
7204 DUALCASE=1; export DUALCASE # for MKS sh
7206 # Support unset when possible.
7207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7208 as_unset=unset
7209 else
7210 as_unset=false
7214 # Work around bugs in pre-3.0 UWIN ksh.
7215 $as_unset ENV MAIL MAILPATH
7216 PS1='$ '
7217 PS2='> '
7218 PS4='+ '
7220 # NLS nuisances.
7221 for as_var in \
7222 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7223 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7224 LC_TELEPHONE LC_TIME
7226 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7227 eval $as_var=C; export $as_var
7228 else
7229 $as_unset $as_var
7231 done
7233 # Required to use basename.
7234 if expr a : '\(a\)' >/dev/null 2>&1; then
7235 as_expr=expr
7236 else
7237 as_expr=false
7240 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7241 as_basename=basename
7242 else
7243 as_basename=false
7247 # Name of the executable.
7248 as_me=`$as_basename "$0" ||
7249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7250 X"$0" : 'X\(//\)$' \| \
7251 X"$0" : 'X\(/\)$' \| \
7252 . : '\(.\)' 2>/dev/null ||
7253 echo X/"$0" |
7254 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7255 /^X\/\(\/\/\)$/{ s//\1/; q; }
7256 /^X\/\(\/\).*/{ s//\1/; q; }
7257 s/.*/./; q'`
7260 # PATH needs CR, and LINENO needs CR and PATH.
7261 # Avoid depending upon Character Ranges.
7262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7265 as_cr_digits='0123456789'
7266 as_cr_alnum=$as_cr_Letters$as_cr_digits
7268 # The user is always right.
7269 if test "${PATH_SEPARATOR+set}" != set; then
7270 echo "#! /bin/sh" >conf$$.sh
7271 echo "exit 0" >>conf$$.sh
7272 chmod +x conf$$.sh
7273 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7274 PATH_SEPARATOR=';'
7275 else
7276 PATH_SEPARATOR=:
7278 rm -f conf$$.sh
7282 as_lineno_1=$LINENO
7283 as_lineno_2=$LINENO
7284 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7285 test "x$as_lineno_1" != "x$as_lineno_2" &&
7286 test "x$as_lineno_3" = "x$as_lineno_2" || {
7287 # Find who we are. Look in the path if we contain no path at all
7288 # relative or not.
7289 case $0 in
7290 *[\\/]* ) as_myself=$0 ;;
7291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7297 done
7300 esac
7301 # We did not find ourselves, most probably we were run as `sh COMMAND'
7302 # in which case we are not to be found in the path.
7303 if test "x$as_myself" = x; then
7304 as_myself=$0
7306 if test ! -f "$as_myself"; then
7307 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7308 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7309 { (exit 1); exit 1; }; }
7311 case $CONFIG_SHELL in
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for as_base in sh bash ksh sh5; do
7319 case $as_dir in
7321 if ("$as_dir/$as_base" -c '
7322 as_lineno_1=$LINENO
7323 as_lineno_2=$LINENO
7324 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7325 test "x$as_lineno_1" != "x$as_lineno_2" &&
7326 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7327 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7328 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7329 CONFIG_SHELL=$as_dir/$as_base
7330 export CONFIG_SHELL
7331 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7332 fi;;
7333 esac
7334 done
7335 done
7337 esac
7339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7340 # uniformly replaced by the line number. The first 'sed' inserts a
7341 # line-number line before each line; the second 'sed' does the real
7342 # work. The second script uses 'N' to pair each line-number line
7343 # with the numbered line, and appends trailing '-' during
7344 # substitution so that $LINENO is not a special case at line end.
7345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7346 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7347 sed '=' <$as_myself |
7348 sed '
7350 s,$,-,
7351 : loop
7352 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7353 t loop
7354 s,-$,,
7355 s,^['$as_cr_digits']*\n,,
7356 ' >$as_me.lineno &&
7357 chmod +x $as_me.lineno ||
7358 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7359 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7360 { (exit 1); exit 1; }; }
7362 # Don't try to exec as it changes $[0], causing all sort of problems
7363 # (the dirname of $[0] is not the place where we might find the
7364 # original and so on. Autoconf is especially sensible to this).
7365 . ./$as_me.lineno
7366 # Exit status is that of the last command.
7367 exit
7371 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7372 *c*,-n*) ECHO_N= ECHO_C='
7373 ' ECHO_T=' ' ;;
7374 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7375 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7376 esac
7378 if expr a : '\(a\)' >/dev/null 2>&1; then
7379 as_expr=expr
7380 else
7381 as_expr=false
7384 rm -f conf$$ conf$$.exe conf$$.file
7385 echo >conf$$.file
7386 if ln -s conf$$.file conf$$ 2>/dev/null; then
7387 # We could just check for DJGPP; but this test a) works b) is more generic
7388 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7389 if test -f conf$$.exe; then
7390 # Don't use ln at all; we don't have any links
7391 as_ln_s='cp -p'
7392 else
7393 as_ln_s='ln -s'
7395 elif ln conf$$.file conf$$ 2>/dev/null; then
7396 as_ln_s=ln
7397 else
7398 as_ln_s='cp -p'
7400 rm -f conf$$ conf$$.exe conf$$.file
7402 if mkdir -p . 2>/dev/null; then
7403 as_mkdir_p=:
7404 else
7405 test -d ./-p && rmdir ./-p
7406 as_mkdir_p=false
7409 as_executable_p="test -f"
7411 # Sed expression to map a string onto a valid CPP name.
7412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7414 # Sed expression to map a string onto a valid variable name.
7415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7418 # IFS
7419 # We need space, tab and new line, in precisely that order.
7420 as_nl='
7422 IFS=" $as_nl"
7424 # CDPATH.
7425 $as_unset CDPATH
7427 exec 6>&1
7429 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7430 # report actual input values of CONFIG_FILES etc. instead of their
7431 # values after options handling. Logging --version etc. is OK.
7432 exec 5>>config.log
7434 echo
7435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7436 ## Running $as_me. ##
7437 _ASBOX
7438 } >&5
7439 cat >&5 <<_CSEOF
7441 This file was extended by cpplib $as_me , which was
7442 generated by GNU Autoconf 2.59. Invocation command line was
7444 CONFIG_FILES = $CONFIG_FILES
7445 CONFIG_HEADERS = $CONFIG_HEADERS
7446 CONFIG_LINKS = $CONFIG_LINKS
7447 CONFIG_COMMANDS = $CONFIG_COMMANDS
7448 $ $0 $@
7450 _CSEOF
7451 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7452 echo >&5
7453 _ACEOF
7455 # Files that config.status was made for.
7456 if test -n "$ac_config_files"; then
7457 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7460 if test -n "$ac_config_headers"; then
7461 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7464 if test -n "$ac_config_links"; then
7465 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7468 if test -n "$ac_config_commands"; then
7469 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7472 cat >>$CONFIG_STATUS <<\_ACEOF
7474 ac_cs_usage="\
7475 \`$as_me' instantiates files from templates according to the
7476 current configuration.
7478 Usage: $0 [OPTIONS] [FILE]...
7480 -h, --help print this help, then exit
7481 -V, --version print version number, then exit
7482 -q, --quiet do not print progress messages
7483 -d, --debug don't remove temporary files
7484 --recheck update $as_me by reconfiguring in the same conditions
7485 --file=FILE[:TEMPLATE]
7486 instantiate the configuration file FILE
7487 --header=FILE[:TEMPLATE]
7488 instantiate the configuration header FILE
7490 Configuration files:
7491 $config_files
7493 Configuration headers:
7494 $config_headers
7496 Report bugs to <bug-autoconf@gnu.org>."
7497 _ACEOF
7499 cat >>$CONFIG_STATUS <<_ACEOF
7500 ac_cs_version="\\
7501 cpplib config.status
7502 configured by $0, generated by GNU Autoconf 2.59,
7503 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7505 Copyright (C) 2003 Free Software Foundation, Inc.
7506 This config.status script is free software; the Free Software Foundation
7507 gives unlimited permission to copy, distribute and modify it."
7508 srcdir=$srcdir
7509 INSTALL="$INSTALL"
7510 _ACEOF
7512 cat >>$CONFIG_STATUS <<\_ACEOF
7513 # If no file are specified by the user, then we need to provide default
7514 # value. By we need to know if files were specified by the user.
7515 ac_need_defaults=:
7516 while test $# != 0
7518 case $1 in
7519 --*=*)
7520 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7521 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7522 ac_shift=:
7525 ac_option=$1
7526 ac_optarg=$2
7527 ac_shift=shift
7529 *) # This is not an option, so the user has probably given explicit
7530 # arguments.
7531 ac_option=$1
7532 ac_need_defaults=false;;
7533 esac
7535 case $ac_option in
7536 # Handling of the options.
7537 _ACEOF
7538 cat >>$CONFIG_STATUS <<\_ACEOF
7539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7540 ac_cs_recheck=: ;;
7541 --version | --vers* | -V )
7542 echo "$ac_cs_version"; exit 0 ;;
7543 --he | --h)
7544 # Conflict between --help and --header
7545 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7546 Try \`$0 --help' for more information." >&5
7547 echo "$as_me: error: ambiguous option: $1
7548 Try \`$0 --help' for more information." >&2;}
7549 { (exit 1); exit 1; }; };;
7550 --help | --hel | -h )
7551 echo "$ac_cs_usage"; exit 0 ;;
7552 --debug | --d* | -d )
7553 debug=: ;;
7554 --file | --fil | --fi | --f )
7555 $ac_shift
7556 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7557 ac_need_defaults=false;;
7558 --header | --heade | --head | --hea )
7559 $ac_shift
7560 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7561 ac_need_defaults=false;;
7562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7564 ac_cs_silent=: ;;
7566 # This is an error.
7567 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7568 Try \`$0 --help' for more information." >&5
7569 echo "$as_me: error: unrecognized option: $1
7570 Try \`$0 --help' for more information." >&2;}
7571 { (exit 1); exit 1; }; } ;;
7573 *) ac_config_targets="$ac_config_targets $1" ;;
7575 esac
7576 shift
7577 done
7579 ac_configure_extra_args=
7581 if $ac_cs_silent; then
7582 exec 6>/dev/null
7583 ac_configure_extra_args="$ac_configure_extra_args --silent"
7586 _ACEOF
7587 cat >>$CONFIG_STATUS <<_ACEOF
7588 if \$ac_cs_recheck; then
7589 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7590 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7593 _ACEOF
7599 cat >>$CONFIG_STATUS <<\_ACEOF
7600 for ac_config_target in $ac_config_targets
7602 case "$ac_config_target" in
7603 # Handling of arguments.
7604 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7605 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7607 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7608 { (exit 1); exit 1; }; };;
7609 esac
7610 done
7612 # If the user did not use the arguments to specify the items to instantiate,
7613 # then the envvar interface is used. Set only those that are not.
7614 # We use the long form for the default assignment because of an extremely
7615 # bizarre bug on SunOS 4.1.3.
7616 if $ac_need_defaults; then
7617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7621 # Have a temporary directory for convenience. Make it in the build tree
7622 # simply because there is no reason to put it here, and in addition,
7623 # creating and moving files from /tmp can sometimes cause problems.
7624 # Create a temporary directory, and hook for its removal unless debugging.
7625 $debug ||
7627 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7628 trap '{ (exit 1); exit 1; }' 1 2 13 15
7631 # Create a (secure) tmp directory for tmp files.
7634 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7635 test -n "$tmp" && test -d "$tmp"
7636 } ||
7638 tmp=./confstat$$-$RANDOM
7639 (umask 077 && mkdir $tmp)
7640 } ||
7642 echo "$me: cannot create a temporary directory in ." >&2
7643 { (exit 1); exit 1; }
7646 _ACEOF
7648 cat >>$CONFIG_STATUS <<_ACEOF
7651 # CONFIG_FILES section.
7654 # No need to generate the scripts if there are no CONFIG_FILES.
7655 # This happens for instance when ./config.status config.h
7656 if test -n "\$CONFIG_FILES"; then
7657 # Protect against being on the right side of a sed subst in config.status.
7658 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7659 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7660 s,@SHELL@,$SHELL,;t t
7661 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7662 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7663 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7664 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7665 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7666 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7667 s,@exec_prefix@,$exec_prefix,;t t
7668 s,@prefix@,$prefix,;t t
7669 s,@program_transform_name@,$program_transform_name,;t t
7670 s,@bindir@,$bindir,;t t
7671 s,@sbindir@,$sbindir,;t t
7672 s,@libexecdir@,$libexecdir,;t t
7673 s,@datadir@,$datadir,;t t
7674 s,@sysconfdir@,$sysconfdir,;t t
7675 s,@sharedstatedir@,$sharedstatedir,;t t
7676 s,@localstatedir@,$localstatedir,;t t
7677 s,@libdir@,$libdir,;t t
7678 s,@includedir@,$includedir,;t t
7679 s,@oldincludedir@,$oldincludedir,;t t
7680 s,@infodir@,$infodir,;t t
7681 s,@mandir@,$mandir,;t t
7682 s,@build_alias@,$build_alias,;t t
7683 s,@host_alias@,$host_alias,;t t
7684 s,@target_alias@,$target_alias,;t t
7685 s,@DEFS@,$DEFS,;t t
7686 s,@ECHO_C@,$ECHO_C,;t t
7687 s,@ECHO_N@,$ECHO_N,;t t
7688 s,@ECHO_T@,$ECHO_T,;t t
7689 s,@LIBS@,$LIBS,;t t
7690 s,@build@,$build,;t t
7691 s,@build_cpu@,$build_cpu,;t t
7692 s,@build_vendor@,$build_vendor,;t t
7693 s,@build_os@,$build_os,;t t
7694 s,@host@,$host,;t t
7695 s,@host_cpu@,$host_cpu,;t t
7696 s,@host_vendor@,$host_vendor,;t t
7697 s,@host_os@,$host_os,;t t
7698 s,@target@,$target,;t t
7699 s,@target_cpu@,$target_cpu,;t t
7700 s,@target_vendor@,$target_vendor,;t t
7701 s,@target_os@,$target_os,;t t
7702 s,@SET_MAKE@,$SET_MAKE,;t t
7703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7704 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7705 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7706 s,@CC@,$CC,;t t
7707 s,@CFLAGS@,$CFLAGS,;t t
7708 s,@LDFLAGS@,$LDFLAGS,;t t
7709 s,@CPPFLAGS@,$CPPFLAGS,;t t
7710 s,@ac_ct_CC@,$ac_ct_CC,;t t
7711 s,@EXEEXT@,$EXEEXT,;t t
7712 s,@OBJEXT@,$OBJEXT,;t t
7713 s,@RANLIB@,$RANLIB,;t t
7714 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7715 s,@ACLOCAL@,$ACLOCAL,;t t
7716 s,@AUTOCONF@,$AUTOCONF,;t t
7717 s,@AUTOHEADER@,$AUTOHEADER,;t t
7718 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7719 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
7720 s,@WERROR@,$WERROR,;t t
7721 s,@CPP@,$CPP,;t t
7722 s,@EGREP@,$EGREP,;t t
7723 s,@LIBOBJS@,$LIBOBJS,;t t
7724 s,@ALLOCA@,$ALLOCA,;t t
7725 s,@USE_NLS@,$USE_NLS,;t t
7726 s,@LIBINTL@,$LIBINTL,;t t
7727 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7728 s,@INCINTL@,$INCINTL,;t t
7729 s,@XGETTEXT@,$XGETTEXT,;t t
7730 s,@GMSGFMT@,$GMSGFMT,;t t
7731 s,@POSUB@,$POSUB,;t t
7732 s,@CATALOGS@,$CATALOGS,;t t
7733 s,@LIBICONV@,$LIBICONV,;t t
7734 s,@LTLIBICONV@,$LTLIBICONV,;t t
7735 s,@PACKAGE@,$PACKAGE,;t t
7736 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
7737 s,@MAINT@,$MAINT,;t t
7738 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7739 CEOF
7741 _ACEOF
7743 cat >>$CONFIG_STATUS <<\_ACEOF
7744 # Split the substitutions into bite-sized pieces for seds with
7745 # small command number limits, like on Digital OSF/1 and HP-UX.
7746 ac_max_sed_lines=48
7747 ac_sed_frag=1 # Number of current file.
7748 ac_beg=1 # First line for current file.
7749 ac_end=$ac_max_sed_lines # Line after last line for current file.
7750 ac_more_lines=:
7751 ac_sed_cmds=
7752 while $ac_more_lines; do
7753 if test $ac_beg -gt 1; then
7754 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7755 else
7756 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7758 if test ! -s $tmp/subs.frag; then
7759 ac_more_lines=false
7760 else
7761 # The purpose of the label and of the branching condition is to
7762 # speed up the sed processing (if there are no `@' at all, there
7763 # is no need to browse any of the substitutions).
7764 # These are the two extra sed commands mentioned above.
7765 (echo ':t
7766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7767 if test -z "$ac_sed_cmds"; then
7768 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7769 else
7770 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7772 ac_sed_frag=`expr $ac_sed_frag + 1`
7773 ac_beg=$ac_end
7774 ac_end=`expr $ac_end + $ac_max_sed_lines`
7776 done
7777 if test -z "$ac_sed_cmds"; then
7778 ac_sed_cmds=cat
7780 fi # test -n "$CONFIG_FILES"
7782 _ACEOF
7783 cat >>$CONFIG_STATUS <<\_ACEOF
7784 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7786 case $ac_file in
7787 - | *:- | *:-:* ) # input from stdin
7788 cat >$tmp/stdin
7789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7793 * ) ac_file_in=$ac_file.in ;;
7794 esac
7796 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7797 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7799 X"$ac_file" : 'X\(//\)[^/]' \| \
7800 X"$ac_file" : 'X\(//\)$' \| \
7801 X"$ac_file" : 'X\(/\)' \| \
7802 . : '\(.\)' 2>/dev/null ||
7803 echo X"$ac_file" |
7804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7806 /^X\(\/\/\)$/{ s//\1/; q; }
7807 /^X\(\/\).*/{ s//\1/; q; }
7808 s/.*/./; q'`
7809 { if $as_mkdir_p; then
7810 mkdir -p "$ac_dir"
7811 else
7812 as_dir="$ac_dir"
7813 as_dirs=
7814 while test ! -d "$as_dir"; do
7815 as_dirs="$as_dir $as_dirs"
7816 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7818 X"$as_dir" : 'X\(//\)[^/]' \| \
7819 X"$as_dir" : 'X\(//\)$' \| \
7820 X"$as_dir" : 'X\(/\)' \| \
7821 . : '\(.\)' 2>/dev/null ||
7822 echo X"$as_dir" |
7823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7825 /^X\(\/\/\)$/{ s//\1/; q; }
7826 /^X\(\/\).*/{ s//\1/; q; }
7827 s/.*/./; q'`
7828 done
7829 test ! -n "$as_dirs" || mkdir $as_dirs
7830 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7832 { (exit 1); exit 1; }; }; }
7834 ac_builddir=.
7836 if test "$ac_dir" != .; then
7837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7838 # A "../" for each directory in $ac_dir_suffix.
7839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7840 else
7841 ac_dir_suffix= ac_top_builddir=
7844 case $srcdir in
7845 .) # No --srcdir option. We are building in place.
7846 ac_srcdir=.
7847 if test -z "$ac_top_builddir"; then
7848 ac_top_srcdir=.
7849 else
7850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7851 fi ;;
7852 [\\/]* | ?:[\\/]* ) # Absolute path.
7853 ac_srcdir=$srcdir$ac_dir_suffix;
7854 ac_top_srcdir=$srcdir ;;
7855 *) # Relative path.
7856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7857 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7858 esac
7860 # Do not use `cd foo && pwd` to compute absolute paths, because
7861 # the directories may not exist.
7862 case `pwd` in
7863 .) ac_abs_builddir="$ac_dir";;
7865 case "$ac_dir" in
7866 .) ac_abs_builddir=`pwd`;;
7867 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7868 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7869 esac;;
7870 esac
7871 case $ac_abs_builddir in
7872 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7874 case ${ac_top_builddir}. in
7875 .) ac_abs_top_builddir=$ac_abs_builddir;;
7876 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7877 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7878 esac;;
7879 esac
7880 case $ac_abs_builddir in
7881 .) ac_abs_srcdir=$ac_srcdir;;
7883 case $ac_srcdir in
7884 .) ac_abs_srcdir=$ac_abs_builddir;;
7885 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7886 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7887 esac;;
7888 esac
7889 case $ac_abs_builddir in
7890 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7892 case $ac_top_srcdir in
7893 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7894 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7895 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7896 esac;;
7897 esac
7900 case $INSTALL in
7901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7902 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7903 esac
7905 if test x"$ac_file" != x-; then
7906 { echo "$as_me:$LINENO: creating $ac_file" >&5
7907 echo "$as_me: creating $ac_file" >&6;}
7908 rm -f "$ac_file"
7910 # Let's still pretend it is `configure' which instantiates (i.e., don't
7911 # use $as_me), people would be surprised to read:
7912 # /* config.h. Generated by config.status. */
7913 if test x"$ac_file" = x-; then
7914 configure_input=
7915 else
7916 configure_input="$ac_file. "
7918 configure_input=$configure_input"Generated from `echo $ac_file_in |
7919 sed 's,.*/,,'` by configure."
7921 # First look for the input files in the build tree, otherwise in the
7922 # src tree.
7923 ac_file_inputs=`IFS=:
7924 for f in $ac_file_in; do
7925 case $f in
7926 -) echo $tmp/stdin ;;
7927 [\\/$]*)
7928 # Absolute (can't be DOS-style, as IFS=:)
7929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7930 echo "$as_me: error: cannot find input file: $f" >&2;}
7931 { (exit 1); exit 1; }; }
7932 echo "$f";;
7933 *) # Relative
7934 if test -f "$f"; then
7935 # Build tree
7936 echo "$f"
7937 elif test -f "$srcdir/$f"; then
7938 # Source tree
7939 echo "$srcdir/$f"
7940 else
7941 # /dev/null tree
7942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7943 echo "$as_me: error: cannot find input file: $f" >&2;}
7944 { (exit 1); exit 1; }; }
7945 fi;;
7946 esac
7947 done` || { (exit 1); exit 1; }
7948 _ACEOF
7949 cat >>$CONFIG_STATUS <<_ACEOF
7950 sed "$ac_vpsub
7951 $extrasub
7952 _ACEOF
7953 cat >>$CONFIG_STATUS <<\_ACEOF
7955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7956 s,@configure_input@,$configure_input,;t t
7957 s,@srcdir@,$ac_srcdir,;t t
7958 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7959 s,@top_srcdir@,$ac_top_srcdir,;t t
7960 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7961 s,@builddir@,$ac_builddir,;t t
7962 s,@abs_builddir@,$ac_abs_builddir,;t t
7963 s,@top_builddir@,$ac_top_builddir,;t t
7964 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7965 s,@INSTALL@,$ac_INSTALL,;t t
7966 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7967 rm -f $tmp/stdin
7968 if test x"$ac_file" != x-; then
7969 mv $tmp/out $ac_file
7970 else
7971 cat $tmp/out
7972 rm -f $tmp/out
7975 done
7976 _ACEOF
7977 cat >>$CONFIG_STATUS <<\_ACEOF
7980 # CONFIG_HEADER section.
7983 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7984 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7986 # ac_d sets the value in "#define NAME VALUE" lines.
7987 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7988 ac_dB='[ ].*$,\1#\2'
7989 ac_dC=' '
7990 ac_dD=',;t'
7991 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7992 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7993 ac_uB='$,\1#\2define\3'
7994 ac_uC=' '
7995 ac_uD=',;t'
7997 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7999 case $ac_file in
8000 - | *:- | *:-:* ) # input from stdin
8001 cat >$tmp/stdin
8002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8006 * ) ac_file_in=$ac_file.in ;;
8007 esac
8009 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8010 echo "$as_me: creating $ac_file" >&6;}
8012 # First look for the input files in the build tree, otherwise in the
8013 # src tree.
8014 ac_file_inputs=`IFS=:
8015 for f in $ac_file_in; do
8016 case $f in
8017 -) echo $tmp/stdin ;;
8018 [\\/$]*)
8019 # Absolute (can't be DOS-style, as IFS=:)
8020 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8021 echo "$as_me: error: cannot find input file: $f" >&2;}
8022 { (exit 1); exit 1; }; }
8023 # Do quote $f, to prevent DOS paths from being IFS'd.
8024 echo "$f";;
8025 *) # Relative
8026 if test -f "$f"; then
8027 # Build tree
8028 echo "$f"
8029 elif test -f "$srcdir/$f"; then
8030 # Source tree
8031 echo "$srcdir/$f"
8032 else
8033 # /dev/null tree
8034 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8035 echo "$as_me: error: cannot find input file: $f" >&2;}
8036 { (exit 1); exit 1; }; }
8037 fi;;
8038 esac
8039 done` || { (exit 1); exit 1; }
8040 # Remove the trailing spaces.
8041 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8043 _ACEOF
8045 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8046 # `conftest.undefs', that substitutes the proper values into
8047 # config.h.in to produce config.h. The first handles `#define'
8048 # templates, and the second `#undef' templates.
8049 # And first: Protect against being on the right side of a sed subst in
8050 # config.status. Protect against being in an unquoted here document
8051 # in config.status.
8052 rm -f conftest.defines conftest.undefs
8053 # Using a here document instead of a string reduces the quoting nightmare.
8054 # Putting comments in sed scripts is not portable.
8056 # `end' is used to avoid that the second main sed command (meant for
8057 # 0-ary CPP macros) applies to n-ary macro definitions.
8058 # See the Autoconf documentation for `clear'.
8059 cat >confdef2sed.sed <<\_ACEOF
8060 s/[\\&,]/\\&/g
8061 s,[\\$`],\\&,g
8062 t clear
8063 : clear
8064 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8065 t end
8066 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8067 : end
8068 _ACEOF
8069 # If some macros were called several times there might be several times
8070 # the same #defines, which is useless. Nevertheless, we may not want to
8071 # sort them, since we want the *last* AC-DEFINE to be honored.
8072 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8073 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8074 rm -f confdef2sed.sed
8076 # This sed command replaces #undef with comments. This is necessary, for
8077 # example, in the case of _POSIX_SOURCE, which is predefined and required
8078 # on some systems where configure will not decide to define it.
8079 cat >>conftest.undefs <<\_ACEOF
8080 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8081 _ACEOF
8083 # Break up conftest.defines because some shells have a limit on the size
8084 # of here documents, and old seds have small limits too (100 cmds).
8085 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8086 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8087 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8088 echo ' :' >>$CONFIG_STATUS
8089 rm -f conftest.tail
8090 while grep . conftest.defines >/dev/null
8092 # Write a limited-size here document to $tmp/defines.sed.
8093 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8094 # Speed up: don't consider the non `#define' lines.
8095 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8096 # Work around the forget-to-reset-the-flag bug.
8097 echo 't clr' >>$CONFIG_STATUS
8098 echo ': clr' >>$CONFIG_STATUS
8099 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8100 echo 'CEOF
8101 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8102 rm -f $tmp/in
8103 mv $tmp/out $tmp/in
8104 ' >>$CONFIG_STATUS
8105 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8106 rm -f conftest.defines
8107 mv conftest.tail conftest.defines
8108 done
8109 rm -f conftest.defines
8110 echo ' fi # grep' >>$CONFIG_STATUS
8111 echo >>$CONFIG_STATUS
8113 # Break up conftest.undefs because some shells have a limit on the size
8114 # of here documents, and old seds have small limits too (100 cmds).
8115 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8116 rm -f conftest.tail
8117 while grep . conftest.undefs >/dev/null
8119 # Write a limited-size here document to $tmp/undefs.sed.
8120 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8121 # Speed up: don't consider the non `#undef'
8122 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8123 # Work around the forget-to-reset-the-flag bug.
8124 echo 't clr' >>$CONFIG_STATUS
8125 echo ': clr' >>$CONFIG_STATUS
8126 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8127 echo 'CEOF
8128 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8129 rm -f $tmp/in
8130 mv $tmp/out $tmp/in
8131 ' >>$CONFIG_STATUS
8132 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8133 rm -f conftest.undefs
8134 mv conftest.tail conftest.undefs
8135 done
8136 rm -f conftest.undefs
8138 cat >>$CONFIG_STATUS <<\_ACEOF
8139 # Let's still pretend it is `configure' which instantiates (i.e., don't
8140 # use $as_me), people would be surprised to read:
8141 # /* config.h. Generated by config.status. */
8142 if test x"$ac_file" = x-; then
8143 echo "/* Generated by configure. */" >$tmp/config.h
8144 else
8145 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8147 cat $tmp/in >>$tmp/config.h
8148 rm -f $tmp/in
8149 if test x"$ac_file" != x-; then
8150 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8151 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8152 echo "$as_me: $ac_file is unchanged" >&6;}
8153 else
8154 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8156 X"$ac_file" : 'X\(//\)[^/]' \| \
8157 X"$ac_file" : 'X\(//\)$' \| \
8158 X"$ac_file" : 'X\(/\)' \| \
8159 . : '\(.\)' 2>/dev/null ||
8160 echo X"$ac_file" |
8161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8163 /^X\(\/\/\)$/{ s//\1/; q; }
8164 /^X\(\/\).*/{ s//\1/; q; }
8165 s/.*/./; q'`
8166 { if $as_mkdir_p; then
8167 mkdir -p "$ac_dir"
8168 else
8169 as_dir="$ac_dir"
8170 as_dirs=
8171 while test ! -d "$as_dir"; do
8172 as_dirs="$as_dir $as_dirs"
8173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8175 X"$as_dir" : 'X\(//\)[^/]' \| \
8176 X"$as_dir" : 'X\(//\)$' \| \
8177 X"$as_dir" : 'X\(/\)' \| \
8178 . : '\(.\)' 2>/dev/null ||
8179 echo X"$as_dir" |
8180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8182 /^X\(\/\/\)$/{ s//\1/; q; }
8183 /^X\(\/\).*/{ s//\1/; q; }
8184 s/.*/./; q'`
8185 done
8186 test ! -n "$as_dirs" || mkdir $as_dirs
8187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8189 { (exit 1); exit 1; }; }; }
8191 rm -f $ac_file
8192 mv $tmp/config.h $ac_file
8194 else
8195 cat $tmp/config.h
8196 rm -f $tmp/config.h
8198 # Run the commands associated with the file.
8199 case $ac_file in
8200 config.h ) echo timestamp > stamp-h1 ;;
8201 esac
8202 done
8203 _ACEOF
8205 cat >>$CONFIG_STATUS <<\_ACEOF
8207 { (exit 0); exit 0; }
8208 _ACEOF
8209 chmod +x $CONFIG_STATUS
8210 ac_clean_files=$ac_clean_files_save
8213 # configure is writing to config.log, and then calls config.status.
8214 # config.status does its own redirection, appending to config.log.
8215 # Unfortunately, on DOS this fails, as config.log is still kept open
8216 # by configure, so config.status won't be able to write to it; its
8217 # output is simply discarded. So we exec the FD to /dev/null,
8218 # effectively closing config.log, so it can be properly (re)opened and
8219 # appended to by config.status. When coming back to configure, we
8220 # need to make the FD available again.
8221 if test "$no_create" != yes; then
8222 ac_cs_success=:
8223 ac_config_status_args=
8224 test "$silent" = yes &&
8225 ac_config_status_args="$ac_config_status_args --quiet"
8226 exec 5>/dev/null
8227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8228 exec 5>>config.log
8229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8230 # would make configure fail if this is the last instruction.
8231 $ac_cs_success || { (exit 1); exit 1; }