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