]> git.ipfire.org Git - thirdparty/sarg.git/blob - configure
Protect the reading of the configuration file against buffer overflows.
[thirdparty/sarg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for sarg 2.2.5.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='sarg'
596 PACKAGE_TARNAME='sarg'
597 PACKAGE_VERSION='2.2.5'
598 PACKAGE_STRING='sarg 2.2.5'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="log.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 HTMLDIR
641 LTLIBICONV
642 LIBICONV
643 EGREP
644 GREP
645 CPP
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
652 CC
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_BUGREPORT
692 PACKAGE_STRING
693 PACKAGE_VERSION
694 PACKAGE_TARNAME
695 PACKAGE_NAME
696 PATH_SEPARATOR
697 SHELL'
698 ac_subst_files=''
699 ac_user_opts='
700 enable_option_checking
701 with_gcc
702 with_gnu_ld
703 enable_rpath
704 with_libiconv_prefix
705 enable_largefile
706 enable_htmldir
707 '
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CPP'
717
718
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 ac_unrecognized_opts=
723 ac_unrecognized_sep=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
726 cache_file=/dev/null
727 exec_prefix=NONE
728 no_create=
729 no_recursion=
730 prefix=NONE
731 program_prefix=NONE
732 program_suffix=NONE
733 program_transform_name=s,x,x,
734 silent=
735 site=
736 srcdir=
737 verbose=
738 x_includes=NONE
739 x_libraries=NONE
740
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir='${exec_prefix}/bin'
748 sbindir='${exec_prefix}/sbin'
749 libexecdir='${exec_prefix}/libexec'
750 datarootdir='${prefix}/share'
751 datadir='${datarootdir}'
752 sysconfdir='${prefix}/etc'
753 sharedstatedir='${prefix}/com'
754 localstatedir='${prefix}/var'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir='${datarootdir}/info'
759 htmldir='${docdir}'
760 dvidir='${docdir}'
761 pdfdir='${docdir}'
762 psdir='${docdir}'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
766
767 ac_prev=
768 ac_dashdash=
769 for ac_option
770 do
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
774 ac_prev=
775 continue
776 fi
777
778 case $ac_option in
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *) ac_optarg=yes ;;
781 esac
782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
793
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
808
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
813
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
826 { (exit 1); exit 1; }; }
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
847
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
853 { (exit 1); exit 1; }; }
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
857 *"
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1013
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1024
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1029
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1034
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1041
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1046
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1049
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1052
1053 -with-* | --with-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
1105 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1108 ;;
1109
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 ;;
1126
1127 esac
1128 done
1129
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1134 fi
1135
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1138 no) ;;
1139 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1140 { (exit 1); exit 1; }; } ;;
1141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 esac
1143 fi
1144
1145 # Check all directory arguments for consistency.
1146 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147 datadir sysconfdir sharedstatedir localstatedir includedir \
1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149 libdir localedir mandir
1150 do
1151 eval ac_val=\$$ac_var
1152 # Remove trailing slashes.
1153 case $ac_val in
1154 */ )
1155 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156 eval $ac_var=\$ac_val;;
1157 esac
1158 # Be sure to have absolute directory names.
1159 case $ac_val in
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 esac
1163 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164 { (exit 1); exit 1; }; }
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183 fi
1184
1185 ac_tool_prefix=
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188 test "$silent" = yes && exec 6>/dev/null
1189
1190
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1195 { (exit 1); exit 1; }; }
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1198 { (exit 1); exit 1; }; }
1199
1200
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$as_myself" ||
1206 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$as_myself" : 'X\(//\)[^/]' \| \
1208 X"$as_myself" : 'X\(//\)$' \| \
1209 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210 $as_echo X"$as_myself" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)[^/].*/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\/\)$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\).*/{
1224 s//\1/
1225 q
1226 }
1227 s/.*/./; q'`
1228 srcdir=$ac_confdir
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 srcdir=..
1231 fi
1232 else
1233 ac_srcdir_defaulted=no
1234 fi
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238 { (exit 1); exit 1; }; }
1239 fi
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1243 { (exit 1); exit 1; }; }
1244 pwd)`
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 srcdir=.
1248 fi
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1252 case $srcdir in
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 esac
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260 done
1261
1262 #
1263 # Report the --help message.
1264 #
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1268 cat <<_ACEOF
1269 \`configure' configures sarg 2.2.5 to adapt to many kinds of systems.
1270
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1275
1276 Defaults for the options are specified in brackets.
1277
1278 Configuration:
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 [PREFIX]
1294
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1299
1300 For better control, use the options below.
1301
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/sarg]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1322 _ACEOF
1323
1324 cat <<\_ACEOF
1325
1326 System types:
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 _ACEOF
1330 fi
1331
1332 if test -n "$ac_init_help"; then
1333 case $ac_init_help in
1334 short | recursive ) echo "Configuration of sarg 2.2.5:";;
1335 esac
1336 cat <<\_ACEOF
1337
1338 Optional Features:
1339 --disable-option-checking ignore unrecognized --enable/--with options
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --disable-rpath do not hardcode runtime library paths
1343 --disable-largefile omit support for large files
1344 --enable-htmldir=htmldir
1345 Select htmldir as the root of your WWW documents
1346
1347 Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --without-gcc use CC to compile
1351 --with-gnu-ld assume the C compiler uses GNU ld default=no
1352 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1353 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1354
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CPP C preprocessor
1364
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1367
1368 _ACEOF
1369 ac_status=$?
1370 fi
1371
1372 if test "$ac_init_help" = "recursive"; then
1373 # If there are subdirs, report their specific --help.
1374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1375 test -d "$ac_dir" ||
1376 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377 continue
1378 ac_builddir=.
1379
1380 case "$ac_dir" in
1381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *)
1383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1384 # A ".." for each directory in $ac_dir_suffix.
1385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1386 case $ac_top_builddir_sub in
1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389 esac ;;
1390 esac
1391 ac_abs_top_builddir=$ac_pwd
1392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393 # for backward compatibility:
1394 ac_top_builddir=$ac_top_build_prefix
1395
1396 case $srcdir in
1397 .) # We are building in place.
1398 ac_srcdir=.
1399 ac_top_srcdir=$ac_top_builddir_sub
1400 ac_abs_top_srcdir=$ac_pwd ;;
1401 [\\/]* | ?:[\\/]* ) # Absolute name.
1402 ac_srcdir=$srcdir$ac_dir_suffix;
1403 ac_top_srcdir=$srcdir
1404 ac_abs_top_srcdir=$srcdir ;;
1405 *) # Relative name.
1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407 ac_top_srcdir=$ac_top_build_prefix$srcdir
1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 esac
1410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411
1412 cd "$ac_dir" || { ac_status=$?; continue; }
1413 # Check for guested configure.
1414 if test -f "$ac_srcdir/configure.gnu"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417 elif test -f "$ac_srcdir/configure"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure" --help=recursive
1420 else
1421 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 fi || ac_status=$?
1423 cd "$ac_pwd" || { ac_status=$?; break; }
1424 done
1425 fi
1426
1427 test -n "$ac_init_help" && exit $ac_status
1428 if $ac_init_version; then
1429 cat <<\_ACEOF
1430 sarg configure 2.2.5
1431 generated by GNU Autoconf 2.63
1432
1433 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1434 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1437 _ACEOF
1438 exit
1439 fi
1440 cat >config.log <<_ACEOF
1441 This file contains any messages produced by compilers while
1442 running configure, to aid debugging if configure makes a mistake.
1443
1444 It was created by sarg $as_me 2.2.5, which was
1445 generated by GNU Autoconf 2.63. Invocation command line was
1446
1447 $ $0 $@
1448
1449 _ACEOF
1450 exec 5>>config.log
1451 {
1452 cat <<_ASUNAME
1453 ## --------- ##
1454 ## Platform. ##
1455 ## --------- ##
1456
1457 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1458 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1459 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1460 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1461 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1462
1463 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1464 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1465
1466 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1467 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1468 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1469 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1470 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1471 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1472 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1473
1474 _ASUNAME
1475
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 $as_echo "PATH: $as_dir"
1482 done
1483 IFS=$as_save_IFS
1484
1485 } >&5
1486
1487 cat >&5 <<_ACEOF
1488
1489
1490 ## ----------- ##
1491 ## Core tests. ##
1492 ## ----------- ##
1493
1494 _ACEOF
1495
1496
1497 # Keep a trace of the command line.
1498 # Strip out --no-create and --no-recursion so they do not pile up.
1499 # Strip out --silent because we don't want to record it for future runs.
1500 # Also quote any args containing shell meta-characters.
1501 # Make two passes to allow for proper duplicate-argument suppression.
1502 ac_configure_args=
1503 ac_configure_args0=
1504 ac_configure_args1=
1505 ac_must_keep_next=false
1506 for ac_pass in 1 2
1507 do
1508 for ac_arg
1509 do
1510 case $ac_arg in
1511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1513 | -silent | --silent | --silen | --sile | --sil)
1514 continue ;;
1515 *\'*)
1516 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1517 esac
1518 case $ac_pass in
1519 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1520 2)
1521 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1522 if test $ac_must_keep_next = true; then
1523 ac_must_keep_next=false # Got value, back to normal.
1524 else
1525 case $ac_arg in
1526 *=* | --config-cache | -C | -disable-* | --disable-* \
1527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1529 | -with-* | --with-* | -without-* | --without-* | --x)
1530 case "$ac_configure_args0 " in
1531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1532 esac
1533 ;;
1534 -* ) ac_must_keep_next=true ;;
1535 esac
1536 fi
1537 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 ;;
1539 esac
1540 done
1541 done
1542 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1543 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1544
1545 # When interrupted or exit'd, cleanup temporary files, and complete
1546 # config.log. We remove comments because anyway the quotes in there
1547 # would cause problems or look ugly.
1548 # WARNING: Use '\'' to represent an apostrophe within the trap.
1549 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1550 trap 'exit_status=$?
1551 # Save into config.log some information that might help in debugging.
1552 {
1553 echo
1554
1555 cat <<\_ASBOX
1556 ## ---------------- ##
1557 ## Cache variables. ##
1558 ## ---------------- ##
1559 _ASBOX
1560 echo
1561 # The following way of writing the cache mishandles newlines in values,
1562 (
1563 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1564 eval ac_val=\$$ac_var
1565 case $ac_val in #(
1566 *${as_nl}*)
1567 case $ac_var in #(
1568 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1570 esac
1571 case $ac_var in #(
1572 _ | IFS | as_nl) ;; #(
1573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1574 *) $as_unset $ac_var ;;
1575 esac ;;
1576 esac
1577 done
1578 (set) 2>&1 |
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1581 sed -n \
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 ;; #(
1585 *)
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587 ;;
1588 esac |
1589 sort
1590 )
1591 echo
1592
1593 cat <<\_ASBOX
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1597 _ASBOX
1598 echo
1599 for ac_var in $ac_subst_vars
1600 do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in
1603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604 esac
1605 $as_echo "$ac_var='\''$ac_val'\''"
1606 done | sort
1607 echo
1608
1609 if test -n "$ac_subst_files"; then
1610 cat <<\_ASBOX
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_files
1617 do
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 $as_echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1625 fi
1626
1627 if test -s confdefs.h; then
1628 cat <<\_ASBOX
1629 ## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##
1632 _ASBOX
1633 echo
1634 cat confdefs.h
1635 echo
1636 fi
1637 test "$ac_signal" != 0 &&
1638 $as_echo "$as_me: caught signal $ac_signal"
1639 $as_echo "$as_me: exit $exit_status"
1640 } >&5
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 exit $exit_status
1644 ' 0
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647 done
1648 ac_signal=0
1649
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1652
1653 # Predefined preprocessor variables.
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677 _ACEOF
1678
1679
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer an explicitly selected file to automatically selected ones.
1682 ac_site_file1=NONE
1683 ac_site_file2=NONE
1684 if test -n "$CONFIG_SITE"; then
1685 ac_site_file1=$CONFIG_SITE
1686 elif test "x$prefix" != xNONE; then
1687 ac_site_file1=$prefix/share/config.site
1688 ac_site_file2=$prefix/etc/config.site
1689 else
1690 ac_site_file1=$ac_default_prefix/share/config.site
1691 ac_site_file2=$ac_default_prefix/etc/config.site
1692 fi
1693 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1694 do
1695 test "x$ac_site_file" = xNONE && continue
1696 if test -r "$ac_site_file"; then
1697 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1698 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1699 sed 's/^/| /' "$ac_site_file" >&5
1700 . "$ac_site_file"
1701 fi
1702 done
1703
1704 if test -r "$cache_file"; then
1705 # Some versions of bash will fail to source /dev/null (special
1706 # files actually), so we avoid doing that.
1707 if test -f "$cache_file"; then
1708 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1709 $as_echo "$as_me: loading cache $cache_file" >&6;}
1710 case $cache_file in
1711 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1712 *) . "./$cache_file";;
1713 esac
1714 fi
1715 else
1716 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1717 $as_echo "$as_me: creating cache $cache_file" >&6;}
1718 >$cache_file
1719 fi
1720
1721 # Check that the precious variables saved in the cache have kept the same
1722 # value.
1723 ac_cache_corrupted=false
1724 for ac_var in $ac_precious_vars; do
1725 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1726 eval ac_new_set=\$ac_env_${ac_var}_set
1727 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1728 eval ac_new_val=\$ac_env_${ac_var}_value
1729 case $ac_old_set,$ac_new_set in
1730 set,)
1731 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1732 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1733 ac_cache_corrupted=: ;;
1734 ,set)
1735 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1736 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,);;
1739 *)
1740 if test "x$ac_old_val" != "x$ac_new_val"; then
1741 # differences in whitespace do not lead to failure.
1742 ac_old_val_w=`echo x $ac_old_val`
1743 ac_new_val_w=`echo x $ac_new_val`
1744 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1745 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 ac_cache_corrupted=:
1748 else
1749 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1750 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1751 eval $ac_var=\$ac_old_val
1752 fi
1753 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1754 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1755 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1756 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1769 fi
1770 done
1771 if $ac_cache_corrupted; then
1772 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1774 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1779 fi
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805 ac_ext=c
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810
1811
1812
1813 ac_aux_dir=
1814 for ac_dir in cfgaux "$srcdir"/cfgaux; do
1815 if test -f "$ac_dir/install-sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install-sh -c"
1818 break
1819 elif test -f "$ac_dir/install.sh"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/install.sh -c"
1822 break
1823 elif test -f "$ac_dir/shtool"; then
1824 ac_aux_dir=$ac_dir
1825 ac_install_sh="$ac_aux_dir/shtool install -c"
1826 break
1827 fi
1828 done
1829 if test -z "$ac_aux_dir"; then
1830 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&5
1831 $as_echo "$as_me: error: cannot find install-sh or install.sh in cfgaux \"$srcdir\"/cfgaux" >&2;}
1832 { (exit 1); exit 1; }; }
1833 fi
1834
1835 # These three variables are undocumented and unsupported,
1836 # and are intended to be withdrawn in a future Autoconf release.
1837 # They can cause serious problems if a builder's source tree is in a directory
1838 # whose full name contains unusual characters.
1839 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1840 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1841 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1842
1843
1844
1845 LDFLAGS="-g"
1846
1847 # Make sure we can run config.sub.
1848 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1849 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1850 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1851 { (exit 1); exit 1; }; }
1852
1853 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1854 $as_echo_n "checking build system type... " >&6; }
1855 if test "${ac_cv_build+set}" = set; then
1856 $as_echo_n "(cached) " >&6
1857 else
1858 ac_build_alias=$build_alias
1859 test "x$ac_build_alias" = x &&
1860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1861 test "x$ac_build_alias" = x &&
1862 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1863 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1864 { (exit 1); exit 1; }; }
1865 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1866 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1867 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1868 { (exit 1); exit 1; }; }
1869
1870 fi
1871 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1872 $as_echo "$ac_cv_build" >&6; }
1873 case $ac_cv_build in
1874 *-*-*) ;;
1875 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1876 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1877 { (exit 1); exit 1; }; };;
1878 esac
1879 build=$ac_cv_build
1880 ac_save_IFS=$IFS; IFS='-'
1881 set x $ac_cv_build
1882 shift
1883 build_cpu=$1
1884 build_vendor=$2
1885 shift; shift
1886 # Remember, the first character of IFS is used to create $*,
1887 # except with old shells:
1888 build_os=$*
1889 IFS=$ac_save_IFS
1890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1891
1892
1893 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1894 $as_echo_n "checking host system type... " >&6; }
1895 if test "${ac_cv_host+set}" = set; then
1896 $as_echo_n "(cached) " >&6
1897 else
1898 if test "x$host_alias" = x; then
1899 ac_cv_host=$ac_cv_build
1900 else
1901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1902 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1903 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1904 { (exit 1); exit 1; }; }
1905 fi
1906
1907 fi
1908 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1909 $as_echo "$ac_cv_host" >&6; }
1910 case $ac_cv_host in
1911 *-*-*) ;;
1912 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1913 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1914 { (exit 1); exit 1; }; };;
1915 esac
1916 host=$ac_cv_host
1917 ac_save_IFS=$IFS; IFS='-'
1918 set x $ac_cv_host
1919 shift
1920 host_cpu=$1
1921 host_vendor=$2
1922 shift; shift
1923 # Remember, the first character of IFS is used to create $*,
1924 # except with old shells:
1925 host_os=$*
1926 IFS=$ac_save_IFS
1927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1928
1929
1930
1931
1932 # Check whether --with-gcc was given.
1933 if test "${with_gcc+set}" = set; then
1934 withval=$with_gcc;
1935 fi
1936
1937
1938 test -n "$CC" && cc_specified=yes
1939 case ${with_gcc} in
1940 yes ) CC=gcc ;;
1941 no ) CC=cc ;;
1942 * ) ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1949 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 $as_echo_n "checking for $ac_word... " >&6; }
1952 if test "${ac_cv_prog_CC+set}" = set; then
1953 $as_echo_n "(cached) " >&6
1954 else
1955 if test -n "$CC"; then
1956 ac_cv_prog_CC="$CC" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 break 2
1968 fi
1969 done
1970 done
1971 IFS=$as_save_IFS
1972
1973 fi
1974 fi
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1978 $as_echo "$CC" >&6; }
1979 else
1980 { $as_echo "$as_me:$LINENO: result: no" >&5
1981 $as_echo "no" >&6; }
1982 fi
1983
1984
1985 fi
1986 if test -z "$ac_cv_prog_CC"; then
1987 ac_ct_CC=$CC
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989 set dummy gcc; ac_word=$2
1990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 $as_echo_n "checking for $ac_word... " >&6; }
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 $as_echo_n "(cached) " >&6
1994 else
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2005 ac_cv_prog_ac_ct_CC="gcc"
2006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2008 fi
2009 done
2010 done
2011 IFS=$as_save_IFS
2012
2013 fi
2014 fi
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 $as_echo "$ac_ct_CC" >&6; }
2019 else
2020 { $as_echo "$as_me:$LINENO: result: no" >&5
2021 $as_echo "no" >&6; }
2022 fi
2023
2024 if test "x$ac_ct_CC" = x; then
2025 CC=""
2026 else
2027 case $cross_compiling:$ac_tool_warned in
2028 yes:)
2029 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2031 ac_tool_warned=yes ;;
2032 esac
2033 CC=$ac_ct_CC
2034 fi
2035 else
2036 CC="$ac_cv_prog_CC"
2037 fi
2038
2039 if test -z "$CC"; then
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}cc; ac_word=$2
2043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 $as_echo_n "checking for $ac_word... " >&6; }
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 $as_echo_n "(cached) " >&6
2047 else
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_CC="${ac_tool_prefix}cc"
2059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064 IFS=$as_save_IFS
2065
2066 fi
2067 fi
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2071 $as_echo "$CC" >&6; }
2072 else
2073 { $as_echo "$as_me:$LINENO: result: no" >&5
2074 $as_echo "no" >&6; }
2075 fi
2076
2077
2078 fi
2079 fi
2080 if test -z "$CC"; then
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 $as_echo_n "checking for $ac_word... " >&6; }
2085 if test "${ac_cv_prog_CC+set}" = set; then
2086 $as_echo_n "(cached) " >&6
2087 else
2088 if test -n "$CC"; then
2089 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 else
2091 ac_prog_rejected=no
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2100 ac_prog_rejected=yes
2101 continue
2102 fi
2103 ac_cv_prog_CC="cc"
2104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2106 fi
2107 done
2108 done
2109 IFS=$as_save_IFS
2110
2111 if test $ac_prog_rejected = yes; then
2112 # We found a bogon in the path, so make sure we never use it.
2113 set dummy $ac_cv_prog_CC
2114 shift
2115 if test $# != 0; then
2116 # We chose a different compiler from the bogus one.
2117 # However, it has the same basename, so the bogon will be chosen
2118 # first if we set CC to just the basename; use the full file name.
2119 shift
2120 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2121 fi
2122 fi
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2128 $as_echo "$CC" >&6; }
2129 else
2130 { $as_echo "$as_me:$LINENO: result: no" >&5
2131 $as_echo "no" >&6; }
2132 fi
2133
2134
2135 fi
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 for ac_prog in cl.exe
2139 do
2140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 $as_echo_n "checking for $ac_word... " >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 $as_echo_n "(cached) " >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166 fi
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2170 $as_echo "$CC" >&6; }
2171 else
2172 { $as_echo "$as_me:$LINENO: result: no" >&5
2173 $as_echo "no" >&6; }
2174 fi
2175
2176
2177 test -n "$CC" && break
2178 done
2179 fi
2180 if test -z "$CC"; then
2181 ac_ct_CC=$CC
2182 for ac_prog in cl.exe
2183 do
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189 $as_echo_n "(cached) " >&6
2190 else
2191 if test -n "$ac_ct_CC"; then
2192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_ac_ct_CC="$ac_prog"
2202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 $as_echo "$ac_ct_CC" >&6; }
2215 else
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2218 fi
2219
2220
2221 test -n "$ac_ct_CC" && break
2222 done
2223
2224 if test "x$ac_ct_CC" = x; then
2225 CC=""
2226 else
2227 case $cross_compiling:$ac_tool_warned in
2228 yes:)
2229 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2231 ac_tool_warned=yes ;;
2232 esac
2233 CC=$ac_ct_CC
2234 fi
2235 fi
2236
2237 fi
2238
2239
2240 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2243 See \`config.log' for more details." >&5
2244 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }; }
2247
2248 # Provide some information about the compiler.
2249 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2250 set X $ac_compile
2251 ac_compiler=$2
2252 { (ac_try="$ac_compiler --version >&5"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2258 $as_echo "$ac_try_echo") >&5
2259 (eval "$ac_compiler --version >&5") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2263 { (ac_try="$ac_compiler -v >&5"
2264 case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2269 $as_echo "$ac_try_echo") >&5
2270 (eval "$ac_compiler -v >&5") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (ac_try="$ac_compiler -V >&5"
2275 case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2280 $as_echo "$ac_try_echo") >&5
2281 (eval "$ac_compiler -V >&5") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h. */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2292
2293 int
2294 main ()
2295 {
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 ac_clean_files_save=$ac_clean_files
2302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2303 # Try to create an executable without -o first, disregard a.out.
2304 # It will help us diagnose broken compilers, and finding out an intuition
2305 # of exeext.
2306 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2307 $as_echo_n "checking for C compiler default output file name... " >&6; }
2308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2309
2310 # The possible output files:
2311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2312
2313 ac_rmfiles=
2314 for ac_file in $ac_files
2315 do
2316 case $ac_file in
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2319 esac
2320 done
2321 rm -f $ac_rmfiles
2322
2323 if { (ac_try="$ac_link_default"
2324 case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327 esac
2328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2329 $as_echo "$ac_try_echo") >&5
2330 (eval "$ac_link_default") 2>&5
2331 ac_status=$?
2332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2337 # so that the user can short-circuit this test for compilers unknown to
2338 # Autoconf.
2339 for ac_file in $ac_files ''
2340 do
2341 test -f "$ac_file" || continue
2342 case $ac_file in
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2344 ;;
2345 [ab].out )
2346 # We found the default executable, but exeext='' is most
2347 # certainly right.
2348 break;;
2349 *.* )
2350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2351 then :; else
2352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 fi
2354 # We set ac_cv_exeext here because the later test for it is not
2355 # safe: cross compilers may not add the suffix if given an `-o'
2356 # argument, so we may need to know it at that point already.
2357 # Even if this section looks crufty: it has the advantage of
2358 # actually working.
2359 break;;
2360 * )
2361 break;;
2362 esac
2363 done
2364 test "$ac_cv_exeext" = no && ac_cv_exeext=
2365
2366 else
2367 ac_file=''
2368 fi
2369
2370 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2371 $as_echo "$ac_file" >&6; }
2372 if test -z "$ac_file"; then
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: C compiler cannot create executables
2381 See \`config.log' for more details." >&2;}
2382 { (exit 77); exit 77; }; }; }
2383 fi
2384
2385 ac_exeext=$ac_cv_exeext
2386
2387 # Check that the compiler produces executables we can run. If not, either
2388 # the compiler is broken, or we cross compile.
2389 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2390 $as_echo_n "checking whether the C compiler works... " >&6; }
2391 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2392 # If not cross compiling, check that we can run a simple program.
2393 if test "$cross_compiling" != yes; then
2394 if { ac_try='./$ac_file'
2395 { (case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2400 $as_echo "$ac_try_echo") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 cross_compiling=no
2406 else
2407 if test "$cross_compiling" = maybe; then
2408 cross_compiling=yes
2409 else
2410 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2413 If you meant to cross compile, use \`--host'.
2414 See \`config.log' for more details." >&5
2415 $as_echo "$as_me: error: cannot run C compiled programs.
2416 If you meant to cross compile, use \`--host'.
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }; }
2419 fi
2420 fi
2421 fi
2422 { $as_echo "$as_me:$LINENO: result: yes" >&5
2423 $as_echo "yes" >&6; }
2424
2425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2426 ac_clean_files=$ac_clean_files_save
2427 # Check that the compiler produces executables we can run. If not, either
2428 # the compiler is broken, or we cross compile.
2429 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2430 $as_echo_n "checking whether we are cross compiling... " >&6; }
2431 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2432 $as_echo "$cross_compiling" >&6; }
2433
2434 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2435 $as_echo_n "checking for suffix of executables... " >&6; }
2436 if { (ac_try="$ac_link"
2437 case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2442 $as_echo "$ac_try_echo") >&5
2443 (eval "$ac_link") 2>&5
2444 ac_status=$?
2445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449 # work properly (i.e., refer to `conftest.exe'), while it won't with
2450 # `rm'.
2451 for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 break;;
2457 * ) break;;
2458 esac
2459 done
2460 else
2461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&5
2465 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }; }
2468 fi
2469
2470 rm -f conftest$ac_cv_exeext
2471 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2472 $as_echo "$ac_cv_exeext" >&6; }
2473
2474 rm -f conftest.$ac_ext
2475 EXEEXT=$ac_cv_exeext
2476 ac_exeext=$EXEEXT
2477 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2478 $as_echo_n "checking for suffix of object files... " >&6; }
2479 if test "${ac_cv_objext+set}" = set; then
2480 $as_echo_n "(cached) " >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488
2489 int
2490 main ()
2491 {
2492
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.o conftest.obj
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504 $as_echo "$ac_try_echo") >&5
2505 (eval "$ac_compile") 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in conftest.o conftest.obj conftest.*; do
2510 test -f "$ac_file" || continue;
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2514 break;;
2515 esac
2516 done
2517 else
2518 $as_echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&5
2525 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }; }
2528 fi
2529
2530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2531 fi
2532 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2533 $as_echo "$ac_cv_objext" >&6; }
2534 OBJEXT=$ac_cv_objext
2535 ac_objext=$OBJEXT
2536 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 $as_echo_n "(cached) " >&6
2540 else
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547
2548 int
2549 main ()
2550 {
2551 #ifndef __GNUC__
2552 choke me
2553 #endif
2554
2555 ;
2556 return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2561 case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564 esac
2565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2566 $as_echo "$ac_try_echo") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest.$ac_objext; then
2577 ac_compiler_gnu=yes
2578 else
2579 $as_echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 ac_compiler_gnu=no
2583 fi
2584
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2591 if test $ac_compiler_gnu = yes; then
2592 GCC=yes
2593 else
2594 GCC=
2595 fi
2596 ac_test_CFLAGS=${CFLAGS+set}
2597 ac_save_CFLAGS=$CFLAGS
2598 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602 else
2603 ac_save_c_werror_flag=$ac_c_werror_flag
2604 ac_c_werror_flag=yes
2605 ac_cv_prog_cc_g=no
2606 CFLAGS="-g"
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613
2614 int
2615 main ()
2616 {
2617
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (ac_try="$ac_compile"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2629 $as_echo "$ac_try_echo") >&5
2630 (eval "$ac_compile") 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest.$ac_objext; then
2640 ac_cv_prog_cc_g=yes
2641 else
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 CFLAGS=""
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652
2653 int
2654 main ()
2655 {
2656
2657 ;
2658 return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (ac_try="$ac_compile"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2668 $as_echo "$ac_try_echo") >&5
2669 (eval "$ac_compile") 2>conftest.er1
2670 ac_status=$?
2671 grep -v '^ *+' conftest.er1 >conftest.err
2672 rm -f conftest.er1
2673 cat conftest.err >&5
2674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } && {
2676 test -z "$ac_c_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest.$ac_objext; then
2679 :
2680 else
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 ac_c_werror_flag=$ac_save_c_werror_flag
2685 CFLAGS="-g"
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692
2693 int
2694 main ()
2695 {
2696
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2708 $as_echo "$ac_try_echo") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2719 ac_cv_prog_cc_g=yes
2720 else
2721 $as_echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 fi
2732
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_c_werror_flag=$ac_save_c_werror_flag
2735 fi
2736 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737 $as_echo "$ac_cv_prog_cc_g" >&6; }
2738 if test "$ac_test_CFLAGS" = set; then
2739 CFLAGS=$ac_save_CFLAGS
2740 elif test $ac_cv_prog_cc_g = yes; then
2741 if test "$GCC" = yes; then
2742 CFLAGS="-g -O2"
2743 else
2744 CFLAGS="-g"
2745 fi
2746 else
2747 if test "$GCC" = yes; then
2748 CFLAGS="-O2"
2749 else
2750 CFLAGS=
2751 fi
2752 fi
2753 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2755 if test "${ac_cv_prog_cc_c89+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2757 else
2758 ac_cv_prog_cc_c89=no
2759 ac_save_CC=$CC
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #include <stdarg.h>
2767 #include <stdio.h>
2768 #include <sys/types.h>
2769 #include <sys/stat.h>
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2774 char **p;
2775 int i;
2776 {
2777 return p[i];
2778 }
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2780 {
2781 char *s;
2782 va_list v;
2783 va_start (v,p);
2784 s = g (p, va_arg (v,int));
2785 va_end (v);
2786 return s;
2787 }
2788
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 function prototypes and stuff, but not '\xHH' hex character constants.
2791 These don't provoke an error unfortunately, instead are silently treated
2792 as 'x'. The following induces an error, until -std is added to get
2793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2794 array size at least. It's necessary to write '\x00'==0 to get something
2795 that's true only with -std. */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2797
2798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2799 inside strings and character constants. */
2800 #define FOO(x) 'x'
2801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2802
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 int argc;
2808 char **argv;
2809 int
2810 main ()
2811 {
2812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2813 ;
2814 return 0;
2815 }
2816 _ACEOF
2817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2819 do
2820 CC="$ac_save_CC $ac_arg"
2821 rm -f conftest.$ac_objext
2822 if { (ac_try="$ac_compile"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2828 $as_echo "$ac_try_echo") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
2839 ac_cv_prog_cc_c89=$ac_arg
2840 else
2841 $as_echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844
2845 fi
2846
2847 rm -f core conftest.err conftest.$ac_objext
2848 test "x$ac_cv_prog_cc_c89" != "xno" && break
2849 done
2850 rm -f conftest.$ac_ext
2851 CC=$ac_save_CC
2852
2853 fi
2854 # AC_CACHE_VAL
2855 case "x$ac_cv_prog_cc_c89" in
2856 x)
2857 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2858 $as_echo "none needed" >&6; } ;;
2859 xno)
2860 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2861 $as_echo "unsupported" >&6; } ;;
2862 *)
2863 CC="$CC $ac_cv_prog_cc_c89"
2864 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2866 esac
2867
2868
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 ;;
2875 esac
2876
2877 if test "${CC}" = "cc" ; then
2878 CFLAGS="${CFLAGS} -Wall -g -O2 -Aa -Werror=implicit-function-declaration"
2879 else
2880 CFLAGS="${CFLAGS} -Wall -Werror=implicit-function-declaration"
2881 fi
2882
2883 case "$host" in
2884 *-solaris*)
2885 LDFLAGS="${LDFLAGS} -lsocket -lnsl"
2886 CFLAGS="-DSOLARIS ${CFLAGS}"
2887 ;;
2888 esac
2889
2890 #dnl Checks for programs.
2891 #AC_PROG_CC
2892
2893
2894
2895
2896
2897
2898
2899 ac_header_dirent=no
2900 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2901 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2902 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2903 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
2904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2905 $as_echo_n "(cached) " >&6
2906 else
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #include <sys/types.h>
2914 #include <$ac_hdr>
2915
2916 int
2917 main ()
2918 {
2919 if ((DIR *) 0)
2920 return 0;
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 eval "$as_ac_Header=yes"
2944 else
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 eval "$as_ac_Header=no"
2949 fi
2950
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 ac_res=`eval 'as_val=${'$as_ac_Header'}
2954 $as_echo "$as_val"'`
2955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2956 $as_echo "$ac_res" >&6; }
2957 as_val=`eval 'as_val=${'$as_ac_Header'}
2958 $as_echo "$as_val"'`
2959 if test "x$as_val" = x""yes; then
2960 cat >>confdefs.h <<_ACEOF
2961 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2962 _ACEOF
2963
2964 ac_header_dirent=$ac_hdr; break
2965 fi
2966
2967 done
2968 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2969 if test $ac_header_dirent = dirent.h; then
2970 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
2971 $as_echo_n "checking for library containing opendir... " >&6; }
2972 if test "${ac_cv_search_opendir+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974 else
2975 ac_func_search_save_LIBS=$LIBS
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982
2983 /* Override any GCC internal prototype to avoid an error.
2984 Use char because int might match the return type of a GCC
2985 builtin and then its argument prototype would still apply. */
2986 #ifdef __cplusplus
2987 extern "C"
2988 #endif
2989 char opendir ();
2990 int
2991 main ()
2992 {
2993 return opendir ();
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 for ac_lib in '' dir; do
2999 if test -z "$ac_lib"; then
3000 ac_res="none required"
3001 else
3002 ac_res=-l$ac_lib
3003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3004 fi
3005 rm -f conftest.$ac_objext conftest$ac_exeext
3006 if { (ac_try="$ac_link"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012 $as_echo "$ac_try_echo") >&5
3013 (eval "$ac_link") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest$ac_exeext && {
3023 test "$cross_compiling" = yes ||
3024 $as_test_x conftest$ac_exeext
3025 }; then
3026 ac_cv_search_opendir=$ac_res
3027 else
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031
3032 fi
3033
3034 rm -rf conftest.dSYM
3035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3036 conftest$ac_exeext
3037 if test "${ac_cv_search_opendir+set}" = set; then
3038 break
3039 fi
3040 done
3041 if test "${ac_cv_search_opendir+set}" = set; then
3042 :
3043 else
3044 ac_cv_search_opendir=no
3045 fi
3046 rm conftest.$ac_ext
3047 LIBS=$ac_func_search_save_LIBS
3048 fi
3049 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3050 $as_echo "$ac_cv_search_opendir" >&6; }
3051 ac_res=$ac_cv_search_opendir
3052 if test "$ac_res" != no; then
3053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3054
3055 fi
3056
3057 else
3058 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3059 $as_echo_n "checking for library containing opendir... " >&6; }
3060 if test "${ac_cv_search_opendir+set}" = set; then
3061 $as_echo_n "(cached) " >&6
3062 else
3063 ac_func_search_save_LIBS=$LIBS
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070
3071 /* Override any GCC internal prototype to avoid an error.
3072 Use char because int might match the return type of a GCC
3073 builtin and then its argument prototype would still apply. */
3074 #ifdef __cplusplus
3075 extern "C"
3076 #endif
3077 char opendir ();
3078 int
3079 main ()
3080 {
3081 return opendir ();
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 for ac_lib in '' x; do
3087 if test -z "$ac_lib"; then
3088 ac_res="none required"
3089 else
3090 ac_res=-l$ac_lib
3091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3092 fi
3093 rm -f conftest.$ac_objext conftest$ac_exeext
3094 if { (ac_try="$ac_link"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_link") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest$ac_exeext && {
3111 test "$cross_compiling" = yes ||
3112 $as_test_x conftest$ac_exeext
3113 }; then
3114 ac_cv_search_opendir=$ac_res
3115 else
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119
3120 fi
3121
3122 rm -rf conftest.dSYM
3123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3124 conftest$ac_exeext
3125 if test "${ac_cv_search_opendir+set}" = set; then
3126 break
3127 fi
3128 done
3129 if test "${ac_cv_search_opendir+set}" = set; then
3130 :
3131 else
3132 ac_cv_search_opendir=no
3133 fi
3134 rm conftest.$ac_ext
3135 LIBS=$ac_func_search_save_LIBS
3136 fi
3137 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3138 $as_echo "$ac_cv_search_opendir" >&6; }
3139 ac_res=$ac_cv_search_opendir
3140 if test "$ac_res" != no; then
3141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3142
3143 fi
3144
3145 fi
3146
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3153 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3154 # On Suns, sometimes $CPP names a directory.
3155 if test -n "$CPP" && test -d "$CPP"; then
3156 CPP=
3157 fi
3158 if test -z "$CPP"; then
3159 if test "${ac_cv_prog_CPP+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3161 else
3162 # Double quotes because CPP needs to be expanded
3163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3164 do
3165 ac_preproc_ok=false
3166 for ac_c_preproc_warn_flag in '' yes
3167 do
3168 # Use a header file that comes with gcc, so configuring glibc
3169 # with a fresh cross-compiler works.
3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171 # <limits.h> exists even on freestanding compilers.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp. "Syntax error" is here to catch this case.
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #ifdef __STDC__
3181 # include <limits.h>
3182 #else
3183 # include <assert.h>
3184 #endif
3185 Syntax error
3186 _ACEOF
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null && {
3201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 }; then
3204 :
3205 else
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 # Broken: fails on valid input.
3210 continue
3211 fi
3212
3213 rm -f conftest.err conftest.$ac_ext
3214
3215 # OK, works on sane cases. Now check whether nonexistent headers
3216 # can be detected and how.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #include <ac_nonexistent.h>
3224 _ACEOF
3225 if { (ac_try="$ac_cpp conftest.$ac_ext"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null && {
3239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 }; then
3242 # Broken: success on invalid input.
3243 continue
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 # Passes both tests.
3249 ac_preproc_ok=:
3250 break
3251 fi
3252
3253 rm -f conftest.err conftest.$ac_ext
3254
3255 done
3256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257 rm -f conftest.err conftest.$ac_ext
3258 if $ac_preproc_ok; then
3259 break
3260 fi
3261
3262 done
3263 ac_cv_prog_CPP=$CPP
3264
3265 fi
3266 CPP=$ac_cv_prog_CPP
3267 else
3268 ac_cv_prog_CPP=$CPP
3269 fi
3270 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3271 $as_echo "$CPP" >&6; }
3272 ac_preproc_ok=false
3273 for ac_c_preproc_warn_flag in '' yes
3274 do
3275 # Use a header file that comes with gcc, so configuring glibc
3276 # with a fresh cross-compiler works.
3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3278 # <limits.h> exists even on freestanding compilers.
3279 # On the NeXT, cc -E runs the code through the compiler's parser,
3280 # not just through cpp. "Syntax error" is here to catch this case.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #ifdef __STDC__
3288 # include <limits.h>
3289 #else
3290 # include <assert.h>
3291 #endif
3292 Syntax error
3293 _ACEOF
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null && {
3308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 }; then
3311 :
3312 else
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Broken: fails on valid input.
3317 continue
3318 fi
3319
3320 rm -f conftest.err conftest.$ac_ext
3321
3322 # OK, works on sane cases. Now check whether nonexistent headers
3323 # can be detected and how.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #include <ac_nonexistent.h>
3331 _ACEOF
3332 if { (ac_try="$ac_cpp conftest.$ac_ext"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null && {
3346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3347 test ! -s conftest.err
3348 }; then
3349 # Broken: success on invalid input.
3350 continue
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 # Passes both tests.
3356 ac_preproc_ok=:
3357 break
3358 fi
3359
3360 rm -f conftest.err conftest.$ac_ext
3361
3362 done
3363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3364 rm -f conftest.err conftest.$ac_ext
3365 if $ac_preproc_ok; then
3366 :
3367 else
3368 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3371 See \`config.log' for more details." >&5
3372 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }; }
3375 fi
3376
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382
3383
3384 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3385 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3386 if test "${ac_cv_path_GREP+set}" = set; then
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -z "$GREP"; then
3390 ac_path_GREP_found=false
3391 # Loop through the user's path and test for each of PROGNAME-LIST
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_prog in grep ggrep; do
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3400 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3401 # Check for GNU ac_path_GREP and select it if it is found.
3402 # Check for GNU $ac_path_GREP
3403 case `"$ac_path_GREP" --version 2>&1` in
3404 *GNU*)
3405 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3406 *)
3407 ac_count=0
3408 $as_echo_n 0123456789 >"conftest.in"
3409 while :
3410 do
3411 cat "conftest.in" "conftest.in" >"conftest.tmp"
3412 mv "conftest.tmp" "conftest.in"
3413 cp "conftest.in" "conftest.nl"
3414 $as_echo 'GREP' >> "conftest.nl"
3415 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3417 ac_count=`expr $ac_count + 1`
3418 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3419 # Best one so far, save it but keep looking for a better one
3420 ac_cv_path_GREP="$ac_path_GREP"
3421 ac_path_GREP_max=$ac_count
3422 fi
3423 # 10*(2^10) chars as input seems more than enough
3424 test $ac_count -gt 10 && break
3425 done
3426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3427 esac
3428
3429 $ac_path_GREP_found && break 3
3430 done
3431 done
3432 done
3433 IFS=$as_save_IFS
3434 if test -z "$ac_cv_path_GREP"; then
3435 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3436 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439 else
3440 ac_cv_path_GREP=$GREP
3441 fi
3442
3443 fi
3444 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3445 $as_echo "$ac_cv_path_GREP" >&6; }
3446 GREP="$ac_cv_path_GREP"
3447
3448
3449 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3450 $as_echo_n "checking for egrep... " >&6; }
3451 if test "${ac_cv_path_EGREP+set}" = set; then
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3455 then ac_cv_path_EGREP="$GREP -E"
3456 else
3457 if test -z "$EGREP"; then
3458 ac_path_EGREP_found=false
3459 # Loop through the user's path and test for each of PROGNAME-LIST
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3462 do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_prog in egrep; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3469 # Check for GNU ac_path_EGREP and select it if it is found.
3470 # Check for GNU $ac_path_EGREP
3471 case `"$ac_path_EGREP" --version 2>&1` in
3472 *GNU*)
3473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3474 *)
3475 ac_count=0
3476 $as_echo_n 0123456789 >"conftest.in"
3477 while :
3478 do
3479 cat "conftest.in" "conftest.in" >"conftest.tmp"
3480 mv "conftest.tmp" "conftest.in"
3481 cp "conftest.in" "conftest.nl"
3482 $as_echo 'EGREP' >> "conftest.nl"
3483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3485 ac_count=`expr $ac_count + 1`
3486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3487 # Best one so far, save it but keep looking for a better one
3488 ac_cv_path_EGREP="$ac_path_EGREP"
3489 ac_path_EGREP_max=$ac_count
3490 fi
3491 # 10*(2^10) chars as input seems more than enough
3492 test $ac_count -gt 10 && break
3493 done
3494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3495 esac
3496
3497 $ac_path_EGREP_found && break 3
3498 done
3499 done
3500 done
3501 IFS=$as_save_IFS
3502 if test -z "$ac_cv_path_EGREP"; then
3503 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3504 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3505 { (exit 1); exit 1; }; }
3506 fi
3507 else
3508 ac_cv_path_EGREP=$EGREP
3509 fi
3510
3511 fi
3512 fi
3513 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3514 $as_echo "$ac_cv_path_EGREP" >&6; }
3515 EGREP="$ac_cv_path_EGREP"
3516
3517
3518 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3519 $as_echo_n "checking for ANSI C header files... " >&6; }
3520 if test "${ac_cv_header_stdc+set}" = set; then
3521 $as_echo_n "(cached) " >&6
3522 else
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <stdlib.h>
3530 #include <stdarg.h>
3531 #include <string.h>
3532 #include <float.h>
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549 $as_echo "$ac_try_echo") >&5
3550 (eval "$ac_compile") 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } && {
3557 test -z "$ac_c_werror_flag" ||
3558 test ! -s conftest.err
3559 } && test -s conftest.$ac_objext; then
3560 ac_cv_header_stdc=yes
3561 else
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 ac_cv_header_stdc=no
3566 fi
3567
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569
3570 if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h. */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <string.h>
3579
3580 _ACEOF
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 $EGREP "memchr" >/dev/null 2>&1; then
3583 :
3584 else
3585 ac_cv_header_stdc=no
3586 fi
3587 rm -f conftest*
3588
3589 fi
3590
3591 if test $ac_cv_header_stdc = yes; then
3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <stdlib.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "free" >/dev/null 2>&1; then
3604 :
3605 else
3606 ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614 if test "$cross_compiling" = yes; then
3615 :
3616 else
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ctype.h>
3624 #include <stdlib.h>
3625 #if ((' ' & 0x0FF) == 0x020)
3626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3628 #else
3629 # define ISLOWER(c) \
3630 (('a' <= (c) && (c) <= 'i') \
3631 || ('j' <= (c) && (c) <= 'r') \
3632 || ('s' <= (c) && (c) <= 'z'))
3633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3634 #endif
3635
3636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3637 int
3638 main ()
3639 {
3640 int i;
3641 for (i = 0; i < 256; i++)
3642 if (XOR (islower (i), ISLOWER (i))
3643 || toupper (i) != TOUPPER (i))
3644 return 2;
3645 return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest$ac_exeext
3649 if { (ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3660 { (case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3665 $as_echo "$ac_try_echo") >&5
3666 (eval "$ac_try") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 :
3671 else
3672 $as_echo "$as_me: program exited with status $ac_status" >&5
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 ( exit $ac_status )
3677 ac_cv_header_stdc=no
3678 fi
3679 rm -rf conftest.dSYM
3680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3681 fi
3682
3683
3684 fi
3685 fi
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3687 $as_echo "$ac_cv_header_stdc" >&6; }
3688 if test $ac_cv_header_stdc = yes; then
3689
3690 cat >>confdefs.h <<\_ACEOF
3691 #define STDC_HEADERS 1
3692 _ACEOF
3693
3694 fi
3695
3696
3697
3698 if test "X$prefix" = "XNONE"; then
3699 acl_final_prefix="$ac_default_prefix"
3700 else
3701 acl_final_prefix="$prefix"
3702 fi
3703 if test "X$exec_prefix" = "XNONE"; then
3704 acl_final_exec_prefix='${prefix}'
3705 else
3706 acl_final_exec_prefix="$exec_prefix"
3707 fi
3708 acl_save_prefix="$prefix"
3709 prefix="$acl_final_prefix"
3710 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3711 prefix="$acl_save_prefix"
3712
3713
3714 # Check whether --with-gnu-ld was given.
3715 if test "${with_gnu_ld+set}" = set; then
3716 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3717 else
3718 with_gnu_ld=no
3719 fi
3720
3721 # Prepare PATH_SEPARATOR.
3722 # The user is always right.
3723 if test "${PATH_SEPARATOR+set}" != set; then
3724 echo "#! /bin/sh" >conf$$.sh
3725 echo "exit 0" >>conf$$.sh
3726 chmod +x conf$$.sh
3727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3728 PATH_SEPARATOR=';'
3729 else
3730 PATH_SEPARATOR=:
3731 fi
3732 rm -f conf$$.sh
3733 fi
3734 ac_prog=ld
3735 if test "$GCC" = yes; then
3736 # Check if gcc -print-prog-name=ld gives a path.
3737 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3738 $as_echo_n "checking for ld used by GCC... " >&6; }
3739 case $host in
3740 *-*-mingw*)
3741 # gcc leaves a trailing carriage return which upsets mingw
3742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3743 *)
3744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3745 esac
3746 case $ac_prog in
3747 # Accept absolute paths.
3748 [\\/]* | [A-Za-z]:[\\/]*)
3749 re_direlt='/[^/][^/]*/\.\./'
3750 # Canonicalize the path of ld
3751 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3752 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3753 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3754 done
3755 test -z "$LD" && LD="$ac_prog"
3756 ;;
3757 "")
3758 # If it fails, then pretend we aren't using GCC.
3759 ac_prog=ld
3760 ;;
3761 *)
3762 # If it is relative, then search for the first ld in PATH.
3763 with_gnu_ld=unknown
3764 ;;
3765 esac
3766 elif test "$with_gnu_ld" = yes; then
3767 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3768 $as_echo_n "checking for GNU ld... " >&6; }
3769 else
3770 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3771 $as_echo_n "checking for non-GNU ld... " >&6; }
3772 fi
3773 if test "${acl_cv_path_LD+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$LD"; then
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3778 for ac_dir in $PATH; do
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3781 acl_cv_path_LD="$ac_dir/$ac_prog"
3782 # Check to see if the program is GNU ld. I'd rather use --version,
3783 # but apparently some GNU ld's only accept -v.
3784 # Break only if it was the GNU/non-GNU ld that we prefer.
3785 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3786 *GNU* | *'with BFD'*)
3787 test "$with_gnu_ld" != no && break ;;
3788 *)
3789 test "$with_gnu_ld" != yes && break ;;
3790 esac
3791 fi
3792 done
3793 IFS="$ac_save_ifs"
3794 else
3795 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3796 fi
3797 fi
3798
3799 LD="$acl_cv_path_LD"
3800 if test -n "$LD"; then
3801 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3802 $as_echo "$LD" >&6; }
3803 else
3804 { $as_echo "$as_me:$LINENO: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3808 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3809 { (exit 1); exit 1; }; }
3810 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3812 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3813 $as_echo_n "(cached) " >&6
3814 else
3815 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3816 case `$LD -v 2>&1 </dev/null` in
3817 *GNU* | *'with BFD'*)
3818 acl_cv_prog_gnu_ld=yes ;;
3819 *)
3820 acl_cv_prog_gnu_ld=no ;;
3821 esac
3822 fi
3823 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3824 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3825 with_gnu_ld=$acl_cv_prog_gnu_ld
3826
3827
3828
3829
3830 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3831 $as_echo_n "checking for shared library run path origin... " >&6; }
3832 if test "${acl_cv_rpath+set}" = set; then
3833 $as_echo_n "(cached) " >&6
3834 else
3835
3836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3838 . ./conftest.sh
3839 rm -f ./conftest.sh
3840 acl_cv_rpath=done
3841
3842 fi
3843 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3844 $as_echo "$acl_cv_rpath" >&6; }
3845 wl="$acl_cv_wl"
3846 acl_libext="$acl_cv_libext"
3847 acl_shlibext="$acl_cv_shlibext"
3848 acl_libname_spec="$acl_cv_libname_spec"
3849 acl_library_names_spec="$acl_cv_library_names_spec"
3850 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3851 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3852 acl_hardcode_direct="$acl_cv_hardcode_direct"
3853 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3854 # Check whether --enable-rpath was given.
3855 if test "${enable_rpath+set}" = set; then
3856 enableval=$enable_rpath; :
3857 else
3858 enable_rpath=yes
3859 fi
3860
3861
3862
3863 acl_libdirstem=lib
3864 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3865 if test -n "$searchpath"; then
3866 acl_save_IFS="${IFS= }"; IFS=":"
3867 for searchdir in $searchpath; do
3868 if test -d "$searchdir"; then
3869 case "$searchdir" in
3870 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3871 *) searchdir=`cd "$searchdir" && pwd`
3872 case "$searchdir" in
3873 */lib64 ) acl_libdirstem=lib64 ;;
3874 esac ;;
3875 esac
3876 fi
3877 done
3878 IFS="$acl_save_IFS"
3879 fi
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889 use_additional=yes
3890
3891 acl_save_prefix="$prefix"
3892 prefix="$acl_final_prefix"
3893 acl_save_exec_prefix="$exec_prefix"
3894 exec_prefix="$acl_final_exec_prefix"
3895
3896 eval additional_includedir=\"$includedir\"
3897 eval additional_libdir=\"$libdir\"
3898
3899 exec_prefix="$acl_save_exec_prefix"
3900 prefix="$acl_save_prefix"
3901
3902
3903 # Check whether --with-libiconv-prefix was given.
3904 if test "${with_libiconv_prefix+set}" = set; then
3905 withval=$with_libiconv_prefix;
3906 if test "X$withval" = "Xno"; then
3907 use_additional=no
3908 else
3909 if test "X$withval" = "X"; then
3910
3911 acl_save_prefix="$prefix"
3912 prefix="$acl_final_prefix"
3913 acl_save_exec_prefix="$exec_prefix"
3914 exec_prefix="$acl_final_exec_prefix"
3915
3916 eval additional_includedir=\"$includedir\"
3917 eval additional_libdir=\"$libdir\"
3918
3919 exec_prefix="$acl_save_exec_prefix"
3920 prefix="$acl_save_prefix"
3921
3922 else
3923 additional_includedir="$withval/include"
3924 additional_libdir="$withval/$acl_libdirstem"
3925 fi
3926 fi
3927
3928 fi
3929
3930 LIBICONV=
3931 LTLIBICONV=
3932 INCICONV=
3933 LIBICONV_PREFIX=
3934 rpathdirs=
3935 ltrpathdirs=
3936 names_already_handled=
3937 names_next_round='iconv '
3938 while test -n "$names_next_round"; do
3939 names_this_round="$names_next_round"
3940 names_next_round=
3941 for name in $names_this_round; do
3942 already_handled=
3943 for n in $names_already_handled; do
3944 if test "$n" = "$name"; then
3945 already_handled=yes
3946 break
3947 fi
3948 done
3949 if test -z "$already_handled"; then
3950 names_already_handled="$names_already_handled $name"
3951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3952 eval value=\"\$HAVE_LIB$uppername\"
3953 if test -n "$value"; then
3954 if test "$value" = yes; then
3955 eval value=\"\$LIB$uppername\"
3956 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3957 eval value=\"\$LTLIB$uppername\"
3958 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3959 else
3960 :
3961 fi
3962 else
3963 found_dir=
3964 found_la=
3965 found_so=
3966 found_a=
3967 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3968 if test -n "$acl_shlibext"; then
3969 shrext=".$acl_shlibext" # typically: shrext=.so
3970 else
3971 shrext=
3972 fi
3973 if test $use_additional = yes; then
3974 dir="$additional_libdir"
3975 if test -n "$acl_shlibext"; then
3976 if test -f "$dir/$libname$shrext"; then
3977 found_dir="$dir"
3978 found_so="$dir/$libname$shrext"
3979 else
3980 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3981 ver=`(cd "$dir" && \
3982 for f in "$libname$shrext".*; do echo "$f"; done \
3983 | sed -e "s,^$libname$shrext\\\\.,," \
3984 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3985 | sed 1q ) 2>/dev/null`
3986 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3987 found_dir="$dir"
3988 found_so="$dir/$libname$shrext.$ver"
3989 fi
3990 else
3991 eval library_names=\"$acl_library_names_spec\"
3992 for f in $library_names; do
3993 if test -f "$dir/$f"; then
3994 found_dir="$dir"
3995 found_so="$dir/$f"
3996 break
3997 fi
3998 done
3999 fi
4000 fi
4001 fi
4002 if test "X$found_dir" = "X"; then
4003 if test -f "$dir/$libname.$acl_libext"; then
4004 found_dir="$dir"
4005 found_a="$dir/$libname.$acl_libext"
4006 fi
4007 fi
4008 if test "X$found_dir" != "X"; then
4009 if test -f "$dir/$libname.la"; then
4010 found_la="$dir/$libname.la"
4011 fi
4012 fi
4013 fi
4014 if test "X$found_dir" = "X"; then
4015 for x in $LDFLAGS $LTLIBICONV; do
4016
4017 acl_save_prefix="$prefix"
4018 prefix="$acl_final_prefix"
4019 acl_save_exec_prefix="$exec_prefix"
4020 exec_prefix="$acl_final_exec_prefix"
4021 eval x=\"$x\"
4022 exec_prefix="$acl_save_exec_prefix"
4023 prefix="$acl_save_prefix"
4024
4025 case "$x" in
4026 -L*)
4027 dir=`echo "X$x" | sed -e 's/^X-L//'`
4028 if test -n "$acl_shlibext"; then
4029 if test -f "$dir/$libname$shrext"; then
4030 found_dir="$dir"
4031 found_so="$dir/$libname$shrext"
4032 else
4033 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4034 ver=`(cd "$dir" && \
4035 for f in "$libname$shrext".*; do echo "$f"; done \
4036 | sed -e "s,^$libname$shrext\\\\.,," \
4037 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4038 | sed 1q ) 2>/dev/null`
4039 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4040 found_dir="$dir"
4041 found_so="$dir/$libname$shrext.$ver"
4042 fi
4043 else
4044 eval library_names=\"$acl_library_names_spec\"
4045 for f in $library_names; do
4046 if test -f "$dir/$f"; then
4047 found_dir="$dir"
4048 found_so="$dir/$f"
4049 break
4050 fi
4051 done
4052 fi
4053 fi
4054 fi
4055 if test "X$found_dir" = "X"; then
4056 if test -f "$dir/$libname.$acl_libext"; then
4057 found_dir="$dir"
4058 found_a="$dir/$libname.$acl_libext"
4059 fi
4060 fi
4061 if test "X$found_dir" != "X"; then
4062 if test -f "$dir/$libname.la"; then
4063 found_la="$dir/$libname.la"
4064 fi
4065 fi
4066 ;;
4067 esac
4068 if test "X$found_dir" != "X"; then
4069 break
4070 fi
4071 done
4072 fi
4073 if test "X$found_dir" != "X"; then
4074 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4075 if test "X$found_so" != "X"; then
4076 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4077 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4078 else
4079 haveit=
4080 for x in $ltrpathdirs; do
4081 if test "X$x" = "X$found_dir"; then
4082 haveit=yes
4083 break
4084 fi
4085 done
4086 if test -z "$haveit"; then
4087 ltrpathdirs="$ltrpathdirs $found_dir"
4088 fi
4089 if test "$acl_hardcode_direct" = yes; then
4090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4091 else
4092 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4094 haveit=
4095 for x in $rpathdirs; do
4096 if test "X$x" = "X$found_dir"; then
4097 haveit=yes
4098 break
4099 fi
4100 done
4101 if test -z "$haveit"; then
4102 rpathdirs="$rpathdirs $found_dir"
4103 fi
4104 else
4105 haveit=
4106 for x in $LDFLAGS $LIBICONV; do
4107
4108 acl_save_prefix="$prefix"
4109 prefix="$acl_final_prefix"
4110 acl_save_exec_prefix="$exec_prefix"
4111 exec_prefix="$acl_final_exec_prefix"
4112 eval x=\"$x\"
4113 exec_prefix="$acl_save_exec_prefix"
4114 prefix="$acl_save_prefix"
4115
4116 if test "X$x" = "X-L$found_dir"; then
4117 haveit=yes
4118 break
4119 fi
4120 done
4121 if test -z "$haveit"; then
4122 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4123 fi
4124 if test "$acl_hardcode_minus_L" != no; then
4125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4126 else
4127 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4128 fi
4129 fi
4130 fi
4131 fi
4132 else
4133 if test "X$found_a" != "X"; then
4134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4135 else
4136 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4137 fi
4138 fi
4139 additional_includedir=
4140 case "$found_dir" in
4141 */$acl_libdirstem | */$acl_libdirstem/)
4142 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4143 LIBICONV_PREFIX="$basedir"
4144 additional_includedir="$basedir/include"
4145 ;;
4146 esac
4147 if test "X$additional_includedir" != "X"; then
4148 if test "X$additional_includedir" != "X/usr/include"; then
4149 haveit=
4150 if test "X$additional_includedir" = "X/usr/local/include"; then
4151 if test -n "$GCC"; then
4152 case $host_os in
4153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4154 esac
4155 fi
4156 fi
4157 if test -z "$haveit"; then
4158 for x in $CPPFLAGS $INCICONV; do
4159
4160 acl_save_prefix="$prefix"
4161 prefix="$acl_final_prefix"
4162 acl_save_exec_prefix="$exec_prefix"
4163 exec_prefix="$acl_final_exec_prefix"
4164 eval x=\"$x\"
4165 exec_prefix="$acl_save_exec_prefix"
4166 prefix="$acl_save_prefix"
4167
4168 if test "X$x" = "X-I$additional_includedir"; then
4169 haveit=yes
4170 break
4171 fi
4172 done
4173 if test -z "$haveit"; then
4174 if test -d "$additional_includedir"; then
4175 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4176 fi
4177 fi
4178 fi
4179 fi
4180 fi
4181 if test -n "$found_la"; then
4182 save_libdir="$libdir"
4183 case "$found_la" in
4184 */* | *\\*) . "$found_la" ;;
4185 *) . "./$found_la" ;;
4186 esac
4187 libdir="$save_libdir"
4188 for dep in $dependency_libs; do
4189 case "$dep" in
4190 -L*)
4191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4192 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4193 haveit=
4194 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4195 if test -n "$GCC"; then
4196 case $host_os in
4197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4198 esac
4199 fi
4200 fi
4201 if test -z "$haveit"; then
4202 haveit=
4203 for x in $LDFLAGS $LIBICONV; do
4204
4205 acl_save_prefix="$prefix"
4206 prefix="$acl_final_prefix"
4207 acl_save_exec_prefix="$exec_prefix"
4208 exec_prefix="$acl_final_exec_prefix"
4209 eval x=\"$x\"
4210 exec_prefix="$acl_save_exec_prefix"
4211 prefix="$acl_save_prefix"
4212
4213 if test "X$x" = "X-L$additional_libdir"; then
4214 haveit=yes
4215 break
4216 fi
4217 done
4218 if test -z "$haveit"; then
4219 if test -d "$additional_libdir"; then
4220 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4221 fi
4222 fi
4223 haveit=
4224 for x in $LDFLAGS $LTLIBICONV; do
4225
4226 acl_save_prefix="$prefix"
4227 prefix="$acl_final_prefix"
4228 acl_save_exec_prefix="$exec_prefix"
4229 exec_prefix="$acl_final_exec_prefix"
4230 eval x=\"$x\"
4231 exec_prefix="$acl_save_exec_prefix"
4232 prefix="$acl_save_prefix"
4233
4234 if test "X$x" = "X-L$additional_libdir"; then
4235 haveit=yes
4236 break
4237 fi
4238 done
4239 if test -z "$haveit"; then
4240 if test -d "$additional_libdir"; then
4241 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4242 fi
4243 fi
4244 fi
4245 fi
4246 ;;
4247 -R*)
4248 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4249 if test "$enable_rpath" != no; then
4250 haveit=
4251 for x in $rpathdirs; do
4252 if test "X$x" = "X$dir"; then
4253 haveit=yes
4254 break
4255 fi
4256 done
4257 if test -z "$haveit"; then
4258 rpathdirs="$rpathdirs $dir"
4259 fi
4260 haveit=
4261 for x in $ltrpathdirs; do
4262 if test "X$x" = "X$dir"; then
4263 haveit=yes
4264 break
4265 fi
4266 done
4267 if test -z "$haveit"; then
4268 ltrpathdirs="$ltrpathdirs $dir"
4269 fi
4270 fi
4271 ;;
4272 -l*)
4273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4274 ;;
4275 *.la)
4276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4277 ;;
4278 *)
4279 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4280 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4281 ;;
4282 esac
4283 done
4284 fi
4285 else
4286 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4288 fi
4289 fi
4290 fi
4291 done
4292 done
4293 if test "X$rpathdirs" != "X"; then
4294 if test -n "$acl_hardcode_libdir_separator"; then
4295 alldirs=
4296 for found_dir in $rpathdirs; do
4297 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4298 done
4299 acl_save_libdir="$libdir"
4300 libdir="$alldirs"
4301 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4302 libdir="$acl_save_libdir"
4303 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4304 else
4305 for found_dir in $rpathdirs; do
4306 acl_save_libdir="$libdir"
4307 libdir="$found_dir"
4308 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4309 libdir="$acl_save_libdir"
4310 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4311 done
4312 fi
4313 fi
4314 if test "X$ltrpathdirs" != "X"; then
4315 for found_dir in $ltrpathdirs; do
4316 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4317 done
4318 fi
4319
4320
4321
4322
4323
4324
4325
4326 am_save_CPPFLAGS="$CPPFLAGS"
4327
4328 for element in $INCICONV; do
4329 haveit=
4330 for x in $CPPFLAGS; do
4331
4332 acl_save_prefix="$prefix"
4333 prefix="$acl_final_prefix"
4334 acl_save_exec_prefix="$exec_prefix"
4335 exec_prefix="$acl_final_exec_prefix"
4336 eval x=\"$x\"
4337 exec_prefix="$acl_save_exec_prefix"
4338 prefix="$acl_save_prefix"
4339
4340 if test "X$x" = "X$element"; then
4341 haveit=yes
4342 break
4343 fi
4344 done
4345 if test -z "$haveit"; then
4346 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4347 fi
4348 done
4349
4350
4351 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
4352 $as_echo_n "checking for iconv... " >&6; }
4353 if test "${am_cv_func_iconv+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356
4357 am_cv_func_iconv="no, consider installing GNU libiconv"
4358 am_cv_lib_iconv=no
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include <stdlib.h>
4366 #include <iconv.h>
4367 int
4368 main ()
4369 {
4370 iconv_t cd = iconv_open("","");
4371 iconv(cd,NULL,NULL,NULL,NULL);
4372 iconv_close(cd);
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.$ac_objext conftest$ac_exeext
4378 if { (ac_try="$ac_link"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385 (eval "$ac_link") 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && {
4392 test -z "$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 } && test -s conftest$ac_exeext && {
4395 test "$cross_compiling" = yes ||
4396 $as_test_x conftest$ac_exeext
4397 }; then
4398 am_cv_func_iconv=yes
4399 else
4400 $as_echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403
4404 fi
4405
4406 rm -rf conftest.dSYM
4407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4408 conftest$ac_exeext conftest.$ac_ext
4409 if test "$am_cv_func_iconv" != yes; then
4410 am_save_LIBS="$LIBS"
4411 LIBS="$LIBS $LIBICONV"
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <stdlib.h>
4419 #include <iconv.h>
4420 int
4421 main ()
4422 {
4423 iconv_t cd = iconv_open("","");
4424 iconv(cd,NULL,NULL,NULL,NULL);
4425 iconv_close(cd);
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (ac_try="$ac_link"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4437 $as_echo "$ac_try_echo") >&5
4438 (eval "$ac_link") 2>conftest.er1
4439 ac_status=$?
4440 grep -v '^ *+' conftest.er1 >conftest.err
4441 rm -f conftest.er1
4442 cat conftest.err >&5
4443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && {
4445 test -z "$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4447 } && test -s conftest$ac_exeext && {
4448 test "$cross_compiling" = yes ||
4449 $as_test_x conftest$ac_exeext
4450 }; then
4451 am_cv_lib_iconv=yes
4452 am_cv_func_iconv=yes
4453 else
4454 $as_echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4456
4457
4458 fi
4459
4460 rm -rf conftest.dSYM
4461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4462 conftest$ac_exeext conftest.$ac_ext
4463 LIBS="$am_save_LIBS"
4464 fi
4465
4466 fi
4467 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4468 $as_echo "$am_cv_func_iconv" >&6; }
4469 if test "$am_cv_func_iconv" = yes; then
4470 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
4471 $as_echo_n "checking for working iconv... " >&6; }
4472 if test "${am_cv_func_iconv_works+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4474 else
4475
4476 am_save_LIBS="$LIBS"
4477 if test $am_cv_lib_iconv = yes; then
4478 LIBS="$LIBS $LIBICONV"
4479 fi
4480 if test "$cross_compiling" = yes; then
4481 case "$host_os" in
4482 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4483 *) am_cv_func_iconv_works="guessing yes" ;;
4484 esac
4485 else
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492
4493 #include <iconv.h>
4494 #include <string.h>
4495 int main ()
4496 {
4497 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4498 returns. */
4499 {
4500 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4501 if (cd_utf8_to_88591 != (iconv_t)(-1))
4502 {
4503 static const char input[] = "\342\202\254"; /* EURO SIGN */
4504 char buf[10];
4505 const char *inptr = input;
4506 size_t inbytesleft = strlen (input);
4507 char *outptr = buf;
4508 size_t outbytesleft = sizeof (buf);
4509 size_t res = iconv (cd_utf8_to_88591,
4510 (char **) &inptr, &inbytesleft,
4511 &outptr, &outbytesleft);
4512 if (res == 0)
4513 return 1;
4514 }
4515 }
4516 #if 0 /* This bug could be worked around by the caller. */
4517 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4518 {
4519 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4520 if (cd_88591_to_utf8 != (iconv_t)(-1))
4521 {
4522 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4523 char buf[50];
4524 const char *inptr = input;
4525 size_t inbytesleft = strlen (input);
4526 char *outptr = buf;
4527 size_t outbytesleft = sizeof (buf);
4528 size_t res = iconv (cd_88591_to_utf8,
4529 (char **) &inptr, &inbytesleft,
4530 &outptr, &outbytesleft);
4531 if ((int)res > 0)
4532 return 1;
4533 }
4534 }
4535 #endif
4536 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4537 provided. */
4538 if (/* Try standardized names. */
4539 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4540 /* Try IRIX, OSF/1 names. */
4541 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4542 /* Try AIX names. */
4543 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4544 /* Try HP-UX names. */
4545 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4546 return 1;
4547 return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (ac_try="$ac_link"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557 $as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567 $as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 am_cv_func_iconv_works=yes
4573 else
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ( exit $ac_status )
4579 am_cv_func_iconv_works=no
4580 fi
4581 rm -rf conftest.dSYM
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 fi
4584
4585
4586 LIBS="$am_save_LIBS"
4587
4588 fi
4589 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
4590 $as_echo "$am_cv_func_iconv_works" >&6; }
4591 case "$am_cv_func_iconv_works" in
4592 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4593 *) am_func_iconv=yes ;;
4594 esac
4595 else
4596 am_func_iconv=no am_cv_lib_iconv=no
4597 fi
4598 if test "$am_func_iconv" = yes; then
4599
4600 cat >>confdefs.h <<\_ACEOF
4601 #define HAVE_ICONV 1
4602 _ACEOF
4603
4604 fi
4605 if test "$am_cv_lib_iconv" = yes; then
4606 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4607 $as_echo_n "checking how to link with libiconv... " >&6; }
4608 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
4609 $as_echo "$LIBICONV" >&6; }
4610 else
4611 CPPFLAGS="$am_save_CPPFLAGS"
4612 LIBICONV=
4613 LTLIBICONV=
4614 fi
4615
4616
4617
4618 if test "$am_cv_func_iconv" = yes; then
4619 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
4620 $as_echo_n "checking for iconv declaration... " >&6; }
4621 if test "${am_cv_proto_iconv+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4623 else
4624
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631
4632 #include <stdlib.h>
4633 #include <iconv.h>
4634 extern
4635 #ifdef __cplusplus
4636 "C"
4637 #endif
4638 #if defined(__STDC__) || defined(__cplusplus)
4639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4640 #else
4641 size_t iconv();
4642 #endif
4643
4644 int
4645 main ()
4646 {
4647
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 am_cv_proto_iconv_arg1=""
4671 else
4672 $as_echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 am_cv_proto_iconv_arg1="const"
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4680 fi
4681
4682 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4683 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
4684 }$am_cv_proto_iconv" >&5
4685 $as_echo "${ac_t:-
4686 }$am_cv_proto_iconv" >&6; }
4687
4688 cat >>confdefs.h <<_ACEOF
4689 #define ICONV_CONST $am_cv_proto_iconv_arg1
4690 _ACEOF
4691
4692 fi
4693
4694 if test -n "$LIBICONV" ; then
4695 LIBS="$LIBS $LIBICONV"
4696 fi
4697
4698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709 inttypes.h stdint.h unistd.h
4710 do
4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4713 $as_echo_n "checking for $ac_header... " >&6; }
4714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4715 $as_echo_n "(cached) " >&6
4716 else
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4724
4725 #include <$ac_header>
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (ac_try="$ac_compile"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } && {
4742 test -z "$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 } && test -s conftest.$ac_objext; then
4745 eval "$as_ac_Header=yes"
4746 else
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 eval "$as_ac_Header=no"
4751 fi
4752
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 ac_res=`eval 'as_val=${'$as_ac_Header'}
4756 $as_echo "$as_val"'`
4757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4758 $as_echo "$ac_res" >&6; }
4759 as_val=`eval 'as_val=${'$as_ac_Header'}
4760 $as_echo "$as_val"'`
4761 if test "x$as_val" = x""yes; then
4762 cat >>confdefs.h <<_ACEOF
4763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4764 _ACEOF
4765
4766 fi
4767
4768 done
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800 for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
4801 dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \
4802 ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
4803 errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h
4804 do
4805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4808 $as_echo_n "checking for $ac_header... " >&6; }
4809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4810 $as_echo_n "(cached) " >&6
4811 fi
4812 ac_res=`eval 'as_val=${'$as_ac_Header'}
4813 $as_echo "$as_val"'`
4814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4815 $as_echo "$ac_res" >&6; }
4816 else
4817 # Is the header compilable?
4818 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4819 $as_echo_n "checking $ac_header usability... " >&6; }
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 #include <$ac_header>
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_header_compiler=yes
4848 else
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 ac_header_compiler=no
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4857 $as_echo "$ac_header_compiler" >&6; }
4858
4859 # Is the header present?
4860 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4861 $as_echo_n "checking $ac_header presence... " >&6; }
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h. */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <$ac_header>
4869 _ACEOF
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874 esac
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null && {
4884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 }; then
4887 ac_header_preproc=yes
4888 else
4889 $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_header_preproc=no
4893 fi
4894
4895 rm -f conftest.err conftest.$ac_ext
4896 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4897 $as_echo "$ac_header_preproc" >&6; }
4898
4899 # So? What about this header?
4900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4901 yes:no: )
4902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4903 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4906 ac_header_preproc=yes
4907 ;;
4908 no:yes:* )
4909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4914 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4916 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4920 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4921
4922 ;;
4923 esac
4924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4925 $as_echo_n "checking for $ac_header... " >&6; }
4926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4927 $as_echo_n "(cached) " >&6
4928 else
4929 eval "$as_ac_Header=\$ac_header_preproc"
4930 fi
4931 ac_res=`eval 'as_val=${'$as_ac_Header'}
4932 $as_echo "$as_val"'`
4933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4934 $as_echo "$ac_res" >&6; }
4935
4936 fi
4937 as_val=`eval 'as_val=${'$as_ac_Header'}
4938 $as_echo "$as_val"'`
4939 if test "x$as_val" = x""yes; then
4940 cat >>confdefs.h <<_ACEOF
4941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 _ACEOF
4943
4944 fi
4945
4946 done
4947
4948
4949 { $as_echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
4950 $as_echo_n "checking for gdImagePng in -lgd... " >&6; }
4951 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
4952 $as_echo_n "(cached) " >&6
4953 else
4954 ac_check_lib_save_LIBS=$LIBS
4955 LIBS="-lgd $LIBS"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962
4963 /* Override any GCC internal prototype to avoid an error.
4964 Use char because int might match the return type of a GCC
4965 builtin and then its argument prototype would still apply. */
4966 #ifdef __cplusplus
4967 extern "C"
4968 #endif
4969 char gdImagePng ();
4970 int
4971 main ()
4972 {
4973 return gdImagePng ();
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (ac_try="$ac_link"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_link") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest$ac_exeext && {
4996 test "$cross_compiling" = yes ||
4997 $as_test_x conftest$ac_exeext
4998 }; then
4999 ac_cv_lib_gd_gdImagePng=yes
5000 else
5001 $as_echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 ac_cv_lib_gd_gdImagePng=no
5005 fi
5006
5007 rm -rf conftest.dSYM
5008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
5013 $as_echo "$ac_cv_lib_gd_gdImagePng" >&6; }
5014 if test "x$ac_cv_lib_gd_gdImagePng" = x""yes; then
5015 LIBS="-lgd ${LIBS}"; HAVE_GD="yes"
5016 else
5017 HAVE_GD=""
5018 fi
5019
5020
5021 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5022 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5023 if test "${ac_cv_c_const+set}" = set; then
5024 $as_echo_n "(cached) " >&6
5025 else
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032
5033 int
5034 main ()
5035 {
5036 /* FIXME: Include the comments suggested by Paul. */
5037 #ifndef __cplusplus
5038 /* Ultrix mips cc rejects this. */
5039 typedef int charset[2];
5040 const charset cs;
5041 /* SunOS 4.1.1 cc rejects this. */
5042 char const *const *pcpcc;
5043 char **ppc;
5044 /* NEC SVR4.0.2 mips cc rejects this. */
5045 struct point {int x, y;};
5046 static struct point const zero = {0,0};
5047 /* AIX XL C 1.02.0.0 rejects this.
5048 It does not let you subtract one const X* pointer from another in
5049 an arm of an if-expression whose if-part is not a constant
5050 expression */
5051 const char *g = "string";
5052 pcpcc = &g + (g ? g-g : 0);
5053 /* HPUX 7.0 cc rejects these. */
5054 ++pcpcc;
5055 ppc = (char**) pcpcc;
5056 pcpcc = (char const *const *) ppc;
5057 { /* SCO 3.2v4 cc rejects this. */
5058 char *t;
5059 char const *s = 0 ? (char *) 0 : (char const *) 0;
5060
5061 *t++ = 0;
5062 if (s) return 0;
5063 }
5064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5065 int x[] = {25, 17};
5066 const int *foo = &x[0];
5067 ++foo;
5068 }
5069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5070 typedef const int *iptr;
5071 iptr p = 0;
5072 ++p;
5073 }
5074 { /* AIX XL C 1.02.0.0 rejects this saying
5075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5076 struct s { int j; const int *ap[3]; };
5077 struct s *b; b->j = 5;
5078 }
5079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5080 const int foo = 10;
5081 if (!foo) return 0;
5082 }
5083 return !cs[0] && !zero.x;
5084 #endif
5085
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5097 $as_echo "$ac_try_echo") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_cv_c_const=yes
5109 else
5110 $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ac_cv_c_const=no
5114 fi
5115
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5119 $as_echo "$ac_cv_c_const" >&6; }
5120 if test $ac_cv_c_const = no; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define const /**/
5124 _ACEOF
5125
5126 fi
5127
5128 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5129 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5130 if test "${ac_cv_struct_tm+set}" = set; then
5131 $as_echo_n "(cached) " >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 #include <sys/types.h>
5140 #include <time.h>
5141
5142 int
5143 main ()
5144 {
5145 struct tm tm;
5146 int *p = &tm.tm_sec;
5147 return !p;
5148 ;
5149 return 0;
5150 }
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && {
5167 test -z "$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 } && test -s conftest.$ac_objext; then
5170 ac_cv_struct_tm=time.h
5171 else
5172 $as_echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 ac_cv_struct_tm=sys/time.h
5176 fi
5177
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5181 $as_echo "$ac_cv_struct_tm" >&6; }
5182 if test $ac_cv_struct_tm = sys/time.h; then
5183
5184 cat >>confdefs.h <<\_ACEOF
5185 #define TM_IN_SYS_TIME 1
5186 _ACEOF
5187
5188 fi
5189
5190
5191 # Check whether --enable-largefile was given.
5192 if test "${enable_largefile+set}" = set; then
5193 enableval=$enable_largefile;
5194 fi
5195
5196 if test "$enable_largefile" != no; then
5197
5198 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5199 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5200 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5201 $as_echo_n "(cached) " >&6
5202 else
5203 ac_cv_sys_largefile_CC=no
5204 if test "$GCC" != yes; then
5205 ac_save_CC=$CC
5206 while :; do
5207 # IRIX 6.2 and later do not support large files by default,
5208 # so use the C compiler's -n32 option if that helps.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239 $as_echo "$ac_try_echo") >&5
5240 (eval "$ac_compile") 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
5250 break
5251 else
5252 $as_echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255
5256 fi
5257
5258 rm -f core conftest.err conftest.$ac_objext
5259 CC="$CC -n32"
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267 $as_echo "$ac_try_echo") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 ac_cv_sys_largefile_CC=' -n32'; break
5279 else
5280 $as_echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283
5284 fi
5285
5286 rm -f core conftest.err conftest.$ac_objext
5287 break
5288 done
5289 CC=$ac_save_CC
5290 rm -f conftest.$ac_ext
5291 fi
5292 fi
5293 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5294 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5295 if test "$ac_cv_sys_largefile_CC" != no; then
5296 CC=$CC$ac_cv_sys_largefile_CC
5297 fi
5298
5299 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5300 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5301 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 while :; do
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <sys/types.h>
5312 /* Check that off_t can represent 2**63 - 1 correctly.
5313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5314 since some C++ compilers masquerading as C compilers
5315 incorrectly reject 9223372036854775807. */
5316 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5318 && LARGE_OFF_T % 2147483647 == 1)
5319 ? 1 : -1];
5320 int
5321 main ()
5322 {
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5335 $as_echo "$ac_try_echo") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_cv_sys_file_offset_bits=no; break
5347 else
5348 $as_echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #define _FILE_OFFSET_BITS 64
5362 #include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5371 int
5372 main ()
5373 {
5374
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5386 $as_echo "$ac_try_echo") >&5
5387 (eval "$ac_compile") 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5397 ac_cv_sys_file_offset_bits=64; break
5398 else
5399 $as_echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402
5403 fi
5404
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 ac_cv_sys_file_offset_bits=unknown
5407 break
5408 done
5409 fi
5410 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5411 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5412 case $ac_cv_sys_file_offset_bits in #(
5413 no | unknown) ;;
5414 *)
5415 cat >>confdefs.h <<_ACEOF
5416 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5417 _ACEOF
5418 ;;
5419 esac
5420 rm -rf conftest*
5421 if test $ac_cv_sys_file_offset_bits = unknown; then
5422 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5423 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5424 if test "${ac_cv_sys_large_files+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5426 else
5427 while :; do
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <sys/types.h>
5435 /* Check that off_t can represent 2**63 - 1 correctly.
5436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5437 since some C++ compilers masquerading as C compilers
5438 incorrectly reject 9223372036854775807. */
5439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5441 && LARGE_OFF_T % 2147483647 == 1)
5442 ? 1 : -1];
5443 int
5444 main ()
5445 {
5446
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458 $as_echo "$ac_try_echo") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 ac_cv_sys_large_files=no; break
5470 else
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474
5475 fi
5476
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 #define _LARGE_FILES 1
5485 #include <sys/types.h>
5486 /* Check that off_t can represent 2**63 - 1 correctly.
5487 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5488 since some C++ compilers masquerading as C compilers
5489 incorrectly reject 9223372036854775807. */
5490 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5492 && LARGE_OFF_T % 2147483647 == 1)
5493 ? 1 : -1];
5494 int
5495 main ()
5496 {
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5509 $as_echo "$ac_try_echo") >&5
5510 (eval "$ac_compile") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
5520 ac_cv_sys_large_files=1; break
5521 else
5522 $as_echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5524
5525
5526 fi
5527
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ac_cv_sys_large_files=unknown
5530 break
5531 done
5532 fi
5533 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5534 $as_echo "$ac_cv_sys_large_files" >&6; }
5535 case $ac_cv_sys_large_files in #(
5536 no | unknown) ;;
5537 *)
5538 cat >>confdefs.h <<_ACEOF
5539 #define _LARGE_FILES $ac_cv_sys_large_files
5540 _ACEOF
5541 ;;
5542 esac
5543 rm -rf conftest*
5544 fi
5545 fi
5546
5547
5548 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
5549 # needs to be defined for it
5550 { $as_echo "$as_me:$LINENO: checking for fopen64" >&5
5551 $as_echo_n "checking for fopen64... " >&6; }
5552 if test "${bu_cv_have_fopen64+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <stdio.h>
5562 int
5563 main ()
5564 {
5565 FILE *f = fopen64 ("/tmp/foo","r");
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (ac_try="$ac_link"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5577 $as_echo "$ac_try_echo") >&5
5578 (eval "$ac_link") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest$ac_exeext && {
5588 test "$cross_compiling" = yes ||
5589 $as_test_x conftest$ac_exeext
5590 }; then
5591 bu_cv_have_fopen64=yes
5592 else
5593 $as_echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 saved_CFLAGS=$CFLAGS
5597 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <stdio.h>
5605 int
5606 main ()
5607 {
5608 FILE *f = fopen64 ("/tmp/foo","r");
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (ac_try="$ac_link"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_link") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest$ac_exeext && {
5631 test "$cross_compiling" = yes ||
5632 $as_test_x conftest$ac_exeext
5633 }; then
5634 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5635 else
5636 $as_echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 bu_cv_have_fopen64=no
5640 fi
5641
5642 rm -rf conftest.dSYM
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644 conftest$ac_exeext conftest.$ac_ext
5645 CFLAGS=$saved_CFLAGS
5646 fi
5647
5648 rm -rf conftest.dSYM
5649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5650 conftest$ac_exeext conftest.$ac_ext
5651 fi
5652
5653 { $as_echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
5654 $as_echo "$bu_cv_have_fopen64" >&6; }
5655 if test "$bu_cv_have_fopen64" != no; then
5656
5657 cat >>confdefs.h <<\_ACEOF
5658 #define HAVE_FOPEN64 1
5659 _ACEOF
5660
5661 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
5662
5663 cat >>confdefs.h <<\_ACEOF
5664 #define _LARGEFILE64_SOURCE 1
5665 _ACEOF
5666
5667 fi
5668 fi
5669
5670
5671 # The cast to long int works around a bug in the HP C Compiler
5672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5674 # This bug is HP SR number 8606223364.
5675 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
5676 $as_echo_n "checking size of off_t... " >&6; }
5677 if test "${ac_cv_sizeof_off_t+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test "$cross_compiling" = yes; then
5681 # Depending upon the size, compute the lo and hi bounds.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 $ac_includes_default
5689 int
5690 main ()
5691 {
5692 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
5693 test_array [0] = 0
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706 $as_echo "$ac_try_echo") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
5717 ac_lo=0 ac_mid=0
5718 while :; do
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 $ac_includes_default
5726 int
5727 main ()
5728 {
5729 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
5730 test_array [0] = 0
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5743 $as_echo "$ac_try_echo") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_hi=$ac_mid; break
5755 else
5756 $as_echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_lo=`expr $ac_mid + 1`
5760 if test $ac_lo -le $ac_mid; then
5761 ac_lo= ac_hi=
5762 break
5763 fi
5764 ac_mid=`expr 2 '*' $ac_mid + 1`
5765 fi
5766
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 done
5769 else
5770 $as_echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 $ac_includes_default
5780 int
5781 main ()
5782 {
5783 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
5784 test_array [0] = 0
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5797 $as_echo "$ac_try_echo") >&5
5798 (eval "$ac_compile") 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest.$ac_objext; then
5808 ac_hi=-1 ac_mid=-1
5809 while :; do
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 int
5818 main ()
5819 {
5820 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
5821 test_array [0] = 0
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834 $as_echo "$ac_try_echo") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 ac_lo=$ac_mid; break
5846 else
5847 $as_echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_hi=`expr '(' $ac_mid ')' - 1`
5851 if test $ac_mid -le $ac_hi; then
5852 ac_lo= ac_hi=
5853 break
5854 fi
5855 ac_mid=`expr 2 '*' $ac_mid`
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 done
5860 else
5861 $as_echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_lo= ac_hi=
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 # Binary search between lo and hi bounds.
5872 while test "x$ac_lo" != "x$ac_hi"; do
5873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 int
5882 main ()
5883 {
5884 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
5885 test_array [0] = 0
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898 $as_echo "$ac_try_echo") >&5
5899 (eval "$ac_compile") 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest.$ac_objext; then
5909 ac_hi=$ac_mid
5910 else
5911 $as_echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914 ac_lo=`expr '(' $ac_mid ')' + 1`
5915 fi
5916
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 done
5919 case $ac_lo in
5920 ?*) ac_cv_sizeof_off_t=$ac_lo;;
5921 '') if test "$ac_cv_type_off_t" = yes; then
5922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
5925 See \`config.log' for more details." >&5
5926 $as_echo "$as_me: error: cannot compute sizeof (off_t)
5927 See \`config.log' for more details." >&2;}
5928 { (exit 77); exit 77; }; }; }
5929 else
5930 ac_cv_sizeof_off_t=0
5931 fi ;;
5932 esac
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 static long int longval () { return (long int) (sizeof (off_t)); }
5942 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
5943 #include <stdio.h>
5944 #include <stdlib.h>
5945 int
5946 main ()
5947 {
5948
5949 FILE *f = fopen ("conftest.val", "w");
5950 if (! f)
5951 return 1;
5952 if (((long int) (sizeof (off_t))) < 0)
5953 {
5954 long int i = longval ();
5955 if (i != ((long int) (sizeof (off_t))))
5956 return 1;
5957 fprintf (f, "%ld", i);
5958 }
5959 else
5960 {
5961 unsigned long int i = ulongval ();
5962 if (i != ((long int) (sizeof (off_t))))
5963 return 1;
5964 fprintf (f, "%lu", i);
5965 }
5966 /* Do not output a trailing newline, as this causes \r\n confusion
5967 on some platforms. */
5968 return ferror (f) || fclose (f) != 0;
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_link") 2>&5
5983 ac_status=$?
5984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_try") 2>&5
5993 ac_status=$?
5994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_sizeof_off_t=`cat conftest.val`
5997 else
5998 $as_echo "$as_me: program exited with status $ac_status" >&5
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ( exit $ac_status )
6003 if test "$ac_cv_type_off_t" = yes; then
6004 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
6007 See \`config.log' for more details." >&5
6008 $as_echo "$as_me: error: cannot compute sizeof (off_t)
6009 See \`config.log' for more details." >&2;}
6010 { (exit 77); exit 77; }; }; }
6011 else
6012 ac_cv_sizeof_off_t=0
6013 fi
6014 fi
6015 rm -rf conftest.dSYM
6016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 rm -f conftest.val
6019 fi
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
6021 $as_echo "$ac_cv_sizeof_off_t" >&6; }
6022
6023
6024
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6027 _ACEOF
6028
6029
6030 if test $ac_cv_sizeof_off_t = "4"; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define OFFSET_STRING "%d"
6034 _ACEOF
6035
6036 elif test $ac_cv_sizeof_off_t = "8"; then
6037
6038 cat >>confdefs.h <<\_ACEOF
6039 #define OFFSET_STRING "%"PRId64
6040 _ACEOF
6041
6042 else
6043 { { $as_echo "$as_me:$LINENO: error: can not detect the size of your system\'s off_t type" >&5
6044 $as_echo "$as_me: error: can not detect the size of your system\'s off_t type" >&2;}
6045 { (exit 1); exit 1; }; }
6046 fi
6047
6048 # The cast to long int works around a bug in the HP C Compiler
6049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6051 # This bug is HP SR number 8606223364.
6052 { $as_echo "$as_me:$LINENO: checking size of rlim_t" >&5
6053 $as_echo_n "checking size of rlim_t... " >&6; }
6054 if test "${ac_cv_sizeof_rlim_t+set}" = set; then
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test "$cross_compiling" = yes; then
6058 # Depending upon the size, compute the lo and hi bounds.
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #if HAVE_SYS_RESOURCE_H
6066 #include <sys/resource.h>
6067 #endif
6068
6069
6070 int
6071 main ()
6072 {
6073 static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= 0)];
6074 test_array [0] = 0
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_lo=0 ac_mid=0
6099 while :; do
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 #if HAVE_SYS_RESOURCE_H
6107 #include <sys/resource.h>
6108 #endif
6109
6110
6111 int
6112 main ()
6113 {
6114 static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)];
6115 test_array [0] = 0
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126 esac
6127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6128 $as_echo "$ac_try_echo") >&5
6129 (eval "$ac_compile") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.$ac_objext; then
6139 ac_hi=$ac_mid; break
6140 else
6141 $as_echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_lo=`expr $ac_mid + 1`
6145 if test $ac_lo -le $ac_mid; then
6146 ac_lo= ac_hi=
6147 break
6148 fi
6149 ac_mid=`expr 2 '*' $ac_mid + 1`
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 done
6154 else
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #if HAVE_SYS_RESOURCE_H
6165 #include <sys/resource.h>
6166 #endif
6167
6168
6169 int
6170 main ()
6171 {
6172 static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) < 0)];
6173 test_array [0] = 0
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (ac_try="$ac_compile"
6181 case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6186 $as_echo "$ac_try_echo") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.$ac_objext; then
6197 ac_hi=-1 ac_mid=-1
6198 while :; do
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #if HAVE_SYS_RESOURCE_H
6206 #include <sys/resource.h>
6207 #endif
6208
6209
6210 int
6211 main ()
6212 {
6213 static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= $ac_mid)];
6214 test_array [0] = 0
6215
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228 (eval "$ac_compile") 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } && {
6235 test -z "$ac_c_werror_flag" ||
6236 test ! -s conftest.err
6237 } && test -s conftest.$ac_objext; then
6238 ac_lo=$ac_mid; break
6239 else
6240 $as_echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 ac_hi=`expr '(' $ac_mid ')' - 1`
6244 if test $ac_mid -le $ac_hi; then
6245 ac_lo= ac_hi=
6246 break
6247 fi
6248 ac_mid=`expr 2 '*' $ac_mid`
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 done
6253 else
6254 $as_echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_lo= ac_hi=
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 # Binary search between lo and hi bounds.
6265 while test "x$ac_lo" != "x$ac_hi"; do
6266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 #if HAVE_SYS_RESOURCE_H
6274 #include <sys/resource.h>
6275 #endif
6276
6277
6278 int
6279 main ()
6280 {
6281 static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)];
6282 test_array [0] = 0
6283
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6290 case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293 esac
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_hi=$ac_mid
6307 else
6308 $as_echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_lo=`expr '(' $ac_mid ')' + 1`
6312 fi
6313
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 done
6316 case $ac_lo in
6317 ?*) ac_cv_sizeof_rlim_t=$ac_lo;;
6318 '') if test "$ac_cv_type_rlim_t" = yes; then
6319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6321 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
6322 See \`config.log' for more details." >&5
6323 $as_echo "$as_me: error: cannot compute sizeof (rlim_t)
6324 See \`config.log' for more details." >&2;}
6325 { (exit 77); exit 77; }; }; }
6326 else
6327 ac_cv_sizeof_rlim_t=0
6328 fi ;;
6329 esac
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #if HAVE_SYS_RESOURCE_H
6338 #include <sys/resource.h>
6339 #endif
6340
6341
6342 static long int longval () { return (long int) (sizeof (rlim_t)); }
6343 static unsigned long int ulongval () { return (long int) (sizeof (rlim_t)); }
6344 #include <stdio.h>
6345 #include <stdlib.h>
6346 int
6347 main ()
6348 {
6349
6350 FILE *f = fopen ("conftest.val", "w");
6351 if (! f)
6352 return 1;
6353 if (((long int) (sizeof (rlim_t))) < 0)
6354 {
6355 long int i = longval ();
6356 if (i != ((long int) (sizeof (rlim_t))))
6357 return 1;
6358 fprintf (f, "%ld", i);
6359 }
6360 else
6361 {
6362 unsigned long int i = ulongval ();
6363 if (i != ((long int) (sizeof (rlim_t))))
6364 return 1;
6365 fprintf (f, "%lu", i);
6366 }
6367 /* Do not output a trailing newline, as this causes \r\n confusion
6368 on some platforms. */
6369 return ferror (f) || fclose (f) != 0;
6370
6371 ;
6372 return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_link") 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6387 { (case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390 esac
6391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6392 $as_echo "$ac_try_echo") >&5
6393 (eval "$ac_try") 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_cv_sizeof_rlim_t=`cat conftest.val`
6398 else
6399 $as_echo "$as_me: program exited with status $ac_status" >&5
6400 $as_echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ( exit $ac_status )
6404 if test "$ac_cv_type_rlim_t" = yes; then
6405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6407 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
6408 See \`config.log' for more details." >&5
6409 $as_echo "$as_me: error: cannot compute sizeof (rlim_t)
6410 See \`config.log' for more details." >&2;}
6411 { (exit 77); exit 77; }; }; }
6412 else
6413 ac_cv_sizeof_rlim_t=0
6414 fi
6415 fi
6416 rm -rf conftest.dSYM
6417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6418 fi
6419 rm -f conftest.val
6420 fi
6421 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
6422 $as_echo "$ac_cv_sizeof_rlim_t" >&6; }
6423
6424
6425
6426 cat >>confdefs.h <<_ACEOF
6427 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
6428 _ACEOF
6429
6430
6431 if test $ac_cv_sizeof_rlim_t = "4"; then
6432
6433 cat >>confdefs.h <<\_ACEOF
6434 #define RLIM_STRING "%d"
6435 _ACEOF
6436
6437 elif test $ac_cv_sizeof_rlim_t = "8"; then
6438
6439 cat >>confdefs.h <<\_ACEOF
6440 #define RLIM_STRING "%lli"
6441 _ACEOF
6442
6443 else
6444 { { $as_echo "$as_me:$LINENO: error: can not detect the size of your system\'s rlim_t type" >&5
6445 $as_echo "$as_me: error: can not detect the size of your system\'s rlim_t type" >&2;}
6446 { (exit 1); exit 1; }; }
6447 fi
6448
6449 # Check whether --enable-htmldir was given.
6450 if test "${enable_htmldir+set}" = set; then
6451 enableval=$enable_htmldir;
6452 if test "$enableval"; then
6453 HTMLDIR=$enableval
6454 fi
6455
6456 else
6457 HTMLDIR="/var/www/html"
6458 fi
6459
6460 echo "using $HTMLDIR as the WWW Document Root dir"
6461
6462
6463 ac_config_files="$ac_config_files Makefile"
6464
6465 cat >confcache <<\_ACEOF
6466 # This file is a shell script that caches the results of configure
6467 # tests run on this system so they can be shared between configure
6468 # scripts and configure runs, see configure's option --config-cache.
6469 # It is not useful on other systems. If it contains results you don't
6470 # want to keep, you may remove or edit it.
6471 #
6472 # config.status only pays attention to the cache file if you give it
6473 # the --recheck option to rerun configure.
6474 #
6475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6477 # following values.
6478
6479 _ACEOF
6480
6481 # The following way of writing the cache mishandles newlines in values,
6482 # but we know of no workaround that is simple, portable, and efficient.
6483 # So, we kill variables containing newlines.
6484 # Ultrix sh set writes to stderr and can't be redirected directly,
6485 # and sets the high bit in the cache file unless we assign to the vars.
6486 (
6487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6488 eval ac_val=\$$ac_var
6489 case $ac_val in #(
6490 *${as_nl}*)
6491 case $ac_var in #(
6492 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6494 esac
6495 case $ac_var in #(
6496 _ | IFS | as_nl) ;; #(
6497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6498 *) $as_unset $ac_var ;;
6499 esac ;;
6500 esac
6501 done
6502
6503 (set) 2>&1 |
6504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6505 *${as_nl}ac_space=\ *)
6506 # `set' does not quote correctly, so add quotes (double-quote
6507 # substitution turns \\\\ into \\, and sed turns \\ into \).
6508 sed -n \
6509 "s/'/'\\\\''/g;
6510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6511 ;; #(
6512 *)
6513 # `set' quotes correctly as required by POSIX, so do not add quotes.
6514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6515 ;;
6516 esac |
6517 sort
6518 ) |
6519 sed '
6520 /^ac_cv_env_/b end
6521 t clear
6522 :clear
6523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6524 t end
6525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6526 :end' >>confcache
6527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6528 if test -w "$cache_file"; then
6529 test "x$cache_file" != "x/dev/null" &&
6530 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6531 $as_echo "$as_me: updating cache $cache_file" >&6;}
6532 cat confcache >$cache_file
6533 else
6534 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6536 fi
6537 fi
6538 rm -f confcache
6539
6540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6541 # Let make expand exec_prefix.
6542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6543
6544 # Transform confdefs.h into DEFS.
6545 # Protect against shell expansion while executing Makefile rules.
6546 # Protect against Makefile macro expansion.
6547 #
6548 # If the first sed substitution is executed (which looks for macros that
6549 # take arguments), then branch to the quote section. Otherwise,
6550 # look for a macro that doesn't take arguments.
6551 ac_script='
6552 :mline
6553 /\\$/{
6554 N
6555 s,\\\n,,
6556 b mline
6557 }
6558 t clear
6559 :clear
6560 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6561 t quote
6562 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6563 t quote
6564 b any
6565 :quote
6566 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6567 s/\[/\\&/g
6568 s/\]/\\&/g
6569 s/\$/$$/g
6570 H
6571 :any
6572 ${
6573 g
6574 s/^\n//
6575 s/\n/ /g
6576 p
6577 }
6578 '
6579 DEFS=`sed -n "$ac_script" confdefs.h`
6580
6581
6582 ac_libobjs=
6583 ac_ltlibobjs=
6584 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6585 # 1. Remove the extension, and $U if already installed.
6586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6589 # will be set to the directory where LIBOBJS objects are built.
6590 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6591 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6592 done
6593 LIBOBJS=$ac_libobjs
6594
6595 LTLIBOBJS=$ac_ltlibobjs
6596
6597
6598
6599 : ${CONFIG_STATUS=./config.status}
6600 ac_write_fail=0
6601 ac_clean_files_save=$ac_clean_files
6602 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6603 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6604 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6605 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6606 #! $SHELL
6607 # Generated by $as_me.
6608 # Run this file to recreate the current configuration.
6609 # Compiler output produced by configure, useful for debugging
6610 # configure, is in config.log if it exists.
6611
6612 debug=false
6613 ac_cs_recheck=false
6614 ac_cs_silent=false
6615 SHELL=\${CONFIG_SHELL-$SHELL}
6616 _ACEOF
6617
6618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6619 ## --------------------- ##
6620 ## M4sh Initialization. ##
6621 ## --------------------- ##
6622
6623 # Be more Bourne compatible
6624 DUALCASE=1; export DUALCASE # for MKS sh
6625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6626 emulate sh
6627 NULLCMD=:
6628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6629 # is contrary to our usage. Disable this feature.
6630 alias -g '${1+"$@"}'='"$@"'
6631 setopt NO_GLOB_SUBST
6632 else
6633 case `(set -o) 2>/dev/null` in
6634 *posix*) set -o posix ;;
6635 esac
6636
6637 fi
6638
6639
6640
6641
6642 # PATH needs CR
6643 # Avoid depending upon Character Ranges.
6644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6647 as_cr_digits='0123456789'
6648 as_cr_alnum=$as_cr_Letters$as_cr_digits
6649
6650 as_nl='
6651 '
6652 export as_nl
6653 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6654 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6656 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6657 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6658 as_echo='printf %s\n'
6659 as_echo_n='printf %s'
6660 else
6661 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6662 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6663 as_echo_n='/usr/ucb/echo -n'
6664 else
6665 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6666 as_echo_n_body='eval
6667 arg=$1;
6668 case $arg in
6669 *"$as_nl"*)
6670 expr "X$arg" : "X\\(.*\\)$as_nl";
6671 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6672 esac;
6673 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6674 '
6675 export as_echo_n_body
6676 as_echo_n='sh -c $as_echo_n_body as_echo'
6677 fi
6678 export as_echo_body
6679 as_echo='sh -c $as_echo_body as_echo'
6680 fi
6681
6682 # The user is always right.
6683 if test "${PATH_SEPARATOR+set}" != set; then
6684 PATH_SEPARATOR=:
6685 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6686 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6687 PATH_SEPARATOR=';'
6688 }
6689 fi
6690
6691 # Support unset when possible.
6692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6693 as_unset=unset
6694 else
6695 as_unset=false
6696 fi
6697
6698
6699 # IFS
6700 # We need space, tab and new line, in precisely that order. Quoting is
6701 # there to prevent editors from complaining about space-tab.
6702 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6703 # splitting by setting IFS to empty value.)
6704 IFS=" "" $as_nl"
6705
6706 # Find who we are. Look in the path if we contain no directory separator.
6707 case $0 in
6708 *[\\/]* ) as_myself=$0 ;;
6709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6715 done
6716 IFS=$as_save_IFS
6717
6718 ;;
6719 esac
6720 # We did not find ourselves, most probably we were run as `sh COMMAND'
6721 # in which case we are not to be found in the path.
6722 if test "x$as_myself" = x; then
6723 as_myself=$0
6724 fi
6725 if test ! -f "$as_myself"; then
6726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6727 { (exit 1); exit 1; }
6728 fi
6729
6730 # Work around bugs in pre-3.0 UWIN ksh.
6731 for as_var in ENV MAIL MAILPATH
6732 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6733 done
6734 PS1='$ '
6735 PS2='> '
6736 PS4='+ '
6737
6738 # NLS nuisances.
6739 LC_ALL=C
6740 export LC_ALL
6741 LANGUAGE=C
6742 export LANGUAGE
6743
6744 # Required to use basename.
6745 if expr a : '\(a\)' >/dev/null 2>&1 &&
6746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6747 as_expr=expr
6748 else
6749 as_expr=false
6750 fi
6751
6752 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6753 as_basename=basename
6754 else
6755 as_basename=false
6756 fi
6757
6758
6759 # Name of the executable.
6760 as_me=`$as_basename -- "$0" ||
6761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6762 X"$0" : 'X\(//\)$' \| \
6763 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6764 $as_echo X/"$0" |
6765 sed '/^.*\/\([^/][^/]*\)\/*$/{
6766 s//\1/
6767 q
6768 }
6769 /^X\/\(\/\/\)$/{
6770 s//\1/
6771 q
6772 }
6773 /^X\/\(\/\).*/{
6774 s//\1/
6775 q
6776 }
6777 s/.*/./; q'`
6778
6779 # CDPATH.
6780 $as_unset CDPATH
6781
6782
6783
6784 as_lineno_1=$LINENO
6785 as_lineno_2=$LINENO
6786 test "x$as_lineno_1" != "x$as_lineno_2" &&
6787 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6788
6789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6790 # uniformly replaced by the line number. The first 'sed' inserts a
6791 # line-number line after each line using $LINENO; the second 'sed'
6792 # does the real work. The second script uses 'N' to pair each
6793 # line-number line with the line containing $LINENO, and appends
6794 # trailing '-' during substitution so that $LINENO is not a special
6795 # case at line end.
6796 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6797 # scripts with optimization help from Paolo Bonzini. Blame Lee
6798 # E. McMahon (1931-1989) for sed's syntax. :-)
6799 sed -n '
6800 p
6801 /[$]LINENO/=
6802 ' <$as_myself |
6803 sed '
6804 s/[$]LINENO.*/&-/
6805 t lineno
6806 b
6807 :lineno
6808 N
6809 :loop
6810 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6811 t loop
6812 s/-\n.*//
6813 ' >$as_me.lineno &&
6814 chmod +x "$as_me.lineno" ||
6815 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6816 { (exit 1); exit 1; }; }
6817
6818 # Don't try to exec as it changes $[0], causing all sort of problems
6819 # (the dirname of $[0] is not the place where we might find the
6820 # original and so on. Autoconf is especially sensitive to this).
6821 . "./$as_me.lineno"
6822 # Exit status is that of the last command.
6823 exit
6824 }
6825
6826
6827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6828 as_dirname=dirname
6829 else
6830 as_dirname=false
6831 fi
6832
6833 ECHO_C= ECHO_N= ECHO_T=
6834 case `echo -n x` in
6835 -n*)
6836 case `echo 'x\c'` in
6837 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6838 *) ECHO_C='\c';;
6839 esac;;
6840 *)
6841 ECHO_N='-n';;
6842 esac
6843 if expr a : '\(a\)' >/dev/null 2>&1 &&
6844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6845 as_expr=expr
6846 else
6847 as_expr=false
6848 fi
6849
6850 rm -f conf$$ conf$$.exe conf$$.file
6851 if test -d conf$$.dir; then
6852 rm -f conf$$.dir/conf$$.file
6853 else
6854 rm -f conf$$.dir
6855 mkdir conf$$.dir 2>/dev/null
6856 fi
6857 if (echo >conf$$.file) 2>/dev/null; then
6858 if ln -s conf$$.file conf$$ 2>/dev/null; then
6859 as_ln_s='ln -s'
6860 # ... but there are two gotchas:
6861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6863 # In both cases, we have to default to `cp -p'.
6864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6865 as_ln_s='cp -p'
6866 elif ln conf$$.file conf$$ 2>/dev/null; then
6867 as_ln_s=ln
6868 else
6869 as_ln_s='cp -p'
6870 fi
6871 else
6872 as_ln_s='cp -p'
6873 fi
6874 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6875 rmdir conf$$.dir 2>/dev/null
6876
6877 if mkdir -p . 2>/dev/null; then
6878 as_mkdir_p=:
6879 else
6880 test -d ./-p && rmdir ./-p
6881 as_mkdir_p=false
6882 fi
6883
6884 if test -x / >/dev/null 2>&1; then
6885 as_test_x='test -x'
6886 else
6887 if ls -dL / >/dev/null 2>&1; then
6888 as_ls_L_option=L
6889 else
6890 as_ls_L_option=
6891 fi
6892 as_test_x='
6893 eval sh -c '\''
6894 if test -d "$1"; then
6895 test -d "$1/.";
6896 else
6897 case $1 in
6898 -*)set "./$1";;
6899 esac;
6900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6901 ???[sx]*):;;*)false;;esac;fi
6902 '\'' sh
6903 '
6904 fi
6905 as_executable_p=$as_test_x
6906
6907 # Sed expression to map a string onto a valid CPP name.
6908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6909
6910 # Sed expression to map a string onto a valid variable name.
6911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6912
6913
6914 exec 6>&1
6915
6916 # Save the log message, to keep $[0] and so on meaningful, and to
6917 # report actual input values of CONFIG_FILES etc. instead of their
6918 # values after options handling.
6919 ac_log="
6920 This file was extended by sarg $as_me 2.2.5, which was
6921 generated by GNU Autoconf 2.63. Invocation command line was
6922
6923 CONFIG_FILES = $CONFIG_FILES
6924 CONFIG_HEADERS = $CONFIG_HEADERS
6925 CONFIG_LINKS = $CONFIG_LINKS
6926 CONFIG_COMMANDS = $CONFIG_COMMANDS
6927 $ $0 $@
6928
6929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6930 "
6931
6932 _ACEOF
6933
6934 case $ac_config_files in *"
6935 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6936 esac
6937
6938
6939
6940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6941 # Files that config.status was made for.
6942 config_files="$ac_config_files"
6943
6944 _ACEOF
6945
6946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6947 ac_cs_usage="\
6948 \`$as_me' instantiates files from templates according to the
6949 current configuration.
6950
6951 Usage: $0 [OPTION]... [FILE]...
6952
6953 -h, --help print this help, then exit
6954 -V, --version print version number and configuration settings, then exit
6955 -q, --quiet, --silent
6956 do not print progress messages
6957 -d, --debug don't remove temporary files
6958 --recheck update $as_me by reconfiguring in the same conditions
6959 --file=FILE[:TEMPLATE]
6960 instantiate the configuration file FILE
6961
6962 Configuration files:
6963 $config_files
6964
6965 Report bugs to <bug-autoconf@gnu.org>."
6966
6967 _ACEOF
6968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6969 ac_cs_version="\\
6970 sarg config.status 2.2.5
6971 configured by $0, generated by GNU Autoconf 2.63,
6972 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6973
6974 Copyright (C) 2008 Free Software Foundation, Inc.
6975 This config.status script is free software; the Free Software Foundation
6976 gives unlimited permission to copy, distribute and modify it."
6977
6978 ac_pwd='$ac_pwd'
6979 srcdir='$srcdir'
6980 test -n "\$AWK" || AWK=awk
6981 _ACEOF
6982
6983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6984 # The default lists apply if the user does not specify any file.
6985 ac_need_defaults=:
6986 while test $# != 0
6987 do
6988 case $1 in
6989 --*=*)
6990 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6991 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6992 ac_shift=:
6993 ;;
6994 *)
6995 ac_option=$1
6996 ac_optarg=$2
6997 ac_shift=shift
6998 ;;
6999 esac
7000
7001 case $ac_option in
7002 # Handling of the options.
7003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7004 ac_cs_recheck=: ;;
7005 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7006 $as_echo "$ac_cs_version"; exit ;;
7007 --debug | --debu | --deb | --de | --d | -d )
7008 debug=: ;;
7009 --file | --fil | --fi | --f )
7010 $ac_shift
7011 case $ac_optarg in
7012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7013 esac
7014 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7015 ac_need_defaults=false;;
7016 --he | --h | --help | --hel | -h )
7017 $as_echo "$ac_cs_usage"; exit ;;
7018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7020 ac_cs_silent=: ;;
7021
7022 # This is an error.
7023 -*) { $as_echo "$as_me: error: unrecognized option: $1
7024 Try \`$0 --help' for more information." >&2
7025 { (exit 1); exit 1; }; } ;;
7026
7027 *) ac_config_targets="$ac_config_targets $1"
7028 ac_need_defaults=false ;;
7029
7030 esac
7031 shift
7032 done
7033
7034 ac_configure_extra_args=
7035
7036 if $ac_cs_silent; then
7037 exec 6>/dev/null
7038 ac_configure_extra_args="$ac_configure_extra_args --silent"
7039 fi
7040
7041 _ACEOF
7042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7043 if \$ac_cs_recheck; then
7044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7045 shift
7046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7047 CONFIG_SHELL='$SHELL'
7048 export CONFIG_SHELL
7049 exec "\$@"
7050 fi
7051
7052 _ACEOF
7053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7054 exec 5>>config.log
7055 {
7056 echo
7057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7058 ## Running $as_me. ##
7059 _ASBOX
7060 $as_echo "$ac_log"
7061 } >&5
7062
7063 _ACEOF
7064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7065 _ACEOF
7066
7067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7068
7069 # Handling of arguments.
7070 for ac_config_target in $ac_config_targets
7071 do
7072 case $ac_config_target in
7073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7074
7075 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7076 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7077 { (exit 1); exit 1; }; };;
7078 esac
7079 done
7080
7081
7082 # If the user did not use the arguments to specify the items to instantiate,
7083 # then the envvar interface is used. Set only those that are not.
7084 # We use the long form for the default assignment because of an extremely
7085 # bizarre bug on SunOS 4.1.3.
7086 if $ac_need_defaults; then
7087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7088 fi
7089
7090 # Have a temporary directory for convenience. Make it in the build tree
7091 # simply because there is no reason against having it here, and in addition,
7092 # creating and moving files from /tmp can sometimes cause problems.
7093 # Hook for its removal unless debugging.
7094 # Note that there is a small window in which the directory will not be cleaned:
7095 # after its creation but before its name has been assigned to `$tmp'.
7096 $debug ||
7097 {
7098 tmp=
7099 trap 'exit_status=$?
7100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7101 ' 0
7102 trap '{ (exit 1); exit 1; }' 1 2 13 15
7103 }
7104 # Create a (secure) tmp directory for tmp files.
7105
7106 {
7107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7108 test -n "$tmp" && test -d "$tmp"
7109 } ||
7110 {
7111 tmp=./conf$$-$RANDOM
7112 (umask 077 && mkdir "$tmp")
7113 } ||
7114 {
7115 $as_echo "$as_me: cannot create a temporary directory in ." >&2
7116 { (exit 1); exit 1; }
7117 }
7118
7119 # Set up the scripts for CONFIG_FILES section.
7120 # No need to generate them if there are no CONFIG_FILES.
7121 # This happens for instance with `./config.status config.h'.
7122 if test -n "$CONFIG_FILES"; then
7123
7124
7125 ac_cr=' '
7126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7128 ac_cs_awk_cr='\\r'
7129 else
7130 ac_cs_awk_cr=$ac_cr
7131 fi
7132
7133 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7134 _ACEOF
7135
7136
7137 {
7138 echo "cat >conf$$subs.awk <<_ACEOF" &&
7139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7140 echo "_ACEOF"
7141 } >conf$$subs.sh ||
7142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7144 { (exit 1); exit 1; }; }
7145 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7146 ac_delim='%!_!# '
7147 for ac_last_try in false false false false false :; do
7148 . ./conf$$subs.sh ||
7149 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7150 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7151 { (exit 1); exit 1; }; }
7152
7153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7154 if test $ac_delim_n = $ac_delim_num; then
7155 break
7156 elif $ac_last_try; then
7157 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7158 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7159 { (exit 1); exit 1; }; }
7160 else
7161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7162 fi
7163 done
7164 rm -f conf$$subs.sh
7165
7166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7167 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7168 _ACEOF
7169 sed -n '
7170 h
7171 s/^/S["/; s/!.*/"]=/
7172 p
7173 g
7174 s/^[^!]*!//
7175 :repl
7176 t repl
7177 s/'"$ac_delim"'$//
7178 t delim
7179 :nl
7180 h
7181 s/\(.\{148\}\).*/\1/
7182 t more1
7183 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7184 p
7185 n
7186 b repl
7187 :more1
7188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7189 p
7190 g
7191 s/.\{148\}//
7192 t nl
7193 :delim
7194 h
7195 s/\(.\{148\}\).*/\1/
7196 t more2
7197 s/["\\]/\\&/g; s/^/"/; s/$/"/
7198 p
7199 b
7200 :more2
7201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7202 p
7203 g
7204 s/.\{148\}//
7205 t delim
7206 ' <conf$$subs.awk | sed '
7207 /^[^""]/{
7208 N
7209 s/\n//
7210 }
7211 ' >>$CONFIG_STATUS || ac_write_fail=1
7212 rm -f conf$$subs.awk
7213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7214 _ACAWK
7215 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7216 for (key in S) S_is_set[key] = 1
7217 FS = "\a"
7218
7219 }
7220 {
7221 line = $ 0
7222 nfields = split(line, field, "@")
7223 substed = 0
7224 len = length(field[1])
7225 for (i = 2; i < nfields; i++) {
7226 key = field[i]
7227 keylen = length(key)
7228 if (S_is_set[key]) {
7229 value = S[key]
7230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7231 len += length(value) + length(field[++i])
7232 substed = 1
7233 } else
7234 len += 1 + keylen
7235 }
7236
7237 print line
7238 }
7239
7240 _ACAWK
7241 _ACEOF
7242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7243 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7245 else
7246 cat
7247 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7248 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7249 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7250 { (exit 1); exit 1; }; }
7251 _ACEOF
7252
7253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7255 # trailing colons and then remove the whole line if VPATH becomes empty
7256 # (actually we leave an empty line to preserve line numbers).
7257 if test "x$srcdir" = x.; then
7258 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7259 s/:*\$(srcdir):*/:/
7260 s/:*\${srcdir}:*/:/
7261 s/:*@srcdir@:*/:/
7262 s/^\([^=]*=[ ]*\):*/\1/
7263 s/:*$//
7264 s/^[^=]*=[ ]*$//
7265 }'
7266 fi
7267
7268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7269 fi # test -n "$CONFIG_FILES"
7270
7271
7272 eval set X " :F $CONFIG_FILES "
7273 shift
7274 for ac_tag
7275 do
7276 case $ac_tag in
7277 :[FHLC]) ac_mode=$ac_tag; continue;;
7278 esac
7279 case $ac_mode$ac_tag in
7280 :[FHL]*:*);;
7281 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7282 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7283 { (exit 1); exit 1; }; };;
7284 :[FH]-) ac_tag=-:-;;
7285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7286 esac
7287 ac_save_IFS=$IFS
7288 IFS=:
7289 set x $ac_tag
7290 IFS=$ac_save_IFS
7291 shift
7292 ac_file=$1
7293 shift
7294
7295 case $ac_mode in
7296 :L) ac_source=$1;;
7297 :[FH])
7298 ac_file_inputs=
7299 for ac_f
7300 do
7301 case $ac_f in
7302 -) ac_f="$tmp/stdin";;
7303 *) # Look for the file first in the build tree, then in the source tree
7304 # (if the path is not absolute). The absolute path cannot be DOS-style,
7305 # because $ac_f cannot contain `:'.
7306 test -f "$ac_f" ||
7307 case $ac_f in
7308 [\\/$]*) false;;
7309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7310 esac ||
7311 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7312 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7313 { (exit 1); exit 1; }; };;
7314 esac
7315 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7316 ac_file_inputs="$ac_file_inputs '$ac_f'"
7317 done
7318
7319 # Let's still pretend it is `configure' which instantiates (i.e., don't
7320 # use $as_me), people would be surprised to read:
7321 # /* config.h. Generated by config.status. */
7322 configure_input='Generated from '`
7323 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7324 `' by configure.'
7325 if test x"$ac_file" != x-; then
7326 configure_input="$ac_file. $configure_input"
7327 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7328 $as_echo "$as_me: creating $ac_file" >&6;}
7329 fi
7330 # Neutralize special characters interpreted by sed in replacement strings.
7331 case $configure_input in #(
7332 *\&* | *\|* | *\\* )
7333 ac_sed_conf_input=`$as_echo "$configure_input" |
7334 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7335 *) ac_sed_conf_input=$configure_input;;
7336 esac
7337
7338 case $ac_tag in
7339 *:-:* | *:-) cat >"$tmp/stdin" \
7340 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7341 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7342 { (exit 1); exit 1; }; } ;;
7343 esac
7344 ;;
7345 esac
7346
7347 ac_dir=`$as_dirname -- "$ac_file" ||
7348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7349 X"$ac_file" : 'X\(//\)[^/]' \| \
7350 X"$ac_file" : 'X\(//\)$' \| \
7351 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7352 $as_echo X"$ac_file" |
7353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7354 s//\1/
7355 q
7356 }
7357 /^X\(\/\/\)[^/].*/{
7358 s//\1/
7359 q
7360 }
7361 /^X\(\/\/\)$/{
7362 s//\1/
7363 q
7364 }
7365 /^X\(\/\).*/{
7366 s//\1/
7367 q
7368 }
7369 s/.*/./; q'`
7370 { as_dir="$ac_dir"
7371 case $as_dir in #(
7372 -*) as_dir=./$as_dir;;
7373 esac
7374 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7375 as_dirs=
7376 while :; do
7377 case $as_dir in #(
7378 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7379 *) as_qdir=$as_dir;;
7380 esac
7381 as_dirs="'$as_qdir' $as_dirs"
7382 as_dir=`$as_dirname -- "$as_dir" ||
7383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7384 X"$as_dir" : 'X\(//\)[^/]' \| \
7385 X"$as_dir" : 'X\(//\)$' \| \
7386 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7387 $as_echo X"$as_dir" |
7388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7389 s//\1/
7390 q
7391 }
7392 /^X\(\/\/\)[^/].*/{
7393 s//\1/
7394 q
7395 }
7396 /^X\(\/\/\)$/{
7397 s//\1/
7398 q
7399 }
7400 /^X\(\/\).*/{
7401 s//\1/
7402 q
7403 }
7404 s/.*/./; q'`
7405 test -d "$as_dir" && break
7406 done
7407 test -z "$as_dirs" || eval "mkdir $as_dirs"
7408 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7409 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7410 { (exit 1); exit 1; }; }; }
7411 ac_builddir=.
7412
7413 case "$ac_dir" in
7414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7415 *)
7416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7417 # A ".." for each directory in $ac_dir_suffix.
7418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7419 case $ac_top_builddir_sub in
7420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7422 esac ;;
7423 esac
7424 ac_abs_top_builddir=$ac_pwd
7425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7426 # for backward compatibility:
7427 ac_top_builddir=$ac_top_build_prefix
7428
7429 case $srcdir in
7430 .) # We are building in place.
7431 ac_srcdir=.
7432 ac_top_srcdir=$ac_top_builddir_sub
7433 ac_abs_top_srcdir=$ac_pwd ;;
7434 [\\/]* | ?:[\\/]* ) # Absolute name.
7435 ac_srcdir=$srcdir$ac_dir_suffix;
7436 ac_top_srcdir=$srcdir
7437 ac_abs_top_srcdir=$srcdir ;;
7438 *) # Relative name.
7439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7440 ac_top_srcdir=$ac_top_build_prefix$srcdir
7441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7442 esac
7443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7444
7445
7446 case $ac_mode in
7447 :F)
7448 #
7449 # CONFIG_FILE
7450 #
7451
7452 _ACEOF
7453
7454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7455 # If the template does not know about datarootdir, expand it.
7456 # FIXME: This hack should be removed a few years after 2.60.
7457 ac_datarootdir_hack=; ac_datarootdir_seen=
7458
7459 ac_sed_dataroot='
7460 /datarootdir/ {
7461 p
7462 q
7463 }
7464 /@datadir@/p
7465 /@docdir@/p
7466 /@infodir@/p
7467 /@localedir@/p
7468 /@mandir@/p
7469 '
7470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7471 *datarootdir*) ac_datarootdir_seen=yes;;
7472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7473 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7475 _ACEOF
7476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7477 ac_datarootdir_hack='
7478 s&@datadir@&$datadir&g
7479 s&@docdir@&$docdir&g
7480 s&@infodir@&$infodir&g
7481 s&@localedir@&$localedir&g
7482 s&@mandir@&$mandir&g
7483 s&\\\${datarootdir}&$datarootdir&g' ;;
7484 esac
7485 _ACEOF
7486
7487 # Neutralize VPATH when `$srcdir' = `.'.
7488 # Shell code in configure.ac might set extrasub.
7489 # FIXME: do we really want to maintain this feature?
7490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7491 ac_sed_extra="$ac_vpsub
7492 $extrasub
7493 _ACEOF
7494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7495 :t
7496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7497 s|@configure_input@|$ac_sed_conf_input|;t t
7498 s&@top_builddir@&$ac_top_builddir_sub&;t t
7499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7500 s&@srcdir@&$ac_srcdir&;t t
7501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7502 s&@top_srcdir@&$ac_top_srcdir&;t t
7503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7504 s&@builddir@&$ac_builddir&;t t
7505 s&@abs_builddir@&$ac_abs_builddir&;t t
7506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7507 $ac_datarootdir_hack
7508 "
7509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7510 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7511 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7512 { (exit 1); exit 1; }; }
7513
7514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7517 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7518 which seems to be undefined. Please make sure it is defined." >&5
7519 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7520 which seems to be undefined. Please make sure it is defined." >&2;}
7521
7522 rm -f "$tmp/stdin"
7523 case $ac_file in
7524 -) cat "$tmp/out" && rm -f "$tmp/out";;
7525 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7526 esac \
7527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7529 { (exit 1); exit 1; }; }
7530 ;;
7531
7532
7533
7534 esac
7535
7536 done # for ac_tag
7537
7538
7539 { (exit 0); exit 0; }
7540 _ACEOF
7541 chmod +x $CONFIG_STATUS
7542 ac_clean_files=$ac_clean_files_save
7543
7544 test $ac_write_fail = 0 ||
7545 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7546 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7547 { (exit 1); exit 1; }; }
7548
7549
7550 # configure is writing to config.log, and then calls config.status.
7551 # config.status does its own redirection, appending to config.log.
7552 # Unfortunately, on DOS this fails, as config.log is still kept open
7553 # by configure, so config.status won't be able to write to it; its
7554 # output is simply discarded. So we exec the FD to /dev/null,
7555 # effectively closing config.log, so it can be properly (re)opened and
7556 # appended to by config.status. When coming back to configure, we
7557 # need to make the FD available again.
7558 if test "$no_create" != yes; then
7559 ac_cs_success=:
7560 ac_config_status_args=
7561 test "$silent" = yes &&
7562 ac_config_status_args="$ac_config_status_args --quiet"
7563 exec 5>/dev/null
7564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7565 exec 5>>config.log
7566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7567 # would make configure fail if this is the last instruction.
7568 $ac_cs_success || { (exit 1); exit 1; }
7569 fi
7570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7571 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7573 fi
7574