etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / contrib / query-loc-0.4.0 / configure
blobd77cf76ca5620aa8a89c52fd65ad3d1173b91887
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="query-loc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LOC_NTOA LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
833 _ACEOF
836 if test -n "$ac_init_help"; then
838 cat <<\_ACEOF
840 Some influential environment variables:
841 CC C compiler command
842 CFLAGS C compiler flags
843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
844 nonstandard directory <lib dir>
845 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
846 headers in a nonstandard directory <include dir>
847 CPP C preprocessor
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
852 _ACEOF
855 if test "$ac_init_help" = "recursive"; then
856 # If there are subdirs, report their specific --help.
857 ac_popdir=`pwd`
858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859 test -d $ac_dir || continue
860 ac_builddir=.
862 if test "$ac_dir" != .; then
863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864 # A "../" for each directory in $ac_dir_suffix.
865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 else
867 ac_dir_suffix= ac_top_builddir=
870 case $srcdir in
871 .) # No --srcdir option. We are building in place.
872 ac_srcdir=.
873 if test -z "$ac_top_builddir"; then
874 ac_top_srcdir=.
875 else
876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877 fi ;;
878 [\\/]* | ?:[\\/]* ) # Absolute path.
879 ac_srcdir=$srcdir$ac_dir_suffix;
880 ac_top_srcdir=$srcdir ;;
881 *) # Relative path.
882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 esac
886 # Do not use `cd foo && pwd` to compute absolute paths, because
887 # the directories may not exist.
888 case `pwd` in
889 .) ac_abs_builddir="$ac_dir";;
891 case "$ac_dir" in
892 .) ac_abs_builddir=`pwd`;;
893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
895 esac;;
896 esac
897 case $ac_abs_builddir in
898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
900 case ${ac_top_builddir}. in
901 .) ac_abs_top_builddir=$ac_abs_builddir;;
902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
904 esac;;
905 esac
906 case $ac_abs_builddir in
907 .) ac_abs_srcdir=$ac_srcdir;;
909 case $ac_srcdir in
910 .) ac_abs_srcdir=$ac_abs_builddir;;
911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
918 case $ac_top_srcdir in
919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
922 esac;;
923 esac
925 cd $ac_dir
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
928 echo
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
931 echo
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
935 echo
936 $ac_configure --help
937 else
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 cd "$ac_popdir"
941 done
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946 cat <<\_ACEOF
948 Copyright (C) 2003 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
951 _ACEOF
952 exit 0
954 exec 5>config.log
955 cat >&5 <<_ACEOF
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.59. Invocation command line was
962 $ $0 $@
964 _ACEOF
966 cat <<_ASUNAME
967 ## --------- ##
968 ## Platform. ##
969 ## --------- ##
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
988 _ASUNAME
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 for as_dir in $PATH
993 IFS=$as_save_IFS
994 test -z "$as_dir" && as_dir=.
995 echo "PATH: $as_dir"
996 done
998 } >&5
1000 cat >&5 <<_ACEOF
1003 ## ----------- ##
1004 ## Core tests. ##
1005 ## ----------- ##
1007 _ACEOF
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1015 ac_configure_args=
1016 ac_configure_args0=
1017 ac_configure_args1=
1018 ac_sep=
1019 ac_must_keep_next=false
1020 for ac_pass in 1 2
1022 for ac_arg
1024 case $ac_arg in
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 continue ;;
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031 esac
1032 case $ac_pass in
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1038 else
1039 case $ac_arg in
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046 esac
1048 -* ) ac_must_keep_next=true ;;
1049 esac
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1053 ac_sep=" "
1055 esac
1056 done
1057 done
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1069 echo
1071 cat <<\_ASBOX
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1075 _ASBOX
1076 echo
1077 # The following way of writing the cache mishandles newlines in values,
1079 (set) 2>&1 |
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081 *ac_space=\ *)
1082 sed -n \
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1087 sed -n \
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 esac;
1092 echo
1094 cat <<\_ASBOX
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1098 _ASBOX
1099 echo
1100 for ac_var in $ac_subst_vars
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1104 done | sort
1105 echo
1107 if test -n "$ac_subst_files"; then
1108 cat <<\_ASBOX
1109 ## ------------- ##
1110 ## Output files. ##
1111 ## ------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_files
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1122 if test -s confdefs.h; then
1123 cat <<\_ASBOX
1124 ## ----------- ##
1125 ## confdefs.h. ##
1126 ## ----------- ##
1127 _ASBOX
1128 echo
1129 sed "/^$/d" confdefs.h | sort
1130 echo
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1135 } >&5
1136 rm -f core *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138 exit $exit_status
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142 done
1143 ac_signal=0
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148 echo >confdefs.h
1150 # Predefined preprocessor variables.
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174 _ACEOF
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182 else
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1191 . "$ac_site_file"
1193 done
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1201 case $cache_file in
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1204 esac
1206 else
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1209 >$cache_file
1212 # Check that the precious variables saved in the cache have kept the same
1213 # value.
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1222 set,)
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1226 ,set)
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1230 ,);;
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1240 fi;;
1241 esac
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1244 case $ac_new_val in
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1248 esac
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252 esac
1254 done
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1263 ac_ext=c
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293 if test -n "$ac_tool_prefix"; then
1294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1296 echo "$as_me:$LINENO: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301 if test -n "$CC"; then
1302 ac_cv_prog_CC="$CC" # Let the user override the test.
1303 else
1304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1305 for as_dir in $PATH
1307 IFS=$as_save_IFS
1308 test -z "$as_dir" && as_dir=.
1309 for ac_exec_ext in '' $ac_executable_extensions; do
1310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1311 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1313 break 2
1315 done
1316 done
1320 CC=$ac_cv_prog_CC
1321 if test -n "$CC"; then
1322 echo "$as_me:$LINENO: result: $CC" >&5
1323 echo "${ECHO_T}$CC" >&6
1324 else
1325 echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1330 if test -z "$ac_cv_prog_CC"; then
1331 ac_ct_CC=$CC
1332 # Extract the first word of "gcc", so it can be a program name with args.
1333 set dummy gcc; ac_word=$2
1334 echo "$as_me:$LINENO: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 if test -n "$ac_ct_CC"; then
1340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1341 else
1342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 for as_dir in $PATH
1345 IFS=$as_save_IFS
1346 test -z "$as_dir" && as_dir=.
1347 for ac_exec_ext in '' $ac_executable_extensions; do
1348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1349 ac_cv_prog_ac_ct_CC="gcc"
1350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1351 break 2
1353 done
1354 done
1358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1359 if test -n "$ac_ct_CC"; then
1360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1361 echo "${ECHO_T}$ac_ct_CC" >&6
1362 else
1363 echo "$as_me:$LINENO: result: no" >&5
1364 echo "${ECHO_T}no" >&6
1367 CC=$ac_ct_CC
1368 else
1369 CC="$ac_cv_prog_CC"
1372 if test -z "$CC"; then
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}cc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}cc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1395 done
1396 done
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "cc", so it can be a program name with args.
1413 set dummy cc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="cc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1433 done
1434 done
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1442 else
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1447 CC=$ac_ct_CC
1448 else
1449 CC="$ac_cv_prog_CC"
1453 if test -z "$CC"; then
1454 # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464 ac_prog_rejected=no
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1473 ac_prog_rejected=yes
1474 continue
1476 ac_cv_prog_CC="cc"
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478 break 2
1480 done
1481 done
1483 if test $ac_prog_rejected = yes; then
1484 # We found a bogon in the path, so make sure we never use it.
1485 set dummy $ac_cv_prog_CC
1486 shift
1487 if test $# != 0; then
1488 # We chose a different compiler from the bogus one.
1489 # However, it has the same basename, so the bogon will be chosen
1490 # first if we set CC to just the basename; use the full file name.
1491 shift
1492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1509 for ac_prog in cl
1511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1532 done
1533 done
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1546 test -n "$CC" && break
1547 done
1549 if test -z "$CC"; then
1550 ac_ct_CC=$CC
1551 for ac_prog in cl
1553 # Extract the first word of "$ac_prog", so it can be a program name with args.
1554 set dummy $ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="$ac_prog"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1574 done
1575 done
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1588 test -n "$ac_ct_CC" && break
1589 done
1591 CC=$ac_ct_CC
1597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1598 See \`config.log' for more details." >&5
1599 echo "$as_me: error: no acceptable C compiler found in \$PATH
1600 See \`config.log' for more details." >&2;}
1601 { (exit 1); exit 1; }; }
1603 # Provide some information about the compiler.
1604 echo "$as_me:$LINENO:" \
1605 "checking for C compiler version" >&5
1606 ac_compiler=`set X $ac_compile; echo $2`
1607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1608 (eval $ac_compiler --version </dev/null >&5) 2>&5
1609 ac_status=$?
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611 (exit $ac_status); }
1612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1613 (eval $ac_compiler -v </dev/null >&5) 2>&5
1614 ac_status=$?
1615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616 (exit $ac_status); }
1617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1618 (eval $ac_compiler -V </dev/null >&5) 2>&5
1619 ac_status=$?
1620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621 (exit $ac_status); }
1623 cat >conftest.$ac_ext <<_ACEOF
1624 /* confdefs.h. */
1625 _ACEOF
1626 cat confdefs.h >>conftest.$ac_ext
1627 cat >>conftest.$ac_ext <<_ACEOF
1628 /* end confdefs.h. */
1631 main ()
1635 return 0;
1637 _ACEOF
1638 ac_clean_files_save=$ac_clean_files
1639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1640 # Try to create an executable without -o first, disregard a.out.
1641 # It will help us diagnose broken compilers, and finding out an intuition
1642 # of exeext.
1643 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1646 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1647 (eval $ac_link_default) 2>&5
1648 ac_status=$?
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }; then
1651 # Find the output, starting from the most likely. This scheme is
1652 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1653 # resort.
1655 # Be careful to initialize this variable, since it used to be cached.
1656 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1657 ac_cv_exeext=
1658 # b.out is created by i960 compilers.
1659 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1661 test -f "$ac_file" || continue
1662 case $ac_file in
1663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1665 conftest.$ac_ext )
1666 # This is the source file.
1668 [ab].out )
1669 # We found the default executable, but exeext='' is most
1670 # certainly right.
1671 break;;
1672 *.* )
1673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1674 # FIXME: I believe we export ac_cv_exeext for Libtool,
1675 # but it would be cool to find out if it's true. Does anybody
1676 # maintain Libtool? --akim.
1677 export ac_cv_exeext
1678 break;;
1680 break;;
1681 esac
1682 done
1683 else
1684 echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1688 See \`config.log' for more details." >&5
1689 echo "$as_me: error: C compiler cannot create executables
1690 See \`config.log' for more details." >&2;}
1691 { (exit 77); exit 77; }; }
1694 ac_exeext=$ac_cv_exeext
1695 echo "$as_me:$LINENO: result: $ac_file" >&5
1696 echo "${ECHO_T}$ac_file" >&6
1698 # Check the compiler produces executables we can run. If not, either
1699 # the compiler is broken, or we cross compile.
1700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1703 # If not cross compiling, check that we can run a simple program.
1704 if test "$cross_compiling" != yes; then
1705 if { ac_try='./$ac_file'
1706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1707 (eval $ac_try) 2>&5
1708 ac_status=$?
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }; }; then
1711 cross_compiling=no
1712 else
1713 if test "$cross_compiling" = maybe; then
1714 cross_compiling=yes
1715 else
1716 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1717 If you meant to cross compile, use \`--host'.
1718 See \`config.log' for more details." >&5
1719 echo "$as_me: error: cannot run C compiled programs.
1720 If you meant to cross compile, use \`--host'.
1721 See \`config.log' for more details." >&2;}
1722 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1729 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1730 ac_clean_files=$ac_clean_files_save
1731 # Check the compiler produces executables we can run. If not, either
1732 # the compiler is broken, or we cross compile.
1733 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1734 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1735 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1736 echo "${ECHO_T}$cross_compiling" >&6
1738 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1739 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1741 (eval $ac_link) 2>&5
1742 ac_status=$?
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1747 # work properly (i.e., refer to `conftest.exe'), while it won't with
1748 # `rm'.
1749 for ac_file in conftest.exe conftest conftest.*; do
1750 test -f "$ac_file" || continue
1751 case $ac_file in
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 export ac_cv_exeext
1755 break;;
1756 * ) break;;
1757 esac
1758 done
1759 else
1760 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1761 See \`config.log' for more details." >&5
1762 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1767 rm -f conftest$ac_cv_exeext
1768 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1769 echo "${ECHO_T}$ac_cv_exeext" >&6
1771 rm -f conftest.$ac_ext
1772 EXEEXT=$ac_cv_exeext
1773 ac_exeext=$EXEEXT
1774 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1775 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1776 if test "${ac_cv_objext+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 cat >conftest.$ac_ext <<_ACEOF
1780 /* confdefs.h. */
1781 _ACEOF
1782 cat confdefs.h >>conftest.$ac_ext
1783 cat >>conftest.$ac_ext <<_ACEOF
1784 /* end confdefs.h. */
1787 main ()
1791 return 0;
1793 _ACEOF
1794 rm -f conftest.o conftest.obj
1795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; then
1800 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1801 case $ac_file in
1802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1804 break;;
1805 esac
1806 done
1807 else
1808 echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1821 echo "${ECHO_T}$ac_cv_objext" >&6
1822 OBJEXT=$ac_cv_objext
1823 ac_objext=$OBJEXT
1824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 cat >conftest.$ac_ext <<_ACEOF
1830 /* confdefs.h. */
1831 _ACEOF
1832 cat confdefs.h >>conftest.$ac_ext
1833 cat >>conftest.$ac_ext <<_ACEOF
1834 /* end confdefs.h. */
1837 main ()
1839 #ifndef __GNUC__
1840 choke me
1841 #endif
1844 return 0;
1846 _ACEOF
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>conftest.er1
1850 ac_status=$?
1851 grep -v '^ *+' conftest.er1 >conftest.err
1852 rm -f conftest.er1
1853 cat conftest.err >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858 (eval $ac_try) 2>&5
1859 ac_status=$?
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; } &&
1862 { ac_try='test -s conftest.$ac_objext'
1863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864 (eval $ac_try) 2>&5
1865 ac_status=$?
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }; }; then
1868 ac_compiler_gnu=yes
1869 else
1870 echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_compiler_gnu=no
1875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1879 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1881 GCC=`test $ac_compiler_gnu = yes && echo yes`
1882 ac_test_CFLAGS=${CFLAGS+set}
1883 ac_save_CFLAGS=$CFLAGS
1884 CFLAGS="-g"
1885 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1887 if test "${ac_cv_prog_cc_g+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 cat >conftest.$ac_ext <<_ACEOF
1891 /* confdefs.h. */
1892 _ACEOF
1893 cat confdefs.h >>conftest.$ac_ext
1894 cat >>conftest.$ac_ext <<_ACEOF
1895 /* end confdefs.h. */
1898 main ()
1902 return 0;
1904 _ACEOF
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907 (eval $ac_compile) 2>conftest.er1
1908 ac_status=$?
1909 grep -v '^ *+' conftest.er1 >conftest.err
1910 rm -f conftest.er1
1911 cat conftest.err >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916 (eval $ac_try) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922 (eval $ac_try) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1926 ac_cv_prog_cc_g=yes
1927 else
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_cv_prog_cc_g=no
1933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1936 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1937 if test "$ac_test_CFLAGS" = set; then
1938 CFLAGS=$ac_save_CFLAGS
1939 elif test $ac_cv_prog_cc_g = yes; then
1940 if test "$GCC" = yes; then
1941 CFLAGS="-g -O2"
1942 else
1943 CFLAGS="-g"
1945 else
1946 if test "$GCC" = yes; then
1947 CFLAGS="-O2"
1948 else
1949 CFLAGS=
1952 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1953 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 ac_cv_prog_cc_stdc=no
1958 ac_save_CC=$CC
1959 cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h. */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h. */
1965 #include <stdarg.h>
1966 #include <stdio.h>
1967 #include <sys/types.h>
1968 #include <sys/stat.h>
1969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1970 struct buf { int x; };
1971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1972 static char *e (p, i)
1973 char **p;
1974 int i;
1976 return p[i];
1978 static char *f (char * (*g) (char **, int), char **p, ...)
1980 char *s;
1981 va_list v;
1982 va_start (v,p);
1983 s = g (p, va_arg (v,int));
1984 va_end (v);
1985 return s;
1988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1989 function prototypes and stuff, but not '\xHH' hex character constants.
1990 These don't provoke an error unfortunately, instead are silently treated
1991 as 'x'. The following induces an error, until -std1 is added to get
1992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1993 array size at least. It's necessary to write '\x00'==0 to get something
1994 that's true only with -std1. */
1995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1997 int test (int i, double x);
1998 struct s1 {int (*f) (int a);};
1999 struct s2 {int (*f) (double a);};
2000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2001 int argc;
2002 char **argv;
2004 main ()
2006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2008 return 0;
2010 _ACEOF
2011 # Don't try gcc -ansi; that turns off useful extensions and
2012 # breaks some systems' header files.
2013 # AIX -qlanglvl=ansi
2014 # Ultrix and OSF/1 -std1
2015 # HP-UX 10.20 and later -Ae
2016 # HP-UX older versions -Aa -D_HPUX_SOURCE
2017 # SVR4 -Xc -D__EXTENSIONS__
2018 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2020 CC="$ac_save_CC $ac_arg"
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>conftest.er1
2024 ac_status=$?
2025 grep -v '^ *+' conftest.er1 >conftest.err
2026 rm -f conftest.er1
2027 cat conftest.err >&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); } &&
2030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 (eval $ac_try) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2042 ac_cv_prog_cc_stdc=$ac_arg
2043 break
2044 else
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.err conftest.$ac_objext
2050 done
2051 rm -f conftest.$ac_ext conftest.$ac_objext
2052 CC=$ac_save_CC
2056 case "x$ac_cv_prog_cc_stdc" in
2057 x|xno)
2058 echo "$as_me:$LINENO: result: none needed" >&5
2059 echo "${ECHO_T}none needed" >&6 ;;
2061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2062 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2063 CC="$CC $ac_cv_prog_cc_stdc" ;;
2064 esac
2066 # Some people use a C++ compiler to compile C. Since we use `exit',
2067 # in C++ we need to declare it. In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #ifndef __cplusplus
2072 choke me
2073 #endif
2074 _ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2078 ac_status=$?
2079 grep -v '^ *+' conftest.er1 >conftest.err
2080 rm -f conftest.er1
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 for ac_declaration in \
2097 '' \
2098 'extern "C" void std::exit (int) throw (); using std::exit;' \
2099 'extern "C" void std::exit (int); using std::exit;' \
2100 'extern "C" void exit (int) throw ();' \
2101 'extern "C" void exit (int);' \
2102 'void exit (int);'
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h. */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2110 $ac_declaration
2111 #include <stdlib.h>
2113 main ()
2115 exit (42);
2117 return 0;
2119 _ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2123 ac_status=$?
2124 grep -v '^ *+' conftest.er1 >conftest.err
2125 rm -f conftest.er1
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; } &&
2135 { ac_try='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 (eval $ac_try) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2142 else
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2146 continue
2148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2155 $ac_declaration
2157 main ()
2159 exit (42);
2161 return 0;
2163 _ACEOF
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag" || 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 break
2186 else
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 rm -f conftest*
2194 if test -n "$ac_declaration"; then
2195 echo '#ifdef __cplusplus' >>confdefs.h
2196 echo $ac_declaration >>confdefs.h
2197 echo '#endif' >>confdefs.h
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test "$GCC" = "yes"; then
2213 CFLAGS="${CFLAGS} -Wall"
2215 ac_aux_dir=
2216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2217 if test -f $ac_dir/install-sh; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2220 break
2221 elif test -f $ac_dir/install.sh; then
2222 ac_aux_dir=$ac_dir
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2224 break
2225 elif test -f $ac_dir/shtool; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2228 break
2230 done
2231 if test -z "$ac_aux_dir"; then
2232 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2234 { (exit 1); exit 1; }; }
2236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2240 # Find a good install program. We prefer a C program (faster),
2241 # so one script is as good as another. But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2246 # AIX /bin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2255 if test -z "$INSTALL"; then
2256 if test "${ac_cv_path_install+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2265 case $as_dir/ in
2266 ./ | .// | /cC/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269 /usr/ucb/* ) ;;
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2273 # by default.
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2285 else
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2290 done
2291 done
2293 esac
2294 done
2298 if test "${ac_cv_path_install+set}" = set; then
2299 INSTALL=$ac_cv_path_install
2300 else
2301 # As a last resort, use the slow shell script. We don't cache a
2302 # path for INSTALL within a source directory, because that will
2303 # break other packages using the cache if that directory is
2304 # removed, or if the path is relative.
2305 INSTALL=$ac_install_sh
2308 echo "$as_me:$LINENO: result: $INSTALL" >&5
2309 echo "${ECHO_T}$INSTALL" >&6
2311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2312 # It thinks the first close brace ends the variable substitution.
2313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2317 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
2323 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
2324 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 ac_check_lib_save_LIBS=$LIBS
2328 LIBS="-lresolv $LIBS"
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h. */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2336 /* Override any gcc2 internal prototype to avoid an error. */
2337 #ifdef __cplusplus
2338 extern "C"
2339 #endif
2340 /* We use char because int might match the return type of a gcc2
2341 builtin and then its argument prototype would still apply. */
2342 char res_query ();
2344 main ()
2346 res_query ();
2348 return 0;
2350 _ACEOF
2351 rm -f conftest.$ac_objext conftest$ac_exeext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353 (eval $ac_link) 2>conftest.er1
2354 ac_status=$?
2355 grep -v '^ *+' conftest.er1 >conftest.err
2356 rm -f conftest.er1
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest$ac_exeext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 (eval $ac_try) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_cv_lib_resolv_res_query=yes
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 ac_cv_lib_resolv_res_query=no
2379 rm -f conftest.err conftest.$ac_objext \
2380 conftest$ac_exeext conftest.$ac_ext
2381 LIBS=$ac_check_lib_save_LIBS
2383 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
2384 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
2385 if test $ac_cv_lib_resolv_res_query = yes; then
2386 cat >>confdefs.h <<_ACEOF
2387 #define HAVE_LIBRESOLV 1
2388 _ACEOF
2390 LIBS="-lresolv $LIBS"
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2401 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2402 # On Suns, sometimes $CPP names a directory.
2403 if test -n "$CPP" && test -d "$CPP"; then
2404 CPP=
2406 if test -z "$CPP"; then
2407 if test "${ac_cv_prog_CPP+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 # Double quotes because CPP needs to be expanded
2411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2413 ac_preproc_ok=false
2414 for ac_c_preproc_warn_flag in '' yes
2416 # Use a header file that comes with gcc, so configuring glibc
2417 # with a fresh cross-compiler works.
2418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419 # <limits.h> exists even on freestanding compilers.
2420 # On the NeXT, cc -E runs the code through the compiler's parser,
2421 # not just through cpp. "Syntax error" is here to catch this case.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #ifdef __STDC__
2429 # include <limits.h>
2430 #else
2431 # include <assert.h>
2432 #endif
2433 Syntax error
2434 _ACEOF
2435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2446 else
2447 ac_cpp_err=
2449 else
2450 ac_cpp_err=yes
2452 if test -z "$ac_cpp_err"; then
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2458 # Broken: fails on valid input.
2459 continue
2461 rm -f conftest.err conftest.$ac_ext
2463 # OK, works on sane cases. Now check whether non-existent headers
2464 # can be detected and how.
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 #include <ac_nonexistent.h>
2472 _ACEOF
2473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } >/dev/null; then
2481 if test -s conftest.err; then
2482 ac_cpp_err=$ac_c_preproc_warn_flag
2483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2484 else
2485 ac_cpp_err=
2487 else
2488 ac_cpp_err=yes
2490 if test -z "$ac_cpp_err"; then
2491 # Broken: success on invalid input.
2492 continue
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 # Passes both tests.
2498 ac_preproc_ok=:
2499 break
2501 rm -f conftest.err conftest.$ac_ext
2503 done
2504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2505 rm -f conftest.err conftest.$ac_ext
2506 if $ac_preproc_ok; then
2507 break
2510 done
2511 ac_cv_prog_CPP=$CPP
2514 CPP=$ac_cv_prog_CPP
2515 else
2516 ac_cv_prog_CPP=$CPP
2518 echo "$as_me:$LINENO: result: $CPP" >&5
2519 echo "${ECHO_T}$CPP" >&6
2520 ac_preproc_ok=false
2521 for ac_c_preproc_warn_flag in '' yes
2523 # Use a header file that comes with gcc, so configuring glibc
2524 # with a fresh cross-compiler works.
2525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2526 # <limits.h> exists even on freestanding compilers.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #ifdef __STDC__
2536 # include <limits.h>
2537 #else
2538 # include <assert.h>
2539 #endif
2540 Syntax error
2541 _ACEOF
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2553 else
2554 ac_cpp_err=
2556 else
2557 ac_cpp_err=yes
2559 if test -z "$ac_cpp_err"; then
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Broken: fails on valid input.
2566 continue
2568 rm -f conftest.err conftest.$ac_ext
2570 # OK, works on sane cases. Now check whether non-existent headers
2571 # can be detected and how.
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 #include <ac_nonexistent.h>
2579 _ACEOF
2580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } >/dev/null; then
2588 if test -s conftest.err; then
2589 ac_cpp_err=$ac_c_preproc_warn_flag
2590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2591 else
2592 ac_cpp_err=
2594 else
2595 ac_cpp_err=yes
2597 if test -z "$ac_cpp_err"; then
2598 # Broken: success on invalid input.
2599 continue
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 # Passes both tests.
2605 ac_preproc_ok=:
2606 break
2608 rm -f conftest.err conftest.$ac_ext
2610 done
2611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612 rm -f conftest.err conftest.$ac_ext
2613 if $ac_preproc_ok; then
2615 else
2616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 echo "$as_me:$LINENO: checking for egrep" >&5
2631 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2632 if test "${ac_cv_prog_egrep+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2636 then ac_cv_prog_egrep='grep -E'
2637 else ac_cv_prog_egrep='egrep'
2640 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2641 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2642 EGREP=$ac_cv_prog_egrep
2645 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2647 if test "${ac_cv_header_stdc+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 #include <stdlib.h>
2657 #include <stdarg.h>
2658 #include <string.h>
2659 #include <float.h>
2662 main ()
2666 return 0;
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_header_stdc=yes
2691 else
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 ac_cv_header_stdc=no
2697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699 if test $ac_cv_header_stdc = yes; then
2700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 #include <string.h>
2709 _ACEOF
2710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2711 $EGREP "memchr" >/dev/null 2>&1; then
2713 else
2714 ac_cv_header_stdc=no
2716 rm -f conftest*
2720 if test $ac_cv_header_stdc = yes; then
2721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #include <stdlib.h>
2730 _ACEOF
2731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2732 $EGREP "free" >/dev/null 2>&1; then
2734 else
2735 ac_cv_header_stdc=no
2737 rm -f conftest*
2741 if test $ac_cv_header_stdc = yes; then
2742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2743 if test "$cross_compiling" = yes; then
2745 else
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752 #include <ctype.h>
2753 #if ((' ' & 0x0FF) == 0x020)
2754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2756 #else
2757 # define ISLOWER(c) \
2758 (('a' <= (c) && (c) <= 'i') \
2759 || ('j' <= (c) && (c) <= 'r') \
2760 || ('s' <= (c) && (c) <= 'z'))
2761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2762 #endif
2764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2766 main ()
2768 int i;
2769 for (i = 0; i < 256; i++)
2770 if (XOR (islower (i), ISLOWER (i))
2771 || toupper (i) != TOUPPER (i))
2772 exit(2);
2773 exit (0);
2775 _ACEOF
2776 rm -f conftest$ac_exeext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2778 (eval $ac_link) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2788 else
2789 echo "$as_me: program exited with status $ac_status" >&5
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 ( exit $ac_status )
2794 ac_cv_header_stdc=no
2796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2800 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2801 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2802 if test $ac_cv_header_stdc = yes; then
2804 cat >>confdefs.h <<\_ACEOF
2805 #define STDC_HEADERS 1
2806 _ACEOF
2810 ac_config_headers="$ac_config_headers config.h"
2812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2822 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2823 inttypes.h stdint.h unistd.h
2825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2826 echo "$as_me:$LINENO: checking for $ac_header" >&5
2827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
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_includes_default
2839 #include <$ac_header>
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2862 eval "$as_ac_Header=yes"
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 eval "$as_ac_Header=no"
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2874 cat >>confdefs.h <<_ACEOF
2875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2876 _ACEOF
2880 done
2883 if test "${ac_cv_header_resolv_h+set}" = set; then
2884 echo "$as_me:$LINENO: checking for resolv.h" >&5
2885 echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6
2886 if test "${ac_cv_header_resolv_h+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
2890 echo "${ECHO_T}$ac_cv_header_resolv_h" >&6
2891 else
2892 # Is the header compilable?
2893 echo "$as_me:$LINENO: checking resolv.h usability" >&5
2894 echo $ECHO_N "checking resolv.h usability... $ECHO_C" >&6
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 $ac_includes_default
2902 #include <resolv.h>
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 ac_header_compiler=yes
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 ac_header_compiler=no
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2934 echo "${ECHO_T}$ac_header_compiler" >&6
2936 # Is the header present?
2937 echo "$as_me:$LINENO: checking resolv.h presence" >&5
2938 echo $ECHO_N "checking resolv.h presence... $ECHO_C" >&6
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <resolv.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958 else
2959 ac_cpp_err=
2961 else
2962 ac_cpp_err=yes
2964 if test -z "$ac_cpp_err"; then
2965 ac_header_preproc=yes
2966 else
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 ac_header_preproc=no
2972 rm -f conftest.err conftest.$ac_ext
2973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2974 echo "${ECHO_T}$ac_header_preproc" >&6
2976 # So? What about this header?
2977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2978 yes:no: )
2979 { echo "$as_me:$LINENO: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&5
2980 echo "$as_me: WARNING: resolv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2981 { echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the compiler's result" >&5
2982 echo "$as_me: WARNING: resolv.h: proceeding with the compiler's result" >&2;}
2983 ac_header_preproc=yes
2985 no:yes:* )
2986 { echo "$as_me:$LINENO: WARNING: resolv.h: present but cannot be compiled" >&5
2987 echo "$as_me: WARNING: resolv.h: present but cannot be compiled" >&2;}
2988 { echo "$as_me:$LINENO: WARNING: resolv.h: check for missing prerequisite headers?" >&5
2989 echo "$as_me: WARNING: resolv.h: check for missing prerequisite headers?" >&2;}
2990 { echo "$as_me:$LINENO: WARNING: resolv.h: see the Autoconf documentation" >&5
2991 echo "$as_me: WARNING: resolv.h: see the Autoconf documentation" >&2;}
2992 { echo "$as_me:$LINENO: WARNING: resolv.h: section \"Present But Cannot Be Compiled\"" >&5
2993 echo "$as_me: WARNING: resolv.h: section \"Present But Cannot Be Compiled\"" >&2;}
2994 { echo "$as_me:$LINENO: WARNING: resolv.h: proceeding with the preprocessor's result" >&5
2995 echo "$as_me: WARNING: resolv.h: proceeding with the preprocessor's result" >&2;}
2996 { echo "$as_me:$LINENO: WARNING: resolv.h: in the future, the compiler will take precedence" >&5
2997 echo "$as_me: WARNING: resolv.h: in the future, the compiler will take precedence" >&2;}
2999 cat <<\_ASBOX
3000 ## ------------------------------------------ ##
3001 ## Report this to the AC_PACKAGE_NAME lists. ##
3002 ## ------------------------------------------ ##
3003 _ASBOX
3005 sed "s/^/$as_me: WARNING: /" >&2
3007 esac
3008 echo "$as_me:$LINENO: checking for resolv.h" >&5
3009 echo $ECHO_N "checking for resolv.h... $ECHO_C" >&6
3010 if test "${ac_cv_header_resolv_h+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 ac_cv_header_resolv_h=$ac_header_preproc
3015 echo "$as_me:$LINENO: result: $ac_cv_header_resolv_h" >&5
3016 echo "${ECHO_T}$ac_cv_header_resolv_h" >&6
3019 if test $ac_cv_header_resolv_h = yes; then
3021 else
3022 { { echo "$as_me:$LINENO: error: \"No headers for name service applications\"" >&5
3023 echo "$as_me: error: \"No headers for name service applications\"" >&2;}
3024 { (exit 1); exit 1; }; }
3028 if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
3029 echo "$as_me:$LINENO: checking for arpa/nameser.h" >&5
3030 echo $ECHO_N "checking for arpa/nameser.h... $ECHO_C" >&6
3031 if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_nameser_h" >&5
3035 echo "${ECHO_T}$ac_cv_header_arpa_nameser_h" >&6
3036 else
3037 # Is the header compilable?
3038 echo "$as_me:$LINENO: checking arpa/nameser.h usability" >&5
3039 echo $ECHO_N "checking arpa/nameser.h usability... $ECHO_C" >&6
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 $ac_includes_default
3047 #include <arpa/nameser.h>
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3070 ac_header_compiler=yes
3071 else
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 ac_header_compiler=no
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3079 echo "${ECHO_T}$ac_header_compiler" >&6
3081 # Is the header present?
3082 echo "$as_me:$LINENO: checking arpa/nameser.h presence" >&5
3083 echo $ECHO_N "checking arpa/nameser.h presence... $ECHO_C" >&6
3084 cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <arpa/nameser.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 else
3104 ac_cpp_err=
3106 else
3107 ac_cpp_err=yes
3109 if test -z "$ac_cpp_err"; then
3110 ac_header_preproc=yes
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_header_preproc=no
3117 rm -f conftest.err conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3119 echo "${ECHO_T}$ac_header_preproc" >&6
3121 # So? What about this header?
3122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3123 yes:no: )
3124 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: accepted by the compiler, rejected by the preprocessor!" >&5
3125 echo "$as_me: WARNING: arpa/nameser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3126 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: proceeding with the compiler's result" >&5
3127 echo "$as_me: WARNING: arpa/nameser.h: proceeding with the compiler's result" >&2;}
3128 ac_header_preproc=yes
3130 no:yes:* )
3131 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: present but cannot be compiled" >&5
3132 echo "$as_me: WARNING: arpa/nameser.h: present but cannot be compiled" >&2;}
3133 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: check for missing prerequisite headers?" >&5
3134 echo "$as_me: WARNING: arpa/nameser.h: check for missing prerequisite headers?" >&2;}
3135 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: see the Autoconf documentation" >&5
3136 echo "$as_me: WARNING: arpa/nameser.h: see the Autoconf documentation" >&2;}
3137 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: section \"Present But Cannot Be Compiled\"" >&5
3138 echo "$as_me: WARNING: arpa/nameser.h: section \"Present But Cannot Be Compiled\"" >&2;}
3139 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: proceeding with the preprocessor's result" >&5
3140 echo "$as_me: WARNING: arpa/nameser.h: proceeding with the preprocessor's result" >&2;}
3141 { echo "$as_me:$LINENO: WARNING: arpa/nameser.h: in the future, the compiler will take precedence" >&5
3142 echo "$as_me: WARNING: arpa/nameser.h: in the future, the compiler will take precedence" >&2;}
3144 cat <<\_ASBOX
3145 ## ------------------------------------------ ##
3146 ## Report this to the AC_PACKAGE_NAME lists. ##
3147 ## ------------------------------------------ ##
3148 _ASBOX
3150 sed "s/^/$as_me: WARNING: /" >&2
3152 esac
3153 echo "$as_me:$LINENO: checking for arpa/nameser.h" >&5
3154 echo $ECHO_N "checking for arpa/nameser.h... $ECHO_C" >&6
3155 if test "${ac_cv_header_arpa_nameser_h+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 ac_cv_header_arpa_nameser_h=$ac_header_preproc
3160 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_nameser_h" >&5
3161 echo "${ECHO_T}$ac_cv_header_arpa_nameser_h" >&6
3164 if test $ac_cv_header_arpa_nameser_h = yes; then
3166 else
3167 { { echo "$as_me:$LINENO: error: \"No headers for name service applications\"" >&5
3168 echo "$as_me: error: \"No headers for name service applications\"" >&2;}
3169 { (exit 1); exit 1; }; }
3173 if test "${ac_cv_header_sys_time_h+set}" = set; then
3174 echo "$as_me:$LINENO: checking for sys/time.h" >&5
3175 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
3176 if test "${ac_cv_header_sys_time_h+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
3180 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
3181 else
3182 # Is the header compilable?
3183 echo "$as_me:$LINENO: checking sys/time.h usability" >&5
3184 echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 $ac_includes_default
3192 #include <sys/time.h>
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_header_compiler=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_header_compiler=no
3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3224 echo "${ECHO_T}$ac_header_compiler" >&6
3226 # Is the header present?
3227 echo "$as_me:$LINENO: checking sys/time.h presence" >&5
3228 echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <sys/time.h>
3236 _ACEOF
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 else
3249 ac_cpp_err=
3251 else
3252 ac_cpp_err=yes
3254 if test -z "$ac_cpp_err"; then
3255 ac_header_preproc=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_header_preproc=no
3262 rm -f conftest.err conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3264 echo "${ECHO_T}$ac_header_preproc" >&6
3266 # So? What about this header?
3267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3268 yes:no: )
3269 { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
3270 echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3271 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
3272 echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
3273 ac_header_preproc=yes
3275 no:yes:* )
3276 { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
3277 echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
3278 { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
3279 echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
3280 { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
3281 echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
3282 { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
3283 echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
3284 { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
3285 echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
3286 { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
3287 echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
3289 cat <<\_ASBOX
3290 ## ------------------------------------------ ##
3291 ## Report this to the AC_PACKAGE_NAME lists. ##
3292 ## ------------------------------------------ ##
3293 _ASBOX
3295 sed "s/^/$as_me: WARNING: /" >&2
3297 esac
3298 echo "$as_me:$LINENO: checking for sys/time.h" >&5
3299 echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
3300 if test "${ac_cv_header_sys_time_h+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 ac_cv_header_sys_time_h=$ac_header_preproc
3305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
3306 echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
3309 if test $ac_cv_header_sys_time_h = yes; then
3311 else
3312 { { echo "$as_me:$LINENO: error: \"Mandatory header missing on your system\"" >&5
3313 echo "$as_me: error: \"Mandatory header missing on your system\"" >&2;}
3314 { (exit 1); exit 1; }; }
3318 if test "${ac_cv_header_unistd_h+set}" = set; then
3319 echo "$as_me:$LINENO: checking for unistd.h" >&5
3320 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3321 if test "${ac_cv_header_unistd_h+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3325 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3326 else
3327 # Is the header compilable?
3328 echo "$as_me:$LINENO: checking unistd.h usability" >&5
3329 echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 $ac_includes_default
3337 #include <unistd.h>
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_header_compiler=yes
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 ac_header_compiler=no
3367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3369 echo "${ECHO_T}$ac_header_compiler" >&6
3371 # Is the header present?
3372 echo "$as_me:$LINENO: checking unistd.h presence" >&5
3373 echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <unistd.h>
3381 _ACEOF
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 else
3394 ac_cpp_err=
3396 else
3397 ac_cpp_err=yes
3399 if test -z "$ac_cpp_err"; then
3400 ac_header_preproc=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_header_preproc=no
3407 rm -f conftest.err conftest.$ac_ext
3408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3409 echo "${ECHO_T}$ac_header_preproc" >&6
3411 # So? What about this header?
3412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3413 yes:no: )
3414 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3415 echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3416 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
3417 echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
3418 ac_header_preproc=yes
3420 no:yes:* )
3421 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
3422 echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
3423 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
3424 echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
3425 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
3426 echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
3427 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
3428 echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
3429 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
3430 echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
3431 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
3432 echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
3434 cat <<\_ASBOX
3435 ## ------------------------------------------ ##
3436 ## Report this to the AC_PACKAGE_NAME lists. ##
3437 ## ------------------------------------------ ##
3438 _ASBOX
3440 sed "s/^/$as_me: WARNING: /" >&2
3442 esac
3443 echo "$as_me:$LINENO: checking for unistd.h" >&5
3444 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
3445 if test "${ac_cv_header_unistd_h+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_cv_header_unistd_h=$ac_header_preproc
3450 echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
3451 echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
3454 if test $ac_cv_header_unistd_h = yes; then
3456 else
3457 { { echo "$as_me:$LINENO: error: \"Mandatory header missing on your system\"" >&5
3458 echo "$as_me: error: \"Mandatory header missing on your system\"" >&2;}
3459 { (exit 1); exit 1; }; }
3465 echo "$as_me:$LINENO: checking if libnsl is mandatory" >&5
3466 echo $ECHO_N "checking if libnsl is mandatory... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <sys/types.h>
3474 #include <netinet/in.h>
3475 #include <arpa/nameser.h>
3476 #include <resolv.h>
3477 union
3479 HEADER hdr;
3480 u_char buf[4096]; /* With RFC 2671, otherwise 512 is enough */
3482 response;
3483 char *domain;
3484 int requested_type;
3486 main ()
3488 res_query(domain,
3489 C_IN,
3490 requested_type,
3491 (u_char *) & response,
3492 sizeof (response))
3494 return 0;
3496 _ACEOF
3497 rm -f conftest.$ac_objext conftest$ac_exeext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3499 (eval $ac_link) 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest$ac_exeext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6; LIBS="${LIBS} -lnsl"
3527 rm -f conftest.err conftest.$ac_objext \
3528 conftest$ac_exeext conftest.$ac_ext
3530 echo "$as_me:$LINENO: checking loc_ntoa" >&5
3531 echo $ECHO_N "checking loc_ntoa... $ECHO_C" >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <resolv.h>
3540 main ()
3542 u_char *cp; char *result; loc_ntoa(cp, result)
3544 return 0;
3546 _ACEOF
3547 rm -f conftest.$ac_objext conftest$ac_exeext
3548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3549 (eval $ac_link) 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } &&
3556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest$ac_exeext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 echo "$as_me:$LINENO: result: yes" >&5
3569 echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
3570 #define HAVE_LOC_NTOA 1
3571 _ACEOF
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 echo "$as_me:$LINENO: result: no, using the alternative" >&5
3578 echo "${ECHO_T}no, using the alternative" >&6; LOC_NTOA=loc_ntoa.o
3580 rm -f conftest.err conftest.$ac_objext \
3581 conftest$ac_exeext conftest.$ac_ext
3584 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3585 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3586 if test "${ac_cv_c_const+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3597 main ()
3599 /* FIXME: Include the comments suggested by Paul. */
3600 #ifndef __cplusplus
3601 /* Ultrix mips cc rejects this. */
3602 typedef int charset[2];
3603 const charset x;
3604 /* SunOS 4.1.1 cc rejects this. */
3605 char const *const *ccp;
3606 char **p;
3607 /* NEC SVR4.0.2 mips cc rejects this. */
3608 struct point {int x, y;};
3609 static struct point const zero = {0,0};
3610 /* AIX XL C 1.02.0.0 rejects this.
3611 It does not let you subtract one const X* pointer from another in
3612 an arm of an if-expression whose if-part is not a constant
3613 expression */
3614 const char *g = "string";
3615 ccp = &g + (g ? g-g : 0);
3616 /* HPUX 7.0 cc rejects these. */
3617 ++ccp;
3618 p = (char**) ccp;
3619 ccp = (char const *const *) p;
3620 { /* SCO 3.2v4 cc rejects this. */
3621 char *t;
3622 char const *s = 0 ? (char *) 0 : (char const *) 0;
3624 *t++ = 0;
3626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3627 int x[] = {25, 17};
3628 const int *foo = &x[0];
3629 ++foo;
3631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3632 typedef const int *iptr;
3633 iptr p = 0;
3634 ++p;
3636 { /* AIX XL C 1.02.0.0 rejects this saying
3637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3638 struct s { int j; const int *ap[3]; };
3639 struct s *b; b->j = 5;
3641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3642 const int foo = 10;
3644 #endif
3647 return 0;
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; } &&
3665 { ac_try='test -s conftest.$ac_objext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 ac_cv_c_const=yes
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_cv_c_const=no
3678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3681 echo "${ECHO_T}$ac_cv_c_const" >&6
3682 if test $ac_cv_c_const = no; then
3684 cat >>confdefs.h <<\_ACEOF
3685 #define const
3686 _ACEOF
3690 echo "$as_me:$LINENO: checking for long" >&5
3691 echo $ECHO_N "checking for long... $ECHO_C" >&6
3692 if test "${ac_cv_type_long+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h. */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 $ac_includes_default
3703 main ()
3705 if ((long *) 0)
3706 return 0;
3707 if (sizeof (long))
3708 return 0;
3710 return 0;
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_type_long=yes
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_type_long=no
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3744 echo "${ECHO_T}$ac_cv_type_long" >&6
3746 echo "$as_me:$LINENO: checking size of long" >&5
3747 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3748 if test "${ac_cv_sizeof_long+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 if test "$ac_cv_type_long" = yes; then
3752 # The cast to unsigned long works around a bug in the HP C Compiler
3753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3755 # This bug is HP SR number 8606223364.
3756 if test "$cross_compiling" = yes; then
3757 # Depending upon the size, compute the lo and hi bounds.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 main ()
3768 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3769 test_array [0] = 0
3772 return 0;
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_lo=0 ac_mid=0
3797 while :; do
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 $ac_includes_default
3806 main ()
3808 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3809 test_array [0] = 0
3812 return 0;
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_hi=$ac_mid; break
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_lo=`expr $ac_mid + 1`
3842 if test $ac_lo -le $ac_mid; then
3843 ac_lo= ac_hi=
3844 break
3846 ac_mid=`expr 2 '*' $ac_mid + 1`
3848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849 done
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h. */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 $ac_includes_default
3862 main ()
3864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3865 test_array [0] = 0
3868 return 0;
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 ac_hi=-1 ac_mid=-1
3893 while :; do
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3902 main ()
3904 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3905 test_array [0] = 0
3908 return 0;
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_lo=$ac_mid; break
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 ac_hi=`expr '(' $ac_mid ')' - 1`
3938 if test $ac_mid -le $ac_hi; then
3939 ac_lo= ac_hi=
3940 break
3942 ac_mid=`expr 2 '*' $ac_mid`
3944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3945 done
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_lo= ac_hi=
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 # Binary search between lo and hi bounds.
3956 while test "x$ac_lo" != "x$ac_hi"; do
3957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3966 main ()
3968 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3969 test_array [0] = 0
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_hi=$ac_mid
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 ac_lo=`expr '(' $ac_mid ')' + 1`
4003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 done
4005 case $ac_lo in
4006 ?*) ac_cv_sizeof_long=$ac_lo;;
4007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4008 See \`config.log' for more details." >&5
4009 echo "$as_me: error: cannot compute sizeof (long), 77
4010 See \`config.log' for more details." >&2;}
4011 { (exit 1); exit 1; }; } ;;
4012 esac
4013 else
4014 if test "$cross_compiling" = yes; then
4015 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4016 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4017 { (exit 1); exit 1; }; }
4018 else
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4026 long longval () { return (long) (sizeof (long)); }
4027 unsigned long ulongval () { return (long) (sizeof (long)); }
4028 #include <stdio.h>
4029 #include <stdlib.h>
4031 main ()
4034 FILE *f = fopen ("conftest.val", "w");
4035 if (! f)
4036 exit (1);
4037 if (((long) (sizeof (long))) < 0)
4039 long i = longval ();
4040 if (i != ((long) (sizeof (long))))
4041 exit (1);
4042 fprintf (f, "%ld\n", i);
4044 else
4046 unsigned long i = ulongval ();
4047 if (i != ((long) (sizeof (long))))
4048 exit (1);
4049 fprintf (f, "%lu\n", i);
4051 exit (ferror (f) || fclose (f) != 0);
4054 return 0;
4056 _ACEOF
4057 rm -f conftest$ac_exeext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059 (eval $ac_link) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_sizeof_long=`cat conftest.val`
4069 else
4070 echo "$as_me: program exited with status $ac_status" >&5
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ( exit $ac_status )
4075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4076 See \`config.log' for more details." >&5
4077 echo "$as_me: error: cannot compute sizeof (long), 77
4078 See \`config.log' for more details." >&2;}
4079 { (exit 1); exit 1; }; }
4081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4084 rm -f conftest.val
4085 else
4086 ac_cv_sizeof_long=0
4089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4090 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4091 cat >>confdefs.h <<_ACEOF
4092 #define SIZEOF_LONG $ac_cv_sizeof_long
4093 _ACEOF
4096 echo "$as_me:$LINENO: checking for int" >&5
4097 echo $ECHO_N "checking for int... $ECHO_C" >&6
4098 if test "${ac_cv_type_int+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4109 main ()
4111 if ((int *) 0)
4112 return 0;
4113 if (sizeof (int))
4114 return 0;
4116 return 0;
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 ac_cv_type_int=yes
4141 else
4142 echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4145 ac_cv_type_int=no
4147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4150 echo "${ECHO_T}$ac_cv_type_int" >&6
4152 echo "$as_me:$LINENO: checking size of int" >&5
4153 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4154 if test "${ac_cv_sizeof_int+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test "$ac_cv_type_int" = yes; then
4158 # The cast to unsigned long works around a bug in the HP C Compiler
4159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4161 # This bug is HP SR number 8606223364.
4162 if test "$cross_compiling" = yes; then
4163 # Depending upon the size, compute the lo and hi bounds.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 $ac_includes_default
4172 main ()
4174 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4175 test_array [0] = 0
4178 return 0;
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_lo=0 ac_mid=0
4203 while :; do
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 main ()
4214 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4215 test_array [0] = 0
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_hi=$ac_mid; break
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_lo=`expr $ac_mid + 1`
4248 if test $ac_lo -le $ac_mid; then
4249 ac_lo= ac_hi=
4250 break
4252 ac_mid=`expr 2 '*' $ac_mid + 1`
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 done
4256 else
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 $ac_includes_default
4268 main ()
4270 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4271 test_array [0] = 0
4274 return 0;
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_hi=-1 ac_mid=-1
4299 while :; do
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4308 main ()
4310 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4311 test_array [0] = 0
4314 return 0;
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_lo=$ac_mid; break
4339 else
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_hi=`expr '(' $ac_mid ')' - 1`
4344 if test $ac_mid -le $ac_hi; then
4345 ac_lo= ac_hi=
4346 break
4348 ac_mid=`expr 2 '*' $ac_mid`
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 done
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_lo= ac_hi=
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 # Binary search between lo and hi bounds.
4362 while test "x$ac_lo" != "x$ac_hi"; do
4363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
4372 main ()
4374 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4375 test_array [0] = 0
4378 return 0;
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } &&
4390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_hi=$ac_mid
4403 else
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 ac_lo=`expr '(' $ac_mid ')' + 1`
4409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4410 done
4411 case $ac_lo in
4412 ?*) ac_cv_sizeof_int=$ac_lo;;
4413 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4414 See \`config.log' for more details." >&5
4415 echo "$as_me: error: cannot compute sizeof (int), 77
4416 See \`config.log' for more details." >&2;}
4417 { (exit 1); exit 1; }; } ;;
4418 esac
4419 else
4420 if test "$cross_compiling" = yes; then
4421 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4422 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4423 { (exit 1); exit 1; }; }
4424 else
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4432 long longval () { return (long) (sizeof (int)); }
4433 unsigned long ulongval () { return (long) (sizeof (int)); }
4434 #include <stdio.h>
4435 #include <stdlib.h>
4437 main ()
4440 FILE *f = fopen ("conftest.val", "w");
4441 if (! f)
4442 exit (1);
4443 if (((long) (sizeof (int))) < 0)
4445 long i = longval ();
4446 if (i != ((long) (sizeof (int))))
4447 exit (1);
4448 fprintf (f, "%ld\n", i);
4450 else
4452 unsigned long i = ulongval ();
4453 if (i != ((long) (sizeof (int))))
4454 exit (1);
4455 fprintf (f, "%lu\n", i);
4457 exit (ferror (f) || fclose (f) != 0);
4460 return 0;
4462 _ACEOF
4463 rm -f conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sizeof_int=`cat conftest.val`
4475 else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ( exit $ac_status )
4481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: cannot compute sizeof (int), 77
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4490 rm -f conftest.val
4491 else
4492 ac_cv_sizeof_int=0
4495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4496 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4497 cat >>confdefs.h <<_ACEOF
4498 #define SIZEOF_INT $ac_cv_sizeof_int
4499 _ACEOF
4502 echo "$as_me:$LINENO: checking for short" >&5
4503 echo $ECHO_N "checking for short... $ECHO_C" >&6
4504 if test "${ac_cv_type_short+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4515 main ()
4517 if ((short *) 0)
4518 return 0;
4519 if (sizeof (short))
4520 return 0;
4522 return 0;
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_type_short=yes
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 ac_cv_type_short=no
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4556 echo "${ECHO_T}$ac_cv_type_short" >&6
4558 echo "$as_me:$LINENO: checking size of short" >&5
4559 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4560 if test "${ac_cv_sizeof_short+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test "$ac_cv_type_short" = yes; then
4564 # The cast to unsigned long works around a bug in the HP C Compiler
4565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4567 # This bug is HP SR number 8606223364.
4568 if test "$cross_compiling" = yes; then
4569 # Depending upon the size, compute the lo and hi bounds.
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4578 main ()
4580 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4581 test_array [0] = 0
4584 return 0;
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_lo=0 ac_mid=0
4609 while :; do
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4618 main ()
4620 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4621 test_array [0] = 0
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_hi=$ac_mid; break
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_lo=`expr $ac_mid + 1`
4654 if test $ac_lo -le $ac_mid; then
4655 ac_lo= ac_hi=
4656 break
4658 ac_mid=`expr 2 '*' $ac_mid + 1`
4660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661 done
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4674 main ()
4676 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4677 test_array [0] = 0
4680 return 0;
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_hi=-1 ac_mid=-1
4705 while :; do
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 $ac_includes_default
4714 main ()
4716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4717 test_array [0] = 0
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_lo=$ac_mid; break
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_hi=`expr '(' $ac_mid ')' - 1`
4750 if test $ac_mid -le $ac_hi; then
4751 ac_lo= ac_hi=
4752 break
4754 ac_mid=`expr 2 '*' $ac_mid`
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757 done
4758 else
4759 echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_lo= ac_hi=
4764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 # Binary search between lo and hi bounds.
4768 while test "x$ac_lo" != "x$ac_hi"; do
4769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 $ac_includes_default
4778 main ()
4780 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4781 test_array [0] = 0
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_hi=$ac_mid
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_lo=`expr '(' $ac_mid ')' + 1`
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 done
4817 case $ac_lo in
4818 ?*) ac_cv_sizeof_short=$ac_lo;;
4819 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: cannot compute sizeof (short), 77
4822 See \`config.log' for more details." >&2;}
4823 { (exit 1); exit 1; }; } ;;
4824 esac
4825 else
4826 if test "$cross_compiling" = yes; then
4827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4828 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4829 { (exit 1); exit 1; }; }
4830 else
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 $ac_includes_default
4838 long longval () { return (long) (sizeof (short)); }
4839 unsigned long ulongval () { return (long) (sizeof (short)); }
4840 #include <stdio.h>
4841 #include <stdlib.h>
4843 main ()
4846 FILE *f = fopen ("conftest.val", "w");
4847 if (! f)
4848 exit (1);
4849 if (((long) (sizeof (short))) < 0)
4851 long i = longval ();
4852 if (i != ((long) (sizeof (short))))
4853 exit (1);
4854 fprintf (f, "%ld\n", i);
4856 else
4858 unsigned long i = ulongval ();
4859 if (i != ((long) (sizeof (short))))
4860 exit (1);
4861 fprintf (f, "%lu\n", i);
4863 exit (ferror (f) || fclose (f) != 0);
4866 return 0;
4868 _ACEOF
4869 rm -f conftest$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_cv_sizeof_short=`cat conftest.val`
4881 else
4882 echo "$as_me: program exited with status $ac_status" >&5
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ( exit $ac_status )
4887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4888 See \`config.log' for more details." >&5
4889 echo "$as_me: error: cannot compute sizeof (short), 77
4890 See \`config.log' for more details." >&2;}
4891 { (exit 1); exit 1; }; }
4893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4896 rm -f conftest.val
4897 else
4898 ac_cv_sizeof_short=0
4901 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4902 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4903 cat >>confdefs.h <<_ACEOF
4904 #define SIZEOF_SHORT $ac_cv_sizeof_short
4905 _ACEOF
4908 echo "$as_me:$LINENO: checking for char" >&5
4909 echo $ECHO_N "checking for char... $ECHO_C" >&6
4910 if test "${ac_cv_type_char+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 $ac_includes_default
4921 main ()
4923 if ((char *) 0)
4924 return 0;
4925 if (sizeof (char))
4926 return 0;
4928 return 0;
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_type_char=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ac_cv_type_char=no
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4962 echo "${ECHO_T}$ac_cv_type_char" >&6
4964 echo "$as_me:$LINENO: checking size of char" >&5
4965 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4966 if test "${ac_cv_sizeof_char+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969 if test "$ac_cv_type_char" = yes; then
4970 # The cast to unsigned long works around a bug in the HP C Compiler
4971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4973 # This bug is HP SR number 8606223364.
4974 if test "$cross_compiling" = yes; then
4975 # Depending upon the size, compute the lo and hi bounds.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 $ac_includes_default
4984 main ()
4986 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4987 test_array [0] = 0
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 ac_lo=0 ac_mid=0
5015 while :; do
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5024 main ()
5026 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5027 test_array [0] = 0
5030 return 0;
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_hi=$ac_mid; break
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_lo=`expr $ac_mid + 1`
5060 if test $ac_lo -le $ac_mid; then
5061 ac_lo= ac_hi=
5062 break
5064 ac_mid=`expr 2 '*' $ac_mid + 1`
5066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 done
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 $ac_includes_default
5080 main ()
5082 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5083 test_array [0] = 0
5086 return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_hi=-1 ac_mid=-1
5111 while :; do
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 $ac_includes_default
5120 main ()
5122 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5123 test_array [0] = 0
5126 return 0;
5128 _ACEOF
5129 rm -f conftest.$ac_objext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_lo=$ac_mid; break
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 ac_hi=`expr '(' $ac_mid ')' - 1`
5156 if test $ac_mid -le $ac_hi; then
5157 ac_lo= ac_hi=
5158 break
5160 ac_mid=`expr 2 '*' $ac_mid`
5162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5163 done
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_lo= ac_hi=
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173 # Binary search between lo and hi bounds.
5174 while test "x$ac_lo" != "x$ac_hi"; do
5175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5184 main ()
5186 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5187 test_array [0] = 0
5190 return 0;
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; }; then
5214 ac_hi=$ac_mid
5215 else
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_lo=`expr '(' $ac_mid ')' + 1`
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222 done
5223 case $ac_lo in
5224 ?*) ac_cv_sizeof_char=$ac_lo;;
5225 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5226 See \`config.log' for more details." >&5
5227 echo "$as_me: error: cannot compute sizeof (char), 77
5228 See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; } ;;
5230 esac
5231 else
5232 if test "$cross_compiling" = yes; then
5233 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5234 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5235 { (exit 1); exit 1; }; }
5236 else
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 long longval () { return (long) (sizeof (char)); }
5245 unsigned long ulongval () { return (long) (sizeof (char)); }
5246 #include <stdio.h>
5247 #include <stdlib.h>
5249 main ()
5252 FILE *f = fopen ("conftest.val", "w");
5253 if (! f)
5254 exit (1);
5255 if (((long) (sizeof (char))) < 0)
5257 long i = longval ();
5258 if (i != ((long) (sizeof (char))))
5259 exit (1);
5260 fprintf (f, "%ld\n", i);
5262 else
5264 unsigned long i = ulongval ();
5265 if (i != ((long) (sizeof (char))))
5266 exit (1);
5267 fprintf (f, "%lu\n", i);
5269 exit (ferror (f) || fclose (f) != 0);
5272 return 0;
5274 _ACEOF
5275 rm -f conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277 (eval $ac_link) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_cv_sizeof_char=`cat conftest.val`
5287 else
5288 echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ( exit $ac_status )
5293 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5294 See \`config.log' for more details." >&5
5295 echo "$as_me: error: cannot compute sizeof (char), 77
5296 See \`config.log' for more details." >&2;}
5297 { (exit 1); exit 1; }; }
5299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5302 rm -f conftest.val
5303 else
5304 ac_cv_sizeof_char=0
5307 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5308 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5309 cat >>confdefs.h <<_ACEOF
5310 #define SIZEOF_CHAR $ac_cv_sizeof_char
5311 _ACEOF
5315 ac_config_files="$ac_config_files Makefile"
5316 cat >confcache <<\_ACEOF
5317 # This file is a shell script that caches the results of configure
5318 # tests run on this system so they can be shared between configure
5319 # scripts and configure runs, see configure's option --config-cache.
5320 # It is not useful on other systems. If it contains results you don't
5321 # want to keep, you may remove or edit it.
5323 # config.status only pays attention to the cache file if you give it
5324 # the --recheck option to rerun configure.
5326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5328 # following values.
5330 _ACEOF
5332 # The following way of writing the cache mishandles newlines in values,
5333 # but we know of no workaround that is simple, portable, and efficient.
5334 # So, don't put newlines in cache variables' values.
5335 # Ultrix sh set writes to stderr and can't be redirected directly,
5336 # and sets the high bit in the cache file unless we assign to the vars.
5338 (set) 2>&1 |
5339 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5340 *ac_space=\ *)
5341 # `set' does not quote correctly, so add quotes (double-quote
5342 # substitution turns \\\\ into \\, and sed turns \\ into \).
5343 sed -n \
5344 "s/'/'\\\\''/g;
5345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5348 # `set' quotes correctly as required by POSIX, so do not add quotes.
5349 sed -n \
5350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5352 esac;
5354 sed '
5355 t clear
5356 : clear
5357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5358 t end
5359 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5360 : end' >>confcache
5361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5362 if test -w $cache_file; then
5363 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5364 cat confcache >$cache_file
5365 else
5366 echo "not updating unwritable cache $cache_file"
5369 rm -f confcache
5371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5372 # Let make expand exec_prefix.
5373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5377 # trailing colons and then remove the whole line if VPATH becomes empty
5378 # (actually we leave an empty line to preserve line numbers).
5379 if test "x$srcdir" = x.; then
5380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5381 s/:*\$(srcdir):*/:/;
5382 s/:*\${srcdir}:*/:/;
5383 s/:*@srcdir@:*/:/;
5384 s/^\([^=]*=[ ]*\):*/\1/;
5385 s/:*$//;
5386 s/^[^=]*=[ ]*$//;
5390 DEFS=-DHAVE_CONFIG_H
5392 ac_libobjs=
5393 ac_ltlibobjs=
5394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5395 # 1. Remove the extension, and $U if already installed.
5396 ac_i=`echo "$ac_i" |
5397 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5398 # 2. Add them.
5399 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5400 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5401 done
5402 LIBOBJS=$ac_libobjs
5404 LTLIBOBJS=$ac_ltlibobjs
5408 : ${CONFIG_STATUS=./config.status}
5409 ac_clean_files_save=$ac_clean_files
5410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5413 cat >$CONFIG_STATUS <<_ACEOF
5414 #! $SHELL
5415 # Generated by $as_me.
5416 # Run this file to recreate the current configuration.
5417 # Compiler output produced by configure, useful for debugging
5418 # configure, is in config.log if it exists.
5420 debug=false
5421 ac_cs_recheck=false
5422 ac_cs_silent=false
5423 SHELL=\${CONFIG_SHELL-$SHELL}
5424 _ACEOF
5426 cat >>$CONFIG_STATUS <<\_ACEOF
5427 ## --------------------- ##
5428 ## M4sh Initialization. ##
5429 ## --------------------- ##
5431 # Be Bourne compatible
5432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5433 emulate sh
5434 NULLCMD=:
5435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5436 # is contrary to our usage. Disable this feature.
5437 alias -g '${1+"$@"}'='"$@"'
5438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5439 set -o posix
5441 DUALCASE=1; export DUALCASE # for MKS sh
5443 # Support unset when possible.
5444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445 as_unset=unset
5446 else
5447 as_unset=false
5451 # Work around bugs in pre-3.0 UWIN ksh.
5452 $as_unset ENV MAIL MAILPATH
5453 PS1='$ '
5454 PS2='> '
5455 PS4='+ '
5457 # NLS nuisances.
5458 for as_var in \
5459 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5460 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5461 LC_TELEPHONE LC_TIME
5463 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5464 eval $as_var=C; export $as_var
5465 else
5466 $as_unset $as_var
5468 done
5470 # Required to use basename.
5471 if expr a : '\(a\)' >/dev/null 2>&1; then
5472 as_expr=expr
5473 else
5474 as_expr=false
5477 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5478 as_basename=basename
5479 else
5480 as_basename=false
5484 # Name of the executable.
5485 as_me=`$as_basename "$0" ||
5486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5487 X"$0" : 'X\(//\)$' \| \
5488 X"$0" : 'X\(/\)$' \| \
5489 . : '\(.\)' 2>/dev/null ||
5490 echo X/"$0" |
5491 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5492 /^X\/\(\/\/\)$/{ s//\1/; q; }
5493 /^X\/\(\/\).*/{ s//\1/; q; }
5494 s/.*/./; q'`
5497 # PATH needs CR, and LINENO needs CR and PATH.
5498 # Avoid depending upon Character Ranges.
5499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5502 as_cr_digits='0123456789'
5503 as_cr_alnum=$as_cr_Letters$as_cr_digits
5505 # The user is always right.
5506 if test "${PATH_SEPARATOR+set}" != set; then
5507 echo "#! /bin/sh" >conf$$.sh
5508 echo "exit 0" >>conf$$.sh
5509 chmod +x conf$$.sh
5510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5511 PATH_SEPARATOR=';'
5512 else
5513 PATH_SEPARATOR=:
5515 rm -f conf$$.sh
5519 as_lineno_1=$LINENO
5520 as_lineno_2=$LINENO
5521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5522 test "x$as_lineno_1" != "x$as_lineno_2" &&
5523 test "x$as_lineno_3" = "x$as_lineno_2" || {
5524 # Find who we are. Look in the path if we contain no path at all
5525 # relative or not.
5526 case $0 in
5527 *[\\/]* ) as_myself=$0 ;;
5528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5534 done
5537 esac
5538 # We did not find ourselves, most probably we were run as `sh COMMAND'
5539 # in which case we are not to be found in the path.
5540 if test "x$as_myself" = x; then
5541 as_myself=$0
5543 if test ! -f "$as_myself"; then
5544 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5545 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5546 { (exit 1); exit 1; }; }
5548 case $CONFIG_SHELL in
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for as_base in sh bash ksh sh5; do
5556 case $as_dir in
5558 if ("$as_dir/$as_base" -c '
5559 as_lineno_1=$LINENO
5560 as_lineno_2=$LINENO
5561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5562 test "x$as_lineno_1" != "x$as_lineno_2" &&
5563 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5564 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5565 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5566 CONFIG_SHELL=$as_dir/$as_base
5567 export CONFIG_SHELL
5568 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5569 fi;;
5570 esac
5571 done
5572 done
5574 esac
5576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5577 # uniformly replaced by the line number. The first 'sed' inserts a
5578 # line-number line before each line; the second 'sed' does the real
5579 # work. The second script uses 'N' to pair each line-number line
5580 # with the numbered line, and appends trailing '-' during
5581 # substitution so that $LINENO is not a special case at line end.
5582 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5583 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5584 sed '=' <$as_myself |
5585 sed '
5587 s,$,-,
5588 : loop
5589 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5590 t loop
5591 s,-$,,
5592 s,^['$as_cr_digits']*\n,,
5593 ' >$as_me.lineno &&
5594 chmod +x $as_me.lineno ||
5595 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5596 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5597 { (exit 1); exit 1; }; }
5599 # Don't try to exec as it changes $[0], causing all sort of problems
5600 # (the dirname of $[0] is not the place where we might find the
5601 # original and so on. Autoconf is especially sensible to this).
5602 . ./$as_me.lineno
5603 # Exit status is that of the last command.
5604 exit
5608 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5609 *c*,-n*) ECHO_N= ECHO_C='
5610 ' ECHO_T=' ' ;;
5611 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5612 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5613 esac
5615 if expr a : '\(a\)' >/dev/null 2>&1; then
5616 as_expr=expr
5617 else
5618 as_expr=false
5621 rm -f conf$$ conf$$.exe conf$$.file
5622 echo >conf$$.file
5623 if ln -s conf$$.file conf$$ 2>/dev/null; then
5624 # We could just check for DJGPP; but this test a) works b) is more generic
5625 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5626 if test -f conf$$.exe; then
5627 # Don't use ln at all; we don't have any links
5628 as_ln_s='cp -p'
5629 else
5630 as_ln_s='ln -s'
5632 elif ln conf$$.file conf$$ 2>/dev/null; then
5633 as_ln_s=ln
5634 else
5635 as_ln_s='cp -p'
5637 rm -f conf$$ conf$$.exe conf$$.file
5639 if mkdir -p . 2>/dev/null; then
5640 as_mkdir_p=:
5641 else
5642 test -d ./-p && rmdir ./-p
5643 as_mkdir_p=false
5646 as_executable_p="test -f"
5648 # Sed expression to map a string onto a valid CPP name.
5649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5651 # Sed expression to map a string onto a valid variable name.
5652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5655 # IFS
5656 # We need space, tab and new line, in precisely that order.
5657 as_nl='
5659 IFS=" $as_nl"
5661 # CDPATH.
5662 $as_unset CDPATH
5664 exec 6>&1
5666 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5667 # report actual input values of CONFIG_FILES etc. instead of their
5668 # values after options handling. Logging --version etc. is OK.
5669 exec 5>>config.log
5671 echo
5672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5673 ## Running $as_me. ##
5674 _ASBOX
5675 } >&5
5676 cat >&5 <<_CSEOF
5678 This file was extended by $as_me, which was
5679 generated by GNU Autoconf 2.59. Invocation command line was
5681 CONFIG_FILES = $CONFIG_FILES
5682 CONFIG_HEADERS = $CONFIG_HEADERS
5683 CONFIG_LINKS = $CONFIG_LINKS
5684 CONFIG_COMMANDS = $CONFIG_COMMANDS
5685 $ $0 $@
5687 _CSEOF
5688 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5689 echo >&5
5690 _ACEOF
5692 # Files that config.status was made for.
5693 if test -n "$ac_config_files"; then
5694 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5697 if test -n "$ac_config_headers"; then
5698 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5701 if test -n "$ac_config_links"; then
5702 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5705 if test -n "$ac_config_commands"; then
5706 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5709 cat >>$CONFIG_STATUS <<\_ACEOF
5711 ac_cs_usage="\
5712 \`$as_me' instantiates files from templates according to the
5713 current configuration.
5715 Usage: $0 [OPTIONS] [FILE]...
5717 -h, --help print this help, then exit
5718 -V, --version print version number, then exit
5719 -q, --quiet do not print progress messages
5720 -d, --debug don't remove temporary files
5721 --recheck update $as_me by reconfiguring in the same conditions
5722 --file=FILE[:TEMPLATE]
5723 instantiate the configuration file FILE
5724 --header=FILE[:TEMPLATE]
5725 instantiate the configuration header FILE
5727 Configuration files:
5728 $config_files
5730 Configuration headers:
5731 $config_headers
5733 Report bugs to <bug-autoconf@gnu.org>."
5734 _ACEOF
5736 cat >>$CONFIG_STATUS <<_ACEOF
5737 ac_cs_version="\\
5738 config.status
5739 configured by $0, generated by GNU Autoconf 2.59,
5740 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5742 Copyright (C) 2003 Free Software Foundation, Inc.
5743 This config.status script is free software; the Free Software Foundation
5744 gives unlimited permission to copy, distribute and modify it."
5745 srcdir=$srcdir
5746 INSTALL="$INSTALL"
5747 _ACEOF
5749 cat >>$CONFIG_STATUS <<\_ACEOF
5750 # If no file are specified by the user, then we need to provide default
5751 # value. By we need to know if files were specified by the user.
5752 ac_need_defaults=:
5753 while test $# != 0
5755 case $1 in
5756 --*=*)
5757 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5758 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5759 ac_shift=:
5762 ac_option=$1
5763 ac_optarg=$2
5764 ac_shift=shift
5766 *) # This is not an option, so the user has probably given explicit
5767 # arguments.
5768 ac_option=$1
5769 ac_need_defaults=false;;
5770 esac
5772 case $ac_option in
5773 # Handling of the options.
5774 _ACEOF
5775 cat >>$CONFIG_STATUS <<\_ACEOF
5776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5777 ac_cs_recheck=: ;;
5778 --version | --vers* | -V )
5779 echo "$ac_cs_version"; exit 0 ;;
5780 --he | --h)
5781 # Conflict between --help and --header
5782 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5783 Try \`$0 --help' for more information." >&5
5784 echo "$as_me: error: ambiguous option: $1
5785 Try \`$0 --help' for more information." >&2;}
5786 { (exit 1); exit 1; }; };;
5787 --help | --hel | -h )
5788 echo "$ac_cs_usage"; exit 0 ;;
5789 --debug | --d* | -d )
5790 debug=: ;;
5791 --file | --fil | --fi | --f )
5792 $ac_shift
5793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5794 ac_need_defaults=false;;
5795 --header | --heade | --head | --hea )
5796 $ac_shift
5797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5798 ac_need_defaults=false;;
5799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5801 ac_cs_silent=: ;;
5803 # This is an error.
5804 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5805 Try \`$0 --help' for more information." >&5
5806 echo "$as_me: error: unrecognized option: $1
5807 Try \`$0 --help' for more information." >&2;}
5808 { (exit 1); exit 1; }; } ;;
5810 *) ac_config_targets="$ac_config_targets $1" ;;
5812 esac
5813 shift
5814 done
5816 ac_configure_extra_args=
5818 if $ac_cs_silent; then
5819 exec 6>/dev/null
5820 ac_configure_extra_args="$ac_configure_extra_args --silent"
5823 _ACEOF
5824 cat >>$CONFIG_STATUS <<_ACEOF
5825 if \$ac_cs_recheck; then
5826 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5827 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5830 _ACEOF
5836 cat >>$CONFIG_STATUS <<\_ACEOF
5837 for ac_config_target in $ac_config_targets
5839 case "$ac_config_target" in
5840 # Handling of arguments.
5841 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5842 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5843 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5844 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5845 { (exit 1); exit 1; }; };;
5846 esac
5847 done
5849 # If the user did not use the arguments to specify the items to instantiate,
5850 # then the envvar interface is used. Set only those that are not.
5851 # We use the long form for the default assignment because of an extremely
5852 # bizarre bug on SunOS 4.1.3.
5853 if $ac_need_defaults; then
5854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5858 # Have a temporary directory for convenience. Make it in the build tree
5859 # simply because there is no reason to put it here, and in addition,
5860 # creating and moving files from /tmp can sometimes cause problems.
5861 # Create a temporary directory, and hook for its removal unless debugging.
5862 $debug ||
5864 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5865 trap '{ (exit 1); exit 1; }' 1 2 13 15
5868 # Create a (secure) tmp directory for tmp files.
5871 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5872 test -n "$tmp" && test -d "$tmp"
5873 } ||
5875 tmp=./confstat$$-$RANDOM
5876 (umask 077 && mkdir $tmp)
5877 } ||
5879 echo "$me: cannot create a temporary directory in ." >&2
5880 { (exit 1); exit 1; }
5883 _ACEOF
5885 cat >>$CONFIG_STATUS <<_ACEOF
5888 # CONFIG_FILES section.
5891 # No need to generate the scripts if there are no CONFIG_FILES.
5892 # This happens for instance when ./config.status config.h
5893 if test -n "\$CONFIG_FILES"; then
5894 # Protect against being on the right side of a sed subst in config.status.
5895 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5896 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5897 s,@SHELL@,$SHELL,;t t
5898 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5899 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5900 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5901 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5902 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5903 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5904 s,@exec_prefix@,$exec_prefix,;t t
5905 s,@prefix@,$prefix,;t t
5906 s,@program_transform_name@,$program_transform_name,;t t
5907 s,@bindir@,$bindir,;t t
5908 s,@sbindir@,$sbindir,;t t
5909 s,@libexecdir@,$libexecdir,;t t
5910 s,@datadir@,$datadir,;t t
5911 s,@sysconfdir@,$sysconfdir,;t t
5912 s,@sharedstatedir@,$sharedstatedir,;t t
5913 s,@localstatedir@,$localstatedir,;t t
5914 s,@libdir@,$libdir,;t t
5915 s,@includedir@,$includedir,;t t
5916 s,@oldincludedir@,$oldincludedir,;t t
5917 s,@infodir@,$infodir,;t t
5918 s,@mandir@,$mandir,;t t
5919 s,@build_alias@,$build_alias,;t t
5920 s,@host_alias@,$host_alias,;t t
5921 s,@target_alias@,$target_alias,;t t
5922 s,@DEFS@,$DEFS,;t t
5923 s,@ECHO_C@,$ECHO_C,;t t
5924 s,@ECHO_N@,$ECHO_N,;t t
5925 s,@ECHO_T@,$ECHO_T,;t t
5926 s,@LIBS@,$LIBS,;t t
5927 s,@CC@,$CC,;t t
5928 s,@CFLAGS@,$CFLAGS,;t t
5929 s,@LDFLAGS@,$LDFLAGS,;t t
5930 s,@CPPFLAGS@,$CPPFLAGS,;t t
5931 s,@ac_ct_CC@,$ac_ct_CC,;t t
5932 s,@EXEEXT@,$EXEEXT,;t t
5933 s,@OBJEXT@,$OBJEXT,;t t
5934 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5935 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5936 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5937 s,@CPP@,$CPP,;t t
5938 s,@EGREP@,$EGREP,;t t
5939 s,@LOC_NTOA@,$LOC_NTOA,;t t
5940 s,@LIBOBJS@,$LIBOBJS,;t t
5941 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5942 CEOF
5944 _ACEOF
5946 cat >>$CONFIG_STATUS <<\_ACEOF
5947 # Split the substitutions into bite-sized pieces for seds with
5948 # small command number limits, like on Digital OSF/1 and HP-UX.
5949 ac_max_sed_lines=48
5950 ac_sed_frag=1 # Number of current file.
5951 ac_beg=1 # First line for current file.
5952 ac_end=$ac_max_sed_lines # Line after last line for current file.
5953 ac_more_lines=:
5954 ac_sed_cmds=
5955 while $ac_more_lines; do
5956 if test $ac_beg -gt 1; then
5957 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5958 else
5959 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5961 if test ! -s $tmp/subs.frag; then
5962 ac_more_lines=false
5963 else
5964 # The purpose of the label and of the branching condition is to
5965 # speed up the sed processing (if there are no `@' at all, there
5966 # is no need to browse any of the substitutions).
5967 # These are the two extra sed commands mentioned above.
5968 (echo ':t
5969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5970 if test -z "$ac_sed_cmds"; then
5971 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5972 else
5973 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5975 ac_sed_frag=`expr $ac_sed_frag + 1`
5976 ac_beg=$ac_end
5977 ac_end=`expr $ac_end + $ac_max_sed_lines`
5979 done
5980 if test -z "$ac_sed_cmds"; then
5981 ac_sed_cmds=cat
5983 fi # test -n "$CONFIG_FILES"
5985 _ACEOF
5986 cat >>$CONFIG_STATUS <<\_ACEOF
5987 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5989 case $ac_file in
5990 - | *:- | *:-:* ) # input from stdin
5991 cat >$tmp/stdin
5992 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5994 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5996 * ) ac_file_in=$ac_file.in ;;
5997 esac
5999 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6000 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6001 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6002 X"$ac_file" : 'X\(//\)[^/]' \| \
6003 X"$ac_file" : 'X\(//\)$' \| \
6004 X"$ac_file" : 'X\(/\)' \| \
6005 . : '\(.\)' 2>/dev/null ||
6006 echo X"$ac_file" |
6007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6009 /^X\(\/\/\)$/{ s//\1/; q; }
6010 /^X\(\/\).*/{ s//\1/; q; }
6011 s/.*/./; q'`
6012 { if $as_mkdir_p; then
6013 mkdir -p "$ac_dir"
6014 else
6015 as_dir="$ac_dir"
6016 as_dirs=
6017 while test ! -d "$as_dir"; do
6018 as_dirs="$as_dir $as_dirs"
6019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6021 X"$as_dir" : 'X\(//\)[^/]' \| \
6022 X"$as_dir" : 'X\(//\)$' \| \
6023 X"$as_dir" : 'X\(/\)' \| \
6024 . : '\(.\)' 2>/dev/null ||
6025 echo X"$as_dir" |
6026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6028 /^X\(\/\/\)$/{ s//\1/; q; }
6029 /^X\(\/\).*/{ s//\1/; q; }
6030 s/.*/./; q'`
6031 done
6032 test ! -n "$as_dirs" || mkdir $as_dirs
6033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6035 { (exit 1); exit 1; }; }; }
6037 ac_builddir=.
6039 if test "$ac_dir" != .; then
6040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6041 # A "../" for each directory in $ac_dir_suffix.
6042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6043 else
6044 ac_dir_suffix= ac_top_builddir=
6047 case $srcdir in
6048 .) # No --srcdir option. We are building in place.
6049 ac_srcdir=.
6050 if test -z "$ac_top_builddir"; then
6051 ac_top_srcdir=.
6052 else
6053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6054 fi ;;
6055 [\\/]* | ?:[\\/]* ) # Absolute path.
6056 ac_srcdir=$srcdir$ac_dir_suffix;
6057 ac_top_srcdir=$srcdir ;;
6058 *) # Relative path.
6059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6061 esac
6063 # Do not use `cd foo && pwd` to compute absolute paths, because
6064 # the directories may not exist.
6065 case `pwd` in
6066 .) ac_abs_builddir="$ac_dir";;
6068 case "$ac_dir" in
6069 .) ac_abs_builddir=`pwd`;;
6070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6072 esac;;
6073 esac
6074 case $ac_abs_builddir in
6075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6077 case ${ac_top_builddir}. in
6078 .) ac_abs_top_builddir=$ac_abs_builddir;;
6079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6081 esac;;
6082 esac
6083 case $ac_abs_builddir in
6084 .) ac_abs_srcdir=$ac_srcdir;;
6086 case $ac_srcdir in
6087 .) ac_abs_srcdir=$ac_abs_builddir;;
6088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6090 esac;;
6091 esac
6092 case $ac_abs_builddir in
6093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6095 case $ac_top_srcdir in
6096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6099 esac;;
6100 esac
6103 case $INSTALL in
6104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6105 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6106 esac
6108 # Let's still pretend it is `configure' which instantiates (i.e., don't
6109 # use $as_me), people would be surprised to read:
6110 # /* config.h. Generated by config.status. */
6111 if test x"$ac_file" = x-; then
6112 configure_input=
6113 else
6114 configure_input="$ac_file. "
6116 configure_input=$configure_input"Generated from `echo $ac_file_in |
6117 sed 's,.*/,,'` by configure."
6119 # First look for the input files in the build tree, otherwise in the
6120 # src tree.
6121 ac_file_inputs=`IFS=:
6122 for f in $ac_file_in; do
6123 case $f in
6124 -) echo $tmp/stdin ;;
6125 [\\/$]*)
6126 # Absolute (can't be DOS-style, as IFS=:)
6127 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6128 echo "$as_me: error: cannot find input file: $f" >&2;}
6129 { (exit 1); exit 1; }; }
6130 echo "$f";;
6131 *) # Relative
6132 if test -f "$f"; then
6133 # Build tree
6134 echo "$f"
6135 elif test -f "$srcdir/$f"; then
6136 # Source tree
6137 echo "$srcdir/$f"
6138 else
6139 # /dev/null tree
6140 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6141 echo "$as_me: error: cannot find input file: $f" >&2;}
6142 { (exit 1); exit 1; }; }
6143 fi;;
6144 esac
6145 done` || { (exit 1); exit 1; }
6147 if test x"$ac_file" != x-; then
6148 { echo "$as_me:$LINENO: creating $ac_file" >&5
6149 echo "$as_me: creating $ac_file" >&6;}
6150 rm -f "$ac_file"
6152 _ACEOF
6153 cat >>$CONFIG_STATUS <<_ACEOF
6154 sed "$ac_vpsub
6155 $extrasub
6156 _ACEOF
6157 cat >>$CONFIG_STATUS <<\_ACEOF
6159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6160 s,@configure_input@,$configure_input,;t t
6161 s,@srcdir@,$ac_srcdir,;t t
6162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6163 s,@top_srcdir@,$ac_top_srcdir,;t t
6164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6165 s,@builddir@,$ac_builddir,;t t
6166 s,@abs_builddir@,$ac_abs_builddir,;t t
6167 s,@top_builddir@,$ac_top_builddir,;t t
6168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6169 s,@INSTALL@,$ac_INSTALL,;t t
6170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6171 rm -f $tmp/stdin
6172 if test x"$ac_file" != x-; then
6173 mv $tmp/out $ac_file
6174 else
6175 cat $tmp/out
6176 rm -f $tmp/out
6179 done
6180 _ACEOF
6181 cat >>$CONFIG_STATUS <<\_ACEOF
6184 # CONFIG_HEADER section.
6187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6190 # ac_d sets the value in "#define NAME VALUE" lines.
6191 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6192 ac_dB='[ ].*$,\1#\2'
6193 ac_dC=' '
6194 ac_dD=',;t'
6195 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6196 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6197 ac_uB='$,\1#\2define\3'
6198 ac_uC=' '
6199 ac_uD=',;t'
6201 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6203 case $ac_file in
6204 - | *:- | *:-:* ) # input from stdin
6205 cat >$tmp/stdin
6206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6210 * ) ac_file_in=$ac_file.in ;;
6211 esac
6213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6214 echo "$as_me: creating $ac_file" >&6;}
6216 # First look for the input files in the build tree, otherwise in the
6217 # src tree.
6218 ac_file_inputs=`IFS=:
6219 for f in $ac_file_in; do
6220 case $f in
6221 -) echo $tmp/stdin ;;
6222 [\\/$]*)
6223 # Absolute (can't be DOS-style, as IFS=:)
6224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6225 echo "$as_me: error: cannot find input file: $f" >&2;}
6226 { (exit 1); exit 1; }; }
6227 # Do quote $f, to prevent DOS paths from being IFS'd.
6228 echo "$f";;
6229 *) # Relative
6230 if test -f "$f"; then
6231 # Build tree
6232 echo "$f"
6233 elif test -f "$srcdir/$f"; then
6234 # Source tree
6235 echo "$srcdir/$f"
6236 else
6237 # /dev/null tree
6238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6239 echo "$as_me: error: cannot find input file: $f" >&2;}
6240 { (exit 1); exit 1; }; }
6241 fi;;
6242 esac
6243 done` || { (exit 1); exit 1; }
6244 # Remove the trailing spaces.
6245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6247 _ACEOF
6249 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6250 # `conftest.undefs', that substitutes the proper values into
6251 # config.h.in to produce config.h. The first handles `#define'
6252 # templates, and the second `#undef' templates.
6253 # And first: Protect against being on the right side of a sed subst in
6254 # config.status. Protect against being in an unquoted here document
6255 # in config.status.
6256 rm -f conftest.defines conftest.undefs
6257 # Using a here document instead of a string reduces the quoting nightmare.
6258 # Putting comments in sed scripts is not portable.
6260 # `end' is used to avoid that the second main sed command (meant for
6261 # 0-ary CPP macros) applies to n-ary macro definitions.
6262 # See the Autoconf documentation for `clear'.
6263 cat >confdef2sed.sed <<\_ACEOF
6264 s/[\\&,]/\\&/g
6265 s,[\\$`],\\&,g
6266 t clear
6267 : clear
6268 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6269 t end
6270 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6271 : end
6272 _ACEOF
6273 # If some macros were called several times there might be several times
6274 # the same #defines, which is useless. Nevertheless, we may not want to
6275 # sort them, since we want the *last* AC-DEFINE to be honored.
6276 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6277 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6278 rm -f confdef2sed.sed
6280 # This sed command replaces #undef with comments. This is necessary, for
6281 # example, in the case of _POSIX_SOURCE, which is predefined and required
6282 # on some systems where configure will not decide to define it.
6283 cat >>conftest.undefs <<\_ACEOF
6284 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6285 _ACEOF
6287 # Break up conftest.defines because some shells have a limit on the size
6288 # of here documents, and old seds have small limits too (100 cmds).
6289 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6290 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6291 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6292 echo ' :' >>$CONFIG_STATUS
6293 rm -f conftest.tail
6294 while grep . conftest.defines >/dev/null
6296 # Write a limited-size here document to $tmp/defines.sed.
6297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6298 # Speed up: don't consider the non `#define' lines.
6299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6300 # Work around the forget-to-reset-the-flag bug.
6301 echo 't clr' >>$CONFIG_STATUS
6302 echo ': clr' >>$CONFIG_STATUS
6303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6304 echo 'CEOF
6305 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6306 rm -f $tmp/in
6307 mv $tmp/out $tmp/in
6308 ' >>$CONFIG_STATUS
6309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6310 rm -f conftest.defines
6311 mv conftest.tail conftest.defines
6312 done
6313 rm -f conftest.defines
6314 echo ' fi # grep' >>$CONFIG_STATUS
6315 echo >>$CONFIG_STATUS
6317 # Break up conftest.undefs because some shells have a limit on the size
6318 # of here documents, and old seds have small limits too (100 cmds).
6319 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6320 rm -f conftest.tail
6321 while grep . conftest.undefs >/dev/null
6323 # Write a limited-size here document to $tmp/undefs.sed.
6324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6325 # Speed up: don't consider the non `#undef'
6326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6327 # Work around the forget-to-reset-the-flag bug.
6328 echo 't clr' >>$CONFIG_STATUS
6329 echo ': clr' >>$CONFIG_STATUS
6330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6331 echo 'CEOF
6332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6333 rm -f $tmp/in
6334 mv $tmp/out $tmp/in
6335 ' >>$CONFIG_STATUS
6336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6337 rm -f conftest.undefs
6338 mv conftest.tail conftest.undefs
6339 done
6340 rm -f conftest.undefs
6342 cat >>$CONFIG_STATUS <<\_ACEOF
6343 # Let's still pretend it is `configure' which instantiates (i.e., don't
6344 # use $as_me), people would be surprised to read:
6345 # /* config.h. Generated by config.status. */
6346 if test x"$ac_file" = x-; then
6347 echo "/* Generated by configure. */" >$tmp/config.h
6348 else
6349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6351 cat $tmp/in >>$tmp/config.h
6352 rm -f $tmp/in
6353 if test x"$ac_file" != x-; then
6354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6356 echo "$as_me: $ac_file is unchanged" >&6;}
6357 else
6358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6360 X"$ac_file" : 'X\(//\)[^/]' \| \
6361 X"$ac_file" : 'X\(//\)$' \| \
6362 X"$ac_file" : 'X\(/\)' \| \
6363 . : '\(.\)' 2>/dev/null ||
6364 echo X"$ac_file" |
6365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6367 /^X\(\/\/\)$/{ s//\1/; q; }
6368 /^X\(\/\).*/{ s//\1/; q; }
6369 s/.*/./; q'`
6370 { if $as_mkdir_p; then
6371 mkdir -p "$ac_dir"
6372 else
6373 as_dir="$ac_dir"
6374 as_dirs=
6375 while test ! -d "$as_dir"; do
6376 as_dirs="$as_dir $as_dirs"
6377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6379 X"$as_dir" : 'X\(//\)[^/]' \| \
6380 X"$as_dir" : 'X\(//\)$' \| \
6381 X"$as_dir" : 'X\(/\)' \| \
6382 . : '\(.\)' 2>/dev/null ||
6383 echo X"$as_dir" |
6384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6386 /^X\(\/\/\)$/{ s//\1/; q; }
6387 /^X\(\/\).*/{ s//\1/; q; }
6388 s/.*/./; q'`
6389 done
6390 test ! -n "$as_dirs" || mkdir $as_dirs
6391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6393 { (exit 1); exit 1; }; }; }
6395 rm -f $ac_file
6396 mv $tmp/config.h $ac_file
6398 else
6399 cat $tmp/config.h
6400 rm -f $tmp/config.h
6402 done
6403 _ACEOF
6405 cat >>$CONFIG_STATUS <<\_ACEOF
6407 { (exit 0); exit 0; }
6408 _ACEOF
6409 chmod +x $CONFIG_STATUS
6410 ac_clean_files=$ac_clean_files_save
6413 # configure is writing to config.log, and then calls config.status.
6414 # config.status does its own redirection, appending to config.log.
6415 # Unfortunately, on DOS this fails, as config.log is still kept open
6416 # by configure, so config.status won't be able to write to it; its
6417 # output is simply discarded. So we exec the FD to /dev/null,
6418 # effectively closing config.log, so it can be properly (re)opened and
6419 # appended to by config.status. When coming back to configure, we
6420 # need to make the FD available again.
6421 if test "$no_create" != yes; then
6422 ac_cs_success=:
6423 ac_config_status_args=
6424 test "$silent" = yes &&
6425 ac_config_status_args="$ac_config_status_args --quiet"
6426 exec 5>/dev/null
6427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6428 exec 5>>config.log
6429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6430 # would make configure fail if this is the last instruction.
6431 $ac_cs_success || { (exit 1); exit 1; }