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