Imported Upstream version 2.23.05
[hcoop/zz_old/debian/webalizer.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for webalizer V2.23.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='webalizer'
574 PACKAGE_TARNAME='webalizer'
575 PACKAGE_VERSION='V2.23'
576 PACKAGE_STRING='webalizer V2.23'
577 PACKAGE_BUGREPORT=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 OPTS
653 WCMGR_LIBS
654 DEFAULT_LANG
655 CC
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 LN_S
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 CPP
667 GREP
668 EGREP
669 GEODB_LOC
670 LIBOBJS
671 LTLIBOBJS'
672 ac_subst_files=''
673 ac_precious_vars='build_alias
674 host_alias
675 target_alias
676 CC
677 CFLAGS
678 LDFLAGS
679 LIBS
680 CPPFLAGS
681 CPP'
682
683
684 # Initialize some variables set by options.
685 ac_init_help=
686 ac_init_version=false
687 # The variables have the same names as the options, with
688 # dashes changed to underlines.
689 cache_file=/dev/null
690 exec_prefix=NONE
691 no_create=
692 no_recursion=
693 prefix=NONE
694 program_prefix=NONE
695 program_suffix=NONE
696 program_transform_name=s,x,x,
697 silent=
698 site=
699 srcdir=
700 verbose=
701 x_includes=NONE
702 x_libraries=NONE
703
704 # Installation directory options.
705 # These are left unexpanded so users can "make install exec_prefix=/foo"
706 # and all the variables that are supposed to be based on exec_prefix
707 # by default will actually change.
708 # Use braces instead of parens because sh, perl, etc. also accept them.
709 # (The list follows the same order as the GNU Coding Standards.)
710 bindir='${exec_prefix}/bin'
711 sbindir='${exec_prefix}/sbin'
712 libexecdir='${exec_prefix}/libexec'
713 datarootdir='${prefix}/share'
714 datadir='${datarootdir}'
715 sysconfdir='${prefix}/etc'
716 sharedstatedir='${prefix}/com'
717 localstatedir='${prefix}/var'
718 includedir='${prefix}/include'
719 oldincludedir='/usr/include'
720 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
721 infodir='${datarootdir}/info'
722 htmldir='${docdir}'
723 dvidir='${docdir}'
724 pdfdir='${docdir}'
725 psdir='${docdir}'
726 libdir='${exec_prefix}/lib'
727 localedir='${datarootdir}/locale'
728 mandir='${datarootdir}/man'
729
730 ac_prev=
731 ac_dashdash=
732 for ac_option
733 do
734 # If the previous option needs an argument, assign it.
735 if test -n "$ac_prev"; then
736 eval $ac_prev=\$ac_option
737 ac_prev=
738 continue
739 fi
740
741 case $ac_option in
742 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 *) ac_optarg=yes ;;
744 esac
745
746 # Accept the important Cygnus configure options, so we can diagnose typos.
747
748 case $ac_dashdash$ac_option in
749 --)
750 ac_dashdash=yes ;;
751
752 -bindir | --bindir | --bindi | --bind | --bin | --bi)
753 ac_prev=bindir ;;
754 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
755 bindir=$ac_optarg ;;
756
757 -build | --build | --buil | --bui | --bu)
758 ac_prev=build_alias ;;
759 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
760 build_alias=$ac_optarg ;;
761
762 -cache-file | --cache-file | --cache-fil | --cache-fi \
763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
764 ac_prev=cache_file ;;
765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
767 cache_file=$ac_optarg ;;
768
769 --config-cache | -C)
770 cache_file=config.cache ;;
771
772 -datadir | --datadir | --datadi | --datad)
773 ac_prev=datadir ;;
774 -datadir=* | --datadir=* | --datadi=* | --datad=*)
775 datadir=$ac_optarg ;;
776
777 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
778 | --dataroo | --dataro | --datar)
779 ac_prev=datarootdir ;;
780 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
781 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
782 datarootdir=$ac_optarg ;;
783
784 -disable-* | --disable-*)
785 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
789 { (exit 1); exit 1; }; }
790 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
791 eval enable_$ac_feature=no ;;
792
793 -docdir | --docdir | --docdi | --doc | --do)
794 ac_prev=docdir ;;
795 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
796 docdir=$ac_optarg ;;
797
798 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
799 ac_prev=dvidir ;;
800 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
801 dvidir=$ac_optarg ;;
802
803 -enable-* | --enable-*)
804 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
805 # Reject names that are not valid shell variable names.
806 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
807 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
808 { (exit 1); exit 1; }; }
809 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
810 eval enable_$ac_feature=\$ac_optarg ;;
811
812 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
813 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
814 | --exec | --exe | --ex)
815 ac_prev=exec_prefix ;;
816 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
817 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
818 | --exec=* | --exe=* | --ex=*)
819 exec_prefix=$ac_optarg ;;
820
821 -gas | --gas | --ga | --g)
822 # Obsolete; use --with-gas.
823 with_gas=yes ;;
824
825 -help | --help | --hel | --he | -h)
826 ac_init_help=long ;;
827 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
828 ac_init_help=recursive ;;
829 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
830 ac_init_help=short ;;
831
832 -host | --host | --hos | --ho)
833 ac_prev=host_alias ;;
834 -host=* | --host=* | --hos=* | --ho=*)
835 host_alias=$ac_optarg ;;
836
837 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
838 ac_prev=htmldir ;;
839 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
840 | --ht=*)
841 htmldir=$ac_optarg ;;
842
843 -includedir | --includedir | --includedi | --included | --include \
844 | --includ | --inclu | --incl | --inc)
845 ac_prev=includedir ;;
846 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
847 | --includ=* | --inclu=* | --incl=* | --inc=*)
848 includedir=$ac_optarg ;;
849
850 -infodir | --infodir | --infodi | --infod | --info | --inf)
851 ac_prev=infodir ;;
852 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
853 infodir=$ac_optarg ;;
854
855 -libdir | --libdir | --libdi | --libd)
856 ac_prev=libdir ;;
857 -libdir=* | --libdir=* | --libdi=* | --libd=*)
858 libdir=$ac_optarg ;;
859
860 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
861 | --libexe | --libex | --libe)
862 ac_prev=libexecdir ;;
863 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
864 | --libexe=* | --libex=* | --libe=*)
865 libexecdir=$ac_optarg ;;
866
867 -localedir | --localedir | --localedi | --localed | --locale)
868 ac_prev=localedir ;;
869 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
870 localedir=$ac_optarg ;;
871
872 -localstatedir | --localstatedir | --localstatedi | --localstated \
873 | --localstate | --localstat | --localsta | --localst | --locals)
874 ac_prev=localstatedir ;;
875 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
876 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
877 localstatedir=$ac_optarg ;;
878
879 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
880 ac_prev=mandir ;;
881 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
882 mandir=$ac_optarg ;;
883
884 -nfp | --nfp | --nf)
885 # Obsolete; use --without-fp.
886 with_fp=no ;;
887
888 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
889 | --no-cr | --no-c | -n)
890 no_create=yes ;;
891
892 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
893 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
894 no_recursion=yes ;;
895
896 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
897 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
898 | --oldin | --oldi | --old | --ol | --o)
899 ac_prev=oldincludedir ;;
900 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
901 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
902 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
903 oldincludedir=$ac_optarg ;;
904
905 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
906 ac_prev=prefix ;;
907 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
908 prefix=$ac_optarg ;;
909
910 -program-prefix | --program-prefix | --program-prefi | --program-pref \
911 | --program-pre | --program-pr | --program-p)
912 ac_prev=program_prefix ;;
913 -program-prefix=* | --program-prefix=* | --program-prefi=* \
914 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
915 program_prefix=$ac_optarg ;;
916
917 -program-suffix | --program-suffix | --program-suffi | --program-suff \
918 | --program-suf | --program-su | --program-s)
919 ac_prev=program_suffix ;;
920 -program-suffix=* | --program-suffix=* | --program-suffi=* \
921 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
922 program_suffix=$ac_optarg ;;
923
924 -program-transform-name | --program-transform-name \
925 | --program-transform-nam | --program-transform-na \
926 | --program-transform-n | --program-transform- \
927 | --program-transform | --program-transfor \
928 | --program-transfo | --program-transf \
929 | --program-trans | --program-tran \
930 | --progr-tra | --program-tr | --program-t)
931 ac_prev=program_transform_name ;;
932 -program-transform-name=* | --program-transform-name=* \
933 | --program-transform-nam=* | --program-transform-na=* \
934 | --program-transform-n=* | --program-transform-=* \
935 | --program-transform=* | --program-transfor=* \
936 | --program-transfo=* | --program-transf=* \
937 | --program-trans=* | --program-tran=* \
938 | --progr-tra=* | --program-tr=* | --program-t=*)
939 program_transform_name=$ac_optarg ;;
940
941 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
942 ac_prev=pdfdir ;;
943 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
944 pdfdir=$ac_optarg ;;
945
946 -psdir | --psdir | --psdi | --psd | --ps)
947 ac_prev=psdir ;;
948 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
949 psdir=$ac_optarg ;;
950
951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
952 | -silent | --silent | --silen | --sile | --sil)
953 silent=yes ;;
954
955 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
956 ac_prev=sbindir ;;
957 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
958 | --sbi=* | --sb=*)
959 sbindir=$ac_optarg ;;
960
961 -sharedstatedir | --sharedstatedir | --sharedstatedi \
962 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
963 | --sharedst | --shareds | --shared | --share | --shar \
964 | --sha | --sh)
965 ac_prev=sharedstatedir ;;
966 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
967 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
968 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
969 | --sha=* | --sh=*)
970 sharedstatedir=$ac_optarg ;;
971
972 -site | --site | --sit)
973 ac_prev=site ;;
974 -site=* | --site=* | --sit=*)
975 site=$ac_optarg ;;
976
977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
978 ac_prev=srcdir ;;
979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
980 srcdir=$ac_optarg ;;
981
982 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
983 | --syscon | --sysco | --sysc | --sys | --sy)
984 ac_prev=sysconfdir ;;
985 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
986 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
987 sysconfdir=$ac_optarg ;;
988
989 -target | --target | --targe | --targ | --tar | --ta | --t)
990 ac_prev=target_alias ;;
991 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
992 target_alias=$ac_optarg ;;
993
994 -v | -verbose | --verbose | --verbos | --verbo | --verb)
995 verbose=yes ;;
996
997 -version | --version | --versio | --versi | --vers | -V)
998 ac_init_version=: ;;
999
1000 -with-* | --with-*)
1001 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid package name: $ac_package" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1007 eval with_$ac_package=\$ac_optarg ;;
1008
1009 -without-* | --without-*)
1010 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid package name: $ac_package" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1016 eval with_$ac_package=no ;;
1017
1018 --x)
1019 # Obsolete; use --with-x.
1020 with_x=yes ;;
1021
1022 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1023 | --x-incl | --x-inc | --x-in | --x-i)
1024 ac_prev=x_includes ;;
1025 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1026 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1027 x_includes=$ac_optarg ;;
1028
1029 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1030 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1031 ac_prev=x_libraries ;;
1032 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1033 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1034 x_libraries=$ac_optarg ;;
1035
1036 -*) { echo "$as_me: error: unrecognized option: $ac_option
1037 Try \`$0 --help' for more information." >&2
1038 { (exit 1); exit 1; }; }
1039 ;;
1040
1041 *=*)
1042 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1046 { (exit 1); exit 1; }; }
1047 eval $ac_envvar=\$ac_optarg
1048 export $ac_envvar ;;
1049
1050 *)
1051 # FIXME: should be removed in autoconf 3.0.
1052 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1053 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1055 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1056 ;;
1057
1058 esac
1059 done
1060
1061 if test -n "$ac_prev"; then
1062 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1063 { echo "$as_me: error: missing argument to $ac_option" >&2
1064 { (exit 1); exit 1; }; }
1065 fi
1066
1067 # Be sure to have absolute directory names.
1068 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1069 datadir sysconfdir sharedstatedir localstatedir includedir \
1070 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1071 libdir localedir mandir
1072 do
1073 eval ac_val=\$$ac_var
1074 case $ac_val in
1075 [\\/$]* | ?:[\\/]* ) continue;;
1076 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1077 esac
1078 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1079 { (exit 1); exit 1; }; }
1080 done
1081
1082 # There might be people who depend on the old broken behavior: `$host'
1083 # used to hold the argument of --host etc.
1084 # FIXME: To remove some day.
1085 build=$build_alias
1086 host=$host_alias
1087 target=$target_alias
1088
1089 # FIXME: To remove some day.
1090 if test "x$host_alias" != x; then
1091 if test "x$build_alias" = x; then
1092 cross_compiling=maybe
1093 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1094 If a cross compiler is detected then cross compile mode will be used." >&2
1095 elif test "x$build_alias" != "x$host_alias"; then
1096 cross_compiling=yes
1097 fi
1098 fi
1099
1100 ac_tool_prefix=
1101 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1102
1103 test "$silent" = yes && exec 6>/dev/null
1104
1105
1106 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1107 ac_ls_di=`ls -di .` &&
1108 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1109 { echo "$as_me: error: Working directory cannot be determined" >&2
1110 { (exit 1); exit 1; }; }
1111 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1112 { echo "$as_me: error: pwd does not report name of working directory" >&2
1113 { (exit 1); exit 1; }; }
1114
1115
1116 # Find the source files, if location was not specified.
1117 if test -z "$srcdir"; then
1118 ac_srcdir_defaulted=yes
1119 # Try the directory containing this script, then the parent directory.
1120 ac_confdir=`$as_dirname -- "$0" ||
1121 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1122 X"$0" : 'X\(//\)[^/]' \| \
1123 X"$0" : 'X\(//\)$' \| \
1124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1125 echo X"$0" |
1126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)[^/].*/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\/\)$/{
1135 s//\1/
1136 q
1137 }
1138 /^X\(\/\).*/{
1139 s//\1/
1140 q
1141 }
1142 s/.*/./; q'`
1143 srcdir=$ac_confdir
1144 if test ! -r "$srcdir/$ac_unique_file"; then
1145 srcdir=..
1146 fi
1147 else
1148 ac_srcdir_defaulted=no
1149 fi
1150 if test ! -r "$srcdir/$ac_unique_file"; then
1151 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1152 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1153 { (exit 1); exit 1; }; }
1154 fi
1155 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1156 ac_abs_confdir=`(
1157 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1158 { (exit 1); exit 1; }; }
1159 pwd)`
1160 # When building in place, set srcdir=.
1161 if test "$ac_abs_confdir" = "$ac_pwd"; then
1162 srcdir=.
1163 fi
1164 # Remove unnecessary trailing slashes from srcdir.
1165 # Double slashes in file names in object file debugging info
1166 # mess up M-x gdb in Emacs.
1167 case $srcdir in
1168 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1169 esac
1170 for ac_var in $ac_precious_vars; do
1171 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1172 eval ac_env_${ac_var}_value=\$${ac_var}
1173 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1174 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1175 done
1176
1177 #
1178 # Report the --help message.
1179 #
1180 if test "$ac_init_help" = "long"; then
1181 # Omit some internal or obsolete options to make the list less imposing.
1182 # This message is too long to be a string in the A/UX 3.1 sh.
1183 cat <<_ACEOF
1184 \`configure' configures webalizer V2.23 to adapt to many kinds of systems.
1185
1186 Usage: $0 [OPTION]... [VAR=VALUE]...
1187
1188 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1189 VAR=VALUE. See below for descriptions of some of the useful variables.
1190
1191 Defaults for the options are specified in brackets.
1192
1193 Configuration:
1194 -h, --help display this help and exit
1195 --help=short display options specific to this package
1196 --help=recursive display the short help of all the included packages
1197 -V, --version display version information and exit
1198 -q, --quiet, --silent do not print \`checking...' messages
1199 --cache-file=FILE cache test results in FILE [disabled]
1200 -C, --config-cache alias for \`--cache-file=config.cache'
1201 -n, --no-create do not create output files
1202 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1203
1204 Installation directories:
1205 --prefix=PREFIX install architecture-independent files in PREFIX
1206 [$ac_default_prefix]
1207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1208 [PREFIX]
1209
1210 By default, \`make install' will install all the files in
1211 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1212 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1213 for instance \`--prefix=\$HOME'.
1214
1215 For better control, use the options below.
1216
1217 Fine tuning of the installation directories:
1218 --bindir=DIR user executables [EPREFIX/bin]
1219 --sbindir=DIR system admin executables [EPREFIX/sbin]
1220 --libexecdir=DIR program executables [EPREFIX/libexec]
1221 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1222 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1223 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1224 --libdir=DIR object code libraries [EPREFIX/lib]
1225 --includedir=DIR C header files [PREFIX/include]
1226 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1227 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1228 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1229 --infodir=DIR info documentation [DATAROOTDIR/info]
1230 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1231 --mandir=DIR man documentation [DATAROOTDIR/man]
1232 --docdir=DIR documentation root [DATAROOTDIR/doc/webalizer]
1233 --htmldir=DIR html documentation [DOCDIR]
1234 --dvidir=DIR dvi documentation [DOCDIR]
1235 --pdfdir=DIR pdf documentation [DOCDIR]
1236 --psdir=DIR ps documentation [DOCDIR]
1237 _ACEOF
1238
1239 cat <<\_ACEOF
1240 _ACEOF
1241 fi
1242
1243 if test -n "$ac_init_help"; then
1244 case $ac_init_help in
1245 short | recursive ) echo "Configuration of webalizer V2.23:";;
1246 esac
1247 cat <<\_ACEOF
1248
1249 Optional Features:
1250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1252 --disable-largefile omit support for large files
1253 --enable-static Build as static executable [default=no]
1254 --enable-debug Compile with debugging code [default=no]
1255 --enable-dns Enable DNS/GeoDB lookup code [default=yes]
1256 --enable-bz2 Enable BZip2 decompression code [default=no]
1257 --enable-geoip Enable GeoIP geolocation code [default=no]
1258 --enable-oldhash Use old hash function (slower) [default=no]
1259
1260 Optional Packages:
1261 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1262 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1263 --with-gd=DIR Alternate location for gd header files
1264 --with-gdlib=DIR Alternate location for gd library
1265 --with-png=DIR Alternate location for png header files
1266 --with-pnglib=DIR Alternate location for png library
1267 --with-z=DIR Alternate location for libz header files
1268 --with-zlib=DIR Alternate location for z library
1269 --with-db=DIR Alternate location for libdb header files
1270 --with-dblib=DIR Alternate location for db library
1271 --with-bz2=DIR Alternate location for bz2 header files
1272 --with-bz2lib=DIR Alternate location for bz2 library
1273 --with-geoip=DIR Alternate location for libGeoIP header files
1274 --with-geoiplib=DIR Alternate location for geoip library
1275 --with-geodb=DIR Default GeoDB data dir [/usr/share/GeoDB]
1276 --with-language=name Use language 'name' (default is english)
1277
1278 Some influential environment variables:
1279 CC C compiler command
1280 CFLAGS C compiler flags
1281 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1282 nonstandard directory <lib dir>
1283 LIBS libraries to pass to the linker, e.g. -l<library>
1284 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1285 you have headers in a nonstandard directory <include dir>
1286 CPP C preprocessor
1287
1288 Use these variables to override the choices made by `configure' or to help
1289 it to find libraries and programs with nonstandard names/locations.
1290
1291 _ACEOF
1292 ac_status=$?
1293 fi
1294
1295 if test "$ac_init_help" = "recursive"; then
1296 # If there are subdirs, report their specific --help.
1297 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1298 test -d "$ac_dir" || continue
1299 ac_builddir=.
1300
1301 case "$ac_dir" in
1302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303 *)
1304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1305 # A ".." for each directory in $ac_dir_suffix.
1306 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1307 case $ac_top_builddir_sub in
1308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1310 esac ;;
1311 esac
1312 ac_abs_top_builddir=$ac_pwd
1313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1314 # for backward compatibility:
1315 ac_top_builddir=$ac_top_build_prefix
1316
1317 case $srcdir in
1318 .) # We are building in place.
1319 ac_srcdir=.
1320 ac_top_srcdir=$ac_top_builddir_sub
1321 ac_abs_top_srcdir=$ac_pwd ;;
1322 [\\/]* | ?:[\\/]* ) # Absolute name.
1323 ac_srcdir=$srcdir$ac_dir_suffix;
1324 ac_top_srcdir=$srcdir
1325 ac_abs_top_srcdir=$srcdir ;;
1326 *) # Relative name.
1327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1328 ac_top_srcdir=$ac_top_build_prefix$srcdir
1329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1330 esac
1331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1332
1333 cd "$ac_dir" || { ac_status=$?; continue; }
1334 # Check for guested configure.
1335 if test -f "$ac_srcdir/configure.gnu"; then
1336 echo &&
1337 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1338 elif test -f "$ac_srcdir/configure"; then
1339 echo &&
1340 $SHELL "$ac_srcdir/configure" --help=recursive
1341 else
1342 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1343 fi || ac_status=$?
1344 cd "$ac_pwd" || { ac_status=$?; break; }
1345 done
1346 fi
1347
1348 test -n "$ac_init_help" && exit $ac_status
1349 if $ac_init_version; then
1350 cat <<\_ACEOF
1351 webalizer configure V2.23
1352 generated by GNU Autoconf 2.61
1353
1354 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1355 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1356 This configure script is free software; the Free Software Foundation
1357 gives unlimited permission to copy, distribute and modify it.
1358 _ACEOF
1359 exit
1360 fi
1361 cat >config.log <<_ACEOF
1362 This file contains any messages produced by compilers while
1363 running configure, to aid debugging if configure makes a mistake.
1364
1365 It was created by webalizer $as_me V2.23, which was
1366 generated by GNU Autoconf 2.61. Invocation command line was
1367
1368 $ $0 $@
1369
1370 _ACEOF
1371 exec 5>>config.log
1372 {
1373 cat <<_ASUNAME
1374 ## --------- ##
1375 ## Platform. ##
1376 ## --------- ##
1377
1378 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1379 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1380 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1381 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1382 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1383
1384 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1385 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1386
1387 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1388 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1389 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1390 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1391 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1392 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1393 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1394
1395 _ASUNAME
1396
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398 for as_dir in $PATH
1399 do
1400 IFS=$as_save_IFS
1401 test -z "$as_dir" && as_dir=.
1402 echo "PATH: $as_dir"
1403 done
1404 IFS=$as_save_IFS
1405
1406 } >&5
1407
1408 cat >&5 <<_ACEOF
1409
1410
1411 ## ----------- ##
1412 ## Core tests. ##
1413 ## ----------- ##
1414
1415 _ACEOF
1416
1417
1418 # Keep a trace of the command line.
1419 # Strip out --no-create and --no-recursion so they do not pile up.
1420 # Strip out --silent because we don't want to record it for future runs.
1421 # Also quote any args containing shell meta-characters.
1422 # Make two passes to allow for proper duplicate-argument suppression.
1423 ac_configure_args=
1424 ac_configure_args0=
1425 ac_configure_args1=
1426 ac_must_keep_next=false
1427 for ac_pass in 1 2
1428 do
1429 for ac_arg
1430 do
1431 case $ac_arg in
1432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1434 | -silent | --silent | --silen | --sile | --sil)
1435 continue ;;
1436 *\'*)
1437 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 esac
1439 case $ac_pass in
1440 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1441 2)
1442 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1443 if test $ac_must_keep_next = true; then
1444 ac_must_keep_next=false # Got value, back to normal.
1445 else
1446 case $ac_arg in
1447 *=* | --config-cache | -C | -disable-* | --disable-* \
1448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1450 | -with-* | --with-* | -without-* | --without-* | --x)
1451 case "$ac_configure_args0 " in
1452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1453 esac
1454 ;;
1455 -* ) ac_must_keep_next=true ;;
1456 esac
1457 fi
1458 ac_configure_args="$ac_configure_args '$ac_arg'"
1459 ;;
1460 esac
1461 done
1462 done
1463 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1464 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1465
1466 # When interrupted or exit'd, cleanup temporary files, and complete
1467 # config.log. We remove comments because anyway the quotes in there
1468 # would cause problems or look ugly.
1469 # WARNING: Use '\'' to represent an apostrophe within the trap.
1470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1471 trap 'exit_status=$?
1472 # Save into config.log some information that might help in debugging.
1473 {
1474 echo
1475
1476 cat <<\_ASBOX
1477 ## ---------------- ##
1478 ## Cache variables. ##
1479 ## ---------------- ##
1480 _ASBOX
1481 echo
1482 # The following way of writing the cache mishandles newlines in values,
1483 (
1484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1485 eval ac_val=\$$ac_var
1486 case $ac_val in #(
1487 *${as_nl}*)
1488 case $ac_var in #(
1489 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1490 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1491 esac
1492 case $ac_var in #(
1493 _ | IFS | as_nl) ;; #(
1494 *) $as_unset $ac_var ;;
1495 esac ;;
1496 esac
1497 done
1498 (set) 2>&1 |
1499 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1500 *${as_nl}ac_space=\ *)
1501 sed -n \
1502 "s/'\''/'\''\\\\'\'''\''/g;
1503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1504 ;; #(
1505 *)
1506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1507 ;;
1508 esac |
1509 sort
1510 )
1511 echo
1512
1513 cat <<\_ASBOX
1514 ## ----------------- ##
1515 ## Output variables. ##
1516 ## ----------------- ##
1517 _ASBOX
1518 echo
1519 for ac_var in $ac_subst_vars
1520 do
1521 eval ac_val=\$$ac_var
1522 case $ac_val in
1523 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1524 esac
1525 echo "$ac_var='\''$ac_val'\''"
1526 done | sort
1527 echo
1528
1529 if test -n "$ac_subst_files"; then
1530 cat <<\_ASBOX
1531 ## ------------------- ##
1532 ## File substitutions. ##
1533 ## ------------------- ##
1534 _ASBOX
1535 echo
1536 for ac_var in $ac_subst_files
1537 do
1538 eval ac_val=\$$ac_var
1539 case $ac_val in
1540 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1541 esac
1542 echo "$ac_var='\''$ac_val'\''"
1543 done | sort
1544 echo
1545 fi
1546
1547 if test -s confdefs.h; then
1548 cat <<\_ASBOX
1549 ## ----------- ##
1550 ## confdefs.h. ##
1551 ## ----------- ##
1552 _ASBOX
1553 echo
1554 cat confdefs.h
1555 echo
1556 fi
1557 test "$ac_signal" != 0 &&
1558 echo "$as_me: caught signal $ac_signal"
1559 echo "$as_me: exit $exit_status"
1560 } >&5
1561 rm -f core *.core core.conftest.* &&
1562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1563 exit $exit_status
1564 ' 0
1565 for ac_signal in 1 2 13 15; do
1566 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1567 done
1568 ac_signal=0
1569
1570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1571 rm -f -r conftest* confdefs.h
1572
1573 # Predefined preprocessor variables.
1574
1575 cat >>confdefs.h <<_ACEOF
1576 #define PACKAGE_NAME "$PACKAGE_NAME"
1577 _ACEOF
1578
1579
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1582 _ACEOF
1583
1584
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1587 _ACEOF
1588
1589
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_STRING "$PACKAGE_STRING"
1592 _ACEOF
1593
1594
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1597 _ACEOF
1598
1599
1600 # Let the site file select an alternate cache file if it wants to.
1601 # Prefer explicitly selected file to automatically selected ones.
1602 if test -n "$CONFIG_SITE"; then
1603 set x "$CONFIG_SITE"
1604 elif test "x$prefix" != xNONE; then
1605 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1606 else
1607 set x "$ac_default_prefix/share/config.site" \
1608 "$ac_default_prefix/etc/config.site"
1609 fi
1610 shift
1611 for ac_site_file
1612 do
1613 if test -r "$ac_site_file"; then
1614 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1615 echo "$as_me: loading site script $ac_site_file" >&6;}
1616 sed 's/^/| /' "$ac_site_file" >&5
1617 . "$ac_site_file"
1618 fi
1619 done
1620
1621 if test -r "$cache_file"; then
1622 # Some versions of bash will fail to source /dev/null (special
1623 # files actually), so we avoid doing that.
1624 if test -f "$cache_file"; then
1625 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1626 echo "$as_me: loading cache $cache_file" >&6;}
1627 case $cache_file in
1628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1629 *) . "./$cache_file";;
1630 esac
1631 fi
1632 else
1633 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1634 echo "$as_me: creating cache $cache_file" >&6;}
1635 >$cache_file
1636 fi
1637
1638 # Check that the precious variables saved in the cache have kept the same
1639 # value.
1640 ac_cache_corrupted=false
1641 for ac_var in $ac_precious_vars; do
1642 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1643 eval ac_new_set=\$ac_env_${ac_var}_set
1644 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1645 eval ac_new_val=\$ac_env_${ac_var}_value
1646 case $ac_old_set,$ac_new_set in
1647 set,)
1648 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1649 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1650 ac_cache_corrupted=: ;;
1651 ,set)
1652 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1653 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1654 ac_cache_corrupted=: ;;
1655 ,);;
1656 *)
1657 if test "x$ac_old_val" != "x$ac_new_val"; then
1658 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1659 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1660 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1661 echo "$as_me: former value: $ac_old_val" >&2;}
1662 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1663 echo "$as_me: current value: $ac_new_val" >&2;}
1664 ac_cache_corrupted=:
1665 fi;;
1666 esac
1667 # Pass precious variables to config.status.
1668 if test "$ac_new_set" = set; then
1669 case $ac_new_val in
1670 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 *) ac_arg=$ac_var=$ac_new_val ;;
1672 esac
1673 case " $ac_configure_args " in
1674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1675 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1676 esac
1677 fi
1678 done
1679 if $ac_cache_corrupted; then
1680 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1681 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1682 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1683 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1684 { (exit 1); exit 1; }; }
1685 fi
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716
1717
1718
1719 OPTS=${DEFS}
1720 LIBS=${LIBS}
1721
1722
1723
1724
1725 DEFAULT_LANG="english"
1726
1727
1728
1729 IN_CFLAGS=${CFLAGS}
1730 ac_ext=c
1731 ac_cpp='$CPP $CPPFLAGS'
1732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735 if test -n "$ac_tool_prefix"; then
1736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1756 fi
1757 done
1758 done
1759 IFS=$as_save_IFS
1760
1761 fi
1762 fi
1763 CC=$ac_cv_prog_CC
1764 if test -n "$CC"; then
1765 { echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6; }
1767 else
1768 { echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6; }
1770 fi
1771
1772
1773 fi
1774 if test -z "$ac_cv_prog_CC"; then
1775 ac_ct_CC=$CC
1776 # Extract the first word of "gcc", so it can be a program name with args.
1777 set dummy gcc; ac_word=$2
1778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783 if test -n "$ac_ct_CC"; then
1784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 else
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1793 ac_cv_prog_ac_ct_CC="gcc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1796 fi
1797 done
1798 done
1799 IFS=$as_save_IFS
1800
1801 fi
1802 fi
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6; }
1807 else
1808 { echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6; }
1810 fi
1811
1812 if test "x$ac_ct_CC" = x; then
1813 CC=""
1814 else
1815 case $cross_compiling:$ac_tool_warned in
1816 yes:)
1817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1818 whose name does not start with the host triplet. If you think this
1819 configuration is useful to you, please write to autoconf@gnu.org." >&5
1820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1821 whose name does not start with the host triplet. If you think this
1822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1823 ac_tool_warned=yes ;;
1824 esac
1825 CC=$ac_ct_CC
1826 fi
1827 else
1828 CC="$ac_cv_prog_CC"
1829 fi
1830
1831 if test -z "$CC"; then
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}cc; ac_word=$2
1835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1850 ac_cv_prog_CC="${ac_tool_prefix}cc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854 done
1855 done
1856 IFS=$as_save_IFS
1857
1858 fi
1859 fi
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862 { echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6; }
1864 else
1865 { echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6; }
1867 fi
1868
1869
1870 fi
1871 fi
1872 if test -z "$CC"; then
1873 # Extract the first word of "cc", so it can be a program name with args.
1874 set dummy cc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 ac_prog_rejected=no
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1892 ac_prog_rejected=yes
1893 continue
1894 fi
1895 ac_cv_prog_CC="cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899 done
1900 done
1901 IFS=$as_save_IFS
1902
1903 if test $ac_prog_rejected = yes; then
1904 # We found a bogon in the path, so make sure we never use it.
1905 set dummy $ac_cv_prog_CC
1906 shift
1907 if test $# != 0; then
1908 # We chose a different compiler from the bogus one.
1909 # However, it has the same basename, so the bogon will be chosen
1910 # first if we set CC to just the basename; use the full file name.
1911 shift
1912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1913 fi
1914 fi
1915 fi
1916 fi
1917 CC=$ac_cv_prog_CC
1918 if test -n "$CC"; then
1919 { echo "$as_me:$LINENO: result: $CC" >&5
1920 echo "${ECHO_T}$CC" >&6; }
1921 else
1922 { echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6; }
1924 fi
1925
1926
1927 fi
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 for ac_prog in cl.exe
1931 do
1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953 done
1954 done
1955 IFS=$as_save_IFS
1956
1957 fi
1958 fi
1959 CC=$ac_cv_prog_CC
1960 if test -n "$CC"; then
1961 { echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6; }
1963 else
1964 { echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6; }
1966 fi
1967
1968
1969 test -n "$CC" && break
1970 done
1971 fi
1972 if test -z "$CC"; then
1973 ac_ct_CC=$CC
1974 for ac_prog in cl.exe
1975 do
1976 # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_ac_ct_CC="$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 break 2
1996 fi
1997 done
1998 done
1999 IFS=$as_save_IFS
2000
2001 fi
2002 fi
2003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004 if test -n "$ac_ct_CC"; then
2005 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006 echo "${ECHO_T}$ac_ct_CC" >&6; }
2007 else
2008 { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2010 fi
2011
2012
2013 test -n "$ac_ct_CC" && break
2014 done
2015
2016 if test "x$ac_ct_CC" = x; then
2017 CC=""
2018 else
2019 case $cross_compiling:$ac_tool_warned in
2020 yes:)
2021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2022 whose name does not start with the host triplet. If you think this
2023 configuration is useful to you, please write to autoconf@gnu.org." >&5
2024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2025 whose name does not start with the host triplet. If you think this
2026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2027 ac_tool_warned=yes ;;
2028 esac
2029 CC=$ac_ct_CC
2030 fi
2031 fi
2032
2033 fi
2034
2035
2036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2037 See \`config.log' for more details." >&5
2038 echo "$as_me: error: no acceptable C compiler found in \$PATH
2039 See \`config.log' for more details." >&2;}
2040 { (exit 1); exit 1; }; }
2041
2042 # Provide some information about the compiler.
2043 echo "$as_me:$LINENO: checking for C compiler version" >&5
2044 ac_compiler=`set X $ac_compile; echo $2`
2045 { (ac_try="$ac_compiler --version >&5"
2046 case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051 (eval "$ac_compiler --version >&5") 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (ac_try="$ac_compiler -v >&5"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2061 (eval "$ac_compiler -v >&5") 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2065 { (ac_try="$ac_compiler -V >&5"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2071 (eval "$ac_compiler -V >&5") 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }
2075
2076 cat >conftest.$ac_ext <<_ACEOF
2077 /* confdefs.h. */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2082
2083 int
2084 main ()
2085 {
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 ac_clean_files_save=$ac_clean_files
2092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2093 # Try to create an executable without -o first, disregard a.out.
2094 # It will help us diagnose broken compilers, and finding out an intuition
2095 # of exeext.
2096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2099 #
2100 # List of possible output files, starting from the most likely.
2101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2102 # only as a last resort. b.out is created by i960 compilers.
2103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2104 #
2105 # The IRIX 6 linker writes into existing files which may not be
2106 # executable, retaining their permissions. Remove them first so a
2107 # subsequent execution test works.
2108 ac_rmfiles=
2109 for ac_file in $ac_files
2110 do
2111 case $ac_file in
2112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2114 esac
2115 done
2116 rm -f $ac_rmfiles
2117
2118 if { (ac_try="$ac_link_default"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_link_default") 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2131 # so that the user can short-circuit this test for compilers unknown to
2132 # Autoconf.
2133 for ac_file in $ac_files ''
2134 do
2135 test -f "$ac_file" || continue
2136 case $ac_file in
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2138 ;;
2139 [ab].out )
2140 # We found the default executable, but exeext='' is most
2141 # certainly right.
2142 break;;
2143 *.* )
2144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2145 then :; else
2146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 fi
2148 # We set ac_cv_exeext here because the later test for it is not
2149 # safe: cross compilers may not add the suffix if given an `-o'
2150 # argument, so we may need to know it at that point already.
2151 # Even if this section looks crufty: it has the advantage of
2152 # actually working.
2153 break;;
2154 * )
2155 break;;
2156 esac
2157 done
2158 test "$ac_cv_exeext" = no && ac_cv_exeext=
2159
2160 else
2161 ac_file=''
2162 fi
2163
2164 { echo "$as_me:$LINENO: result: $ac_file" >&5
2165 echo "${ECHO_T}$ac_file" >&6; }
2166 if test -z "$ac_file"; then
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2175 fi
2176
2177 ac_exeext=$ac_cv_exeext
2178
2179 # Check that the compiler produces executables we can run. If not, either
2180 # the compiler is broken, or we cross compile.
2181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2184 # If not cross compiling, check that we can run a simple program.
2185 if test "$cross_compiling" != yes; then
2186 if { ac_try='./$ac_file'
2187 { (case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_try") 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 cross_compiling=no
2197 else
2198 if test "$cross_compiling" = maybe; then
2199 cross_compiling=yes
2200 else
2201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2202 If you meant to cross compile, use \`--host'.
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot run C compiled programs.
2205 If you meant to cross compile, use \`--host'.
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2208 fi
2209 fi
2210 fi
2211 { echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6; }
2213
2214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2215 ac_clean_files=$ac_clean_files_save
2216 # Check that the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2221 echo "${ECHO_T}$cross_compiling" >&6; }
2222
2223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2225 if { (ac_try="$ac_link"
2226 case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_link") 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; then
2235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2237 # work properly (i.e., refer to `conftest.exe'), while it won't with
2238 # `rm'.
2239 for ac_file in conftest.exe conftest conftest.*; do
2240 test -f "$ac_file" || continue
2241 case $ac_file in
2242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 break;;
2245 * ) break;;
2246 esac
2247 done
2248 else
2249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2254 fi
2255
2256 rm -f conftest$ac_cv_exeext
2257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2259
2260 rm -f conftest.$ac_ext
2261 EXEEXT=$ac_cv_exeext
2262 ac_exeext=$EXEEXT
2263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2265 if test "${ac_cv_objext+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h. */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2274
2275 int
2276 main ()
2277 {
2278
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.o conftest.obj
2284 if { (ac_try="$ac_compile"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compile") 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; then
2294 for ac_file in conftest.o conftest.obj conftest.*; do
2295 test -f "$ac_file" || continue;
2296 case $ac_file in
2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299 break;;
2300 esac
2301 done
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311 fi
2312
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314 fi
2315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316 echo "${ECHO_T}$ac_cv_objext" >&6; }
2317 OBJEXT=$ac_cv_objext
2318 ac_objext=$OBJEXT
2319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330
2331 int
2332 main ()
2333 {
2334 #ifndef __GNUC__
2335 choke me
2336 #endif
2337
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (ac_try="$ac_compile"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compile") 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest.$ac_objext; then
2359 ac_compiler_gnu=yes
2360 else
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 ac_compiler_gnu=no
2365 fi
2366
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2369
2370 fi
2371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2373 GCC=`test $ac_compiler_gnu = yes && echo yes`
2374 ac_test_CFLAGS=${CFLAGS+set}
2375 ac_save_CFLAGS=$CFLAGS
2376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2378 if test "${ac_cv_prog_cc_g+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381 ac_save_c_werror_flag=$ac_c_werror_flag
2382 ac_c_werror_flag=yes
2383 ac_cv_prog_cc_g=no
2384 CFLAGS="-g"
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2391
2392 int
2393 main ()
2394 {
2395
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (ac_try="$ac_compile"
2402 case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_compile") 2>conftest.er1
2408 ac_status=$?
2409 grep -v '^ *+' conftest.er1 >conftest.err
2410 rm -f conftest.er1
2411 cat conftest.err >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest.$ac_objext; then
2417 ac_cv_prog_cc_g=yes
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 CFLAGS=""
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2429
2430 int
2431 main ()
2432 {
2433
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest.$ac_objext; then
2455 :
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 ac_c_werror_flag=$ac_save_c_werror_flag
2461 CFLAGS="-g"
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2468
2469 int
2470 main ()
2471 {
2472
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } && {
2491 test -z "$ac_c_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest.$ac_objext; then
2494 ac_cv_prog_cc_g=yes
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499
2500 fi
2501
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 ac_c_werror_flag=$ac_save_c_werror_flag
2510 fi
2511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2513 if test "$ac_test_CFLAGS" = set; then
2514 CFLAGS=$ac_save_CFLAGS
2515 elif test $ac_cv_prog_cc_g = yes; then
2516 if test "$GCC" = yes; then
2517 CFLAGS="-g -O2"
2518 else
2519 CFLAGS="-g"
2520 fi
2521 else
2522 if test "$GCC" = yes; then
2523 CFLAGS="-O2"
2524 else
2525 CFLAGS=
2526 fi
2527 fi
2528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_cc_c89+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 ac_cv_prog_cc_c89=no
2534 ac_save_CC=$CC
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2541 #include <stdarg.h>
2542 #include <stdio.h>
2543 #include <sys/types.h>
2544 #include <sys/stat.h>
2545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2546 struct buf { int x; };
2547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2548 static char *e (p, i)
2549 char **p;
2550 int i;
2551 {
2552 return p[i];
2553 }
2554 static char *f (char * (*g) (char **, int), char **p, ...)
2555 {
2556 char *s;
2557 va_list v;
2558 va_start (v,p);
2559 s = g (p, va_arg (v,int));
2560 va_end (v);
2561 return s;
2562 }
2563
2564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2565 function prototypes and stuff, but not '\xHH' hex character constants.
2566 These don't provoke an error unfortunately, instead are silently treated
2567 as 'x'. The following induces an error, until -std is added to get
2568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2569 array size at least. It's necessary to write '\x00'==0 to get something
2570 that's true only with -std. */
2571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2572
2573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2574 inside strings and character constants. */
2575 #define FOO(x) 'x'
2576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2577
2578 int test (int i, double x);
2579 struct s1 {int (*f) (int a);};
2580 struct s2 {int (*f) (double a);};
2581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582 int argc;
2583 char **argv;
2584 int
2585 main ()
2586 {
2587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2588 ;
2589 return 0;
2590 }
2591 _ACEOF
2592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2594 do
2595 CC="$ac_save_CC $ac_arg"
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } && {
2610 test -z "$ac_c_werror_flag" ||
2611 test ! -s conftest.err
2612 } && test -s conftest.$ac_objext; then
2613 ac_cv_prog_cc_c89=$ac_arg
2614 else
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618
2619 fi
2620
2621 rm -f core conftest.err conftest.$ac_objext
2622 test "x$ac_cv_prog_cc_c89" != "xno" && break
2623 done
2624 rm -f conftest.$ac_ext
2625 CC=$ac_save_CC
2626
2627 fi
2628 # AC_CACHE_VAL
2629 case "x$ac_cv_prog_cc_c89" in
2630 x)
2631 { echo "$as_me:$LINENO: result: none needed" >&5
2632 echo "${ECHO_T}none needed" >&6; } ;;
2633 xno)
2634 { echo "$as_me:$LINENO: result: unsupported" >&5
2635 echo "${ECHO_T}unsupported" >&6; } ;;
2636 *)
2637 CC="$CC $ac_cv_prog_cc_c89"
2638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2640 esac
2641
2642
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2650 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2651 LN_S=$as_ln_s
2652 if test "$LN_S" = "ln -s"; then
2653 { echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6; }
2655 else
2656 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2657 echo "${ECHO_T}no, using $LN_S" >&6; }
2658 fi
2659
2660 ac_aux_dir=
2661 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2662 if test -f "$ac_dir/install-sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install-sh -c"
2665 break
2666 elif test -f "$ac_dir/install.sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install.sh -c"
2669 break
2670 elif test -f "$ac_dir/shtool"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/shtool install -c"
2673 break
2674 fi
2675 done
2676 if test -z "$ac_aux_dir"; then
2677 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2678 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2679 { (exit 1); exit 1; }; }
2680 fi
2681
2682 # These three variables are undocumented and unsupported,
2683 # and are intended to be withdrawn in a future Autoconf release.
2684 # They can cause serious problems if a builder's source tree is in a directory
2685 # whose full name contains unusual characters.
2686 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689
2690
2691 # Find a good install program. We prefer a C program (faster),
2692 # so one script is as good as another. But avoid the broken or
2693 # incompatible versions:
2694 # SysV /etc/install, /usr/sbin/install
2695 # SunOS /usr/etc/install
2696 # IRIX /sbin/install
2697 # AIX /bin/install
2698 # AmigaOS /C/install, which installs bootblocks on floppy discs
2699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2702 # OS/2's system install, which has a completely different semantic
2703 # ./install, which can be erroneously created by make from ./install.sh.
2704 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2705 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2706 if test -z "$INSTALL"; then
2707 if test "${ac_cv_path_install+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 # Account for people who put trailing slashes in PATH elements.
2716 case $as_dir/ in
2717 ./ | .// | /cC/* | \
2718 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2719 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2720 /usr/ucb/* ) ;;
2721 *)
2722 # OSF1 and SCO ODT 3.0 have their own names for install.
2723 # Don't use installbsd from OSF since it installs stuff as root
2724 # by default.
2725 for ac_prog in ginstall scoinst install; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2728 if test $ac_prog = install &&
2729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # AIX install. It has an incompatible calling convention.
2731 :
2732 elif test $ac_prog = install &&
2733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # program-specific install script used by HP pwplus--don't use.
2735 :
2736 else
2737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2738 break 3
2739 fi
2740 fi
2741 done
2742 done
2743 ;;
2744 esac
2745 done
2746 IFS=$as_save_IFS
2747
2748
2749 fi
2750 if test "${ac_cv_path_install+set}" = set; then
2751 INSTALL=$ac_cv_path_install
2752 else
2753 # As a last resort, use the slow shell script. Don't cache a
2754 # value for INSTALL within a source directory, because that will
2755 # break other packages using the cache if that directory is
2756 # removed, or if the value is a relative name.
2757 INSTALL=$ac_install_sh
2758 fi
2759 fi
2760 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2761 echo "${ECHO_T}$INSTALL" >&6; }
2762
2763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764 # It thinks the first close brace ends the variable substitution.
2765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766
2767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768
2769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770
2771
2772
2773
2774 # Check whether --enable-largefile was given.
2775 if test "${enable_largefile+set}" = set; then
2776 enableval=$enable_largefile;
2777 fi
2778
2779 if test "$enable_largefile" != no; then
2780
2781 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2782 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2783 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 ac_cv_sys_largefile_CC=no
2787 if test "$GCC" != yes; then
2788 ac_save_CC=$CC
2789 while :; do
2790 # IRIX 6.2 and later do not support large files by default,
2791 # so use the C compiler's -n32 option if that helps.
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2798 #include <sys/types.h>
2799 /* Check that off_t can represent 2**63 - 1 correctly.
2800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2801 since some C++ compilers masquerading as C compilers
2802 incorrectly reject 9223372036854775807. */
2803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2805 && LARGE_OFF_T % 2147483647 == 1)
2806 ? 1 : -1];
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 break
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841 CC="$CC -n32"
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.$ac_objext; then
2859 ac_cv_sys_largefile_CC=' -n32'; break
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864
2865 fi
2866
2867 rm -f core conftest.err conftest.$ac_objext
2868 break
2869 done
2870 CC=$ac_save_CC
2871 rm -f conftest.$ac_ext
2872 fi
2873 fi
2874 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2875 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2876 if test "$ac_cv_sys_largefile_CC" != no; then
2877 CC=$CC$ac_cv_sys_largefile_CC
2878 fi
2879
2880 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2881 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2882 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 while :; do
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #include <sys/types.h>
2893 /* Check that off_t can represent 2**63 - 1 correctly.
2894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2895 since some C++ compilers masquerading as C compilers
2896 incorrectly reject 9223372036854775807. */
2897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2899 && LARGE_OFF_T % 2147483647 == 1)
2900 ? 1 : -1];
2901 int
2902 main ()
2903 {
2904
2905 ;
2906 return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (ac_try="$ac_compile"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compile") 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } && {
2923 test -z "$ac_c_werror_flag" ||
2924 test ! -s conftest.err
2925 } && test -s conftest.$ac_objext; then
2926 ac_cv_sys_file_offset_bits=no; break
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931
2932 fi
2933
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #define _FILE_OFFSET_BITS 64
2942 #include <sys/types.h>
2943 /* Check that off_t can represent 2**63 - 1 correctly.
2944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2945 since some C++ compilers masquerading as C compilers
2946 incorrectly reject 9223372036854775807. */
2947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2949 && LARGE_OFF_T % 2147483647 == 1)
2950 ? 1 : -1];
2951 int
2952 main ()
2953 {
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
2976 ac_cv_sys_file_offset_bits=64; break
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_sys_file_offset_bits=unknown
2986 break
2987 done
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2990 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
2991 case $ac_cv_sys_file_offset_bits in #(
2992 no | unknown) ;;
2993 *)
2994 cat >>confdefs.h <<_ACEOF
2995 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2996 _ACEOF
2997 ;;
2998 esac
2999 rm -f conftest*
3000 if test $ac_cv_sys_file_offset_bits = unknown; then
3001 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3002 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3003 if test "${ac_cv_sys_large_files+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 while :; do
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <sys/types.h>
3014 /* Check that off_t can represent 2**63 - 1 correctly.
3015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3016 since some C++ compilers masquerading as C compilers
3017 incorrectly reject 9223372036854775807. */
3018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3020 && LARGE_OFF_T % 2147483647 == 1)
3021 ? 1 : -1];
3022 int
3023 main ()
3024 {
3025
3026 ;
3027 return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } && {
3044 test -z "$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
3047 ac_cv_sys_large_files=no; break
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #define _LARGE_FILES 1
3063 #include <sys/types.h>
3064 /* Check that off_t can represent 2**63 - 1 correctly.
3065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3066 since some C++ compilers masquerading as C compilers
3067 incorrectly reject 9223372036854775807. */
3068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3070 && LARGE_OFF_T % 2147483647 == 1)
3071 ? 1 : -1];
3072 int
3073 main ()
3074 {
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3097 ac_cv_sys_large_files=1; break
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cv_sys_large_files=unknown
3107 break
3108 done
3109 fi
3110 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3111 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3112 case $ac_cv_sys_large_files in #(
3113 no | unknown) ;;
3114 *)
3115 cat >>confdefs.h <<_ACEOF
3116 #define _LARGE_FILES $ac_cv_sys_large_files
3117 _ACEOF
3118 ;;
3119 esac
3120 rm -f conftest*
3121 fi
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3130 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3131 # On Suns, sometimes $CPP names a directory.
3132 if test -n "$CPP" && test -d "$CPP"; then
3133 CPP=
3134 fi
3135 if test -z "$CPP"; then
3136 if test "${ac_cv_prog_CPP+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 # Double quotes because CPP needs to be expanded
3140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3141 do
3142 ac_preproc_ok=false
3143 for ac_c_preproc_warn_flag in '' yes
3144 do
3145 # Use a header file that comes with gcc, so configuring glibc
3146 # with a fresh cross-compiler works.
3147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 # <limits.h> exists even on freestanding compilers.
3149 # On the NeXT, cc -E runs the code through the compiler's parser,
3150 # not just through cpp. "Syntax error" is here to catch this case.
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 #ifdef __STDC__
3158 # include <limits.h>
3159 #else
3160 # include <assert.h>
3161 #endif
3162 Syntax error
3163 _ACEOF
3164 if { (ac_try="$ac_cpp conftest.$ac_ext"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null && {
3177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 }; then
3180 :
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 # Broken: fails on valid input.
3186 continue
3187 fi
3188
3189 rm -f conftest.err conftest.$ac_ext
3190
3191 # OK, works on sane cases. Now check whether nonexistent headers
3192 # can be detected and how.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <ac_nonexistent.h>
3200 _ACEOF
3201 if { (ac_try="$ac_cpp conftest.$ac_ext"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null && {
3214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 }; then
3217 # Broken: success on invalid input.
3218 continue
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 # Passes both tests.
3224 ac_preproc_ok=:
3225 break
3226 fi
3227
3228 rm -f conftest.err conftest.$ac_ext
3229
3230 done
3231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3232 rm -f conftest.err conftest.$ac_ext
3233 if $ac_preproc_ok; then
3234 break
3235 fi
3236
3237 done
3238 ac_cv_prog_CPP=$CPP
3239
3240 fi
3241 CPP=$ac_cv_prog_CPP
3242 else
3243 ac_cv_prog_CPP=$CPP
3244 fi
3245 { echo "$as_me:$LINENO: result: $CPP" >&5
3246 echo "${ECHO_T}$CPP" >&6; }
3247 ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267 Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 }; then
3285 :
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null && {
3319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 }; then
3322 # Broken: success on invalid input.
3323 continue
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 # Passes both tests.
3329 ac_preproc_ok=:
3330 break
3331 fi
3332
3333 rm -f conftest.err conftest.$ac_ext
3334
3335 done
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3339 :
3340 else
3341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3342 See \`config.log' for more details." >&5
3343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3344 See \`config.log' for more details." >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3356 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3357 if test "${ac_cv_path_GREP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 # Extract the first word of "grep ggrep" to use in msg output
3361 if test -z "$GREP"; then
3362 set dummy grep ggrep; ac_prog_name=$2
3363 if test "${ac_cv_path_GREP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 ac_path_GREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370 do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in grep ggrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3377 # Check for GNU ac_path_GREP and select it if it is found.
3378 # Check for GNU $ac_path_GREP
3379 case `"$ac_path_GREP" --version 2>&1` in
3380 *GNU*)
3381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3382 *)
3383 ac_count=0
3384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3385 while :
3386 do
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 echo 'GREP' >> "conftest.nl"
3391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 ac_count=`expr $ac_count + 1`
3394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_GREP="$ac_path_GREP"
3397 ac_path_GREP_max=$ac_count
3398 fi
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3401 done
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403 esac
3404
3405
3406 $ac_path_GREP_found && break 3
3407 done
3408 done
3409
3410 done
3411 IFS=$as_save_IFS
3412
3413
3414 fi
3415
3416 GREP="$ac_cv_path_GREP"
3417 if test -z "$GREP"; then
3418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3420 { (exit 1); exit 1; }; }
3421 fi
3422
3423 else
3424 ac_cv_path_GREP=$GREP
3425 fi
3426
3427
3428 fi
3429 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3430 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3431 GREP="$ac_cv_path_GREP"
3432
3433
3434 { echo "$as_me:$LINENO: checking for egrep" >&5
3435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3436 if test "${ac_cv_path_EGREP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3440 then ac_cv_path_EGREP="$GREP -E"
3441 else
3442 # Extract the first word of "egrep" to use in msg output
3443 if test -z "$EGREP"; then
3444 set dummy egrep; ac_prog_name=$2
3445 if test "${ac_cv_path_EGREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 ac_path_EGREP_found=false
3449 # Loop through the user's path and test for each of PROGNAME-LIST
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_prog in egrep; do
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3459 # Check for GNU ac_path_EGREP and select it if it is found.
3460 # Check for GNU $ac_path_EGREP
3461 case `"$ac_path_EGREP" --version 2>&1` in
3462 *GNU*)
3463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3464 *)
3465 ac_count=0
3466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3467 while :
3468 do
3469 cat "conftest.in" "conftest.in" >"conftest.tmp"
3470 mv "conftest.tmp" "conftest.in"
3471 cp "conftest.in" "conftest.nl"
3472 echo 'EGREP' >> "conftest.nl"
3473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3475 ac_count=`expr $ac_count + 1`
3476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3477 # Best one so far, save it but keep looking for a better one
3478 ac_cv_path_EGREP="$ac_path_EGREP"
3479 ac_path_EGREP_max=$ac_count
3480 fi
3481 # 10*(2^10) chars as input seems more than enough
3482 test $ac_count -gt 10 && break
3483 done
3484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3485 esac
3486
3487
3488 $ac_path_EGREP_found && break 3
3489 done
3490 done
3491
3492 done
3493 IFS=$as_save_IFS
3494
3495
3496 fi
3497
3498 EGREP="$ac_cv_path_EGREP"
3499 if test -z "$EGREP"; then
3500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3502 { (exit 1); exit 1; }; }
3503 fi
3504
3505 else
3506 ac_cv_path_EGREP=$EGREP
3507 fi
3508
3509
3510 fi
3511 fi
3512 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3513 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3514 EGREP="$ac_cv_path_EGREP"
3515
3516
3517 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3519 if test "${ac_cv_header_stdc+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <stdlib.h>
3529 #include <stdarg.h>
3530 #include <string.h>
3531 #include <float.h>
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3558 ac_cv_header_stdc=yes
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_cv_header_stdc=no
3564 fi
3565
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567
3568 if test $ac_cv_header_stdc = yes; then
3569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <string.h>
3577
3578 _ACEOF
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 $EGREP "memchr" >/dev/null 2>&1; then
3581 :
3582 else
3583 ac_cv_header_stdc=no
3584 fi
3585 rm -f conftest*
3586
3587 fi
3588
3589 if test $ac_cv_header_stdc = yes; then
3590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <stdlib.h>
3598
3599 _ACEOF
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "free" >/dev/null 2>&1; then
3602 :
3603 else
3604 ac_cv_header_stdc=no
3605 fi
3606 rm -f conftest*
3607
3608 fi
3609
3610 if test $ac_cv_header_stdc = yes; then
3611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3612 if test "$cross_compiling" = yes; then
3613 :
3614 else
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ctype.h>
3622 #include <stdlib.h>
3623 #if ((' ' & 0x0FF) == 0x020)
3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3626 #else
3627 # define ISLOWER(c) \
3628 (('a' <= (c) && (c) <= 'i') \
3629 || ('j' <= (c) && (c) <= 'r') \
3630 || ('s' <= (c) && (c) <= 'z'))
3631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3632 #endif
3633
3634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3635 int
3636 main ()
3637 {
3638 int i;
3639 for (i = 0; i < 256; i++)
3640 if (XOR (islower (i), ISLOWER (i))
3641 || toupper (i) != TOUPPER (i))
3642 return 2;
3643 return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest$ac_exeext
3647 if { (ac_try="$ac_link"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_link") 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3657 { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 :
3667 else
3668 echo "$as_me: program exited with status $ac_status" >&5
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 ( exit $ac_status )
3673 ac_cv_header_stdc=no
3674 fi
3675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3676 fi
3677
3678
3679 fi
3680 fi
3681 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3683 if test $ac_cv_header_stdc = yes; then
3684
3685 cat >>confdefs.h <<\_ACEOF
3686 #define STDC_HEADERS 1
3687 _ACEOF
3688
3689 fi
3690
3691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3702 inttypes.h stdint.h unistd.h
3703 do
3704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 $ac_includes_default
3717
3718 #include <$ac_header>
3719 _ACEOF
3720 rm -f conftest.$ac_objext
3721 if { (ac_try="$ac_compile"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3737 eval "$as_ac_Header=yes"
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 eval "$as_ac_Header=no"
3743 fi
3744
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 ac_res=`eval echo '${'$as_ac_Header'}'`
3748 { echo "$as_me:$LINENO: result: $ac_res" >&5
3749 echo "${ECHO_T}$ac_res" >&6; }
3750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3751 cat >>confdefs.h <<_ACEOF
3752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3753 _ACEOF
3754
3755 fi
3756
3757 done
3758
3759
3760
3761 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3762 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
3763 if test "${ac_cv_c_char_unsigned+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 $ac_includes_default
3773 int
3774 main ()