]> gcc.gnu.org Git - gcc.git/blob - libcpp/configure
config.gcc: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9].
[gcc.git] / libcpp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
4 #
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='cpplib'
271 PACKAGE_TARNAME='cpplib'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='cpplib '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
275
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR 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=''
316
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
336
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'
354
355 ac_prev=
356 for ac_option
357 do
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
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
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 ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
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 ;;
396
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" ;;
405
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'" ;;
418
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 ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
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 ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
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 ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
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 ;;
467
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 ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
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 ;;
493
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 ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
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 ;;
514
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 ;;
521
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 ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
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 ;;
548
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 ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
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 ;;
576
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 ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
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'" ;;
600
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" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
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 ;;
620
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 ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
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 ;;
642
643 *)
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}
649 ;;
650
651 esac
652 done
653
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; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
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
670
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
674 do
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
682
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
689
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
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
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=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
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; }; }
737 fi
738 fi
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
775
776 #
777 # Report the --help message.
778 #
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.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
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.
789
790 Defaults for the options are specified in brackets.
791
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 \`..']
802
803 _ACEOF
804
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]
811
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'.
816
817 For better control, use the options below.
818
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
833
834 cat <<\_ACEOF
835
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
841 fi
842
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
848
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
856
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
863
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
872
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.
875
876 Report bugs to <gcc-bugs@gcc.gnu.org>.
877 _ACEOF
878 fi
879
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=.
886
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=
893 fi
894
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
910
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";;
915 *)
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}.;;
924 *)
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;;
933 *)
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;;
942 *)
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
949
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
964 fi
965 cd $ac_popdir
966 done
967 fi
968
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
974
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
980 fi
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
985
986 It was created by cpplib $as_me , which was
987 generated by GNU Autoconf 2.59. Invocation command line was
988
989 $ $0 $@
990
991 _ACEOF
992 {
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
997
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014
1015 _ASUNAME
1016
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1019 do
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1024
1025 } >&5
1026
1027 cat >&5 <<_ACEOF
1028
1029
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1033
1034 _ACEOF
1035
1036
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1048 do
1049 for ac_arg
1050 do
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 2)
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1074 ;;
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1077 fi
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1081 ;;
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1095 {
1096 echo
1097
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1105 {
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 ;;
1113 *)
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ;;
1117 esac;
1118 }
1119 echo
1120
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147 fi
1148
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1158 fi
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1166 ' 0
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1171
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1176
1177 # Predefined preprocessor variables.
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1202
1203
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 fi
1212 fi
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1219 fi
1220 done
1221
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1232 fi
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1237 fi
1238
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1258 *)
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1280 fi
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1288 fi
1289
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
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; }; }
1332 fi
1333
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
1348 fi
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; }; }
1354 fi
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.
1358
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; }; }
1364
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; }; }
1381
1382 fi
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/'`
1389
1390
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; }; }
1403
1404 fi
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/'`
1411
1412
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; }; }
1425
1426 fi
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/'`
1433
1434
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}-
1441
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
1459 fi
1460 rm -f conftest.make
1461 fi
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}"
1470 fi
1471
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
1493 do
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/* ) ;;
1502 *)
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.
1512 :
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.
1516 :
1517 else
1518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519 break 3
1520 fi
1521 fi
1522 done
1523 done
1524 ;;
1525 esac
1526 done
1527
1528
1529 fi
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
1538 fi
1539 fi
1540 echo "$as_me:$LINENO: result: $INSTALL" >&5
1541 echo "${ECHO_T}$INSTALL" >&6
1542
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}'
1546
1547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1548
1549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1550
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
1569 do
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
1577 fi
1578 done
1579 done
1580
1581 fi
1582 fi
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
1590 fi
1591
1592 fi
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
1607 do
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
1615 fi
1616 done
1617 done
1618
1619 fi
1620 fi
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
1628 fi
1629
1630 CC=$ac_ct_CC
1631 else
1632 CC="$ac_cv_prog_CC"
1633 fi
1634
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
1649 do
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
1657 fi
1658 done
1659 done
1660
1661 fi
1662 fi
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
1670 fi
1671
1672 fi
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
1687 do
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
1695 fi
1696 done
1697 done
1698
1699 fi
1700 fi
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
1708 fi
1709
1710 CC=$ac_ct_CC
1711 else
1712 CC="$ac_cv_prog_CC"
1713 fi
1714
1715 fi
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
1730 do
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
1738 fi
1739 ac_cv_prog_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743 done
1744 done
1745
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+' '}$@"
1756 fi
1757 fi
1758 fi
1759 fi
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
1767 fi
1768
1769 fi
1770 if test -z "$CC"; then
1771 if test -n "$ac_tool_prefix"; then
1772 for ac_prog in cl
1773 do
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
1786 do
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
1794 fi
1795 done
1796 done
1797
1798 fi
1799 fi
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
1807 fi
1808
1809 test -n "$CC" && break
1810 done
1811 fi
1812 if test -z "$CC"; then
1813 ac_ct_CC=$CC
1814 for ac_prog in cl
1815 do
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
1828 do
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
1836 fi
1837 done
1838 done
1839
1840 fi
1841 fi
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
1849 fi
1850
1851 test -n "$ac_ct_CC" && break
1852 done
1853
1854 CC=$ac_ct_CC
1855 fi
1856
1857 fi
1858
1859
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; }; }
1865
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); }
1885
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. */
1892
1893 int
1894 main ()
1895 {
1896
1897 ;
1898 return 0;
1899 }
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.
1917
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
1923 do
1924 test -f "$ac_file" || continue
1925 case $ac_file in
1926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1927 ;;
1928 conftest.$ac_ext )
1929 # This is the source file.
1930 ;;
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;;
1942 * )
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
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; }; }
1955 fi
1956
1957 ac_exeext=$ac_cv_exeext
1958 echo "$as_me:$LINENO: result: $ac_file" >&5
1959 echo "${ECHO_T}$ac_file" >&6
1960
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; }; }
1986 fi
1987 fi
1988 fi
1989 echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1991
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
2000
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; }; }
2028 fi
2029
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
2033
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. */
2048
2049 int
2050 main ()
2051 {
2052
2053 ;
2054 return 0;
2055 }
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
2073
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; }; }
2079 fi
2080
2081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2082 fi
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. */
2098
2099 int
2100 main ()
2101 {
2102 #ifndef __GNUC__
2103 choke me
2104 #endif
2105
2106 ;
2107 return 0;
2108 }
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
2136
2137 ac_compiler_gnu=no
2138 fi
2139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2141
2142 fi
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. */
2160
2161 int
2162 main ()
2163 {
2164
2165 ;
2166 return 0;
2167 }
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
2195
2196 ac_cv_prog_cc_g=no
2197 fi
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
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"
2209 fi
2210 else
2211 if test "$GCC" = yes; then
2212 CFLAGS="-O2"
2213 else
2214 CFLAGS=
2215 fi
2216 fi
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;
2240 {
2241 return p[i];
2242 }
2243 static char *f (char * (*g) (char **, int), char **p, ...)
2244 {
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;
2251 }
2252
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];
2261
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;
2268 int
2269 main ()
2270 {
2271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2272 ;
2273 return 0;
2274 }
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__"
2284 do
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
2313
2314 fi
2315 rm -f conftest.err conftest.$ac_objext
2316 done
2317 rm -f conftest.$ac_ext conftest.$ac_objext
2318 CC=$ac_save_CC
2319
2320 fi
2321
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 ;;
2326 *)
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
2331
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);'
2370 do
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>
2379 int
2380 main ()
2381 {
2382 exit (42);
2383 ;
2384 return 0;
2385 }
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
2409 :
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 continue
2415 fi
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
2424 int
2425 main ()
2426 {
2427 exit (42);
2428 ;
2429 return 0;
2430 }
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
2458
2459 fi
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
2467 fi
2468
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 fi
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
2480
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
2494 do
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
2502 fi
2503 done
2504 done
2505
2506 fi
2507 fi
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
2515 fi
2516
2517 fi
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
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_RANLIB="ranlib"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543
2544 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2545 fi
2546 fi
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
2554 fi
2555
2556 RANLIB=$ac_ct_RANLIB
2557 else
2558 RANLIB="$ac_cv_prog_RANLIB"
2559 fi
2560
2561
2562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2563 for ac_prog in aclocal
2564 do
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
2577 do
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
2585 fi
2586 done
2587 done
2588
2589 fi
2590 fi
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
2598 fi
2599
2600 test -n "$ACLOCAL" && break
2601 done
2602 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2603
2604 for ac_prog in autoconf
2605 do
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
2618 do
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
2626 fi
2627 done
2628 done
2629
2630 fi
2631 fi
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
2639 fi
2640
2641 test -n "$AUTOCONF" && break
2642 done
2643 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2644
2645 for ac_prog in autoheader
2646 do
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
2659 do
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
2667 fi
2668 done
2669 done
2670
2671 fi
2672 fi
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
2680 fi
2681
2682 test -n "$AUTOHEADER" && break
2683 done
2684 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2685
2686
2687 # Figure out what compiler warnings we can enable.
2688 # See config/warnings.m4 for details.
2689
2690
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`
2696
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. */
2709
2710 int
2711 main ()
2712 {
2713
2714 ;
2715 return 0;
2716 }
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
2744
2745 eval "$as_acx_Woption=no"
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748
2749 fi
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"
2754 fi
2755
2756 done
2757 CFLAGS="$save_CFLAGS"
2758
2759 WARN_PEDANTIC=
2760 if test $GCC = yes; then
2761 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2762 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2763 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 save_CFLAGS="$CFLAGS"
2767 CFLAGS="-pedantic -Wno-long-long"
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774
2775 int
2776 main ()
2777 {
2778
2779 ;
2780 return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 acx_cv_prog_cc_pedantic__Wno_long_long=no
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 CFLAGS="$save_CFLAGS"
2814 fi
2815 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2816 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2817 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2818 WARN_PEDANTIC="-pedantic -Wno-long-long"
2819 fi
2820
2821
2822 fi
2823
2824
2825
2826 # Only enable with --enable-werror-always until existing warnings are
2827 # corrected.
2828 WERROR=
2829 # Check whether --enable-werror-always or --disable-werror-always was given.
2830 if test "${enable_werror_always+set}" = set; then
2831 enableval="$enable_werror_always"
2832
2833 else
2834 enable_werror_always=no
2835 fi;
2836 if test $enable_werror_always = yes; then
2837 WERROR=-Werror
2838 fi
2839
2840
2841
2842 # Checks for header files.
2843 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2844 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2845 if test "${ac_cv_header_time+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <sys/types.h>
2855 #include <sys/time.h>
2856 #include <time.h>
2857
2858 int
2859 main ()
2860 {
2861 if ((struct tm *) 0)
2862 return 0;
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_header_time=yes
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 ac_cv_header_time=no
2895 fi
2896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897 fi
2898 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2899 echo "${ECHO_T}$ac_cv_header_time" >&6
2900 if test $ac_cv_header_time = yes; then
2901
2902 cat >>confdefs.h <<\_ACEOF
2903 #define TIME_WITH_SYS_TIME 1
2904 _ACEOF
2905
2906 fi
2907
2908 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2909 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2910 if test "${gcc_cv_header_string+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2919 #include <string.h>
2920 #include <strings.h>
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -z "$ac_c_werror_flag"
2939 || test ! -s conftest.err'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; } &&
2945 { ac_try='test -s conftest.$ac_objext'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; }; then
2951 gcc_cv_header_string=yes
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 gcc_cv_header_string=no
2957 fi
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 fi
2960 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2961 echo "${ECHO_T}$gcc_cv_header_string" >&6
2962 if test $gcc_cv_header_string = yes; then
2963
2964 cat >>confdefs.h <<\_ACEOF
2965 #define STRING_WITH_STRINGS 1
2966 _ACEOF
2967
2968 fi
2969
2970 ac_ext=c
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2977 # On Suns, sometimes $CPP names a directory.
2978 if test -n "$CPP" && test -d "$CPP"; then
2979 CPP=
2980 fi
2981 if test -z "$CPP"; then
2982 if test "${ac_cv_prog_CPP+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 # Double quotes because CPP needs to be expanded
2986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2987 do
2988 ac_preproc_ok=false
2989 for ac_c_preproc_warn_flag in '' yes
2990 do
2991 # Use a header file that comes with gcc, so configuring glibc
2992 # with a fresh cross-compiler works.
2993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2994 # <limits.h> exists even on freestanding compilers.
2995 # On the NeXT, cc -E runs the code through the compiler's parser,
2996 # not just through cpp. "Syntax error" is here to catch this case.
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #ifdef __STDC__
3004 # include <limits.h>
3005 #else
3006 # include <assert.h>
3007 #endif
3008 Syntax error
3009 _ACEOF
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 ac_status=$?
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3021 else
3022 ac_cpp_err=
3023 fi
3024 else
3025 ac_cpp_err=yes
3026 fi
3027 if test -z "$ac_cpp_err"; then
3028 :
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 # Broken: fails on valid input.
3034 continue
3035 fi
3036 rm -f conftest.err conftest.$ac_ext
3037
3038 # OK, works on sane cases. Now check whether non-existent headers
3039 # can be detected and how.
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3047 _ACEOF
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059 else
3060 ac_cpp_err=
3061 fi
3062 else
3063 ac_cpp_err=yes
3064 fi
3065 if test -z "$ac_cpp_err"; then
3066 # Broken: success on invalid input.
3067 continue
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 # Passes both tests.
3073 ac_preproc_ok=:
3074 break
3075 fi
3076 rm -f conftest.err conftest.$ac_ext
3077
3078 done
3079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3080 rm -f conftest.err conftest.$ac_ext
3081 if $ac_preproc_ok; then
3082 break
3083 fi
3084
3085 done
3086 ac_cv_prog_CPP=$CPP
3087
3088 fi
3089 CPP=$ac_cv_prog_CPP
3090 else
3091 ac_cv_prog_CPP=$CPP
3092 fi
3093 echo "$as_me:$LINENO: result: $CPP" >&5
3094 echo "${ECHO_T}$CPP" >&6
3095 ac_preproc_ok=false
3096 for ac_c_preproc_warn_flag in '' yes
3097 do
3098 # Use a header file that comes with gcc, so configuring glibc
3099 # with a fresh cross-compiler works.
3100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3101 # <limits.h> exists even on freestanding compilers.
3102 # On the NeXT, cc -E runs the code through the compiler's parser,
3103 # not just through cpp. "Syntax error" is here to catch this case.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #ifdef __STDC__
3111 # include <limits.h>
3112 #else
3113 # include <assert.h>
3114 #endif
3115 Syntax error
3116 _ACEOF
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128 else
3129 ac_cpp_err=
3130 fi
3131 else
3132 ac_cpp_err=yes
3133 fi
3134 if test -z "$ac_cpp_err"; then
3135 :
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 # Broken: fails on valid input.
3141 continue
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145 # OK, works on sane cases. Now check whether non-existent headers
3146 # can be detected and how.
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 #include <ac_nonexistent.h>
3154 _ACEOF
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169 else
3170 ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173 # Broken: success on invalid input.
3174 continue
3175 else
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 # Passes both tests.
3180 ac_preproc_ok=:
3181 break
3182 fi
3183 rm -f conftest.err conftest.$ac_ext
3184
3185 done
3186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187 rm -f conftest.err conftest.$ac_ext
3188 if $ac_preproc_ok; then
3189 :
3190 else
3191 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3192 See \`config.log' for more details." >&5
3193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3196 fi
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
3204
3205 echo "$as_me:$LINENO: checking for egrep" >&5
3206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3207 if test "${ac_cv_prog_egrep+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3211 then ac_cv_prog_egrep='grep -E'
3212 else ac_cv_prog_egrep='egrep'
3213 fi
3214 fi
3215 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3216 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3217 EGREP=$ac_cv_prog_egrep
3218
3219
3220 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3221 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3222 if test "${ac_cv_header_stdc+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 #include <stdlib.h>
3232 #include <stdarg.h>
3233 #include <string.h>
3234 #include <float.h>
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_cv_header_stdc=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 ac_cv_header_stdc=no
3272 fi
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274
3275 if test $ac_cv_header_stdc = yes; then
3276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h. */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <string.h>
3284
3285 _ACEOF
3286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3287 $EGREP "memchr" >/dev/null 2>&1; then
3288 :
3289 else
3290 ac_cv_header_stdc=no
3291 fi
3292 rm -f conftest*
3293
3294 fi
3295
3296 if test $ac_cv_header_stdc = yes; then
3297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <stdlib.h>
3305
3306 _ACEOF
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "free" >/dev/null 2>&1; then
3309 :
3310 else
3311 ac_cv_header_stdc=no
3312 fi
3313 rm -f conftest*
3314
3315 fi
3316
3317 if test $ac_cv_header_stdc = yes; then
3318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3319 if test "$cross_compiling" = yes; then
3320 :
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <ctype.h>
3329 #if ((' ' & 0x0FF) == 0x020)
3330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3332 #else
3333 # define ISLOWER(c) \
3334 (('a' <= (c) && (c) <= 'i') \
3335 || ('j' <= (c) && (c) <= 'r') \
3336 || ('s' <= (c) && (c) <= 'z'))
3337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3338 #endif
3339
3340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3341 int
3342 main ()
3343 {
3344 int i;
3345 for (i = 0; i < 256; i++)
3346 if (XOR (islower (i), ISLOWER (i))
3347 || toupper (i) != TOUPPER (i))
3348 exit(2);
3349 exit (0);
3350 }
3351 _ACEOF
3352 rm -f conftest$ac_exeext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3354 (eval $ac_link) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 :
3364 else
3365 echo "$as_me: program exited with status $ac_status" >&5
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 ( exit $ac_status )
3370 ac_cv_header_stdc=no
3371 fi
3372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3373 fi
3374 fi
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3378 if test $ac_cv_header_stdc = yes; then
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define STDC_HEADERS 1
3382 _ACEOF
3383
3384 fi
3385
3386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3397 inttypes.h stdint.h unistd.h
3398 do
3399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3400 echo "$as_me:$LINENO: checking for $ac_header" >&5
3401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 $ac_includes_default
3412
3413 #include <$ac_header>
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417 (eval $ac_compile) 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest.$ac_objext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 eval "$as_ac_Header=yes"
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 eval "$as_ac_Header=no"
3443 fi
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 fi
3446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3449 cat >>confdefs.h <<_ACEOF
3450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3451 _ACEOF
3452
3453 fi
3454
3455 done
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3469 stdlib.h strings.h string.h sys/file.h unistd.h
3470 do
3471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3473 echo "$as_me:$LINENO: checking for $ac_header" >&5
3474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 fi
3478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3480 else
3481 # Is the header compilable?
3482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 $ac_includes_default
3491 #include <$ac_header>
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_header_compiler=yes
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_header_compiler=no
3521 fi
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3525
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <$ac_header>
3536 _ACEOF
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 else
3549 ac_cpp_err=
3550 fi
3551 else
3552 ac_cpp_err=yes
3553 fi
3554 if test -z "$ac_cpp_err"; then
3555 ac_header_preproc=yes
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 ac_header_preproc=no
3561 fi
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3565
3566 # So? What about this header?
3567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3568 yes:no: )
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3573 ac_header_preproc=yes
3574 ;;
3575 no:yes:* )
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3588 (
3589 cat <<\_ASBOX
3590 ## ----------------------------------- ##
3591 ## Report this to gcc-bugs@gcc.gnu.org ##
3592 ## ----------------------------------- ##
3593 _ASBOX
3594 ) |
3595 sed "s/^/$as_me: WARNING: /" >&2
3596 ;;
3597 esac
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 eval "$as_ac_Header=\$ac_header_preproc"
3604 fi
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3607
3608 fi
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610 cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3612 _ACEOF
3613
3614 fi
3615
3616 done
3617
3618
3619 # Checks for typedefs, structures, and compiler characteristics.
3620 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3621 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3622 if test "${ac_cv_c_const+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635 /* FIXME: Include the comments suggested by Paul. */
3636 #ifndef __cplusplus
3637 /* Ultrix mips cc rejects this. */
3638 typedef int charset[2];
3639 const charset x;
3640 /* SunOS 4.1.1 cc rejects this. */
3641 char const *const *ccp;
3642 char **p;
3643 /* NEC SVR4.0.2 mips cc rejects this. */
3644 struct point {int x, y;};
3645 static struct point const zero = {0,0};
3646 /* AIX XL C 1.02.0.0 rejects this.
3647 It does not let you subtract one const X* pointer from another in
3648 an arm of an if-expression whose if-part is not a constant
3649 expression */
3650 const char *g = "string";
3651 ccp = &g + (g ? g-g : 0);
3652 /* HPUX 7.0 cc rejects these. */
3653 ++ccp;
3654 p = (char**) ccp;
3655 ccp = (char const *const *) p;
3656 { /* SCO 3.2v4 cc rejects this. */
3657 char *t;
3658 char const *s = 0 ? (char *) 0 : (char const *) 0;
3659
3660 *t++ = 0;
3661 }
3662 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3663 int x[] = {25, 17};
3664 const int *foo = &x[0];
3665 ++foo;
3666 }
3667 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3668 typedef const int *iptr;
3669 iptr p = 0;
3670 ++p;
3671 }
3672 { /* AIX XL C 1.02.0.0 rejects this saying
3673 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3674 struct s { int j; const int *ap[3]; };
3675 struct s *b; b->j = 5;
3676 }
3677 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3678 const int foo = 10;
3679 }
3680 #endif
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.$ac_objext
3687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>conftest.er1
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -z "$ac_c_werror_flag"
3696 || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_c_const=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 ac_cv_c_const=no
3714 fi
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3718 echo "${ECHO_T}$ac_cv_c_const" >&6
3719 if test $ac_cv_c_const = no; then
3720
3721 cat >>confdefs.h <<\_ACEOF
3722 #define const
3723 _ACEOF
3724
3725 fi
3726
3727 echo "$as_me:$LINENO: checking for inline" >&5
3728 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3729 if test "${ac_cv_c_inline+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 ac_cv_c_inline=no
3733 for ac_kw in inline __inline__ __inline; do
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #ifndef __cplusplus
3741 typedef int foo_t;
3742 static $ac_kw foo_t static_foo () {return 0; }
3743 $ac_kw foo_t foo () {return 0; }
3744 #endif
3745
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 ac_cv_c_inline=$ac_kw; break
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 fi
3775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3776 done
3777
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3780 echo "${ECHO_T}$ac_cv_c_inline" >&6
3781
3782
3783 case $ac_cv_c_inline in
3784 inline | yes) ;;
3785 *)
3786 case $ac_cv_c_inline in
3787 no) ac_val=;;
3788 *) ac_val=$ac_cv_c_inline;;
3789 esac
3790 cat >>confdefs.h <<_ACEOF
3791 #ifndef __cplusplus
3792 #define inline $ac_val
3793 #endif
3794 _ACEOF
3795 ;;
3796 esac
3797
3798 echo "$as_me:$LINENO: checking for obstacks" >&5
3799 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3800 if test "${ac_cv_func_obstack+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h. */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include "obstack.h"
3810 int
3811 main ()
3812 {
3813 struct obstack *mem; obstack_free(mem,(char *) 0)
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820 (eval $ac_link) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_func_obstack=yes
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 ac_cv_func_obstack=no
3846 fi
3847 rm -f conftest.err conftest.$ac_objext \
3848 conftest$ac_exeext conftest.$ac_ext
3849 fi
3850 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3851 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3852 if test $ac_cv_func_obstack = yes; then
3853
3854 cat >>confdefs.h <<\_ACEOF
3855 #define HAVE_OBSTACK 1
3856 _ACEOF
3857
3858 else
3859 case $LIBOBJS in
3860 "obstack.$ac_objext" | \
3861 *" obstack.$ac_objext" | \
3862 "obstack.$ac_objext "* | \
3863 *" obstack.$ac_objext "* ) ;;
3864 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3865 esac
3866
3867 fi
3868
3869 echo "$as_me:$LINENO: checking for off_t" >&5
3870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3871 if test "${ac_cv_type_off_t+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 $ac_includes_default
3881 int
3882 main ()
3883 {
3884 if ((off_t *) 0)
3885 return 0;
3886 if (sizeof (off_t))
3887 return 0;
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_type_off_t=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ac_cv_type_off_t=no
3920 fi
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3924 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3925 if test $ac_cv_type_off_t = yes; then
3926 :
3927 else
3928
3929 cat >>confdefs.h <<_ACEOF
3930 #define off_t long
3931 _ACEOF
3932
3933 fi
3934
3935 echo "$as_me:$LINENO: checking for size_t" >&5
3936 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3937 if test "${ac_cv_type_size_t+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 $ac_includes_default
3947 int
3948 main ()
3949 {
3950 if ((size_t *) 0)
3951 return 0;
3952 if (sizeof (size_t))
3953 return 0;
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } &&
3967 { ac_try='test -z "$ac_c_werror_flag"
3968 || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest.$ac_objext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 ac_cv_type_size_t=yes
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ac_cv_type_size_t=no
3986 fi
3987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3988 fi
3989 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3990 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3991 if test $ac_cv_type_size_t = yes; then
3992 :
3993 else
3994
3995 cat >>confdefs.h <<_ACEOF
3996 #define size_t unsigned
3997 _ACEOF
3998
3999 fi
4000
4001 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4003 if test "${ac_cv_struct_tm+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <sys/types.h>
4013 #include <time.h>
4014
4015 int
4016 main ()
4017 {
4018 struct tm *tp; tp->tm_sec;
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_struct_tm=time.h
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 ac_cv_struct_tm=sys/time.h
4051 fi
4052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4055 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4056 if test $ac_cv_struct_tm = sys/time.h; then
4057
4058 cat >>confdefs.h <<\_ACEOF
4059 #define TM_IN_SYS_TIME 1
4060 _ACEOF
4061
4062 fi
4063
4064 echo "$as_me:$LINENO: checking for int" >&5
4065 echo $ECHO_N "checking for int... $ECHO_C" >&6
4066 if test "${ac_cv_type_int+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_includes_default
4076 int
4077 main ()
4078 {
4079 if ((int *) 0)
4080 return 0;
4081 if (sizeof (int))
4082 return 0;
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_type_int=yes
4110 else
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 ac_cv_type_int=no
4115 fi
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4119 echo "${ECHO_T}$ac_cv_type_int" >&6
4120
4121 echo "$as_me:$LINENO: checking size of int" >&5
4122 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4123 if test "${ac_cv_sizeof_int+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 if test "$ac_cv_type_int" = yes; then
4127 # The cast to unsigned long works around a bug in the HP C Compiler
4128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4130 # This bug is HP SR number 8606223364.
4131 if test "$cross_compiling" = yes; then
4132 # Depending upon the size, compute the lo and hi bounds.
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4140 int
4141 main ()
4142 {
4143 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4144 test_array [0] = 0
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_lo=0 ac_mid=0
4173 while :; do
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 $ac_includes_default
4181 int
4182 main ()
4183 {
4184 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4185 test_array [0] = 0
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_c_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_hi=$ac_mid; break
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_lo=`expr $ac_mid + 1`
4219 if test $ac_lo -le $ac_mid; then
4220 ac_lo= ac_hi=
4221 break
4222 fi
4223 ac_mid=`expr 2 '*' $ac_mid + 1`
4224 fi
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226 done
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 $ac_includes_default
4238 int
4239 main ()
4240 {
4241 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4242 test_array [0] = 0
4243
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_hi=-1 ac_mid=-1
4271 while :; do
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4279 int
4280 main ()
4281 {
4282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4283 test_array [0] = 0
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_lo=$ac_mid; break
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_hi=`expr '(' $ac_mid ')' - 1`
4317 if test $ac_mid -le $ac_hi; then
4318 ac_lo= ac_hi=
4319 break
4320 fi
4321 ac_mid=`expr 2 '*' $ac_mid`
4322 fi
4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4324 done
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 ac_lo= ac_hi=
4330 fi
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 # Binary search between lo and hi bounds.
4335 while test "x$ac_lo" != "x$ac_hi"; do
4336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4344 int
4345 main ()
4346 {
4347 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4348 test_array [0] = 0
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_hi=$ac_mid
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4380
4381 ac_lo=`expr '(' $ac_mid ')' + 1`
4382 fi
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384 done
4385 case $ac_lo in
4386 ?*) ac_cv_sizeof_int=$ac_lo;;
4387 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4388 See \`config.log' for more details." >&5
4389 echo "$as_me: error: cannot compute sizeof (int), 77
4390 See \`config.log' for more details." >&2;}
4391 { (exit 1); exit 1; }; } ;;
4392 esac
4393 else
4394 if test "$cross_compiling" = yes; then
4395 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4396 See \`config.log' for more details." >&5
4397 echo "$as_me: error: cannot run test program while cross compiling
4398 See \`config.log' for more details." >&2;}
4399 { (exit 1); exit 1; }; }
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4408 long longval () { return (long) (sizeof (int)); }
4409 unsigned long ulongval () { return (long) (sizeof (int)); }
4410 #include <stdio.h>
4411 #include <stdlib.h>
4412 int
4413 main ()
4414 {
4415
4416 FILE *f = fopen ("conftest.val", "w");
4417 if (! f)
4418 exit (1);
4419 if (((long) (sizeof (int))) < 0)
4420 {
4421 long i = longval ();
4422 if (i != ((long) (sizeof (int))))
4423 exit (1);
4424 fprintf (f, "%ld\n", i);
4425 }
4426 else
4427 {
4428 unsigned long i = ulongval ();
4429 if (i != ((long) (sizeof (int))))
4430 exit (1);
4431 fprintf (f, "%lu\n", i);
4432 }
4433 exit (ferror (f) || fclose (f) != 0);
4434
4435 ;
4436 return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sizeof_int=`cat conftest.val`
4451 else
4452 echo "$as_me: program exited with status $ac_status" >&5
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 ( exit $ac_status )
4457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4458 See \`config.log' for more details." >&5
4459 echo "$as_me: error: cannot compute sizeof (int), 77
4460 See \`config.log' for more details." >&2;}
4461 { (exit 1); exit 1; }; }
4462 fi
4463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4464 fi
4465 fi
4466 rm -f conftest.val
4467 else
4468 ac_cv_sizeof_int=0
4469 fi
4470 fi
4471 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4472 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4473 cat >>confdefs.h <<_ACEOF
4474 #define SIZEOF_INT $ac_cv_sizeof_int
4475 _ACEOF
4476
4477
4478 echo "$as_me:$LINENO: checking for long" >&5
4479 echo $ECHO_N "checking for long... $ECHO_C" >&6
4480 if test "${ac_cv_type_long+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4490 int
4491 main ()
4492 {
4493 if ((long *) 0)
4494 return 0;
4495 if (sizeof (long))
4496 return 0;
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_cv_type_long=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 ac_cv_type_long=no
4529 fi
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4531 fi
4532 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4533 echo "${ECHO_T}$ac_cv_type_long" >&6
4534
4535 echo "$as_me:$LINENO: checking size of long" >&5
4536 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4537 if test "${ac_cv_sizeof_long+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 if test "$ac_cv_type_long" = yes; then
4541 # The cast to unsigned long works around a bug in the HP C Compiler
4542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4544 # This bug is HP SR number 8606223364.
4545 if test "$cross_compiling" = yes; then
4546 # Depending upon the size, compute the lo and hi bounds.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 int
4555 main ()
4556 {
4557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4558 test_array [0] = 0
4559
4560 ;
4561 return 0;
4562 }
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -z "$ac_c_werror_flag"
4574 || test ! -s conftest.err'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest.$ac_objext'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 ac_lo=0 ac_mid=0
4587 while :; do
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4595 int
4596 main ()
4597 {
4598 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4599 test_array [0] = 0
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_hi=$ac_mid; break
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_lo=`expr $ac_mid + 1`
4633 if test $ac_lo -le $ac_mid; then
4634 ac_lo= ac_hi=
4635 break
4636 fi
4637 ac_mid=`expr 2 '*' $ac_mid + 1`
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 done
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4656 test_array [0] = 0
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 ac_hi=-1 ac_mid=-1
4685 while :; do
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4693 int
4694 main ()
4695 {
4696 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4697 test_array [0] = 0
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_lo=$ac_mid; break
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_hi=`expr '(' $ac_mid ')' - 1`
4731 if test $ac_mid -le $ac_hi; then
4732 ac_lo= ac_hi=
4733 break
4734 fi
4735 ac_mid=`expr 2 '*' $ac_mid`
4736 fi
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 done
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 ac_lo= ac_hi=
4744 fi
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4748 # Binary search between lo and hi bounds.
4749 while test "x$ac_lo" != "x$ac_hi"; do
4750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4758 int
4759 main ()
4760 {
4761 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4762 test_array [0] = 0
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_hi=$ac_mid
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 ac_lo=`expr '(' $ac_mid ')' + 1`
4796 fi
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 done
4799 case $ac_lo in
4800 ?*) ac_cv_sizeof_long=$ac_lo;;
4801 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4802 See \`config.log' for more details." >&5
4803 echo "$as_me: error: cannot compute sizeof (long), 77
4804 See \`config.log' for more details." >&2;}
4805 { (exit 1); exit 1; }; } ;;
4806 esac
4807 else
4808 if test "$cross_compiling" = yes; then
4809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4810 See \`config.log' for more details." >&5
4811 echo "$as_me: error: cannot run test program while cross compiling
4812 See \`config.log' for more details." >&2;}
4813 { (exit 1); exit 1; }; }
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4822 long longval () { return (long) (sizeof (long)); }
4823 unsigned long ulongval () { return (long) (sizeof (long)); }
4824 #include <stdio.h>
4825 #include <stdlib.h>
4826 int
4827 main ()
4828 {
4829
4830 FILE *f = fopen ("conftest.val", "w");
4831 if (! f)
4832 exit (1);
4833 if (((long) (sizeof (long))) < 0)
4834 {
4835 long i = longval ();
4836 if (i != ((long) (sizeof (long))))
4837 exit (1);
4838 fprintf (f, "%ld\n", i);
4839 }
4840 else
4841 {
4842 unsigned long i = ulongval ();
4843 if (i != ((long) (sizeof (long))))
4844 exit (1);
4845 fprintf (f, "%lu\n", i);
4846 }
4847 exit (ferror (f) || fclose (f) != 0);
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_cv_sizeof_long=`cat conftest.val`
4865 else
4866 echo "$as_me: program exited with status $ac_status" >&5
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 ( exit $ac_status )
4871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4872 See \`config.log' for more details." >&5
4873 echo "$as_me: error: cannot compute sizeof (long), 77
4874 See \`config.log' for more details." >&2;}
4875 { (exit 1); exit 1; }; }
4876 fi
4877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4878 fi
4879 fi
4880 rm -f conftest.val
4881 else
4882 ac_cv_sizeof_long=0
4883 fi
4884 fi
4885 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4886 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4887 cat >>confdefs.h <<_ACEOF
4888 #define SIZEOF_LONG $ac_cv_sizeof_long
4889 _ACEOF
4890
4891
4892
4893
4894
4895
4896
4897 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
4898 fwrite_unlocked fprintf_unlocked
4899 do
4900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4901 echo "$as_me:$LINENO: checking for $ac_func" >&5
4902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4903 if eval "test \"\${$as_ac_var+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4914 #define $ac_func innocuous_$ac_func
4915
4916 /* System header to define __stub macros and hopefully few prototypes,
4917 which can conflict with char $ac_func (); below.
4918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 <limits.h> exists even on freestanding compilers. */
4920
4921 #ifdef __STDC__
4922 # include <limits.h>
4923 #else
4924 # include <assert.h>
4925 #endif
4926
4927 #undef $ac_func
4928
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 #ifdef __cplusplus
4931 extern "C"
4932 {
4933 #endif
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4936 char $ac_func ();
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4941 choke me
4942 #else
4943 char (*f) () = $ac_func;
4944 #endif
4945 #ifdef __cplusplus
4946 }
4947 #endif
4948
4949 int
4950 main ()
4951 {
4952 return f != $ac_func;
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext conftest$ac_exeext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest$ac_exeext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 eval "$as_ac_var=yes"
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 eval "$as_ac_var=no"
4985 fi
4986 rm -f conftest.err conftest.$ac_objext \
4987 conftest$ac_exeext conftest.$ac_ext
4988 fi
4989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4991 if test `eval echo '${'$as_ac_var'}'` = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4994 _ACEOF
4995
4996 fi
4997 done
4998
4999 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5000 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5001 if test "${ac_cv_have_decl_abort+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5011 int
5012 main ()
5013 {
5014 #ifndef abort
5015 char *p = (char *) abort;
5016 #endif
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_have_decl_abort=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_cv_have_decl_abort=no
5050 fi
5051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5054 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5055 if test $ac_cv_have_decl_abort = yes; then
5056
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_DECL_ABORT 1
5059 _ACEOF
5060
5061
5062 else
5063 cat >>confdefs.h <<_ACEOF
5064 #define HAVE_DECL_ABORT 0
5065 _ACEOF
5066
5067
5068 fi
5069 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5070 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5071 if test "${ac_cv_have_decl_basename+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 int
5082 main ()
5083 {
5084 #ifndef basename
5085 char *p = (char *) basename;
5086 #endif
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest.$ac_objext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_have_decl_basename=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_cv_have_decl_basename=no
5120 fi
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 fi
5123 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5124 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5125 if test $ac_cv_have_decl_basename = yes; then
5126
5127 cat >>confdefs.h <<_ACEOF
5128 #define HAVE_DECL_BASENAME 1
5129 _ACEOF
5130
5131
5132 else
5133 cat >>confdefs.h <<_ACEOF
5134 #define HAVE_DECL_BASENAME 0
5135 _ACEOF
5136
5137
5138 fi
5139 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5140 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5141 if test "${ac_cv_have_decl_errno+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 int
5152 main ()
5153 {
5154 #ifndef errno
5155 char *p = (char *) errno;
5156 #endif
5157
5158 ;
5159 return 0;
5160 }
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_have_decl_errno=yes
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_cv_have_decl_errno=no
5190 fi
5191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5194 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5195 if test $ac_cv_have_decl_errno = yes; then
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define HAVE_DECL_ERRNO 1
5199 _ACEOF
5200
5201
5202 else
5203 cat >>confdefs.h <<_ACEOF
5204 #define HAVE_DECL_ERRNO 0
5205 _ACEOF
5206
5207
5208 fi
5209 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
5210 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
5211 if test "${ac_cv_have_decl_getopt+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5221 int
5222 main ()
5223 {
5224 #ifndef getopt
5225 char *p = (char *) getopt;
5226 #endif
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_have_decl_getopt=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 ac_cv_have_decl_getopt=no
5260 fi
5261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262 fi
5263 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
5264 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
5265 if test $ac_cv_have_decl_getopt = yes; then
5266
5267 cat >>confdefs.h <<_ACEOF
5268 #define HAVE_DECL_GETOPT 1
5269 _ACEOF
5270
5271
5272 else
5273 cat >>confdefs.h <<_ACEOF
5274 #define HAVE_DECL_GETOPT 0
5275 _ACEOF
5276
5277
5278 fi
5279 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5280 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5281 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 $ac_includes_default
5291 int
5292 main ()
5293 {
5294 #ifndef putc_unlocked
5295 char *p = (char *) putc_unlocked;
5296 #endif
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag"
5312 || test ! -s conftest.err'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_have_decl_putc_unlocked=yes
5325 else
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ac_cv_have_decl_putc_unlocked=no
5330 fi
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 fi
5333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5334 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5335 if test $ac_cv_have_decl_putc_unlocked = yes; then
5336
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_DECL_PUTC_UNLOCKED 1
5339 _ACEOF
5340
5341
5342 else
5343 cat >>confdefs.h <<_ACEOF
5344 #define HAVE_DECL_PUTC_UNLOCKED 0
5345 _ACEOF
5346
5347
5348 fi
5349 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5350 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5351 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5361 int
5362 main ()
5363 {
5364 #ifndef fputc_unlocked
5365 char *p = (char *) fputc_unlocked;
5366 #endif
5367
5368 ;
5369 return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_have_decl_fputc_unlocked=yes
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ac_cv_have_decl_fputc_unlocked=no
5400 fi
5401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5404 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5405 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define HAVE_DECL_FPUTC_UNLOCKED 1
5409 _ACEOF
5410
5411
5412 else
5413 cat >>confdefs.h <<_ACEOF
5414 #define HAVE_DECL_FPUTC_UNLOCKED 0
5415 _ACEOF
5416
5417
5418 fi
5419 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5420 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5421 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 int
5432 main ()
5433 {
5434 #ifndef fputs_unlocked
5435 char *p = (char *) fputs_unlocked;
5436 #endif
5437
5438 ;
5439 return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_cv_have_decl_fputs_unlocked=yes
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_cv_have_decl_fputs_unlocked=no
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5474 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5475 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define HAVE_DECL_FPUTS_UNLOCKED 1
5479 _ACEOF
5480
5481
5482 else
5483 cat >>confdefs.h <<_ACEOF
5484 #define HAVE_DECL_FPUTS_UNLOCKED 0
5485 _ACEOF
5486
5487
5488 fi
5489 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5490 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5491 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 $ac_includes_default
5501 int
5502 main ()
5503 {
5504 #ifndef fwrite_unlocked
5505 char *p = (char *) fwrite_unlocked;
5506 #endif
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_have_decl_fwrite_unlocked=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ac_cv_have_decl_fwrite_unlocked=no
5540 fi
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542 fi
5543 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5544 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5545 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define HAVE_DECL_FWRITE_UNLOCKED 1
5549 _ACEOF
5550
5551
5552 else
5553 cat >>confdefs.h <<_ACEOF
5554 #define HAVE_DECL_FWRITE_UNLOCKED 0
5555 _ACEOF
5556
5557
5558 fi
5559 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5560 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5561 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 $ac_includes_default
5571 int
5572 main ()
5573 {
5574 #ifndef fprintf_unlocked
5575 char *p = (char *) fprintf_unlocked;
5576 #endif
5577
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5584 (eval $ac_compile) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_have_decl_fprintf_unlocked=yes
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_cv_have_decl_fprintf_unlocked=no
5610 fi
5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5614 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5615 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5616
5617 cat >>confdefs.h <<_ACEOF
5618 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5619 _ACEOF
5620
5621
5622 else
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5625 _ACEOF
5626
5627
5628 fi
5629
5630
5631
5632 # Checks for library functions.
5633 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5634 # for constant arguments. Useless!
5635 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5636 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5637 if test "${ac_cv_working_alloca_h+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #include <alloca.h>
5647 int
5648 main ()
5649 {
5650 char *p = (char *) alloca (2 * sizeof (int));
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_working_alloca_h=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_cv_working_alloca_h=no
5683 fi
5684 rm -f conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext
5686 fi
5687 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5688 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5689 if test $ac_cv_working_alloca_h = yes; then
5690
5691 cat >>confdefs.h <<\_ACEOF
5692 #define HAVE_ALLOCA_H 1
5693 _ACEOF
5694
5695 fi
5696
5697 echo "$as_me:$LINENO: checking for alloca" >&5
5698 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5699 if test "${ac_cv_func_alloca_works+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 #ifdef __GNUC__
5709 # define alloca __builtin_alloca
5710 #else
5711 # ifdef _MSC_VER
5712 # include <malloc.h>
5713 # define alloca _alloca
5714 # else
5715 # if HAVE_ALLOCA_H
5716 # include <alloca.h>
5717 # else
5718 # ifdef _AIX
5719 #pragma alloca
5720 # else
5721 # ifndef alloca /* predefined by HP cc +Olibcalls */
5722 char *alloca ();
5723 # endif
5724 # endif
5725 # endif
5726 # endif
5727 #endif
5728
5729 int
5730 main ()
5731 {
5732 char *p = (char *) alloca (1);
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_func_alloca_works=yes
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 ac_cv_func_alloca_works=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 fi
5769 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5770 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5771
5772 if test $ac_cv_func_alloca_works = yes; then
5773
5774 cat >>confdefs.h <<\_ACEOF
5775 #define HAVE_ALLOCA 1
5776 _ACEOF
5777
5778 else
5779 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5780 # that cause trouble. Some versions do not even contain alloca or
5781 # contain a buggy version. If you still want to use their alloca,
5782 # use ar to extract alloca.o from them instead of compiling alloca.c.
5783
5784 ALLOCA=alloca.$ac_objext
5785
5786 cat >>confdefs.h <<\_ACEOF
5787 #define C_ALLOCA 1
5788 _ACEOF
5789
5790
5791 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5792 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5793 if test "${ac_cv_os_cray+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #if defined(CRAY) && ! defined(CRAY2)
5803 webecray
5804 #else
5805 wenotbecray
5806 #endif
5807
5808 _ACEOF
5809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5810 $EGREP "webecray" >/dev/null 2>&1; then
5811 ac_cv_os_cray=yes
5812 else
5813 ac_cv_os_cray=no
5814 fi
5815 rm -f conftest*
5816
5817 fi
5818 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5819 echo "${ECHO_T}$ac_cv_os_cray" >&6
5820 if test $ac_cv_os_cray = yes; then
5821 for ac_func in _getb67 GETB67 getb67; do
5822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5823 echo "$as_me:$LINENO: checking for $ac_func" >&5
5824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5825 if eval "test \"\${$as_ac_var+set}\" = set"; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5836 #define $ac_func innocuous_$ac_func
5837
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func (); below.
5840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 <limits.h> exists even on freestanding compilers. */
5842
5843 #ifdef __STDC__
5844 # include <limits.h>
5845 #else
5846 # include <assert.h>
5847 #endif
5848
5849 #undef $ac_func
5850
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 #ifdef __cplusplus
5853 extern "C"
5854 {
5855 #endif
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5858 char $ac_func ();
5859 /* The GNU C library defines this for functions which it implements
5860 to always fail with ENOSYS. Some functions are actually named
5861 something starting with __ and the normal name is an alias. */
5862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5863 choke me
5864 #else
5865 char (*f) () = $ac_func;
5866 #endif
5867 #ifdef __cplusplus
5868 }
5869 #endif
5870
5871 int
5872 main ()
5873 {
5874 return f != $ac_func;
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 eval "$as_ac_var=yes"
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 eval "$as_ac_var=no"
5907 fi
5908 rm -f conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5910 fi
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5913 if test `eval echo '${'$as_ac_var'}'` = yes; then
5914
5915 cat >>confdefs.h <<_ACEOF
5916 #define CRAY_STACKSEG_END $ac_func
5917 _ACEOF
5918
5919 break
5920 fi
5921
5922 done
5923 fi
5924
5925 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5926 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5927 if test "${ac_cv_c_stack_direction+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 if test "$cross_compiling" = yes; then
5931 ac_cv_c_stack_direction=0
5932 else
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 int
5940 find_stack_direction ()
5941 {
5942 static char *addr = 0;
5943 auto char dummy;
5944 if (addr == 0)
5945 {
5946 addr = &dummy;
5947 return find_stack_direction ();
5948 }
5949 else
5950 return (&dummy > addr) ? 1 : -1;
5951 }
5952
5953 int
5954 main ()
5955 {
5956 exit (find_stack_direction () < 0);
5957 }
5958 _ACEOF
5959 rm -f conftest$ac_exeext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_c_stack_direction=1
5971 else
5972 echo "$as_me: program exited with status $ac_status" >&5
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ( exit $ac_status )
5977 ac_cv_c_stack_direction=-1
5978 fi
5979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5980 fi
5981 fi
5982 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5983 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define STACK_DIRECTION $ac_cv_c_stack_direction
5987 _ACEOF
5988
5989
5990 fi
5991
5992 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5993 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5994 if test "${ac_cv_header_stdc+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <stdlib.h>
6004 #include <stdarg.h>
6005 #include <string.h>
6006 #include <float.h>
6007
6008 int
6009 main ()
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_header_stdc=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_cv_header_stdc=no
6044 fi
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046
6047 if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <string.h>
6056
6057 _ACEOF
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "memchr" >/dev/null 2>&1; then
6060 :
6061 else
6062 ac_cv_header_stdc=no
6063 fi
6064 rm -f conftest*
6065
6066 fi
6067
6068 if test $ac_cv_header_stdc = yes; then
6069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #include <stdlib.h>
6077
6078 _ACEOF
6079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "free" >/dev/null 2>&1; then
6081 :
6082 else
6083 ac_cv_header_stdc=no
6084 fi
6085 rm -f conftest*
6086
6087 fi
6088
6089 if test $ac_cv_header_stdc = yes; then
6090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6091 if test "$cross_compiling" = yes; then
6092 :
6093 else
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 #include <ctype.h>
6101 #if ((' ' & 0x0FF) == 0x020)
6102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6104 #else
6105 # define ISLOWER(c) \
6106 (('a' <= (c) && (c) <= 'i') \
6107 || ('j' <= (c) && (c) <= 'r') \
6108 || ('s' <= (c) && (c) <= 'z'))
6109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6110 #endif
6111
6112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6113 int
6114 main ()
6115 {
6116 int i;
6117 for (i = 0; i < 256; i++)
6118 if (XOR (islower (i), ISLOWER (i))
6119 || toupper (i) != TOUPPER (i))
6120 exit(2);
6121 exit (0);
6122 }
6123 _ACEOF
6124 rm -f conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 :
6136 else
6137 echo "$as_me: program exited with status $ac_status" >&5
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141 ( exit $ac_status )
6142 ac_cv_header_stdc=no
6143 fi
6144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6145 fi
6146 fi
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6149 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6150 if test $ac_cv_header_stdc = yes; then
6151
6152 cat >>confdefs.h <<\_ACEOF
6153 #define STDC_HEADERS 1
6154 _ACEOF
6155
6156 fi
6157
6158
6159 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6160 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6161 if test "${am_cv_langinfo_codeset+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <langinfo.h>
6171 int
6172 main ()
6173 {
6174 char* cs = nl_langinfo(CODESET);
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 am_cv_langinfo_codeset=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 am_cv_langinfo_codeset=no
6207 fi
6208 rm -f conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6210
6211 fi
6212 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6213 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6214 if test $am_cv_langinfo_codeset = yes; then
6215
6216 cat >>confdefs.h <<\_ACEOF
6217 #define HAVE_LANGINFO_CODESET 1
6218 _ACEOF
6219
6220 fi
6221
6222 # If we haven't got the data from the intl directory,
6223 # assume NLS is disabled.
6224 USE_NLS=no
6225 LIBINTL=
6226 LIBINTL_DEP=
6227 INCINTL=
6228 XGETTEXT=
6229 GMSGFMT=
6230 POSUB=
6231 if test -f ../intl/config.intl; then
6232 . ../intl/config.intl
6233 fi
6234 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6235 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6236 if test x"$USE_NLS" != xyes; then
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6239 else
6240 echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6
6242
6243 cat >>confdefs.h <<\_ACEOF
6244 #define ENABLE_NLS 1
6245 _ACEOF
6246
6247
6248 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6249 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6250 # Look for .po and .gmo files in the source directory.
6251 CATALOGS=
6252 XLINGUAS=
6253 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6254 # If there aren't any .gmo files the shell will give us the
6255 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6256 # weeded out.
6257 case "$cat" in *\**)
6258 continue;;
6259 esac
6260 # The quadruple backslash is collapsed to a double backslash
6261 # by the backticks, then collapsed again by the double quotes,
6262 # leaving us with one backslash in the sed expression (right
6263 # before the dot that mustn't act as a wildcard).
6264 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6265 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6266 # The user is allowed to set LINGUAS to a list of languages to
6267 # install catalogs for. If it's empty that means "all of them."
6268 if test "x$LINGUAS" = x; then
6269 CATALOGS="$CATALOGS $cat"
6270 XLINGUAS="$XLINGUAS $lang"
6271 else
6272 case "$LINGUAS" in *$lang*)
6273 CATALOGS="$CATALOGS $cat"
6274 XLINGUAS="$XLINGUAS $lang"
6275 ;;
6276 esac
6277 fi
6278 done
6279 LINGUAS="$XLINGUAS"
6280 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6281 echo "${ECHO_T}$LINGUAS" >&6
6282 fi
6283
6284 echo "$as_me:$LINENO: checking for uchar" >&5
6285 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
6286 if test "${gcc_cv_type_uchar+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295
6296 #include <sys/types.h>
6297
6298 int
6299 main ()
6300 {
6301 if ((uchar *)0) return 0;
6302 if (sizeof(uchar)) return 0;
6303 ;
6304 return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag"
6317 || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_cv_type_uchar=yes
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 ac_cv_type_uchar=no
6335 fi
6336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6337 fi
6338 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6339 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6340 if test $ac_cv_type_uchar = yes; then
6341
6342 cat >>confdefs.h <<\_ACEOF
6343 #define HAVE_UCHAR 1
6344 _ACEOF
6345
6346 fi
6347
6348
6349 if test "X$prefix" = "XNONE"; then
6350 acl_final_prefix="$ac_default_prefix"
6351 else
6352 acl_final_prefix="$prefix"
6353 fi
6354 if test "X$exec_prefix" = "XNONE"; then
6355 acl_final_exec_prefix='${prefix}'
6356 else
6357 acl_final_exec_prefix="$exec_prefix"
6358 fi
6359 acl_save_prefix="$prefix"
6360 prefix="$acl_final_prefix"
6361 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6362 prefix="$acl_save_prefix"
6363
6364
6365 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6366 if test "${with_gnu_ld+set}" = set; then
6367 withval="$with_gnu_ld"
6368 test "$withval" = no || with_gnu_ld=yes
6369 else
6370 with_gnu_ld=no
6371 fi;
6372 # Prepare PATH_SEPARATOR.
6373 # The user is always right.
6374 if test "${PATH_SEPARATOR+set}" != set; then
6375 echo "#! /bin/sh" >conf$$.sh
6376 echo "exit 0" >>conf$$.sh
6377 chmod +x conf$$.sh
6378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6379 PATH_SEPARATOR=';'
6380 else
6381 PATH_SEPARATOR=:
6382 fi
6383 rm -f conf$$.sh
6384 fi
6385 ac_prog=ld
6386 if test "$GCC" = yes; then
6387 # Check if gcc -print-prog-name=ld gives a path.
6388 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6389 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6390 case $host in
6391 *-*-mingw*)
6392 # gcc leaves a trailing carriage return which upsets mingw
6393 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6394 *)
6395 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6396 esac
6397 case $ac_prog in
6398 # Accept absolute paths.
6399 [\\/]* | [A-Za-z]:[\\/]*)
6400 re_direlt='/[^/][^/]*/\.\./'
6401 # Canonicalize the path of ld
6402 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6403 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6404 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6405 done
6406 test -z "$LD" && LD="$ac_prog"
6407 ;;
6408 "")
6409 # If it fails, then pretend we aren't using GCC.
6410 ac_prog=ld
6411 ;;
6412 *)
6413 # If it is relative, then search for the first ld in PATH.
6414 with_gnu_ld=unknown
6415 ;;
6416 esac
6417 elif test "$with_gnu_ld" = yes; then
6418 echo "$as_me:$LINENO: checking for GNU ld" >&5
6419 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6420 else
6421 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6422 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6423 fi
6424 if test "${acl_cv_path_LD+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 if test -z "$LD"; then
6428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6429 for ac_dir in $PATH; do
6430 test -z "$ac_dir" && ac_dir=.
6431 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6432 acl_cv_path_LD="$ac_dir/$ac_prog"
6433 # Check to see if the program is GNU ld. I'd rather use --version,
6434 # but apparently some GNU ld's only accept -v.
6435 # Break only if it was the GNU/non-GNU ld that we prefer.
6436 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6437 test "$with_gnu_ld" != no && break
6438 else
6439 test "$with_gnu_ld" != yes && break
6440 fi
6441 fi
6442 done
6443 IFS="$ac_save_ifs"
6444 else
6445 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6446 fi
6447 fi
6448
6449 LD="$acl_cv_path_LD"
6450 if test -n "$LD"; then
6451 echo "$as_me:$LINENO: result: $LD" >&5
6452 echo "${ECHO_T}$LD" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6
6456 fi
6457 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6458 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6459 { (exit 1); exit 1; }; }
6460 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6461 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6462 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6466 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6467 acl_cv_prog_gnu_ld=yes
6468 else
6469 acl_cv_prog_gnu_ld=no
6470 fi
6471 fi
6472 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6473 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6474 with_gnu_ld=$acl_cv_prog_gnu_ld
6475
6476
6477
6478 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6479 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6480 if test "${acl_cv_rpath+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483
6484 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6485 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6486 . ./conftest.sh
6487 rm -f ./conftest.sh
6488 acl_cv_rpath=done
6489
6490 fi
6491 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6492 echo "${ECHO_T}$acl_cv_rpath" >&6
6493 wl="$acl_cv_wl"
6494 libext="$acl_cv_libext"
6495 shlibext="$acl_cv_shlibext"
6496 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6497 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6498 hardcode_direct="$acl_cv_hardcode_direct"
6499 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6500 # Check whether --enable-rpath or --disable-rpath was given.
6501 if test "${enable_rpath+set}" = set; then
6502 enableval="$enable_rpath"
6503 :
6504 else
6505 enable_rpath=yes
6506 fi;
6507
6508
6509
6510
6511
6512
6513
6514 use_additional=yes
6515
6516 acl_save_prefix="$prefix"
6517 prefix="$acl_final_prefix"
6518 acl_save_exec_prefix="$exec_prefix"
6519 exec_prefix="$acl_final_exec_prefix"
6520
6521 eval additional_includedir=\"$includedir\"
6522 eval additional_libdir=\"$libdir\"
6523
6524 exec_prefix="$acl_save_exec_prefix"
6525 prefix="$acl_save_prefix"
6526
6527
6528 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6529 if test "${with_libiconv_prefix+set}" = set; then
6530 withval="$with_libiconv_prefix"
6531
6532 if test "X$withval" = "Xno"; then
6533 use_additional=no
6534 else
6535 if test "X$withval" = "X"; then
6536
6537 acl_save_prefix="$prefix"
6538 prefix="$acl_final_prefix"
6539 acl_save_exec_prefix="$exec_prefix"
6540 exec_prefix="$acl_final_exec_prefix"
6541
6542 eval additional_includedir=\"$includedir\"
6543 eval additional_libdir=\"$libdir\"
6544
6545 exec_prefix="$acl_save_exec_prefix"
6546 prefix="$acl_save_prefix"
6547
6548 else
6549 additional_includedir="$withval/include"
6550 additional_libdir="$withval/lib"
6551 fi
6552 fi
6553
6554 fi;
6555 LIBICONV=
6556 LTLIBICONV=
6557 INCICONV=
6558 rpathdirs=
6559 ltrpathdirs=
6560 names_already_handled=
6561 names_next_round='iconv '
6562 while test -n "$names_next_round"; do
6563 names_this_round="$names_next_round"
6564 names_next_round=
6565 for name in $names_this_round; do
6566 already_handled=
6567 for n in $names_already_handled; do
6568 if test "$n" = "$name"; then
6569 already_handled=yes
6570 break
6571 fi
6572 done
6573 if test -z "$already_handled"; then
6574 names_already_handled="$names_already_handled $name"
6575 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6576 eval value=\"\$HAVE_LIB$uppername\"
6577 if test -n "$value"; then
6578 if test "$value" = yes; then
6579 eval value=\"\$LIB$uppername\"
6580 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6581 eval value=\"\$LTLIB$uppername\"
6582 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6583 else
6584 :
6585 fi
6586 else
6587 found_dir=
6588 found_la=
6589 found_so=
6590 found_a=
6591 if test $use_additional = yes; then
6592 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6593 found_dir="$additional_libdir"
6594 found_so="$additional_libdir/lib$name.$shlibext"
6595 if test -f "$additional_libdir/lib$name.la"; then
6596 found_la="$additional_libdir/lib$name.la"
6597 fi
6598 else
6599 if test -f "$additional_libdir/lib$name.$libext"; then
6600 found_dir="$additional_libdir"
6601 found_a="$additional_libdir/lib$name.$libext"
6602 if test -f "$additional_libdir/lib$name.la"; then
6603 found_la="$additional_libdir/lib$name.la"
6604 fi
6605 fi
6606 fi
6607 fi
6608 if test "X$found_dir" = "X"; then
6609 for x in $LDFLAGS $LTLIBICONV; do
6610
6611 acl_save_prefix="$prefix"
6612 prefix="$acl_final_prefix"
6613 acl_save_exec_prefix="$exec_prefix"
6614 exec_prefix="$acl_final_exec_prefix"
6615 eval x=\"$x\"
6616 exec_prefix="$acl_save_exec_prefix"
6617 prefix="$acl_save_prefix"
6618
6619 case "$x" in
6620 -L*)
6621 dir=`echo "X$x" | sed -e 's/^X-L//'`
6622 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6623 found_dir="$dir"
6624 found_so="$dir/lib$name.$shlibext"
6625 if test -f "$dir/lib$name.la"; then
6626 found_la="$dir/lib$name.la"
6627 fi
6628 else
6629 if test -f "$dir/lib$name.$libext"; then
6630 found_dir="$dir"
6631 found_a="$dir/lib$name.$libext"
6632 if test -f "$dir/lib$name.la"; then
6633 found_la="$dir/lib$name.la"
6634 fi
6635 fi
6636 fi
6637 ;;
6638 esac
6639 if test "X$found_dir" != "X"; then
6640 break
6641 fi
6642 done
6643 fi
6644 if test "X$found_dir" != "X"; then
6645 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6646 if test "X$found_so" != "X"; then
6647 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6648 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6649 else
6650 haveit=
6651 for x in $ltrpathdirs; do
6652 if test "X$x" = "X$found_dir"; then
6653 haveit=yes
6654 break
6655 fi
6656 done
6657 if test -z "$haveit"; then
6658 ltrpathdirs="$ltrpathdirs $found_dir"
6659 fi
6660 if test "$hardcode_direct" = yes; then
6661 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6662 else
6663 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6664 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6665 haveit=
6666 for x in $rpathdirs; do
6667 if test "X$x" = "X$found_dir"; then
6668 haveit=yes
6669 break
6670 fi
6671 done
6672 if test -z "$haveit"; then
6673 rpathdirs="$rpathdirs $found_dir"
6674 fi
6675 else
6676 haveit=
6677 for x in $LDFLAGS $LIBICONV; do
6678
6679 acl_save_prefix="$prefix"
6680 prefix="$acl_final_prefix"
6681 acl_save_exec_prefix="$exec_prefix"
6682 exec_prefix="$acl_final_exec_prefix"
6683 eval x=\"$x\"
6684 exec_prefix="$acl_save_exec_prefix"
6685 prefix="$acl_save_prefix"
6686
6687 if test "X$x" = "X-L$found_dir"; then
6688 haveit=yes
6689 break
6690 fi
6691 done
6692 if test -z "$haveit"; then
6693 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6694 fi
6695 if test "$hardcode_minus_L" != no; then
6696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6697 else
6698 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6699 fi
6700 fi
6701 fi
6702 fi
6703 else
6704 if test "X$found_a" != "X"; then
6705 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6706 else
6707 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6708 fi
6709 fi
6710 additional_includedir=
6711 case "$found_dir" in
6712 */lib | */lib/)
6713 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6714 additional_includedir="$basedir/include"
6715 ;;
6716 esac
6717 if test "X$additional_includedir" != "X"; then
6718 if test "X$additional_includedir" != "X/usr/include"; then
6719 haveit=
6720 if test "X$additional_includedir" = "X/usr/local/include"; then
6721 if test -n "$GCC"; then
6722 case $host_os in
6723 linux*) haveit=yes;;
6724 esac
6725 fi
6726 fi
6727 if test -z "$haveit"; then
6728 for x in $CPPFLAGS $INCICONV; do
6729
6730 acl_save_prefix="$prefix"
6731 prefix="$acl_final_prefix"
6732 acl_save_exec_prefix="$exec_prefix"
6733 exec_prefix="$acl_final_exec_prefix"
6734 eval x=\"$x\"
6735 exec_prefix="$acl_save_exec_prefix"
6736 prefix="$acl_save_prefix"
6737
6738 if test "X$x" = "X-I$additional_includedir"; then
6739 haveit=yes
6740 break
6741 fi
6742 done
6743 if test -z "$haveit"; then
6744 if test -d "$additional_includedir"; then
6745 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6746 fi
6747 fi
6748 fi
6749 fi
6750 fi
6751 if test -n "$found_la"; then
6752 save_libdir="$libdir"
6753 case "$found_la" in
6754 */* | *\\*) . "$found_la" ;;
6755 *) . "./$found_la" ;;
6756 esac
6757 libdir="$save_libdir"
6758 for dep in $dependency_libs; do
6759 case "$dep" in
6760 -L*)
6761 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6762 if test "X$additional_libdir" != "X/usr/lib"; then
6763 haveit=
6764 if test "X$additional_libdir" = "X/usr/local/lib"; then
6765 if test -n "$GCC"; then
6766 case $host_os in
6767 linux*) haveit=yes;;
6768 esac
6769 fi
6770 fi
6771 if test -z "$haveit"; then
6772 haveit=
6773 for x in $LDFLAGS $LIBICONV; do
6774
6775 acl_save_prefix="$prefix"
6776 prefix="$acl_final_prefix"
6777 acl_save_exec_prefix="$exec_prefix"
6778 exec_prefix="$acl_final_exec_prefix"
6779 eval x=\"$x\"
6780 exec_prefix="$acl_save_exec_prefix"
6781 prefix="$acl_save_prefix"
6782
6783 if test "X$x" = "X-L$additional_libdir"; then
6784 haveit=yes
6785 break
6786 fi
6787 done
6788 if test -z "$haveit"; then
6789 if test -d "$additional_libdir"; then
6790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6791 fi
6792 fi
6793 haveit=
6794 for x in $LDFLAGS $LTLIBICONV; do
6795
6796 acl_save_prefix="$prefix"
6797 prefix="$acl_final_prefix"
6798 acl_save_exec_prefix="$exec_prefix"
6799 exec_prefix="$acl_final_exec_prefix"
6800 eval x=\"$x\"
6801 exec_prefix="$acl_save_exec_prefix"
6802 prefix="$acl_save_prefix"
6803
6804 if test "X$x" = "X-L$additional_libdir"; then
6805 haveit=yes
6806 break
6807 fi
6808 done
6809 if test -z "$haveit"; then
6810 if test -d "$additional_libdir"; then
6811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6812 fi
6813 fi
6814 fi
6815 fi
6816 ;;
6817 -R*)
6818 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6819 if test "$enable_rpath" != no; then
6820 haveit=
6821 for x in $rpathdirs; do
6822 if test "X$x" = "X$dir"; then
6823 haveit=yes
6824 break
6825 fi
6826 done
6827 if test -z "$haveit"; then
6828 rpathdirs="$rpathdirs $dir"
6829 fi
6830 haveit=
6831 for x in $ltrpathdirs; do
6832 if test "X$x" = "X$dir"; then
6833 haveit=yes
6834 break
6835 fi
6836 done
6837 if test -z "$haveit"; then
6838 ltrpathdirs="$ltrpathdirs $dir"
6839 fi
6840 fi
6841 ;;
6842 -l*)
6843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6844 ;;
6845 *.la)
6846 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6847 ;;
6848 *)
6849 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6851 ;;
6852 esac
6853 done
6854 fi
6855 else
6856 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6857 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6858 fi
6859 fi
6860 fi
6861 done
6862 done
6863 if test "X$rpathdirs" != "X"; then
6864 if test -n "$hardcode_libdir_separator"; then
6865 alldirs=
6866 for found_dir in $rpathdirs; do
6867 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6868 done
6869 acl_save_libdir="$libdir"
6870 libdir="$alldirs"
6871 eval flag=\"$hardcode_libdir_flag_spec\"
6872 libdir="$acl_save_libdir"
6873 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6874 else
6875 for found_dir in $rpathdirs; do
6876 acl_save_libdir="$libdir"
6877 libdir="$found_dir"
6878 eval flag=\"$hardcode_libdir_flag_spec\"
6879 libdir="$acl_save_libdir"
6880 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6881 done
6882 fi
6883 fi
6884 if test "X$ltrpathdirs" != "X"; then
6885 for found_dir in $ltrpathdirs; do
6886 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6887 done
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896 am_save_CPPFLAGS="$CPPFLAGS"
6897
6898 for element in $INCICONV; do
6899 haveit=
6900 for x in $CPPFLAGS; do
6901
6902 acl_save_prefix="$prefix"
6903 prefix="$acl_final_prefix"
6904 acl_save_exec_prefix="$exec_prefix"
6905 exec_prefix="$acl_final_exec_prefix"
6906 eval x=\"$x\"
6907 exec_prefix="$acl_save_exec_prefix"
6908 prefix="$acl_save_prefix"
6909
6910 if test "X$x" = "X$element"; then
6911 haveit=yes
6912 break
6913 fi
6914 done
6915 if test -z "$haveit"; then
6916 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6917 fi
6918 done
6919
6920
6921 echo "$as_me:$LINENO: checking for iconv" >&5
6922 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6923 if test "${am_cv_func_iconv+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926
6927 am_cv_func_iconv="no, consider installing GNU libiconv"
6928 am_cv_lib_iconv=no
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <stdlib.h>
6936 #include <iconv.h>
6937 int
6938 main ()
6939 {
6940 iconv_t cd = iconv_open("","");
6941 iconv(cd,NULL,NULL,NULL,NULL);
6942 iconv_close(cd);
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 am_cv_func_iconv=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 fi
6975 rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 if test "$am_cv_func_iconv" != yes; then
6978 am_save_LIBS="$LIBS"
6979 LIBS="$LIBS $LIBICONV"
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <stdlib.h>
6987 #include <iconv.h>
6988 int
6989 main ()
6990 {
6991 iconv_t cd = iconv_open("","");
6992 iconv(cd,NULL,NULL,NULL,NULL);
6993 iconv_close(cd);
6994 ;
6995 return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 am_cv_lib_iconv=yes
7021 am_cv_func_iconv=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 fi
7027 rm -f conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 LIBS="$am_save_LIBS"
7030 fi
7031
7032 fi
7033 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7034 echo "${ECHO_T}$am_cv_func_iconv" >&6
7035 if test "$am_cv_func_iconv" = yes; then
7036
7037 cat >>confdefs.h <<\_ACEOF
7038 #define HAVE_ICONV 1
7039 _ACEOF
7040
7041 fi
7042 if test "$am_cv_lib_iconv" = yes; then
7043 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7044 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7045 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7046 echo "${ECHO_T}$LIBICONV" >&6
7047 else
7048 CPPFLAGS="$am_save_CPPFLAGS"
7049 LIBICONV=
7050 LTLIBICONV=
7051 fi
7052
7053
7054
7055 if test "$am_cv_func_iconv" = yes; then
7056 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7057 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7058 if test "${am_cv_proto_iconv+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068
7069 #include <stdlib.h>
7070 #include <iconv.h>
7071 extern
7072 #ifdef __cplusplus
7073 "C"
7074 #endif
7075 #if defined(__STDC__) || defined(__cplusplus)
7076 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7077 #else
7078 size_t iconv();
7079 #endif
7080
7081 int
7082 main ()
7083 {
7084
7085 ;
7086 return 0;
7087 }
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -z "$ac_c_werror_flag"
7099 || test ! -s conftest.err'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 am_cv_proto_iconv_arg1=""
7112 else
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116 am_cv_proto_iconv_arg1="const"
7117 fi
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 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);"
7120 fi
7121
7122 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7123 echo "$as_me:$LINENO: result: ${ac_t:-
7124 }$am_cv_proto_iconv" >&5
7125 echo "${ECHO_T}${ac_t:-
7126 }$am_cv_proto_iconv" >&6
7127
7128 cat >>confdefs.h <<_ACEOF
7129 #define ICONV_CONST $am_cv_proto_iconv_arg1
7130 _ACEOF
7131
7132 fi
7133
7134
7135 # More defines and substitutions.
7136 PACKAGE="$PACKAGE_TARNAME"
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define PACKAGE "$PACKAGE"
7140 _ACEOF
7141
7142
7143
7144 if test "x$enable_nls" != xno; then
7145 USED_CATALOGS='$(CATALOGS)'
7146 else
7147 USED_CATALOGS=
7148 fi
7149
7150
7151 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7152 if test "${enable_maintainer_mode+set}" = set; then
7153 enableval="$enable_maintainer_mode"
7154
7155 else
7156 enable_maintainer_mode=no
7157 fi;
7158
7159 if test "x$enable_maintainer_mode" = xno; then
7160 MAINT='#'
7161 else
7162 MAINT=
7163 fi
7164
7165
7166 # Check whether --enable-checking or --disable-checking was given.
7167 if test "${enable_checking+set}" = set; then
7168 enableval="$enable_checking"
7169
7170 else
7171 enable_checking=no
7172 fi;
7173
7174 if test $enable_checking != no ; then
7175
7176 cat >>confdefs.h <<\_ACEOF
7177 #define ENABLE_CHECKING 1
7178 _ACEOF
7179
7180 fi
7181
7182
7183 case $target in
7184 alpha*-*-* | \
7185 arm*-*-eabi* | \
7186 arm*-*-symbianelf* | \
7187 x86_64-*-* | \
7188 ia64-*-* | \
7189 hppa*64*-*-* | parisc*64*-*-* | \
7190 i[34567]86-*-solaris2.1[0-9]* | \
7191 mips*-*-* | \
7192 mmix-*-* | \
7193 powerpc*-*-* | \
7194 rs6000*-*-* | \
7195 s390*-*-* | \
7196 sparc64*-*-* | ultrasparc-*-freebsd* | \
7197 sparcv9-*-solaris2* | \
7198 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \
7199 sh[123456789l]*-*-*)
7200 need_64bit_hwint=yes ;;
7201 *)
7202 need_64bit_hwint=no ;;
7203 esac
7204
7205 case $need_64bit_hwint:$ac_cv_sizeof_long in
7206 *:8 | no:*) host_wide_int=long ;;
7207 *) host_wide_int='long long' ;;
7208 esac
7209
7210
7211
7212 cat >>confdefs.h <<_ACEOF
7213 #define HOST_WIDE_INT $host_wide_int
7214 _ACEOF
7215
7216
7217 # Output.
7218
7219 ac_config_headers="$ac_config_headers config.h:config.in"
7220
7221 ac_config_files="$ac_config_files Makefile"
7222
7223 cat >confcache <<\_ACEOF
7224 # This file is a shell script that caches the results of configure
7225 # tests run on this system so they can be shared between configure
7226 # scripts and configure runs, see configure's option --config-cache.
7227 # It is not useful on other systems. If it contains results you don't
7228 # want to keep, you may remove or edit it.
7229 #
7230 # config.status only pays attention to the cache file if you give it
7231 # the --recheck option to rerun configure.
7232 #
7233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7235 # following values.
7236
7237 _ACEOF
7238
7239 # The following way of writing the cache mishandles newlines in values,
7240 # but we know of no workaround that is simple, portable, and efficient.
7241 # So, don't put newlines in cache variables' values.
7242 # Ultrix sh set writes to stderr and can't be redirected directly,
7243 # and sets the high bit in the cache file unless we assign to the vars.
7244 {
7245 (set) 2>&1 |
7246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7247 *ac_space=\ *)
7248 # `set' does not quote correctly, so add quotes (double-quote
7249 # substitution turns \\\\ into \\, and sed turns \\ into \).
7250 sed -n \
7251 "s/'/'\\\\''/g;
7252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7253 ;;
7254 *)
7255 # `set' quotes correctly as required by POSIX, so do not add quotes.
7256 sed -n \
7257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7258 ;;
7259 esac;
7260 } |
7261 sed '
7262 t clear
7263 : clear
7264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7265 t end
7266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7267 : end' >>confcache
7268 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7269 if test -w $cache_file; then
7270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7271 cat confcache >$cache_file
7272 else
7273 echo "not updating unwritable cache $cache_file"
7274 fi
7275 fi
7276 rm -f confcache
7277
7278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7279 # Let make expand exec_prefix.
7280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7281
7282 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7283 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7284 # trailing colons and then remove the whole line if VPATH becomes empty
7285 # (actually we leave an empty line to preserve line numbers).
7286 if test "x$srcdir" = x.; then
7287 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7288 s/:*\$(srcdir):*/:/;
7289 s/:*\${srcdir}:*/:/;
7290 s/:*@srcdir@:*/:/;
7291 s/^\([^=]*=[ ]*\):*/\1/;
7292 s/:*$//;
7293 s/^[^=]*=[ ]*$//;
7294 }'
7295 fi
7296
7297 DEFS=-DHAVE_CONFIG_H
7298
7299 ac_libobjs=
7300 ac_ltlibobjs=
7301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7302 # 1. Remove the extension, and $U if already installed.
7303 ac_i=`echo "$ac_i" |
7304 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7305 # 2. Add them.
7306 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7307 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7308 done
7309 LIBOBJS=$ac_libobjs
7310
7311 LTLIBOBJS=$ac_ltlibobjs
7312
7313
7314
7315 : ${CONFIG_STATUS=./config.status}
7316 ac_clean_files_save=$ac_clean_files
7317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7318 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7319 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7320 cat >$CONFIG_STATUS <<_ACEOF
7321 #! $SHELL
7322 # Generated by $as_me.
7323 # Run this file to recreate the current configuration.
7324 # Compiler output produced by configure, useful for debugging
7325 # configure, is in config.log if it exists.
7326
7327 debug=false
7328 ac_cs_recheck=false
7329 ac_cs_silent=false
7330 SHELL=\${CONFIG_SHELL-$SHELL}
7331 _ACEOF
7332
7333 cat >>$CONFIG_STATUS <<\_ACEOF
7334 ## --------------------- ##
7335 ## M4sh Initialization. ##
7336 ## --------------------- ##
7337
7338 # Be Bourne compatible
7339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7340 emulate sh
7341 NULLCMD=:
7342 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7343 # is contrary to our usage. Disable this feature.
7344 alias -g '${1+"$@"}'='"$@"'
7345 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7346 set -o posix
7347 fi
7348 DUALCASE=1; export DUALCASE # for MKS sh
7349
7350 # Support unset when possible.
7351 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7352 as_unset=unset
7353 else
7354 as_unset=false
7355 fi
7356
7357
7358 # Work around bugs in pre-3.0 UWIN ksh.
7359 $as_unset ENV MAIL MAILPATH
7360 PS1='$ '
7361 PS2='> '
7362 PS4='+ '
7363
7364 # NLS nuisances.
7365 for as_var in \
7366 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7367 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7368 LC_TELEPHONE LC_TIME
7369 do
7370 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7371 eval $as_var=C; export $as_var
7372 else
7373 $as_unset $as_var
7374 fi
7375 done
7376
7377 # Required to use basename.
7378 if expr a : '\(a\)' >/dev/null 2>&1; then
7379 as_expr=expr
7380 else
7381 as_expr=false
7382 fi
7383
7384 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7385 as_basename=basename
7386 else
7387 as_basename=false
7388 fi
7389
7390
7391 # Name of the executable.
7392 as_me=`$as_basename "$0" ||
7393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7394 X"$0" : 'X\(//\)$' \| \
7395 X"$0" : 'X\(/\)$' \| \
7396 . : '\(.\)' 2>/dev/null ||
7397 echo X/"$0" |
7398 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7399 /^X\/\(\/\/\)$/{ s//\1/; q; }
7400 /^X\/\(\/\).*/{ s//\1/; q; }
7401 s/.*/./; q'`
7402
7403
7404 # PATH needs CR, and LINENO needs CR and PATH.
7405 # Avoid depending upon Character Ranges.
7406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7409 as_cr_digits='0123456789'
7410 as_cr_alnum=$as_cr_Letters$as_cr_digits
7411
7412 # The user is always right.
7413 if test "${PATH_SEPARATOR+set}" != set; then
7414 echo "#! /bin/sh" >conf$$.sh
7415 echo "exit 0" >>conf$$.sh
7416 chmod +x conf$$.sh
7417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7418 PATH_SEPARATOR=';'
7419 else
7420 PATH_SEPARATOR=:
7421 fi
7422 rm -f conf$$.sh
7423 fi
7424
7425
7426 as_lineno_1=$LINENO
7427 as_lineno_2=$LINENO
7428 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7429 test "x$as_lineno_1" != "x$as_lineno_2" &&
7430 test "x$as_lineno_3" = "x$as_lineno_2" || {
7431 # Find who we are. Look in the path if we contain no path at all
7432 # relative or not.
7433 case $0 in
7434 *[\\/]* ) as_myself=$0 ;;
7435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7441 done
7442
7443 ;;
7444 esac
7445 # We did not find ourselves, most probably we were run as `sh COMMAND'
7446 # in which case we are not to be found in the path.
7447 if test "x$as_myself" = x; then
7448 as_myself=$0
7449 fi
7450 if test ! -f "$as_myself"; then
7451 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7452 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7453 { (exit 1); exit 1; }; }
7454 fi
7455 case $CONFIG_SHELL in
7456 '')
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for as_base in sh bash ksh sh5; do
7463 case $as_dir in
7464 /*)
7465 if ("$as_dir/$as_base" -c '
7466 as_lineno_1=$LINENO
7467 as_lineno_2=$LINENO
7468 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7469 test "x$as_lineno_1" != "x$as_lineno_2" &&
7470 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7471 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7472 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7473 CONFIG_SHELL=$as_dir/$as_base
7474 export CONFIG_SHELL
7475 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7476 fi;;
7477 esac
7478 done
7479 done
7480 ;;
7481 esac
7482
7483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7484 # uniformly replaced by the line number. The first 'sed' inserts a
7485 # line-number line before each line; the second 'sed' does the real
7486 # work. The second script uses 'N' to pair each line-number line
7487 # with the numbered line, and appends trailing '-' during
7488 # substitution so that $LINENO is not a special case at line end.
7489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7490 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7491 sed '=' <$as_myself |
7492 sed '
7493 N
7494 s,$,-,
7495 : loop
7496 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7497 t loop
7498 s,-$,,
7499 s,^['$as_cr_digits']*\n,,
7500 ' >$as_me.lineno &&
7501 chmod +x $as_me.lineno ||
7502 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7503 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7504 { (exit 1); exit 1; }; }
7505
7506 # Don't try to exec as it changes $[0], causing all sort of problems
7507 # (the dirname of $[0] is not the place where we might find the
7508 # original and so on. Autoconf is especially sensible to this).
7509 . ./$as_me.lineno
7510 # Exit status is that of the last command.
7511 exit
7512 }
7513
7514
7515 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7516 *c*,-n*) ECHO_N= ECHO_C='
7517 ' ECHO_T=' ' ;;
7518 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7519 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7520 esac
7521
7522 if expr a : '\(a\)' >/dev/null 2>&1; then
7523 as_expr=expr
7524 else
7525 as_expr=false
7526 fi
7527
7528 rm -f conf$$ conf$$.exe conf$$.file
7529 echo >conf$$.file
7530 if ln -s conf$$.file conf$$ 2>/dev/null; then
7531 # We could just check for DJGPP; but this test a) works b) is more generic
7532 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7533 if test -f conf$$.exe; then
7534 # Don't use ln at all; we don't have any links
7535 as_ln_s='cp -p'
7536 else
7537 as_ln_s='ln -s'
7538 fi
7539 elif ln conf$$.file conf$$ 2>/dev/null; then
7540 as_ln_s=ln
7541 else
7542 as_ln_s='cp -p'
7543 fi
7544 rm -f conf$$ conf$$.exe conf$$.file
7545
7546 if mkdir -p . 2>/dev/null; then
7547 as_mkdir_p=:
7548 else
7549 test -d ./-p && rmdir ./-p
7550 as_mkdir_p=false
7551 fi
7552
7553 as_executable_p="test -f"
7554
7555 # Sed expression to map a string onto a valid CPP name.
7556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7557
7558 # Sed expression to map a string onto a valid variable name.
7559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7560
7561
7562 # IFS
7563 # We need space, tab and new line, in precisely that order.
7564 as_nl='
7565 '
7566 IFS=" $as_nl"
7567
7568 # CDPATH.
7569 $as_unset CDPATH
7570
7571 exec 6>&1
7572
7573 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7574 # report actual input values of CONFIG_FILES etc. instead of their
7575 # values after options handling. Logging --version etc. is OK.
7576 exec 5>>config.log
7577 {
7578 echo
7579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7580 ## Running $as_me. ##
7581 _ASBOX
7582 } >&5
7583 cat >&5 <<_CSEOF
7584
7585 This file was extended by cpplib $as_me , which was
7586 generated by GNU Autoconf 2.59. Invocation command line was
7587
7588 CONFIG_FILES = $CONFIG_FILES
7589 CONFIG_HEADERS = $CONFIG_HEADERS
7590 CONFIG_LINKS = $CONFIG_LINKS
7591 CONFIG_COMMANDS = $CONFIG_COMMANDS
7592 $ $0 $@
7593
7594 _CSEOF
7595 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7596 echo >&5
7597 _ACEOF
7598
7599 # Files that config.status was made for.
7600 if test -n "$ac_config_files"; then
7601 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7602 fi
7603
7604 if test -n "$ac_config_headers"; then
7605 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7606 fi
7607
7608 if test -n "$ac_config_links"; then
7609 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7610 fi
7611
7612 if test -n "$ac_config_commands"; then
7613 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7614 fi
7615
7616 cat >>$CONFIG_STATUS <<\_ACEOF
7617
7618 ac_cs_usage="\
7619 \`$as_me' instantiates files from templates according to the
7620 current configuration.
7621
7622 Usage: $0 [OPTIONS] [FILE]...
7623
7624 -h, --help print this help, then exit
7625 -V, --version print version number, then exit
7626 -q, --quiet do not print progress messages
7627 -d, --debug don't remove temporary files
7628 --recheck update $as_me by reconfiguring in the same conditions
7629 --file=FILE[:TEMPLATE]
7630 instantiate the configuration file FILE
7631 --header=FILE[:TEMPLATE]
7632 instantiate the configuration header FILE
7633
7634 Configuration files:
7635 $config_files
7636
7637 Configuration headers:
7638 $config_headers
7639
7640 Report bugs to <bug-autoconf@gnu.org>."
7641 _ACEOF
7642
7643 cat >>$CONFIG_STATUS <<_ACEOF
7644 ac_cs_version="\\
7645 cpplib config.status
7646 configured by $0, generated by GNU Autoconf 2.59,
7647 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7648
7649 Copyright (C) 2003 Free Software Foundation, Inc.
7650 This config.status script is free software; the Free Software Foundation
7651 gives unlimited permission to copy, distribute and modify it."
7652 srcdir=$srcdir
7653 INSTALL="$INSTALL"
7654 _ACEOF
7655
7656 cat >>$CONFIG_STATUS <<\_ACEOF
7657 # If no file are specified by the user, then we need to provide default
7658 # value. By we need to know if files were specified by the user.
7659 ac_need_defaults=:
7660 while test $# != 0
7661 do
7662 case $1 in
7663 --*=*)
7664 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7665 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7666 ac_shift=:
7667 ;;
7668 -*)
7669 ac_option=$1
7670 ac_optarg=$2
7671 ac_shift=shift
7672 ;;
7673 *) # This is not an option, so the user has probably given explicit
7674 # arguments.
7675 ac_option=$1
7676 ac_need_defaults=false;;
7677 esac
7678
7679 case $ac_option in
7680 # Handling of the options.
7681 _ACEOF
7682 cat >>$CONFIG_STATUS <<\_ACEOF
7683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7684 ac_cs_recheck=: ;;
7685 --version | --vers* | -V )
7686 echo "$ac_cs_version"; exit 0 ;;
7687 --he | --h)
7688 # Conflict between --help and --header
7689 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7690 Try \`$0 --help' for more information." >&5
7691 echo "$as_me: error: ambiguous option: $1
7692 Try \`$0 --help' for more information." >&2;}
7693 { (exit 1); exit 1; }; };;
7694 --help | --hel | -h )
7695 echo "$ac_cs_usage"; exit 0 ;;
7696 --debug | --d* | -d )
7697 debug=: ;;
7698 --file | --fil | --fi | --f )
7699 $ac_shift
7700 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7701 ac_need_defaults=false;;
7702 --header | --heade | --head | --hea )
7703 $ac_shift
7704 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7705 ac_need_defaults=false;;
7706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7708 ac_cs_silent=: ;;
7709
7710 # This is an error.
7711 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7712 Try \`$0 --help' for more information." >&5
7713 echo "$as_me: error: unrecognized option: $1
7714 Try \`$0 --help' for more information." >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716
7717 *) ac_config_targets="$ac_config_targets $1" ;;
7718
7719 esac
7720 shift
7721 done
7722
7723 ac_configure_extra_args=
7724
7725 if $ac_cs_silent; then
7726 exec 6>/dev/null
7727 ac_configure_extra_args="$ac_configure_extra_args --silent"
7728 fi
7729
7730 _ACEOF
7731 cat >>$CONFIG_STATUS <<_ACEOF
7732 if \$ac_cs_recheck; then
7733 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7734 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7735 fi
7736
7737 _ACEOF
7738
7739
7740
7741
7742
7743 cat >>$CONFIG_STATUS <<\_ACEOF
7744 for ac_config_target in $ac_config_targets
7745 do
7746 case "$ac_config_target" in
7747 # Handling of arguments.
7748 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7749 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7752 { (exit 1); exit 1; }; };;
7753 esac
7754 done
7755
7756 # If the user did not use the arguments to specify the items to instantiate,
7757 # then the envvar interface is used. Set only those that are not.
7758 # We use the long form for the default assignment because of an extremely
7759 # bizarre bug on SunOS 4.1.3.
7760 if $ac_need_defaults; then
7761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7763 fi
7764
7765 # Have a temporary directory for convenience. Make it in the build tree
7766 # simply because there is no reason to put it here, and in addition,
7767 # creating and moving files from /tmp can sometimes cause problems.
7768 # Create a temporary directory, and hook for its removal unless debugging.
7769 $debug ||
7770 {
7771 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7772 trap '{ (exit 1); exit 1; }' 1 2 13 15
7773 }
7774
7775 # Create a (secure) tmp directory for tmp files.
7776
7777 {
7778 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7779 test -n "$tmp" && test -d "$tmp"
7780 } ||
7781 {
7782 tmp=./confstat$$-$RANDOM
7783 (umask 077 && mkdir $tmp)
7784 } ||
7785 {
7786 echo "$me: cannot create a temporary directory in ." >&2
7787 { (exit 1); exit 1; }
7788 }
7789
7790 _ACEOF
7791
7792 cat >>$CONFIG_STATUS <<_ACEOF
7793
7794 #
7795 # CONFIG_FILES section.
7796 #
7797
7798 # No need to generate the scripts if there are no CONFIG_FILES.
7799 # This happens for instance when ./config.status config.h
7800 if test -n "\$CONFIG_FILES"; then
7801 # Protect against being on the right side of a sed subst in config.status.
7802 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7803 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7804 s,@SHELL@,$SHELL,;t t
7805 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7806 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7807 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7808 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7809 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7810 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7811 s,@exec_prefix@,$exec_prefix,;t t
7812 s,@prefix@,$prefix,;t t
7813 s,@program_transform_name@,$program_transform_name,;t t
7814 s,@bindir@,$bindir,;t t
7815 s,@sbindir@,$sbindir,;t t
7816 s,@libexecdir@,$libexecdir,;t t
7817 s,@datadir@,$datadir,;t t
7818 s,@sysconfdir@,$sysconfdir,;t t
7819 s,@sharedstatedir@,$sharedstatedir,;t t
7820 s,@localstatedir@,$localstatedir,;t t
7821 s,@libdir@,$libdir,;t t
7822 s,@includedir@,$includedir,;t t
7823 s,@oldincludedir@,$oldincludedir,;t t
7824 s,@infodir@,$infodir,;t t
7825 s,@mandir@,$mandir,;t t
7826 s,@build_alias@,$build_alias,;t t
7827 s,@host_alias@,$host_alias,;t t
7828 s,@target_alias@,$target_alias,;t t
7829 s,@DEFS@,$DEFS,;t t
7830 s,@ECHO_C@,$ECHO_C,;t t
7831 s,@ECHO_N@,$ECHO_N,;t t
7832 s,@ECHO_T@,$ECHO_T,;t t
7833 s,@LIBS@,$LIBS,;t t
7834 s,@build@,$build,;t t
7835 s,@build_cpu@,$build_cpu,;t t
7836 s,@build_vendor@,$build_vendor,;t t
7837 s,@build_os@,$build_os,;t t
7838 s,@host@,$host,;t t
7839 s,@host_cpu@,$host_cpu,;t t
7840 s,@host_vendor@,$host_vendor,;t t
7841 s,@host_os@,$host_os,;t t
7842 s,@target@,$target,;t t
7843 s,@target_cpu@,$target_cpu,;t t
7844 s,@target_vendor@,$target_vendor,;t t
7845 s,@target_os@,$target_os,;t t
7846 s,@SET_MAKE@,$SET_MAKE,;t t
7847 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7848 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7849 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7850 s,@CC@,$CC,;t t
7851 s,@CFLAGS@,$CFLAGS,;t t
7852 s,@LDFLAGS@,$LDFLAGS,;t t
7853 s,@CPPFLAGS@,$CPPFLAGS,;t t
7854 s,@ac_ct_CC@,$ac_ct_CC,;t t
7855 s,@EXEEXT@,$EXEEXT,;t t
7856 s,@OBJEXT@,$OBJEXT,;t t
7857 s,@RANLIB@,$RANLIB,;t t
7858 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7859 s,@ACLOCAL@,$ACLOCAL,;t t
7860 s,@AUTOCONF@,$AUTOCONF,;t t
7861 s,@AUTOHEADER@,$AUTOHEADER,;t t
7862 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7863 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
7864 s,@WERROR@,$WERROR,;t t
7865 s,@CPP@,$CPP,;t t
7866 s,@EGREP@,$EGREP,;t t
7867 s,@LIBOBJS@,$LIBOBJS,;t t
7868 s,@ALLOCA@,$ALLOCA,;t t
7869 s,@USE_NLS@,$USE_NLS,;t t
7870 s,@LIBINTL@,$LIBINTL,;t t
7871 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7872 s,@INCINTL@,$INCINTL,;t t
7873 s,@XGETTEXT@,$XGETTEXT,;t t
7874 s,@GMSGFMT@,$GMSGFMT,;t t
7875 s,@POSUB@,$POSUB,;t t
7876 s,@CATALOGS@,$CATALOGS,;t t
7877 s,@LIBICONV@,$LIBICONV,;t t
7878 s,@LTLIBICONV@,$LTLIBICONV,;t t
7879 s,@PACKAGE@,$PACKAGE,;t t
7880 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
7881 s,@MAINT@,$MAINT,;t t
7882 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7883 CEOF
7884
7885 _ACEOF
7886
7887 cat >>$CONFIG_STATUS <<\_ACEOF
7888 # Split the substitutions into bite-sized pieces for seds with
7889 # small command number limits, like on Digital OSF/1 and HP-UX.
7890 ac_max_sed_lines=48
7891 ac_sed_frag=1 # Number of current file.
7892 ac_beg=1 # First line for current file.
7893 ac_end=$ac_max_sed_lines # Line after last line for current file.
7894 ac_more_lines=:
7895 ac_sed_cmds=
7896 while $ac_more_lines; do
7897 if test $ac_beg -gt 1; then
7898 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7899 else
7900 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7901 fi
7902 if test ! -s $tmp/subs.frag; then
7903 ac_more_lines=false
7904 else
7905 # The purpose of the label and of the branching condition is to
7906 # speed up the sed processing (if there are no `@' at all, there
7907 # is no need to browse any of the substitutions).
7908 # These are the two extra sed commands mentioned above.
7909 (echo ':t
7910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7911 if test -z "$ac_sed_cmds"; then
7912 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7913 else
7914 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7915 fi
7916 ac_sed_frag=`expr $ac_sed_frag + 1`
7917 ac_beg=$ac_end
7918 ac_end=`expr $ac_end + $ac_max_sed_lines`
7919 fi
7920 done
7921 if test -z "$ac_sed_cmds"; then
7922 ac_sed_cmds=cat
7923 fi
7924 fi # test -n "$CONFIG_FILES"
7925
7926 _ACEOF
7927 cat >>$CONFIG_STATUS <<\_ACEOF
7928 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7930 case $ac_file in
7931 - | *:- | *:-:* ) # input from stdin
7932 cat >$tmp/stdin
7933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7937 * ) ac_file_in=$ac_file.in ;;
7938 esac
7939
7940 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943 X"$ac_file" : 'X\(//\)[^/]' \| \
7944 X"$ac_file" : 'X\(//\)$' \| \
7945 X"$ac_file" : 'X\(/\)' \| \
7946 . : '\(.\)' 2>/dev/null ||
7947 echo X"$ac_file" |
7948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7950 /^X\(\/\/\)$/{ s//\1/; q; }
7951 /^X\(\/\).*/{ s//\1/; q; }
7952 s/.*/./; q'`
7953 { if $as_mkdir_p; then
7954 mkdir -p "$ac_dir"
7955 else
7956 as_dir="$ac_dir"
7957 as_dirs=
7958 while test ! -d "$as_dir"; do
7959 as_dirs="$as_dir $as_dirs"
7960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7962 X"$as_dir" : 'X\(//\)[^/]' \| \
7963 X"$as_dir" : 'X\(//\)$' \| \
7964 X"$as_dir" : 'X\(/\)' \| \
7965 . : '\(.\)' 2>/dev/null ||
7966 echo X"$as_dir" |
7967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7969 /^X\(\/\/\)$/{ s//\1/; q; }
7970 /^X\(\/\).*/{ s//\1/; q; }
7971 s/.*/./; q'`
7972 done
7973 test ! -n "$as_dirs" || mkdir $as_dirs
7974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7976 { (exit 1); exit 1; }; }; }
7977
7978 ac_builddir=.
7979
7980 if test "$ac_dir" != .; then
7981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7982 # A "../" for each directory in $ac_dir_suffix.
7983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7984 else
7985 ac_dir_suffix= ac_top_builddir=
7986 fi
7987
7988 case $srcdir in
7989 .) # No --srcdir option. We are building in place.
7990 ac_srcdir=.
7991 if test -z "$ac_top_builddir"; then
7992 ac_top_srcdir=.
7993 else
7994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7995 fi ;;
7996 [\\/]* | ?:[\\/]* ) # Absolute path.
7997 ac_srcdir=$srcdir$ac_dir_suffix;
7998 ac_top_srcdir=$srcdir ;;
7999 *) # Relative path.
8000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8002 esac
8003
8004 # Do not use `cd foo && pwd` to compute absolute paths, because
8005 # the directories may not exist.
8006 case `pwd` in
8007 .) ac_abs_builddir="$ac_dir";;
8008 *)
8009 case "$ac_dir" in
8010 .) ac_abs_builddir=`pwd`;;
8011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8013 esac;;
8014 esac
8015 case $ac_abs_builddir in
8016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8017 *)
8018 case ${ac_top_builddir}. in
8019 .) ac_abs_top_builddir=$ac_abs_builddir;;
8020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8022 esac;;
8023 esac
8024 case $ac_abs_builddir in
8025 .) ac_abs_srcdir=$ac_srcdir;;
8026 *)
8027 case $ac_srcdir in
8028 .) ac_abs_srcdir=$ac_abs_builddir;;
8029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8031 esac;;
8032 esac
8033 case $ac_abs_builddir in
8034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8035 *)
8036 case $ac_top_srcdir in
8037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8040 esac;;
8041 esac
8042
8043
8044 case $INSTALL in
8045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8046 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8047 esac
8048
8049 if test x"$ac_file" != x-; then
8050 { echo "$as_me:$LINENO: creating $ac_file" >&5
8051 echo "$as_me: creating $ac_file" >&6;}
8052 rm -f "$ac_file"
8053 fi
8054 # Let's still pretend it is `configure' which instantiates (i.e., don't
8055 # use $as_me), people would be surprised to read:
8056 # /* config.h. Generated by config.status. */
8057 if test x"$ac_file" = x-; then
8058 configure_input=
8059 else
8060 configure_input="$ac_file. "
8061 fi
8062 configure_input=$configure_input"Generated from `echo $ac_file_in |
8063 sed 's,.*/,,'` by configure."
8064
8065 # First look for the input files in the build tree, otherwise in the
8066 # src tree.
8067 ac_file_inputs=`IFS=:
8068 for f in $ac_file_in; do
8069 case $f in
8070 -) echo $tmp/stdin ;;
8071 [\\/$]*)
8072 # Absolute (can't be DOS-style, as IFS=:)
8073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8074 echo "$as_me: error: cannot find input file: $f" >&2;}
8075 { (exit 1); exit 1; }; }
8076 echo "$f";;
8077 *) # Relative
8078 if test -f "$f"; then
8079 # Build tree
8080 echo "$f"
8081 elif test -f "$srcdir/$f"; then
8082 # Source tree
8083 echo "$srcdir/$f"
8084 else
8085 # /dev/null tree
8086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8087 echo "$as_me: error: cannot find input file: $f" >&2;}
8088 { (exit 1); exit 1; }; }
8089 fi;;
8090 esac
8091 done` || { (exit 1); exit 1; }
8092 _ACEOF
8093 cat >>$CONFIG_STATUS <<_ACEOF
8094 sed "$ac_vpsub
8095 $extrasub
8096 _ACEOF
8097 cat >>$CONFIG_STATUS <<\_ACEOF
8098 :t
8099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8100 s,@configure_input@,$configure_input,;t t
8101 s,@srcdir@,$ac_srcdir,;t t
8102 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8103 s,@top_srcdir@,$ac_top_srcdir,;t t
8104 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8105 s,@builddir@,$ac_builddir,;t t
8106 s,@abs_builddir@,$ac_abs_builddir,;t t
8107 s,@top_builddir@,$ac_top_builddir,;t t
8108 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8109 s,@INSTALL@,$ac_INSTALL,;t t
8110 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8111 rm -f $tmp/stdin
8112 if test x"$ac_file" != x-; then
8113 mv $tmp/out $ac_file
8114 else
8115 cat $tmp/out
8116 rm -f $tmp/out
8117 fi
8118
8119 done
8120 _ACEOF
8121 cat >>$CONFIG_STATUS <<\_ACEOF
8122
8123 #
8124 # CONFIG_HEADER section.
8125 #
8126
8127 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8128 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8129 #
8130 # ac_d sets the value in "#define NAME VALUE" lines.
8131 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8132 ac_dB='[ ].*$,\1#\2'
8133 ac_dC=' '
8134 ac_dD=',;t'
8135 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8136 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8137 ac_uB='$,\1#\2define\3'
8138 ac_uC=' '
8139 ac_uD=',;t'
8140
8141 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8143 case $ac_file in
8144 - | *:- | *:-:* ) # input from stdin
8145 cat >$tmp/stdin
8146 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8148 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8150 * ) ac_file_in=$ac_file.in ;;
8151 esac
8152
8153 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8154 echo "$as_me: creating $ac_file" >&6;}
8155
8156 # First look for the input files in the build tree, otherwise in the
8157 # src tree.
8158 ac_file_inputs=`IFS=:
8159 for f in $ac_file_in; do
8160 case $f in
8161 -) echo $tmp/stdin ;;
8162 [\\/$]*)
8163 # Absolute (can't be DOS-style, as IFS=:)
8164 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8165 echo "$as_me: error: cannot find input file: $f" >&2;}
8166 { (exit 1); exit 1; }; }
8167 # Do quote $f, to prevent DOS paths from being IFS'd.
8168 echo "$f";;
8169 *) # Relative
8170 if test -f "$f"; then
8171 # Build tree
8172 echo "$f"
8173 elif test -f "$srcdir/$f"; then
8174 # Source tree
8175 echo "$srcdir/$f"
8176 else
8177 # /dev/null tree
8178 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8179 echo "$as_me: error: cannot find input file: $f" >&2;}
8180 { (exit 1); exit 1; }; }
8181 fi;;
8182 esac
8183 done` || { (exit 1); exit 1; }
8184 # Remove the trailing spaces.
8185 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8186
8187 _ACEOF
8188
8189 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8190 # `conftest.undefs', that substitutes the proper values into
8191 # config.h.in to produce config.h. The first handles `#define'
8192 # templates, and the second `#undef' templates.
8193 # And first: Protect against being on the right side of a sed subst in
8194 # config.status. Protect against being in an unquoted here document
8195 # in config.status.
8196 rm -f conftest.defines conftest.undefs
8197 # Using a here document instead of a string reduces the quoting nightmare.
8198 # Putting comments in sed scripts is not portable.
8199 #
8200 # `end' is used to avoid that the second main sed command (meant for
8201 # 0-ary CPP macros) applies to n-ary macro definitions.
8202 # See the Autoconf documentation for `clear'.
8203 cat >confdef2sed.sed <<\_ACEOF
8204 s/[\\&,]/\\&/g
8205 s,[\\$`],\\&,g
8206 t clear
8207 : clear
8208 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8209 t end
8210 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8211 : end
8212 _ACEOF
8213 # If some macros were called several times there might be several times
8214 # the same #defines, which is useless. Nevertheless, we may not want to
8215 # sort them, since we want the *last* AC-DEFINE to be honored.
8216 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8217 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8218 rm -f confdef2sed.sed
8219
8220 # This sed command replaces #undef with comments. This is necessary, for
8221 # example, in the case of _POSIX_SOURCE, which is predefined and required
8222 # on some systems where configure will not decide to define it.
8223 cat >>conftest.undefs <<\_ACEOF
8224 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8225 _ACEOF
8226
8227 # Break up conftest.defines because some shells have a limit on the size
8228 # of here documents, and old seds have small limits too (100 cmds).
8229 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8230 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8231 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8232 echo ' :' >>$CONFIG_STATUS
8233 rm -f conftest.tail
8234 while grep . conftest.defines >/dev/null
8235 do
8236 # Write a limited-size here document to $tmp/defines.sed.
8237 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8238 # Speed up: don't consider the non `#define' lines.
8239 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8240 # Work around the forget-to-reset-the-flag bug.
8241 echo 't clr' >>$CONFIG_STATUS
8242 echo ': clr' >>$CONFIG_STATUS
8243 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8244 echo 'CEOF
8245 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8246 rm -f $tmp/in
8247 mv $tmp/out $tmp/in
8248 ' >>$CONFIG_STATUS
8249 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8250 rm -f conftest.defines
8251 mv conftest.tail conftest.defines
8252 done
8253 rm -f conftest.defines
8254 echo ' fi # grep' >>$CONFIG_STATUS
8255 echo >>$CONFIG_STATUS
8256
8257 # Break up conftest.undefs because some shells have a limit on the size
8258 # of here documents, and old seds have small limits too (100 cmds).
8259 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8260 rm -f conftest.tail
8261 while grep . conftest.undefs >/dev/null
8262 do
8263 # Write a limited-size here document to $tmp/undefs.sed.
8264 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8265 # Speed up: don't consider the non `#undef'
8266 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8267 # Work around the forget-to-reset-the-flag bug.
8268 echo 't clr' >>$CONFIG_STATUS
8269 echo ': clr' >>$CONFIG_STATUS
8270 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8271 echo 'CEOF
8272 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8273 rm -f $tmp/in
8274 mv $tmp/out $tmp/in
8275 ' >>$CONFIG_STATUS
8276 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8277 rm -f conftest.undefs
8278 mv conftest.tail conftest.undefs
8279 done
8280 rm -f conftest.undefs
8281
8282 cat >>$CONFIG_STATUS <<\_ACEOF
8283 # Let's still pretend it is `configure' which instantiates (i.e., don't
8284 # use $as_me), people would be surprised to read:
8285 # /* config.h. Generated by config.status. */
8286 if test x"$ac_file" = x-; then
8287 echo "/* Generated by configure. */" >$tmp/config.h
8288 else
8289 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8290 fi
8291 cat $tmp/in >>$tmp/config.h
8292 rm -f $tmp/in
8293 if test x"$ac_file" != x-; then
8294 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8295 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8296 echo "$as_me: $ac_file is unchanged" >&6;}
8297 else
8298 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8300 X"$ac_file" : 'X\(//\)[^/]' \| \
8301 X"$ac_file" : 'X\(//\)$' \| \
8302 X"$ac_file" : 'X\(/\)' \| \
8303 . : '\(.\)' 2>/dev/null ||
8304 echo X"$ac_file" |
8305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8307 /^X\(\/\/\)$/{ s//\1/; q; }
8308 /^X\(\/\).*/{ s//\1/; q; }
8309 s/.*/./; q'`
8310 { if $as_mkdir_p; then
8311 mkdir -p "$ac_dir"
8312 else
8313 as_dir="$ac_dir"
8314 as_dirs=
8315 while test ! -d "$as_dir"; do
8316 as_dirs="$as_dir $as_dirs"
8317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8319 X"$as_dir" : 'X\(//\)[^/]' \| \
8320 X"$as_dir" : 'X\(//\)$' \| \
8321 X"$as_dir" : 'X\(/\)' \| \
8322 . : '\(.\)' 2>/dev/null ||
8323 echo X"$as_dir" |
8324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8326 /^X\(\/\/\)$/{ s//\1/; q; }
8327 /^X\(\/\).*/{ s//\1/; q; }
8328 s/.*/./; q'`
8329 done
8330 test ! -n "$as_dirs" || mkdir $as_dirs
8331 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8332 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8333 { (exit 1); exit 1; }; }; }
8334
8335 rm -f $ac_file
8336 mv $tmp/config.h $ac_file
8337 fi
8338 else
8339 cat $tmp/config.h
8340 rm -f $tmp/config.h
8341 fi
8342 # Run the commands associated with the file.
8343 case $ac_file in
8344 config.h ) echo timestamp > stamp-h1 ;;
8345 esac
8346 done
8347 _ACEOF
8348
8349 cat >>$CONFIG_STATUS <<\_ACEOF
8350
8351 { (exit 0); exit 0; }
8352 _ACEOF
8353 chmod +x $CONFIG_STATUS
8354 ac_clean_files=$ac_clean_files_save
8355
8356
8357 # configure is writing to config.log, and then calls config.status.
8358 # config.status does its own redirection, appending to config.log.
8359 # Unfortunately, on DOS this fails, as config.log is still kept open
8360 # by configure, so config.status won't be able to write to it; its
8361 # output is simply discarded. So we exec the FD to /dev/null,
8362 # effectively closing config.log, so it can be properly (re)opened and
8363 # appended to by config.status. When coming back to configure, we
8364 # need to make the FD available again.
8365 if test "$no_create" != yes; then
8366 ac_cs_success=:
8367 ac_config_status_args=
8368 test "$silent" = yes &&
8369 ac_config_status_args="$ac_config_status_args --quiet"
8370 exec 5>/dev/null
8371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8372 exec 5>>config.log
8373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8374 # would make configure fail if this is the last instruction.
8375 $ac_cs_success || { (exit 1); exit 1; }
8376 fi
8377
This page took 0.504407 seconds and 6 git commands to generate.