Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61-MirPorts-3 for joe 3.1jupp41.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='joe'
574 PACKAGE_TARNAME='joe'
575 PACKAGE_VERSION='3.1jupp41'
576 PACKAGE_STRING='joe 3.1jupp41'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="b.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 INSTALL_PROGRAM
666 INSTALL_SCRIPT
667 INSTALL_DATA
668 CYGPATH_W
669 PACKAGE
670 VERSION
671 ACLOCAL
672 AUTOCONF
673 AUTOMAKE
674 AUTOHEADER
675 MAKEINFO
676 install_sh
677 STRIP
678 INSTALL_STRIP_PROGRAM
679 mkdir_p
680 AWK
681 SET_MAKE
682 am__leading_dot
683 AMTAR
684 am__tar
685 am__untar
686 MAINTAINER_MODE_TRUE
687 MAINTAINER_MODE_FALSE
688 MAINT
689 CC
690 CFLAGS
691 LDFLAGS
692 CPPFLAGS
693 ac_ct_CC
694 EXEEXT
695 OBJEXT
696 DEPDIR
697 am__include
698 am__quote
699 AMDEP_TRUE
700 AMDEP_FALSE
701 AMDEPBACKSLASH
702 CCDEPMODE
703 am__fastdepCC_TRUE
704 am__fastdepCC_FALSE
705 CPP
706 GREP
707 EGREP
708 LN_S
709 WANT_TERMIDX_TRUE
710 WANT_TERMIDX_FALSE
711 sysconfjoesubdir
712 joeinitfile
713 joeinitcopy
714 joeresides
715 jrcbefore
716 jrcafter
717 LIBOBJS
718 SPELL
719 LTLIBOBJS'
720 ac_subst_files=''
721 ac_precious_vars='build_alias
722 host_alias
723 target_alias
724 CC
725 CFLAGS
726 LDFLAGS
727 LIBS
728 CPPFLAGS
729 CPP'
730
731
732 # Initialize some variables set by options.
733 ac_init_help=
734 ac_init_version=false
735 # The variables have the same names as the options, with
736 # dashes changed to underlines.
737 cache_file=/dev/null
738 exec_prefix=NONE
739 no_create=
740 no_recursion=
741 prefix=NONE
742 program_prefix=NONE
743 program_suffix=NONE
744 program_transform_name=s,x,x,
745 silent=
746 site=
747 srcdir=
748 verbose=
749 x_includes=NONE
750 x_libraries=NONE
751
752 # Installation directory options.
753 # These are left unexpanded so users can "make install exec_prefix=/foo"
754 # and all the variables that are supposed to be based on exec_prefix
755 # by default will actually change.
756 # Use braces instead of parens because sh, perl, etc. also accept them.
757 # (The list follows the same order as the GNU Coding Standards.)
758 bindir='${exec_prefix}/bin'
759 sbindir='${exec_prefix}/sbin'
760 libexecdir='${exec_prefix}/libexec'
761 datarootdir='${prefix}/share'
762 datadir='${datarootdir}'
763 sysconfdir='${prefix}/etc'
764 sharedstatedir='${prefix}/com'
765 localstatedir='${prefix}/var'
766 includedir='${prefix}/include'
767 oldincludedir='/usr/include'
768 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
769 infodir='${datarootdir}/info'
770 htmldir='${docdir}'
771 dvidir='${docdir}'
772 pdfdir='${docdir}'
773 psdir='${docdir}'
774 libdir='${exec_prefix}/lib'
775 localedir='${datarootdir}/locale'
776 mandir='${datarootdir}/man'
777
778 ac_prev=
779 ac_dashdash=
780 for ac_option
781 do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
784 eval $ac_prev=\$ac_option
785 ac_prev=
786 continue
787 fi
788
789 case $ac_option in
790 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839 eval enable_$ac_feature=no ;;
840
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
845
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
850
851 -enable-* | --enable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=\$ac_optarg ;;
859
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
868
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
871 with_gas=yes ;;
872
873 -help | --help | --hel | --he | -h)
874 ac_init_help=long ;;
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
879
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
884
885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 ac_prev=htmldir ;;
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 | --ht=*)
889 htmldir=$ac_optarg ;;
890
891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
897
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 ac_prev=infodir ;;
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
902
903 -libdir | --libdir | --libdi | --libd)
904 ac_prev=libdir ;;
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 libdir=$ac_optarg ;;
907
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
914
915 -localedir | --localedir | --localedi | --localed | --locale)
916 ac_prev=localedir ;;
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
919
920 -localstatedir | --localstatedir | --localstatedi | --localstated \
921 | --localstate | --localstat | --localsta | --localst | --locals)
922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925 localstatedir=$ac_optarg ;;
926
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 ac_prev=mandir ;;
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 mandir=$ac_optarg ;;
931
932 -nfp | --nfp | --nf)
933 # Obsolete; use --without-fp.
934 with_fp=no ;;
935
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
938 no_create=yes ;;
939
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 no_recursion=yes ;;
943
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
952
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 ac_prev=prefix ;;
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 prefix=$ac_optarg ;;
957
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
964
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
971
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
988
989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 ac_prev=pdfdir ;;
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 pdfdir=$ac_optarg ;;
993
994 -psdir | --psdir | --psdi | --psd | --ps)
995 ac_prev=psdir ;;
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 psdir=$ac_optarg ;;
998
999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1001 silent=yes ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
1049 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid package name: $ac_package" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1055 eval with_$ac_package=\$ac_optarg ;;
1056
1057 -without-* | --without-*)
1058 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=no ;;
1065
1066 --x)
1067 # Obsolete; use --with-x.
1068 with_x=yes ;;
1069
1070 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071 | --x-incl | --x-inc | --x-in | --x-i)
1072 ac_prev=x_includes ;;
1073 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075 x_includes=$ac_optarg ;;
1076
1077 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079 ac_prev=x_libraries ;;
1080 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082 x_libraries=$ac_optarg ;;
1083
1084 -*) { echo "$as_me: error: unrecognized option: $ac_option
1085 Try \`$0 --help' for more information." >&2
1086 { (exit 1); exit 1; }; }
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1094 { (exit 1); exit 1; }; }
1095 eval $ac_envvar=\$ac_optarg
1096 export $ac_envvar ;;
1097
1098 *)
1099 # FIXME: should be removed in autoconf 3.0.
1100 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 ;;
1105
1106 esac
1107 done
1108
1109 if test -n "$ac_prev"; then
1110 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111 { echo "$as_me: error: missing argument to $ac_option" >&2
1112 { (exit 1); exit 1; }; }
1113 fi
1114
1115 # Be sure to have absolute directory names.
1116 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1117 datadir sysconfdir sharedstatedir localstatedir includedir \
1118 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1119 libdir localedir mandir
1120 do
1121 eval ac_val=\$$ac_var
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1127 { (exit 1); exit 1; }; }
1128 done
1129
1130 # There might be people who depend on the old broken behavior: `$host'
1131 # used to hold the argument of --host etc.
1132 # FIXME: To remove some day.
1133 build=$build_alias
1134 host=$host_alias
1135 target=$target_alias
1136
1137 # FIXME: To remove some day.
1138 if test "x$host_alias" != x; then
1139 if test "x$build_alias" = x; then
1140 cross_compiling=maybe
1141 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1142 If a cross compiler is detected then cross compile mode will be used." >&2
1143 elif test "x$build_alias" != "x$host_alias"; then
1144 cross_compiling=yes
1145 fi
1146 fi
1147
1148 ac_tool_prefix=
1149 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150
1151 test "$silent" = yes && exec 6>/dev/null
1152
1153
1154 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1155 ac_ls_di=`ls -di .` &&
1156 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1157 { echo "$as_me: error: Working directory cannot be determined" >&2
1158 { (exit 1); exit 1; }; }
1159 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1160 { echo "$as_me: error: pwd does not report name of working directory" >&2
1161 { (exit 1); exit 1; }; }
1162
1163
1164 # Find the source files, if location was not specified.
1165 if test -z "$srcdir"; then
1166 ac_srcdir_defaulted=yes
1167 # Try the directory containing this script, then the parent directory.
1168 ac_confdir=`$as_dirname -- "$0" ||
1169 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1170 X"$0" : 'X\(//\)[^/]' \| \
1171 X"$0" : 'X\(//\)$' \| \
1172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 echo X"$0" |
1174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1175 s//\1/
1176 q
1177 }
1178 /^X\(\/\/\)[^/].*/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\/\)$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\).*/{
1187 s//\1/
1188 q
1189 }
1190 s/.*/./; q'`
1191 srcdir=$ac_confdir
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 srcdir=..
1194 fi
1195 else
1196 ac_srcdir_defaulted=no
1197 fi
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1200 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1201 { (exit 1); exit 1; }; }
1202 fi
1203 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 ac_abs_confdir=`(
1205 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1206 { (exit 1); exit 1; }; }
1207 pwd)`
1208 # When building in place, set srcdir=.
1209 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1211 fi
1212 # Remove unnecessary trailing slashes from srcdir.
1213 # Double slashes in file names in object file debugging info
1214 # mess up M-x gdb in Emacs.
1215 case $srcdir in
1216 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 esac
1218 for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 done
1224
1225 #
1226 # Report the --help message.
1227 #
1228 if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232 \`configure' configures joe 3.1jupp41 to adapt to many kinds of systems.
1233
1234 Usage: $0 [OPTION]... [VAR=VALUE]...
1235
1236 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237 VAR=VALUE. See below for descriptions of some of the useful variables.
1238
1239 Defaults for the options are specified in brackets.
1240
1241 Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251
1252 Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
1254 [$ac_default_prefix]
1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 [PREFIX]
1257
1258 By default, \`make install' will install all the files in
1259 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261 for instance \`--prefix=\$HOME'.
1262
1263 For better control, use the options below.
1264
1265 Fine tuning of the installation directories:
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/joe]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
1285 _ACEOF
1286
1287 cat <<\_ACEOF
1288
1289 Program names:
1290 --program-prefix=PREFIX prepend PREFIX to installed program names
1291 --program-suffix=SUFFIX append SUFFIX to installed program names
1292 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1293
1294 System types:
1295 --build=BUILD configure for building on BUILD [guessed]
1296 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1297 --target=TARGET configure for building compilers for TARGET [HOST]
1298 _ACEOF
1299 fi
1300
1301 if test -n "$ac_init_help"; then
1302 case $ac_init_help in
1303 short | recursive ) echo "Configuration of joe 3.1jupp41:";;
1304 esac
1305 cat <<\_ACEOF
1306
1307 Optional Features:
1308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1310 --enable-maintainer-mode enable make rules and dependencies not useful
1311 (and sometimes confusing) to the casual installer
1312 --disable-dependency-tracking speeds up one-time build
1313 --enable-dependency-tracking do not reject slow dependency extractors
1314 --disable-curses disable use of curses library
1315 --disable-termcap disable use of termcap library
1316 --disable-terminfo disable use of terminfo functions
1317 --disable-selinux disable SELinux context copying
1318 --disable-search-libs do not search in any external libraries
1319 --disable-getpwnam disable use of getpwnam function
1320 --disable-termidx do not build the termidx binary
1321 --enable-sysconfjoesubdir=/joe (default value)
1322 --enable-win32reloc enable win32 self-relocation
1323 --disable-largefile omit support for large files
1324 --disable-fork disable use of fork
1325 --disable-fpu disable use of floating point arithmetics
1326 --enable-small reduce memory footprint by a few KiB
1327
1328 Some influential environment variables:
1329 CC C compiler command
1330 CFLAGS C compiler flags
1331 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1332 nonstandard directory <lib dir>
1333 LIBS libraries to pass to the linker, e.g. -l<library>
1334 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335 you have headers in a nonstandard directory <include dir>
1336 CPP C preprocessor
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" || continue
1349 ac_builddir=.
1350
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *)
1354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1366
1367 case $srcdir in
1368 .) # We are building in place.
1369 ac_srcdir=.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 joe configure 3.1jupp41
1402 generated by GNU Autoconf 2.61-MirPorts-3
1403
1404 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1405 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406 This configure script is free software; the Free Software Foundation
1407 gives unlimited permission to copy, distribute and modify it.
1408 _ACEOF
1409 exit
1410 fi
1411 cat >config.log <<_ACEOF
1412 This file contains any messages produced by compilers while
1413 running configure, to aid debugging if configure makes a mistake.
1414
1415 It was created by joe $as_me 3.1jupp41, which was
1416 generated by GNU Autoconf 2.61-MirPorts-3. Invocation command line was
1417
1418 $ $0 $@
1419
1420 _ACEOF
1421 exec 5>>config.log
1422 {
1423 cat <<_ASUNAME
1424 ## --------- ##
1425 ## Platform. ##
1426 ## --------- ##
1427
1428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433
1434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1436
1437 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1438 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1441 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1442 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1443 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1444
1445 _ASUNAME
1446
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 echo "PATH: $as_dir"
1453 done
1454 IFS=$as_save_IFS
1455
1456 } >&5
1457
1458 cat >&5 <<_ACEOF
1459
1460
1461 ## ----------- ##
1462 ## Core tests. ##
1463 ## ----------- ##
1464
1465 _ACEOF
1466
1467
1468 # Keep a trace of the command line.
1469 # Strip out --no-create and --no-recursion so they do not pile up.
1470 # Strip out --silent because we don't want to record it for future runs.
1471 # Also quote any args containing shell meta-characters.
1472 # Make two passes to allow for proper duplicate-argument suppression.
1473 ac_configure_args=
1474 ac_configure_args0=
1475 ac_configure_args1=
1476 ac_must_keep_next=false
1477 for ac_pass in 1 2
1478 do
1479 for ac_arg
1480 do
1481 case $ac_arg in
1482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484 | -silent | --silent | --silen | --sile | --sil)
1485 continue ;;
1486 *\'*)
1487 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 esac
1489 case $ac_pass in
1490 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491 2)
1492 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493 if test $ac_must_keep_next = true; then
1494 ac_must_keep_next=false # Got value, back to normal.
1495 else
1496 case $ac_arg in
1497 *=* | --config-cache | -C | -disable-* | --disable-* \
1498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500 | -with-* | --with-* | -without-* | --without-* | --x)
1501 case "$ac_configure_args0 " in
1502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 esac
1504 ;;
1505 -* ) ac_must_keep_next=true ;;
1506 esac
1507 fi
1508 ac_configure_args="$ac_configure_args '$ac_arg'"
1509 ;;
1510 esac
1511 done
1512 done
1513 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515
1516 # When interrupted or exit'd, cleanup temporary files, and complete
1517 # config.log. We remove comments because anyway the quotes in there
1518 # would cause problems or look ugly.
1519 # WARNING: Use '\'' to represent an apostrophe within the trap.
1520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521 trap 'exit_status=$?
1522 # Save into config.log some information that might help in debugging.
1523 {
1524 echo
1525
1526 cat <<\_ASBOX
1527 ## ---------------- ##
1528 ## Cache variables. ##
1529 ## ---------------- ##
1530 _ASBOX
1531 echo
1532 # The following way of writing the cache mishandles newlines in values,
1533 (
1534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535 eval ac_val=\$$ac_var
1536 case $ac_val in #(
1537 *${as_nl}*)
1538 case $ac_var in #(
1539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 esac
1542 case $ac_var in #(
1543 _ | IFS | as_nl) ;; #(
1544 *) $as_unset $ac_var ;;
1545 esac ;;
1546 esac
1547 done
1548 (set) 2>&1 |
1549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550 *${as_nl}ac_space=\ *)
1551 sed -n \
1552 "s/'\''/'\''\\\\'\'''\''/g;
1553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 ;; #(
1555 *)
1556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557 ;;
1558 esac |
1559 sort
1560 )
1561 echo
1562
1563 cat <<\_ASBOX
1564 ## ----------------- ##
1565 ## Output variables. ##
1566 ## ----------------- ##
1567 _ASBOX
1568 echo
1569 for ac_var in $ac_subst_vars
1570 do
1571 eval ac_val=\$$ac_var
1572 case $ac_val in
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 esac
1575 echo "$ac_var='\''$ac_val'\''"
1576 done | sort
1577 echo
1578
1579 if test -n "$ac_subst_files"; then
1580 cat <<\_ASBOX
1581 ## ------------------- ##
1582 ## File substitutions. ##
1583 ## ------------------- ##
1584 _ASBOX
1585 echo
1586 for ac_var in $ac_subst_files
1587 do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in
1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591 esac
1592 echo "$ac_var='\''$ac_val'\''"
1593 done | sort
1594 echo
1595 fi
1596
1597 if test -s confdefs.h; then
1598 cat <<\_ASBOX
1599 ## ----------- ##
1600 ## confdefs.h. ##
1601 ## ----------- ##
1602 _ASBOX
1603 echo
1604 cat confdefs.h
1605 echo
1606 fi
1607 test "$ac_signal" != 0 &&
1608 echo "$as_me: caught signal $ac_signal"
1609 echo "$as_me: exit $exit_status"
1610 } >&5
1611 rm -f core *.core core.conftest.* &&
1612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 exit $exit_status
1614 ' 0
1615 for ac_signal in 1 2 13 15; do
1616 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1617 done
1618 ac_signal=0
1619
1620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1621 rm -f -r conftest* confdefs.h
1622
1623 # Predefined preprocessor variables.
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_NAME "$PACKAGE_NAME"
1627 _ACEOF
1628
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1632 _ACEOF
1633
1634
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1637 _ACEOF
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_STRING "$PACKAGE_STRING"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1647 _ACEOF
1648
1649
1650 # Let the site file select an alternate cache file if it wants to.
1651 # Prefer explicitly selected file to automatically selected ones.
1652 if test -n "$CONFIG_SITE"; then
1653 set x "$CONFIG_SITE"
1654 elif test "x$prefix" != xNONE; then
1655 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656 else
1657 set x "$ac_default_prefix/share/config.site" \
1658 "$ac_default_prefix/etc/config.site"
1659 fi
1660 shift
1661 for ac_site_file
1662 do
1663 if test -r "$ac_site_file"; then
1664 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665 echo "$as_me: loading site script $ac_site_file" >&6;}
1666 sed 's/^/| /' "$ac_site_file" >&5
1667 . "$ac_site_file"
1668 fi
1669 done
1670
1671 if test -r "$cache_file"; then
1672 # Some versions of bash will fail to source /dev/null (special
1673 # files actually), so we avoid doing that.
1674 if test -f "$cache_file"; then
1675 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676 echo "$as_me: loading cache $cache_file" >&6;}
1677 case $cache_file in
1678 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679 *) . "./$cache_file";;
1680 esac
1681 fi
1682 else
1683 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684 echo "$as_me: creating cache $cache_file" >&6;}
1685 >$cache_file
1686 fi
1687
1688 # Check that the precious variables saved in the cache have kept the same
1689 # value.
1690 ac_cache_corrupted=false
1691 for ac_var in $ac_precious_vars; do
1692 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693 eval ac_new_set=\$ac_env_${ac_var}_set
1694 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695 eval ac_new_val=\$ac_env_${ac_var}_value
1696 case $ac_old_set,$ac_new_set in
1697 set,)
1698 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700 ac_cache_corrupted=: ;;
1701 ,set)
1702 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704 ac_cache_corrupted=: ;;
1705 ,);;
1706 *)
1707 if test "x$ac_old_val" != "x$ac_new_val"; then
1708 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1711 echo "$as_me: former value: $ac_old_val" >&2;}
1712 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1713 echo "$as_me: current value: $ac_new_val" >&2;}
1714 ac_cache_corrupted=:
1715 fi;;
1716 esac
1717 # Pass precious variables to config.status.
1718 if test "$ac_new_set" = set; then
1719 case $ac_new_val in
1720 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 *) ac_arg=$ac_var=$ac_new_val ;;
1722 esac
1723 case " $ac_configure_args " in
1724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1725 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1726 esac
1727 fi
1728 done
1729 if $ac_cache_corrupted; then
1730 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734 { (exit 1); exit 1; }; }
1735 fi
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761 ac_ext=c
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766
1767
1768 #### But see main.c for the Copyright (c) owner and year! ####
1769
1770
1771 ac_aux_dir=
1772 for ac_dir in $GNUSYSTEM_AUX_DIR "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1773 if test -f "$ac_dir/install-sh"; then
1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/install-sh -c"
1776 break
1777 elif test -f "$ac_dir/install.sh"; then
1778 ac_aux_dir=$ac_dir
1779 ac_install_sh="$ac_aux_dir/install.sh -c"
1780 break
1781 elif test -f "$ac_dir/shtool"; then
1782 ac_aux_dir=$ac_dir
1783 ac_install_sh="$ac_aux_dir/shtool install -c"
1784 break
1785 fi
1786 done
1787 if test -z "$ac_aux_dir"; then
1788 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1789 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1790 { (exit 1); exit 1; }; }
1791 fi
1792
1793 # These three variables are undocumented and unsupported,
1794 # and are intended to be withdrawn in a future Autoconf release.
1795 # They can cause serious problems if a builder's source tree is in a directory
1796 # whose full name contains unusual characters.
1797 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1798 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1799 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800
1801
1802 # Make sure we can run config.sub.
1803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1804 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1805 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1806 { (exit 1); exit 1; }; }
1807
1808 { echo "$as_me:$LINENO: checking build system type" >&5
1809 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1810 if test "${ac_cv_build+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 ac_build_alias=$build_alias
1814 test "x$ac_build_alias" = x &&
1815 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1816 test "x$ac_build_alias" = x &&
1817 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1818 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1819 { (exit 1); exit 1; }; }
1820 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1821 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1822 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1823 { (exit 1); exit 1; }; }
1824
1825 fi
1826 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1827 echo "${ECHO_T}$ac_cv_build" >&6; }
1828 case $ac_cv_build in
1829 *-*-*) ;;
1830 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1831 echo "$as_me: error: invalid value of canonical build" >&2;}
1832 { (exit 1); exit 1; }; };;
1833 esac
1834 build=$ac_cv_build
1835 ac_save_IFS=$IFS; IFS='-'
1836 set x $ac_cv_build
1837 shift
1838 build_cpu=$1
1839 build_vendor=$2
1840 shift; shift
1841 # Remember, the first character of IFS is used to create $*,
1842 # except with old shells:
1843 build_os=$*
1844 IFS=$ac_save_IFS
1845 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846
1847
1848 { echo "$as_me:$LINENO: checking host system type" >&5
1849 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1850 if test "${ac_cv_host+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test "x$host_alias" = x; then
1854 ac_cv_host=$ac_cv_build
1855 else
1856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1859 { (exit 1); exit 1; }; }
1860 fi
1861
1862 fi
1863 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1864 echo "${ECHO_T}$ac_cv_host" >&6; }
1865 case $ac_cv_host in
1866 *-*-*) ;;
1867 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1868 echo "$as_me: error: invalid value of canonical host" >&2;}
1869 { (exit 1); exit 1; }; };;
1870 esac
1871 host=$ac_cv_host
1872 ac_save_IFS=$IFS; IFS='-'
1873 set x $ac_cv_host
1874 shift
1875 host_cpu=$1
1876 host_vendor=$2
1877 shift; shift
1878 # Remember, the first character of IFS is used to create $*,
1879 # except with old shells:
1880 host_os=$*
1881 IFS=$ac_save_IFS
1882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883
1884
1885 { echo "$as_me:$LINENO: checking target system type" >&5
1886 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1887 if test "${ac_cv_target+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test "x$target_alias" = x; then
1891 ac_cv_target=$ac_cv_host
1892 else
1893 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1894 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1895 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1896 { (exit 1); exit 1; }; }
1897 fi
1898
1899 fi
1900 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1901 echo "${ECHO_T}$ac_cv_target" >&6; }
1902 case $ac_cv_target in
1903 *-*-*) ;;
1904 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1905 echo "$as_me: error: invalid value of canonical target" >&2;}
1906 { (exit 1); exit 1; }; };;
1907 esac
1908 target=$ac_cv_target
1909 ac_save_IFS=$IFS; IFS='-'
1910 set x $ac_cv_target
1911 shift
1912 target_cpu=$1
1913 target_vendor=$2
1914 shift; shift
1915 # Remember, the first character of IFS is used to create $*,
1916 # except with old shells:
1917 target_os=$*
1918 IFS=$ac_save_IFS
1919 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1920
1921
1922 # The aliases save the names the user supplied, while $host etc.
1923 # will get canonicalized.
1924 test -n "$target_alias" &&
1925 test "$program_prefix$program_suffix$program_transform_name" = \
1926 NONENONEs,x,x, &&
1927 program_prefix=${target_alias}-
1928
1929 # Init automake
1930 am__api_version="1.9"
1931 # Find a good install program. We prefer a C program (faster),
1932 # so one script is as good as another. But avoid the broken or
1933 # incompatible versions:
1934 # SysV /etc/install, /usr/sbin/install
1935 # SunOS /usr/etc/install
1936 # IRIX /sbin/install
1937 # AIX /bin/install
1938 # AmigaOS /C/install, which installs bootblocks on floppy discs
1939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1942 # OS/2's system install, which has a completely different semantic
1943 # ./install, which can be erroneously created by make from ./install.sh.
1944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1946 if test -z "$INSTALL"; then
1947 if test "${ac_cv_path_install+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 # Account for people who put trailing slashes in PATH elements.
1956 case $as_dir/ in
1957 ./ | .// | /cC/* | \
1958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1960 /usr/ucb/* ) ;;
1961 *)
1962 # OSF1 and SCO ODT 3.0 have their own names for install.
1963 # Don't use installbsd from OSF since it installs stuff as root
1964 # by default.
1965 for ac_prog in ginstall scoinst install; do
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1968 if test $ac_prog = install &&
1969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1970 # AIX install. It has an incompatible calling convention.
1971 :
1972 elif test $ac_prog = install &&
1973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1974 # program-specific install script used by HP pwplus--don't use.
1975 :
1976 else
1977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1978 break 3
1979 fi
1980 fi
1981 done
1982 done
1983 ;;
1984 esac
1985 done
1986 IFS=$as_save_IFS
1987
1988
1989 fi
1990 if test "${ac_cv_path_install+set}" = set; then
1991 INSTALL=$ac_cv_path_install
1992 else
1993 # As a last resort, use the slow shell script. Don't cache a
1994 # value for INSTALL within a source directory, because that will
1995 # break other packages using the cache if that directory is
1996 # removed, or if the value is a relative name.
1997 INSTALL="$SHELL $ac_install_sh"
1998 fi
1999 fi
2000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2001 echo "${ECHO_T}$INSTALL" >&6; }
2002
2003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2004 # It thinks the first close brace ends the variable substitution.
2005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2006
2007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2008
2009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2010
2011 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2012 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2013 # Just in case
2014 sleep 1
2015 echo timestamp > conftest.file
2016 # Do `set' in a subshell so we don't clobber the current shell's
2017 # arguments. Must try -L first in case configure is actually a
2018 # symlink; some systems play weird games with the mod time of symlinks
2019 # (eg FreeBSD returns the mod time of the symlink's containing
2020 # directory).
2021 if (
2022 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2023 if test "$*" = "X"; then
2024 # -L didn't work.
2025 set X `ls -t $srcdir/configure conftest.file`
2026 fi
2027 rm -f conftest.file
2028 if test "$*" != "X $srcdir/configure conftest.file" \
2029 && test "$*" != "X conftest.file $srcdir/configure"; then
2030
2031 # If neither matched, then we have a broken ls. This can happen
2032 # if, for instance, CONFIG_SHELL is bash and it inherits a
2033 # broken ls alias from the environment. This has actually
2034 # happened. Such a system could not be considered "sane".
2035 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2036 alias in your environment" >&5
2037 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2038 alias in your environment" >&2;}
2039 { (exit 1); exit 1; }; }
2040 fi
2041
2042 test "$2" = conftest.file
2043 )
2044 then
2045 # Ok.
2046 :
2047 else
2048 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2049 Check your system clock" >&5
2050 echo "$as_me: error: newly created file is older than distributed files!
2051 Check your system clock" >&2;}
2052 { (exit 1); exit 1; }; }
2053 fi
2054 { echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6; }
2056 test "$program_prefix" != NONE &&
2057 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2058 # Use a double $ so make ignores it.
2059 test "$program_suffix" != NONE &&
2060 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2061 # Double any \ or $. echo might interpret backslashes.
2062 # By default was `s,x,x', remove it if useless.
2063 cat <<\_ACEOF >conftest.sed
2064 s/[\\$]/&&/g;s/;s,x,x,$//
2065 _ACEOF
2066 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2067 rm -f conftest.sed
2068
2069 # expand $ac_aux_dir to an absolute path
2070 am_aux_dir=`cd $ac_aux_dir && pwd`
2071
2072 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2073 # Use eval to expand $SHELL
2074 if eval "$MISSING --run true"; then
2075 am_missing_run="$MISSING --run "
2076 else
2077 am_missing_run=
2078 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2079 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2080 fi
2081
2082 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2083 # We used to keeping the `.' as first argument, in order to
2084 # allow $(mkdir_p) to be used without argument. As in
2085 # $(mkdir_p) $(somedir)
2086 # where $(somedir) is conditionally defined. However this is wrong
2087 # for two reasons:
2088 # 1. if the package is installed by a user who cannot write `.'
2089 # make install will fail,
2090 # 2. the above comment should most certainly read
2091 # $(mkdir_p) $(DESTDIR)$(somedir)
2092 # so it does not work when $(somedir) is undefined and
2093 # $(DESTDIR) is not.
2094 # To support the latter case, we have to write
2095 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2096 # so the `.' trick is pointless.
2097 mkdir_p='mkdir -p --'
2098 else
2099 # On NextStep and OpenStep, the `mkdir' command does not
2100 # recognize any option. It will interpret all options as
2101 # directories to create, and then abort because `.' already
2102 # exists.
2103 for d in ./-p ./--version;
2104 do
2105 test -d $d && rmdir $d
2106 done
2107 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2108 if test -f "$ac_aux_dir/mkinstalldirs"; then
2109 mkdir_p='$(mkinstalldirs)'
2110 else
2111 mkdir_p='$(install_sh) -d'
2112 fi
2113 fi
2114
2115 for ac_prog in gawk mawk nawk awk
2116 do
2117 # Extract the first word of "$ac_prog", so it can be a program name with args.
2118 set dummy $ac_prog; ac_word=$2
2119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2121 if test "${ac_cv_prog_AWK+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 if test -n "$AWK"; then
2125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 ac_cv_prog_AWK="$ac_prog"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138 done
2139 done
2140 IFS=$as_save_IFS
2141
2142 fi
2143 fi
2144 AWK=$ac_cv_prog_AWK
2145 if test -n "$AWK"; then
2146 { echo "$as_me:$LINENO: result: $AWK" >&5
2147 echo "${ECHO_T}$AWK" >&6; }
2148 else
2149 { echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6; }
2151 fi
2152
2153
2154 test -n "$AWK" && break
2155 done
2156
2157 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2158 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2159 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2160 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 cat >conftest.make <<\_ACEOF
2164 SHELL = /bin/sh
2165 all:
2166 @echo '@@@%%%=$(MAKE)=@@@%%%'
2167 _ACEOF
2168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2169 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2170 *@@@%%%=?*=@@@%%%*)
2171 eval ac_cv_prog_make_${ac_make}_set=yes;;
2172 *)
2173 eval ac_cv_prog_make_${ac_make}_set=no;;
2174 esac
2175 rm -f conftest.make
2176 fi
2177 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2178 { echo "$as_me:$LINENO: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6; }
2180 SET_MAKE=
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 SET_MAKE="MAKE=${MAKE-make}"
2185 fi
2186
2187 rm -rf .tst 2>/dev/null
2188 mkdir .tst 2>/dev/null
2189 if test -d .tst; then
2190 am__leading_dot=.
2191 else
2192 am__leading_dot=_
2193 fi
2194 rmdir .tst 2>/dev/null
2195
2196 # test to see if srcdir already configured
2197 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2198 test -f $srcdir/config.status; then
2199 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2200 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2201 { (exit 1); exit 1; }; }
2202 fi
2203
2204 # test whether we have cygpath
2205 if test -z "$CYGPATH_W"; then
2206 if (cygpath --version) >/dev/null 2>/dev/null; then
2207 CYGPATH_W='cygpath -w'
2208 else
2209 CYGPATH_W=echo
2210 fi
2211 fi
2212
2213
2214 # Define the identity of the package.
2215 PACKAGE='joe'
2216 VERSION='3.1jupp41'
2217
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE "$PACKAGE"
2221 _ACEOF
2222
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define VERSION "$VERSION"
2226 _ACEOF
2227
2228 # Some tools Automake needs.
2229
2230 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2231
2232
2233 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2234
2235
2236 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2237
2238
2239 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2240
2241
2242 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2243
2244 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2245
2246 # Installed binaries are usually stripped using `strip' when the user
2247 # run `make install-strip'. However `strip' might not be the right
2248 # tool to use in cross-compilation environments, therefore Automake
2249 # will honor the `STRIP' environment variable to overrule this program.
2250 if test "$cross_compiling" != no; then
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}strip; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_prog_STRIP+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$STRIP"; then
2260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2272 fi
2273 done
2274 done
2275 IFS=$as_save_IFS
2276
2277 fi
2278 fi
2279 STRIP=$ac_cv_prog_STRIP
2280 if test -n "$STRIP"; then
2281 { echo "$as_me:$LINENO: result: $STRIP" >&5
2282 echo "${ECHO_T}$STRIP" >&6; }
2283 else
2284 { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2286 fi
2287
2288
2289 fi
2290 if test -z "$ac_cv_prog_STRIP"; then
2291 ac_ct_STRIP=$STRIP
2292 # Extract the first word of "strip", so it can be a program name with args.
2293 set dummy strip; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$ac_ct_STRIP"; then
2300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_ac_ct_STRIP="strip"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318 fi
2319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2320 if test -n "$ac_ct_STRIP"; then
2321 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2322 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2323 else
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328 if test "x$ac_ct_STRIP" = x; then
2329 STRIP=":"
2330 else
2331 case $cross_compiling:$ac_tool_warned in
2332 yes:)
2333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2334 whose name does not start with the host triplet. If you think this
2335 configuration is useful to you, please write to [email protected]." >&5
2336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2337 whose name does not start with the host triplet. If you think this
2338 configuration is useful to you, please write to [email protected]." >&2;}
2339 ac_tool_warned=yes ;;
2340 esac
2341 STRIP=$ac_ct_STRIP
2342 fi
2343 else
2344 STRIP="$ac_cv_prog_STRIP"
2345 fi
2346
2347 fi
2348 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2349
2350 # We need awk for the "check" target. The system "awk" is bad on
2351 # some platforms.
2352 # Always define AMTAR for backward compatibility.
2353
2354 AMTAR=${AMTAR-"${am_missing_run}tar"}
2355
2356 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2357
2358
2359
2360
2361
2362 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2363 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2364 # Check whether --enable-maintainer-mode was given.
2365 if test "${enable_maintainer_mode+set}" = set; then
2366 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2367 else
2368 USE_MAINTAINER_MODE=no
2369 fi
2370
2371 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2372 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2373
2374
2375 if test $USE_MAINTAINER_MODE = yes; then
2376 MAINTAINER_MODE_TRUE=
2377 MAINTAINER_MODE_FALSE='#'
2378 else
2379 MAINTAINER_MODE_TRUE='#'
2380 MAINTAINER_MODE_FALSE=
2381 fi
2382
2383 MAINT=$MAINTAINER_MODE_TRUE
2384
2385
2386 ac_config_headers="$ac_config_headers autoconf.h"
2387
2388
2389 # Checks for programs.
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425 { echo "$as_me:$LINENO: result: $CC" >&5
2426 echo "${ECHO_T}$CC" >&6; }
2427 else
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432
2433 fi
2434 if test -z "$ac_cv_prog_CC"; then
2435 ac_ct_CC=$CC
2436 # Extract the first word of "gcc", so it can be a program name with args.
2437 set dummy gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$ac_ct_CC"; then
2444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_ac_ct_CC="gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2464 if test -n "$ac_ct_CC"; then
2465 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2466 echo "${ECHO_T}$ac_ct_CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472 if test "x$ac_ct_CC" = x; then
2473 CC=""
2474 else
2475 case $cross_compiling:$ac_tool_warned in
2476 yes:)
2477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to [email protected]." >&5
2480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet. If you think this
2482 configuration is useful to you, please write to [email protected]." >&2;}
2483 ac_tool_warned=yes ;;
2484 esac
2485 CC=$ac_ct_CC
2486 fi
2487 else
2488 CC="$ac_cv_prog_CC"
2489 fi
2490
2491 if test -z "$CC"; then
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_CC="${ac_tool_prefix}cc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519 fi
2520 CC=$ac_cv_prog_CC
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2524 else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2527 fi
2528
2529
2530 fi
2531 fi
2532 if test -z "$CC"; then
2533 # Extract the first word of "cc", so it can be a program name with args.
2534 set dummy cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 ac_prog_rejected=no
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2552 ac_prog_rejected=yes
2553 continue
2554 fi
2555 ac_cv_prog_CC="cc"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 if test $ac_prog_rejected = yes; then
2564 # We found a bogon in the path, so make sure we never use it.
2565 set dummy $ac_cv_prog_CC
2566 shift
2567 if test $# != 0; then
2568 # We chose a different compiler from the bogus one.
2569 # However, it has the same basename, so the bogon will be chosen
2570 # first if we set CC to just the basename; use the full file name.
2571 shift
2572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 fi
2574 fi
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2581 else
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587 fi
2588 if test -z "$CC"; then
2589 if test -n "$ac_tool_prefix"; then
2590 for ac_prog in cl.exe
2591 do
2592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621 { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629 test -n "$CC" && break
2630 done
2631 fi
2632 if test -z "$CC"; then
2633 ac_ct_CC=$CC
2634 for ac_prog in cl.exe
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_ac_ct_CC="$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664 if test -n "$ac_ct_CC"; then
2665 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2666 echo "${ECHO_T}$ac_ct_CC" >&6; }
2667 else
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 fi
2671
2672
2673 test -n "$ac_ct_CC" && break
2674 done
2675
2676 if test "x$ac_ct_CC" = x; then
2677 CC=""
2678 else
2679 case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to [email protected]." >&5
2684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to [email protected]." >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689 CC=$ac_ct_CC
2690 fi
2691 fi
2692
2693 fi
2694
2695
2696 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2701
2702 # Provide some information about the compiler.
2703 echo "$as_me:$LINENO: checking for C compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (ac_try="$ac_compiler --version >&5"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler --version >&5") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (ac_try="$ac_compiler -v >&5"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler -v >&5") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2725 { (ac_try="$ac_compiler -V >&5"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compiler -V >&5") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }
2735
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742
2743 int
2744 main ()
2745 {
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 ac_clean_files_save=$ac_clean_files
2752 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2753 # Try to create an executable without -o first, disregard a.out.
2754 # It will help us diagnose broken compilers, and finding out an intuition
2755 # of exeext.
2756 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2757 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2758 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2759 #
2760 # List of possible output files, starting from the most likely.
2761 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2762 # only as a last resort. b.out is created by i960 compilers.
2763 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2764 #
2765 # The IRIX 6 linker writes into existing files which may not be
2766 # executable, retaining their permissions. Remove them first so a
2767 # subsequent execution test works.
2768 ac_rmfiles=
2769 for ac_file in $ac_files
2770 do
2771 case $ac_file in
2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2773 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 esac
2775 done
2776 rm -f $ac_rmfiles
2777
2778 if { (ac_try="$ac_link_default"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_link_default") 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; then
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2791 # so that the user can short-circuit this test for compilers unknown to
2792 # Autoconf.
2793 for ac_file in $ac_files ''
2794 do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2798 ;;
2799 [ab].out )
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
2803 *.* )
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
2813 break;;
2814 * )
2815 break;;
2816 esac
2817 done
2818 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
2820 else
2821 ac_file=''
2822 fi
2823
2824 { echo "$as_me:$LINENO: result: $ac_file" >&5
2825 echo "${ECHO_T}$ac_file" >&6; }
2826 if test -z "$ac_file"; then
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&2;}
2834 { (exit 77); exit 77; }; }
2835 fi
2836
2837 ac_exeext=$ac_cv_exeext
2838
2839 # Check that the compiler produces executables we can run. If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2844 # If not cross compiling, check that we can run a simple program.
2845 if test "$cross_compiling" != yes; then
2846 if { ac_try='./$ac_file'
2847 { (case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_try") 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 cross_compiling=no
2857 else
2858 if test "$cross_compiling" = maybe; then
2859 cross_compiling=yes
2860 else
2861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2869 fi
2870 fi
2871 { echo "$as_me:$LINENO: result: yes" >&5
2872 echo "${ECHO_T}yes" >&6; }
2873
2874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2875 ac_clean_files=$ac_clean_files_save
2876 # Check that the compiler produces executables we can run. If not, either
2877 # the compiler is broken, or we cross compile.
2878 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2880 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2881 echo "${ECHO_T}$cross_compiling" >&6; }
2882
2883 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2885 if { (ac_try="$ac_link"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_link") 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2897 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 # `rm'.
2899 for ac_file in conftest.exe conftest conftest.*; do
2900 test -f "$ac_file" || continue
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 break;;
2905 * ) break;;
2906 esac
2907 done
2908 else
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2914 fi
2915
2916 rm -f conftest$ac_cv_exeext
2917 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2918 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2919
2920 rm -f conftest.$ac_ext
2921 EXEEXT=$ac_cv_exeext
2922 ac_exeext=$EXEEXT
2923 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2924 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2925 if test "${ac_cv_objext+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934
2935 int
2936 main ()
2937 {
2938
2939 ;
2940 return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.o conftest.obj
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; then
2954 for ac_file in conftest.o conftest.obj conftest.*; do
2955 test -f "$ac_file" || continue;
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2958 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2959 break;;
2960 esac
2961 done
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&5
2968 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details." >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974 fi
2975 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2976 echo "${ECHO_T}$ac_cv_objext" >&6; }
2977 OBJEXT=$ac_cv_objext
2978 ac_objext=$OBJEXT
2979 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2980 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2981 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990
2991 int
2992 main ()
2993 {
2994 #ifndef __GNUC__
2995 choke me
2996 #endif
2997
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_compiler_gnu=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 ac_compiler_gnu=no
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3029
3030 fi
3031 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3033 GCC=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CFLAGS=${CFLAGS+set}
3035 ac_save_CFLAGS=$CFLAGS
3036 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3037 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_cc_g+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 ac_save_c_werror_flag=$ac_c_werror_flag
3042 ac_c_werror_flag=yes
3043 ac_cv_prog_cc_g=no
3044 CFLAGS="-g"
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051
3052 int
3053 main ()
3054 {
3055
3056 ;
3057 return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } && {
3074 test -z "$ac_c_werror_flag" ||
3075 test ! -s conftest.err
3076 } && test -s conftest.$ac_objext; then
3077 ac_cv_prog_cc_g=yes
3078 else
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 CFLAGS=""
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3115 :
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3121 CFLAGS="-g"
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3154 ac_cv_prog_cc_g=yes
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 fi
3171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3173 if test "$ac_test_CFLAGS" = set; then
3174 CFLAGS=$ac_save_CFLAGS
3175 elif test $ac_cv_prog_cc_g = yes; then
3176 if test "$GCC" = yes; then
3177 CFLAGS="-g -O2"
3178 else
3179 CFLAGS="-g"
3180 fi
3181 else
3182 if test "$GCC" = yes; then
3183 CFLAGS="-O2"
3184 else
3185 CFLAGS=
3186 fi
3187 fi
3188 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3189 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3190 if test "${ac_cv_prog_cc_c89+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 ac_cv_prog_cc_c89=no
3194 ac_save_CC=$CC
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201 #include <stdarg.h>
3202 #include <stdio.h>
3203 #include <sys/types.h>
3204 #include <sys/stat.h>
3205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3206 struct buf { int x; };
3207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3208 static char *e (p, i)
3209 char **p;
3210 int i;
3211 {
3212 return p[i];
3213 }
3214 static char *f (char * (*g) (char **, int), char **p, ...)
3215 {
3216 char *s;
3217 va_list v;
3218 va_start (v,p);
3219 s = g (p, va_arg (v,int));
3220 va_end (v);
3221 return s;
3222 }
3223
3224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3225 function prototypes and stuff, but not '\xHH' hex character constants.
3226 These don't provoke an error unfortunately, instead are silently treated
3227 as 'x'. The following induces an error, until -std is added to get
3228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3229 array size at least. It's necessary to write '\x00'==0 to get something
3230 that's true only with -std. */
3231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3232
3233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3234 inside strings and character constants. */
3235 #define FOO(x) 'x'
3236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3237
3238 int test (int i, double x);
3239 struct s1 {int (*f) (int a);};
3240 struct s2 {int (*f) (double a);};
3241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242 int argc;
3243 char **argv;
3244 int
3245 main ()
3246 {
3247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3254 do
3255 CC="$ac_save_CC $ac_arg"
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3273 ac_cv_prog_cc_c89=$ac_arg
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278
3279 fi
3280
3281 rm -f core conftest.err conftest.$ac_objext
3282 test "x$ac_cv_prog_cc_c89" != "xno" && break
3283 done
3284 rm -f conftest.$ac_ext
3285 CC=$ac_save_CC
3286
3287 fi
3288 # AC_CACHE_VAL
3289 case "x$ac_cv_prog_cc_c89" in
3290 x)
3291 { echo "$as_me:$LINENO: result: none needed" >&5
3292 echo "${ECHO_T}none needed" >&6; } ;;
3293 xno)
3294 { echo "$as_me:$LINENO: result: unsupported" >&5
3295 echo "${ECHO_T}unsupported" >&6; } ;;
3296 *)
3297 CC="$CC $ac_cv_prog_cc_c89"
3298 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3299 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3300 esac
3301
3302
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 DEPDIR="${am__leading_dot}deps"
3309
3310 ac_config_commands="$ac_config_commands depfiles"
3311
3312
3313 am_make=${MAKE-make}
3314 cat > confinc << 'END'
3315 am__doit:
3316 @echo done
3317 .PHONY: am__doit
3318 END
3319 # If we don't find an include directive, just comment out the code.
3320 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3321 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3322 am__include="#"
3323 am__quote=
3324 _am_result=none
3325 # First try GNU make style include.
3326 echo "include confinc" > confmf
3327 # We grep out `Entering directory' and `Leaving directory'
3328 # messages which can occur if `w' ends up in MAKEFLAGS.
3329 # In particular we don't look at `^make:' because GNU make might
3330 # be invoked under some other name (usually "gmake"), in which
3331 # case it prints its new name instead of `make'.
3332 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3333 am__include=include
3334 am__quote=
3335 _am_result=GNU
3336 fi
3337 # Now try BSD make style include.
3338 if test "$am__include" = "#"; then
3339 echo '.include "confinc"' > confmf
3340 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3341 am__include=.include
3342 am__quote="\""
3343 _am_result=BSD
3344 fi
3345 fi
3346
3347
3348 { echo "$as_me:$LINENO: result: $_am_result" >&5
3349 echo "${ECHO_T}$_am_result" >&6; }
3350 rm -f confinc confmf
3351
3352 # Check whether --enable-dependency-tracking was given.
3353 if test "${enable_dependency_tracking+set}" = set; then
3354 enableval=$enable_dependency_tracking;
3355 fi
3356
3357 if test "x$enable_dependency_tracking" != xno; then
3358 am_depcomp="$ac_aux_dir/depcomp"
3359 AMDEPBACKSLASH='\'
3360 fi
3361
3362
3363 if test "x$enable_dependency_tracking" != xno; then
3364 AMDEP_TRUE=
3365 AMDEP_FALSE='#'
3366 else
3367 AMDEP_TRUE='#'
3368 AMDEP_FALSE=
3369 fi
3370
3371
3372
3373
3374 depcc="$CC" am_compiler_list=
3375
3376 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3382 # We make a subdir and do the tests there. Otherwise we can end up
3383 # making bogus files that we don't know about and never remove. For
3384 # instance it was reported that on HP-UX the gcc test will end up
3385 # making a dummy file named `D' -- because `-MD' means `put the output
3386 # in D'.
3387 mkdir conftest.dir
3388 # Copy depcomp to subdir because otherwise we won't find it if we're
3389 # using a relative directory.
3390 cp "$am_depcomp" conftest.dir
3391 cd conftest.dir
3392 # We will build objects and dependencies in a subdirectory because
3393 # it helps to detect inapplicable dependency modes. For instance
3394 # both Tru64's cc and ICC support -MD to output dependencies as a
3395 # side effect of compilation, but ICC will put the dependencies in
3396 # the current directory while Tru64 will put them in the object
3397 # directory.
3398 mkdir sub
3399
3400 am_cv_CC_dependencies_compiler_type=none
3401 if test "$am_compiler_list" = ""; then
3402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3403 fi
3404 for depmode in $am_compiler_list; do
3405 # Setup a source with many dependencies, because some compilers
3406 # like to wrap large dependency lists on column 80 (with \), and
3407 # we should not choose a depcomp mode which is confused by this.
3408 #
3409 # We need to recreate these files for each test, as the compiler may
3410 # overwrite some of them when testing with obscure command lines.
3411 # This happens at least with the AIX C compiler.
3412 : > sub/conftest.c
3413 for i in 1 2 3 4 5 6; do
3414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3415 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3416 # Solaris 8's {/usr,}/bin/sh.
3417 touch sub/conftst$i.h
3418 done
3419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3420
3421 case $depmode in
3422 nosideeffect)
3423 # after this tag, mechanisms are not by side-effect, so they'll
3424 # only be used when explicitly requested
3425 if test "x$enable_dependency_tracking" = xyes; then
3426 continue
3427 else
3428 break
3429 fi
3430 ;;
3431 none) break ;;
3432 esac
3433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3434 # mode. It turns out that the SunPro C++ compiler does not properly
3435 # handle `-M -o', and we need to detect this.
3436 if depmode=$depmode \
3437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3440 >/dev/null 2>conftest.err &&
3441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3442 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3444 # icc doesn't choke on unknown options, it will just issue warnings
3445 # or remarks (even with -Werror). So we grep stderr for any message
3446 # that says an option was ignored or not supported.
3447 # When given -MP, icc 7.0 and 7.1 complain thusly:
3448 # icc: Command line warning: ignoring option '-M'; no argument required
3449 # The diagnosis changed in icc 8.0:
3450 # icc: Command line remark: option '-MP' not supported
3451 if (grep 'ignoring option' conftest.err ||
3452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3453 am_cv_CC_dependencies_compiler_type=$depmode
3454 break
3455 fi
3456 fi
3457 done
3458
3459 cd ..
3460 rm -rf conftest.dir
3461 else
3462 am_cv_CC_dependencies_compiler_type=none
3463 fi
3464
3465 fi
3466 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3469
3470
3471
3472 if
3473 test "x$enable_dependency_tracking" != xno \
3474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3475 am__fastdepCC_TRUE=
3476 am__fastdepCC_FALSE='#'
3477 else
3478 am__fastdepCC_TRUE='#'
3479 am__fastdepCC_FALSE=
3480 fi
3481
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3489 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3490 # On Suns, sometimes $CPP names a directory.
3491 if test -n "$CPP" && test -d "$CPP"; then
3492 CPP=
3493 fi
3494 if test -z "$CPP"; then
3495 if test "${ac_cv_prog_CPP+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 # Double quotes because CPP needs to be expanded
3499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3500 do
3501 ac_preproc_ok=false
3502 for ac_c_preproc_warn_flag in '' yes
3503 do
3504 # Use a header file that comes with gcc, so configuring glibc
3505 # with a fresh cross-compiler works.
3506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 # <limits.h> exists even on freestanding compilers.
3508 # On the NeXT, cc -E runs the code through the compiler's parser,
3509 # not just through cpp. "Syntax error" is here to catch this case.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #ifdef __STDC__
3517 # include <limits.h>
3518 #else
3519 # include <assert.h>
3520 #endif
3521 Syntax error
3522 _ACEOF
3523 if { (ac_try="$ac_cpp conftest.$ac_ext"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null && {
3536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3537 test ! -s conftest.err
3538 }; then
3539 :
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 # Broken: fails on valid input.
3545 continue
3546 fi
3547
3548 rm -f conftest.err conftest.$ac_ext
3549
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <ac_nonexistent.h>
3559 _ACEOF
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null && {
3573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 }; then
3576 # Broken: success on invalid input.
3577 continue
3578 else
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 # Passes both tests.
3583 ac_preproc_ok=:
3584 break
3585 fi
3586
3587 rm -f conftest.err conftest.$ac_ext
3588
3589 done
3590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3591 rm -f conftest.err conftest.$ac_ext
3592 if $ac_preproc_ok; then
3593 break
3594 fi
3595
3596 done
3597 ac_cv_prog_CPP=$CPP
3598
3599 fi
3600 CPP=$ac_cv_prog_CPP
3601 else
3602 ac_cv_prog_CPP=$CPP
3603 fi
3604 { echo "$as_me:$LINENO: result: $CPP" >&5
3605 echo "${ECHO_T}$CPP" >&6; }
3606 ac_preproc_ok=false
3607 for ac_c_preproc_warn_flag in '' yes
3608 do
3609 # Use a header file that comes with gcc, so configuring glibc
3610 # with a fresh cross-compiler works.
3611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3612 # <limits.h> exists even on freestanding compilers.
3613 # On the NeXT, cc -E runs the code through the compiler's parser,
3614 # not just through cpp. "Syntax error" is here to catch this case.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #ifdef __STDC__
3622 # include <limits.h>
3623 #else
3624 # include <assert.h>
3625 #endif
3626 Syntax error
3627 _ACEOF
3628 if { (ac_try="$ac_cpp conftest.$ac_ext"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } >/dev/null && {
3641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 }; then
3644 :
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 # Broken: fails on valid input.
3650 continue
3651 fi
3652
3653 rm -f conftest.err conftest.$ac_ext
3654
3655 # OK, works on sane cases. Now check whether nonexistent headers
3656 # can be detected and how.
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <ac_nonexistent.h>
3664 _ACEOF
3665 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 }; then
3681 # Broken: success on invalid input.
3682 continue
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 # Passes both tests.
3688 ac_preproc_ok=:
3689 break
3690 fi
3691
3692 rm -f conftest.err conftest.$ac_ext
3693
3694 done
3695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696 rm -f conftest.err conftest.$ac_ext
3697 if $ac_preproc_ok; then
3698 :
3699 else
3700 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3701 See \`config.log' for more details." >&5
3702 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3703 See \`config.log' for more details." >&2;}
3704 { (exit 1); exit 1; }; }
3705 fi
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3714 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_GREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 # Extract the first word of "grep ggrep" to use in msg output
3719 if test -z "$GREP"; then
3720 set dummy grep ggrep; ac_prog_name=$2
3721 if test "${ac_cv_path_GREP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 ac_path_GREP_found=false
3725 # Loop through the user's path and test for each of PROGNAME-LIST
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3728 do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in grep ggrep; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3734 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3735 # Check for GNU ac_path_GREP and select it if it is found.
3736 # Check for GNU $ac_path_GREP
3737 case `"$ac_path_GREP" --version 2>&1` in
3738 *GNU*)
3739 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3740 *)
3741 ac_count=0
3742 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3743 while :
3744 do
3745 cat "conftest.in" "conftest.in" >"conftest.tmp"
3746 mv "conftest.tmp" "conftest.in"
3747 cp "conftest.in" "conftest.nl"
3748 echo 'GREP' >> "conftest.nl"
3749 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3751 ac_count=`expr $ac_count + 1`
3752 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3753 # Best one so far, save it but keep looking for a better one
3754 ac_cv_path_GREP="$ac_path_GREP"
3755 ac_path_GREP_max=$ac_count
3756 fi
3757 # 10*(2^10) chars as input seems more than enough
3758 test $ac_count -gt 10 && break
3759 done
3760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3761 esac
3762
3763
3764 $ac_path_GREP_found && break 3
3765 done
3766 done
3767
3768 done
3769 IFS=$as_save_IFS
3770
3771
3772 fi
3773
3774 GREP="$ac_cv_path_GREP"
3775 if test -z "$GREP"; then
3776 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3777 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3778 { (exit 1); exit 1; }; }
3779 fi
3780
3781 else
3782 ac_cv_path_GREP=$GREP
3783 fi
3784
3785
3786 fi
3787 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3788 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3789 GREP="$ac_cv_path_GREP"
3790
3791
3792 { echo "$as_me:$LINENO: checking for egrep" >&5
3793 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3794 if test "${ac_cv_path_EGREP+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3798 then ac_cv_path_EGREP="$GREP -E"
3799 else
3800 # Extract the first word of "egrep" to use in msg output
3801 if test -z "$EGREP"; then
3802 set dummy egrep; ac_prog_name=$2
3803 if test "${ac_cv_path_EGREP+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 ac_path_EGREP_found=false
3807 # Loop through the user's path and test for each of PROGNAME-LIST
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_prog in egrep; do
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3816 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3817 # Check for GNU ac_path_EGREP and select it if it is found.
3818 # Check for GNU $ac_path_EGREP
3819 case `"$ac_path_EGREP" --version 2>&1` in
3820 *GNU*)
3821 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3822 *)
3823 ac_count=0
3824 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3825 while :
3826 do
3827 cat "conftest.in" "conftest.in" >"conftest.tmp"
3828 mv "conftest.tmp" "conftest.in"
3829 cp "conftest.in" "conftest.nl"
3830 echo 'EGREP' >> "conftest.nl"
3831 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3833 ac_count=`expr $ac_count + 1`
3834 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3835 # Best one so far, save it but keep looking for a better one
3836 ac_cv_path_EGREP="$ac_path_EGREP"
3837 ac_path_EGREP_max=$ac_count
3838 fi
3839 # 10*(2^10) chars as input seems more than enough
3840 test $ac_count -gt 10 && break
3841 done
3842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843 esac
3844
3845
3846 $ac_path_EGREP_found && break 3
3847 done
3848 done
3849
3850 done
3851 IFS=$as_save_IFS
3852
3853
3854 fi
3855
3856 EGREP="$ac_cv_path_EGREP"
3857 if test -z "$EGREP"; then
3858 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3859 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3860 { (exit 1); exit 1; }; }
3861 fi
3862
3863 else
3864 ac_cv_path_EGREP=$EGREP
3865 fi
3866
3867
3868 fi
3869 fi
3870 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3871 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3872 EGREP="$ac_cv_path_EGREP"
3873
3874
3875 # Find a good install program. We prefer a C program (faster),
3876 # so one script is as good as another. But avoid the broken or
3877 # incompatible versions:
3878 # SysV /etc/install, /usr/sbin/install
3879 # SunOS /usr/etc/install
3880 # IRIX /sbin/install
3881 # AIX /bin/install
3882 # AmigaOS /C/install, which installs bootblocks on floppy discs
3883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3886 # OS/2's system install, which has a completely different semantic
3887 # ./install, which can be erroneously created by make from ./install.sh.
3888 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3889 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3890 if test -z "$INSTALL"; then
3891 if test "${ac_cv_path_install+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 # Account for people who put trailing slashes in PATH elements.
3900 case $as_dir/ in
3901 ./ | .// | /cC/* | \
3902 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3903 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3904 /usr/ucb/* ) ;;
3905 *)
3906 # OSF1 and SCO ODT 3.0 have their own names for install.
3907 # Don't use installbsd from OSF since it installs stuff as root
3908 # by default.
3909 for ac_prog in ginstall scoinst install; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3912 if test $ac_prog = install &&
3913 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3914 # AIX install. It has an incompatible calling convention.
3915 :
3916 elif test $ac_prog = install &&
3917 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918 # program-specific install script used by HP pwplus--don't use.
3919 :
3920 else
3921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3922 break 3
3923 fi
3924 fi
3925 done
3926 done
3927 ;;
3928 esac
3929 done
3930 IFS=$as_save_IFS
3931
3932
3933 fi
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL=$ac_cv_path_install
3936 else
3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for INSTALL within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 INSTALL="$SHELL $ac_install_sh"
3942 fi
3943 fi
3944 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3945 echo "${ECHO_T}$INSTALL" >&6; }
3946
3947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948 # It thinks the first close brace ends the variable substitution.
3949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3950
3951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3952
3953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3954
3955 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3957 LN_S=$as_ln_s
3958 if test "$LN_S" = "ln -s"; then
3959 { echo "$as_me:$LINENO: result: yes" >&5
3960 echo "${ECHO_T}yes" >&6; }
3961 else
3962 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3963 echo "${ECHO_T}no, using $LN_S" >&6; }
3964 fi
3965
3966
3967 case $host in
3968 *-*-minix*)
3969 CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_POSIX_1_SOURCE=2 -D_MINIX"
3970 ;;
3971 *-gnu*)
3972 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3973 ;;
3974 esac
3975
3976 case $host in
3977 *-*-mirbsd* | *-*-openbsd*)
3978
3979 cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_GCC_ATTRIBUTE_BOUNDED 1
3981 _ACEOF
3982
3983 ;;
3984 esac
3985
3986
3987 # Checks for libraries.
3988
3989 search_libs_selinux="selinux"
3990 search_libs_snprintf="snprintf db"
3991 search_libs_term=""
3992 search_libs_util="util"
3993
3994 # Check whether --enable-curses was given.
3995 if test "${enable_curses+set}" = set; then
3996 enableval=$enable_curses; curses=$enableval
3997 else
3998 curses=yes
3999 fi
4000
4001 test x"$curses" = x"yes" && \
4002 search_libs_term="$search_libs_term tinfo ncursesw ncurses curses"
4003
4004 # Check whether --enable-termcap was given.
4005 if test "${enable_termcap+set}" = set; then
4006 enableval=$enable_termcap; termcap=$enableval
4007 else
4008 termcap=yes
4009 fi
4010
4011 test x"$termcap" = x"yes" && \
4012 search_libs_term="$search_libs_term termcap"
4013
4014 # Check whether --enable-terminfo was given.
4015 if test "${enable_terminfo+set}" = set; then
4016 enableval=$enable_terminfo; terminfo=$enableval
4017 else
4018 terminfo=yes
4019 fi
4020
4021
4022 # Check whether --enable-selinux was given.
4023 if test "${enable_selinux+set}" = set; then
4024 enableval=$enable_selinux; selinux=$enableval
4025 else
4026 selinux=yes
4027 fi
4028
4029
4030 # Check whether --enable-search_libs was given.
4031 if test "${enable_search_libs+set}" = set; then
4032 enableval=$enable_search_libs; search_libs=$enableval
4033 else
4034 search_libs=yes
4035 fi
4036
4037
4038 if test x"$search_libs" = x"no"; then
4039 search_libs_selinux=""
4040 search_libs_snprintf=""
4041 search_libs_term=""
4042 search_libs_util=""
4043 fi
4044
4045
4046 { echo "$as_me:$LINENO: checking for library containing openpty" >&5
4047 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
4048 if test "${ac_cv_search_openpty+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 ac_func_search_save_LIBS=$LIBS
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058
4059 /* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */
4062 #ifdef __cplusplus
4063 extern "C"
4064 #endif
4065 char openpty ();
4066 int
4067 main ()
4068 {
4069 return openpty ();
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 for ac_lib in '' $search_libs_util; do
4075 if test -z "$ac_lib"; then
4076 ac_res="none required"
4077 else
4078 ac_res=-l$ac_lib
4079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4080 fi
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (ac_try="$ac_link"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_link") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest$ac_exeext &&
4098 $as_test_x conftest$ac_exeext; then
4099 ac_cv_search_openpty=$ac_res
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4108 conftest$ac_exeext
4109 if test "${ac_cv_search_openpty+set}" = set; then
4110 break
4111 fi
4112 done
4113 if test "${ac_cv_search_openpty+set}" = set; then
4114 :
4115 else
4116 ac_cv_search_openpty=no
4117 fi
4118 rm conftest.$ac_ext
4119 LIBS=$ac_func_search_save_LIBS
4120 fi
4121 { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
4122 echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
4123 ac_res=$ac_cv_search_openpty
4124 if test "$ac_res" != no; then
4125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4126
4127 cat >>confdefs.h <<_ACEOF
4128 #define HAVE_OPENPTY 1
4129 _ACEOF
4130
4131 fi
4132
4133 { echo "$as_me:$LINENO: checking for library containing login_tty" >&5
4134 echo $ECHO_N "checking for library containing login_tty... $ECHO_C" >&6; }
4135 if test "${ac_cv_search_login_tty+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 ac_func_search_save_LIBS=$LIBS
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145
4146 /* Override any GCC internal prototype to avoid an error.
4147 Use char because int might match the return type of a GCC
4148 builtin and then its argument prototype would still apply. */
4149 #ifdef __cplusplus
4150 extern "C"
4151 #endif
4152 char login_tty ();
4153 int
4154 main ()
4155 {
4156 return login_tty ();
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 for ac_lib in '' $search_libs_util; do
4162 if test -z "$ac_lib"; then
4163 ac_res="none required"
4164 else
4165 ac_res=-l$ac_lib
4166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4167 fi
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (ac_try="$ac_link"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_link") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest$ac_exeext &&
4185 $as_test_x conftest$ac_exeext; then
4186 ac_cv_search_login_tty=$ac_res
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191
4192 fi
4193
4194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4195 conftest$ac_exeext
4196 if test "${ac_cv_search_login_tty+set}" = set; then
4197 break
4198 fi
4199 done
4200 if test "${ac_cv_search_login_tty+set}" = set; then
4201 :
4202 else
4203 ac_cv_search_login_tty=no
4204 fi
4205 rm conftest.$ac_ext
4206 LIBS=$ac_func_search_save_LIBS
4207 fi
4208 { echo "$as_me:$LINENO: result: $ac_cv_search_login_tty" >&5
4209 echo "${ECHO_T}$ac_cv_search_login_tty" >&6; }
4210 ac_res=$ac_cv_search_login_tty
4211 if test "$ac_res" != no; then
4212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4213
4214 cat >>confdefs.h <<_ACEOF
4215 #define HAVE_LOGIN_TTY 1
4216 _ACEOF
4217
4218 fi
4219
4220 if test x"$terminfo" = x"no"; then
4221 echo "DISabling looking for terminal libraries entirely!"
4222 else
4223 { echo "$as_me:$LINENO: checking for library containing tgetflag" >&5
4224 echo $ECHO_N "checking for library containing tgetflag... $ECHO_C" >&6; }
4225 if test "${ac_cv_search_tgetflag+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 ac_func_search_save_LIBS=$LIBS
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235
4236 /* Override any GCC internal prototype to avoid an error.
4237 Use char because int might match the return type of a GCC
4238 builtin and then its argument prototype would still apply. */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 char tgetflag ();
4243 int
4244 main ()
4245 {
4246 return tgetflag ();
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 for ac_lib in '' $search_libs_term; do
4252 if test -z "$ac_lib"; then
4253 ac_res="none required"
4254 else
4255 ac_res=-l$ac_lib
4256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4257 fi
4258 rm -f conftest.$ac_objext conftest$ac_exeext
4259 if { (ac_try="$ac_link"
4260 case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_link") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest$ac_exeext &&
4275 $as_test_x conftest$ac_exeext; then
4276 ac_cv_search_tgetflag=$ac_res
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282 fi
4283
4284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4285 conftest$ac_exeext
4286 if test "${ac_cv_search_tgetflag+set}" = set; then
4287 break
4288 fi
4289 done
4290 if test "${ac_cv_search_tgetflag+set}" = set; then
4291 :
4292 else
4293 ac_cv_search_tgetflag=no
4294 fi
4295 rm conftest.$ac_ext
4296 LIBS=$ac_func_search_save_LIBS
4297 fi
4298 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetflag" >&5
4299 echo "${ECHO_T}$ac_cv_search_tgetflag" >&6; }
4300 ac_res=$ac_cv_search_tgetflag
4301 if test "$ac_res" != no; then
4302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4303
4304 cat >>confdefs.h <<_ACEOF
4305 #define TERMINFO 1
4306 _ACEOF
4307
4308 fi
4309
4310 fi
4311 { echo "$as_me:$LINENO: checking for library containing snprintf" >&5
4312 echo $ECHO_N "checking for library containing snprintf... $ECHO_C" >&6; }
4313 if test "${ac_cv_search_snprintf+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316 ac_func_search_save_LIBS=$LIBS
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323
4324 /* Override any GCC internal prototype to avoid an error.
4325 Use char because int might match the return type of a GCC
4326 builtin and then its argument prototype would still apply. */
4327 #ifdef __cplusplus
4328 extern "C"
4329 #endif
4330 char snprintf ();
4331 int
4332 main ()
4333 {
4334 return snprintf ();
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 for ac_lib in '' $search_libs_snprintf; do
4340 if test -z "$ac_lib"; then
4341 ac_res="none required"
4342 else
4343 ac_res=-l$ac_lib
4344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4345 fi
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (ac_try="$ac_link"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_link") 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && {
4360 test -z "$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 } && test -s conftest$ac_exeext &&
4363 $as_test_x conftest$ac_exeext; then
4364 ac_cv_search_snprintf=$ac_res
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369
4370 fi
4371
4372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4373 conftest$ac_exeext
4374 if test "${ac_cv_search_snprintf+set}" = set; then
4375 break
4376 fi
4377 done
4378 if test "${ac_cv_search_snprintf+set}" = set; then
4379 :
4380 else
4381 ac_cv_search_snprintf=no
4382 fi
4383 rm conftest.$ac_ext
4384 LIBS=$ac_func_search_save_LIBS
4385 fi
4386 { echo "$as_me:$LINENO: result: $ac_cv_search_snprintf" >&5
4387 echo "${ECHO_T}$ac_cv_search_snprintf" >&6; }
4388 ac_res=$ac_cv_search_snprintf
4389 if test "$ac_res" != no; then
4390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4391
4392 cat >>confdefs.h <<_ACEOF
4393 #define HAVE_SNPRINTF 1
4394 _ACEOF
4395
4396 fi
4397
4398 if test x"$selinux" = x"no"; then
4399 echo "DISabling looking for SELinux support"
4400 else
4401 { echo "$as_me:$LINENO: checking for library containing is_selinux_enabled" >&5
4402 echo $ECHO_N "checking for library containing is_selinux_enabled... $ECHO_C" >&6; }
4403 if test "${ac_cv_search_is_selinux_enabled+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 ac_func_search_save_LIBS=$LIBS
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413
4414 /* Override any GCC internal prototype to avoid an error.
4415 Use char because int might match the return type of a GCC
4416 builtin and then its argument prototype would still apply. */
4417 #ifdef __cplusplus
4418 extern "C"
4419 #endif
4420 char is_selinux_enabled ();
4421 int
4422 main ()
4423 {
4424 return is_selinux_enabled ();
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 for ac_lib in '' $search_libs_selinux; do
4430 if test -z "$ac_lib"; then
4431 ac_res="none required"
4432 else
4433 ac_res=-l$ac_lib
4434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4435 fi
4436 rm -f conftest.$ac_objext conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_link") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && {
4450 test -z "$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 } && test -s conftest$ac_exeext &&
4453 $as_test_x conftest$ac_exeext; then
4454 ac_cv_search_is_selinux_enabled=$ac_res
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459
4460 fi
4461
4462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4463 conftest$ac_exeext
4464 if test "${ac_cv_search_is_selinux_enabled+set}" = set; then
4465 break
4466 fi
4467 done
4468 if test "${ac_cv_search_is_selinux_enabled+set}" = set; then
4469 :
4470 else
4471 ac_cv_search_is_selinux_enabled=no
4472 fi
4473 rm conftest.$ac_ext
4474 LIBS=$ac_func_search_save_LIBS
4475 fi
4476 { echo "$as_me:$LINENO: result: $ac_cv_search_is_selinux_enabled" >&5
4477 echo "${ECHO_T}$ac_cv_search_is_selinux_enabled" >&6; }
4478 ac_res=$ac_cv_search_is_selinux_enabled
4479 if test "$ac_res" != no; then
4480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4481
4482 cat >>confdefs.h <<_ACEOF
4483 #define HAVE_SELINUX_FUN 1
4484 _ACEOF
4485
4486 fi
4487
4488 fi
4489
4490
4491 # other conditionals
4492
4493 # Check whether --enable-getpwnam was given.
4494 if test "${enable_getpwnam+set}" = set; then
4495 enableval=$enable_getpwnam; getpwnam=$enableval
4496 else
4497 getpwnam=yes
4498 fi
4499
4500 test x"$getpwnam" = x"no" && CPPFLAGS="$CPPFLAGS -DJOE_NOPWNAM"
4501
4502 # Check whether --enable-termidx was given.
4503 if test "${enable_termidx+set}" = set; then
4504 enableval=$enable_termidx; termidx=$enableval
4505 else
4506 termidx=yes
4507 fi
4508
4509
4510
4511 if test x"$termidx" != x"no"; then
4512 WANT_TERMIDX_TRUE=
4513 WANT_TERMIDX_FALSE='#'
4514 else
4515 WANT_TERMIDX_TRUE='#'
4516 WANT_TERMIDX_FALSE=
4517 fi
4518
4519
4520 # Check whether --enable-sysconfjoesubdir was given.
4521 if test "${enable_sysconfjoesubdir+set}" = set; then
4522 enableval=$enable_sysconfjoesubdir; sysconfjoesubdir=$enableval
4523 else
4524 sysconfjoesubdir=yes
4525 fi
4526
4527 if test x"$sysconfjoesubdir" = x"yes"; then
4528 sysconfjoesubdir=/joe
4529 elif test x"$sysconfjoesubdir" = x"no"; then
4530 sysconfjoesubdir=
4531 fi
4532
4533
4534 # Check whether --enable-win32reloc was given.
4535 if test "${enable_win32reloc+set}" = set; then
4536 enableval=$enable_win32reloc; win32reloc=$enableval
4537 else
4538 win32reloc=no
4539 fi
4540
4541 if test x"$win32reloc" = x"yes"; then
4542 JUPP_WIN32RELOC=1
4543 else
4544 JUPP_WIN32RELOC=0
4545 fi
4546
4547 cat >>confdefs.h <<_ACEOF
4548 #define JUPP_WIN32RELOC $JUPP_WIN32RELOC
4549 _ACEOF
4550
4551 if test x"$win32reloc" = x"yes"; then
4552 joeinitfile='\\fBjoerc\\fR in the same directory as the binary resides in'
4553 joeinitcopy='which resides in the same directory as the binary'
4554 joeresides='C:\\eProgramme\\ejupp32\\ejoe.exe'
4555 jrcbefore=''
4556 jrcafter=' in the same directory as the binary'
4557 elif test x"$win32reloc" = x"old"; then
4558 joeinitfile='\\fBc:/windows/system32/joe/joerc\\fR'
4559 joeinitcopy='which resides in \\fBc:/windows/system32/joe/joerc\\fR'
4560 joeresides='c:/windows/system32/joe.exe'
4561 jrcbefore='c:/windows/system32/joe/'
4562 jrcafter=''
4563 else
4564 joeinitfile='usually \\fB'$sysconfdir$sysconfjoesubdir'/joerc\\fR'
4565 joeinitcopy='which normally resides in \\fB'$sysconfdir$sysconfjoesubdir'/joerc\\fR'
4566 joeresides=$bindir'/joe'
4567 jrcbefore=$sysconfdir$sysconfjoesubdir/
4568 jrcafter=''
4569 fi
4570
4571
4572
4573
4574
4575
4576
4577 # Checks for header files.
4578
4579
4580 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4581 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4582 if test "${ac_cv_header_stdc+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #include <stdlib.h>
4592 #include <stdarg.h>
4593 #include <string.h>
4594 #include <float.h>
4595
4596 int
4597 main ()
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_cv_header_stdc=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_cv_header_stdc=no
4627 fi
4628
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630
4631 if test $ac_cv_header_stdc = yes; then
4632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <string.h>
4640
4641 _ACEOF
4642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 $EGREP "memchr" >/dev/null 2>&1; then
4644 :
4645 else
4646 ac_cv_header_stdc=no
4647 fi
4648 rm -f conftest*
4649
4650 fi
4651
4652 if test $ac_cv_header_stdc = yes; then
4653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 #include <stdlib.h>
4661
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "free" >/dev/null 2>&1; then
4665 :
4666 else
4667 ac_cv_header_stdc=no
4668 fi
4669 rm -f conftest*
4670
4671 fi
4672
4673 if test $ac_cv_header_stdc = yes; then
4674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4675 if test "$cross_compiling" = yes; then
4676 :
4677 else
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ctype.h>
4685 #include <stdlib.h>
4686 #if ((' ' & 0x0FF) == 0x020)
4687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4689 #else
4690 # define ISLOWER(c) \
4691 (('a' <= (c) && (c) <= 'i') \
4692 || ('j' <= (c) && (c) <= 'r') \
4693 || ('s' <= (c) && (c) <= 'z'))
4694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4695 #endif
4696
4697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4698 int
4699 main ()
4700 {
4701 int i;
4702 for (i = 0; i < 256; i++)
4703 if (XOR (islower (i), ISLOWER (i))
4704 || toupper (i) != TOUPPER (i))
4705 return 2;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest$ac_exeext
4710 if { (ac_try="$ac_link"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_link") 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4720 { (case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_try") 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 :
4730 else
4731 echo "$as_me: program exited with status $ac_status" >&5
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ( exit $ac_status )
4736 ac_cv_header_stdc=no
4737 fi
4738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4739 fi
4740
4741
4742 fi
4743 fi
4744 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4745 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4746 if test $ac_cv_header_stdc = yes; then
4747
4748 cat >>confdefs.h <<\_ACEOF
4749 #define STDC_HEADERS 1
4750 _ACEOF
4751
4752 fi
4753
4754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4765 inttypes.h stdint.h unistd.h
4766 do
4767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4780
4781 #include <$ac_header>
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compile") 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } && {
4797 test -z "$ac_c_werror_flag" ||
4798 test ! -s conftest.err
4799 } && test -s conftest.$ac_objext; then
4800 eval "$as_ac_Header=yes"
4801 else
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 eval "$as_ac_Header=no"
4806 fi
4807
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 fi
4810 ac_res=`eval echo '${'$as_ac_Header'}'`
4811 { echo "$as_me:$LINENO: result: $ac_res" >&5
4812 echo "${ECHO_T}$ac_res" >&6; }
4813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816 _ACEOF
4817
4818 fi
4819
4820 done
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 for ac_header in \
4853 sys/dirent.h sys/ioctl.h sys/param.h sys/stat.h sys/termio.h \
4854 sys/time.h sys/types.h sys/wait.h errno.h fcntl.h \
4855 langinfo.h limits.h locale.h paths.h pty.h pwd.h sgtty.h signal.h \
4856 stdlib.h string.h termio.h time.h unistd.h util.h utime.h \
4857 utmp.h bsd/string.h selinux/context.h selinux/selinux.h \
4858
4859 do
4860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 fi
4867 ac_res=`eval echo '${'$as_ac_Header'}'`
4868 { echo "$as_me:$LINENO: result: $ac_res" >&5
4869 echo "${ECHO_T}$ac_res" >&6; }
4870 else
4871 # Is the header compilable?
4872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4881 #include <$ac_header>
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (ac_try="$ac_compile"
4885 case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_compile") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest.$ac_objext; then
4900 ac_header_compiler=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 ac_header_compiler=no
4906 fi
4907
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4910 echo "${ECHO_T}$ac_header_compiler" >&6; }
4911
4912 # Is the header present?
4913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <$ac_header>
4922 _ACEOF
4923 if { (ac_try="$ac_cpp conftest.$ac_ext"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null && {
4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 }; then
4939 ac_header_preproc=yes
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 ac_header_preproc=no
4945 fi
4946
4947 rm -f conftest.err conftest.$ac_ext
4948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4949 echo "${ECHO_T}$ac_header_preproc" >&6; }
4950
4951 # So? What about this header?
4952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4953 yes:no: )
4954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4958 ac_header_preproc=yes
4959 ;;
4960 no:yes:* )
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4973
4974 ;;
4975 esac
4976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 eval "$as_ac_Header=\$ac_header_preproc"
4982 fi
4983 ac_res=`eval echo '${'$as_ac_Header'}'`
4984 { echo "$as_me:$LINENO: result: $ac_res" >&5
4985 echo "${ECHO_T}$ac_res" >&6; }
4986
4987 fi
4988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4989 cat >>confdefs.h <<_ACEOF
4990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991 _ACEOF
4992
4993 fi
4994
4995 done
4996
4997
4998
4999
5000
5001
5002 ac_header_dirent=no
5003 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5004 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5005 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5006 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <sys/types.h>
5017 #include <$ac_hdr>
5018
5019 int
5020 main ()
5021 {
5022 if ((DIR *) 0)
5023 return 0;
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 eval "$as_ac_Header=yes"
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 eval "$as_ac_Header=no"
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 ac_res=`eval echo '${'$as_ac_Header'}'`
5056 { echo "$as_me:$LINENO: result: $ac_res" >&5
5057 echo "${ECHO_T}$ac_res" >&6; }
5058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5059 cat >>confdefs.h <<_ACEOF
5060 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5061 _ACEOF
5062
5063 ac_header_dirent=$ac_hdr; break
5064 fi
5065
5066 done
5067 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5068 if test $ac_header_dirent = dirent.h; then
5069 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5070 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5071 if test "${ac_cv_search_opendir+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 ac_func_search_save_LIBS=$LIBS
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081
5082 /* Override any GCC internal prototype to avoid an error.
5083 Use char because int might match the return type of a GCC
5084 builtin and then its argument prototype would still apply. */
5085 #ifdef __cplusplus
5086 extern "C"
5087 #endif
5088 char opendir ();
5089 int
5090 main ()
5091 {
5092 return opendir ();
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 for ac_lib in '' dir; do
5098 if test -z "$ac_lib"; then
5099 ac_res="none required"
5100 else
5101 ac_res=-l$ac_lib
5102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5103 fi
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5106 case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_link") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest$ac_exeext &&
5121 $as_test_x conftest$ac_exeext; then
5122 ac_cv_search_opendir=$ac_res
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127
5128 fi
5129
5130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5131 conftest$ac_exeext
5132 if test "${ac_cv_search_opendir+set}" = set; then
5133 break
5134 fi
5135 done
5136 if test "${ac_cv_search_opendir+set}" = set; then
5137 :
5138 else
5139 ac_cv_search_opendir=no
5140 fi
5141 rm conftest.$ac_ext
5142 LIBS=$ac_func_search_save_LIBS
5143 fi
5144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5146 ac_res=$ac_cv_search_opendir
5147 if test "$ac_res" != no; then
5148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5149
5150 fi
5151
5152 else
5153 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5154 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5155 if test "${ac_cv_search_opendir+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 ac_func_search_save_LIBS=$LIBS
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165
5166 /* Override any GCC internal prototype to avoid an error.
5167 Use char because int might match the return type of a GCC
5168 builtin and then its argument prototype would still apply. */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 char opendir ();
5173 int
5174 main ()
5175 {
5176 return opendir ();
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 for ac_lib in '' x; do
5182 if test -z "$ac_lib"; then
5183 ac_res="none required"
5184 else
5185 ac_res=-l$ac_lib
5186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5187 fi
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (ac_try="$ac_link"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_link") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest$ac_exeext &&
5205 $as_test_x conftest$ac_exeext; then
5206 ac_cv_search_opendir=$ac_res
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211
5212 fi
5213
5214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5215 conftest$ac_exeext
5216 if test "${ac_cv_search_opendir+set}" = set; then
5217 break
5218 fi
5219 done
5220 if test "${ac_cv_search_opendir+set}" = set; then
5221 :
5222 else
5223 ac_cv_search_opendir=no
5224 fi
5225 rm conftest.$ac_ext
5226 LIBS=$ac_func_search_save_LIBS
5227 fi
5228 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5229 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5230 ac_res=$ac_cv_search_opendir
5231 if test "$ac_res" != no; then
5232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5233
5234 fi
5235
5236 fi
5237
5238 { echo "$as_me:$LINENO: checking POSIX termios" >&5
5239 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
5240 if test "${ac_cv_sys_posix_termios+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <sys/types.h>
5250 #include <unistd.h>
5251 #include <termios.h>
5252
5253 int
5254 main ()
5255 {
5256 /* SunOS 4.0.3 has termios.h but not the library calls. */
5257 tcgetattr(0, 0);
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest$ac_exeext &&
5279 $as_test_x conftest$ac_exeext; then
5280 ac_cv_sys_posix_termios=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_cv_sys_posix_termios=no
5286 fi
5287
5288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5289 conftest$ac_exeext conftest.$ac_ext
5290 fi
5291 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
5292 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
5293
5294 if test "$ac_cv_sys_posix_termios" = "yes"; then
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define HAVE_POSIX_TERMIOS 1
5298 _ACEOF
5299
5300 else
5301 if test "$ac_cv_header_termio_h" = "yes" -a "$ac_cvs_header_sys_termio_h" = "yes" ]; then
5302
5303 cat >>confdefs.h <<\_ACEOF
5304 #define HAVE_SYSV_TERMIO 1
5305 _ACEOF
5306
5307 fi
5308 fi
5309 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5310 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
5311 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 #include <sys/types.h>
5321 #include <termios.h>
5322 #ifdef TIOCGWINSZ
5323 yes
5324 #endif
5325
5326 _ACEOF
5327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328 $EGREP "yes" >/dev/null 2>&1; then
5329 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5330 else
5331 ac_cv_sys_tiocgwinsz_in_termios_h=no
5332 fi
5333 rm -f conftest*
5334
5335 fi
5336 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5337 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5338
5339 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5340 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5341 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
5342 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <sys/types.h>
5352 #include <sys/ioctl.h>
5353 #ifdef TIOCGWINSZ
5354 yes
5355 #endif
5356
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "yes" >/dev/null 2>&1; then
5360 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5361 else
5362 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5363 fi
5364 rm -f conftest*
5365
5366 fi
5367 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5368 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5369
5370 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5371
5372 cat >>confdefs.h <<\_ACEOF
5373 #define GWINSZ_IN_SYS_IOCTL 1
5374 _ACEOF
5375
5376 fi
5377 fi
5378
5379
5380 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5381 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5382 if test "${ac_cv_header_time+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #include <sys/types.h>
5392 #include <sys/time.h>
5393 #include <time.h>
5394
5395 int
5396 main ()
5397 {
5398 if ((struct tm *) 0)
5399 return 0;
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (ac_try="$ac_compile"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_header_time=yes
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_cv_header_time=no
5427 fi
5428
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5432 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5433 if test $ac_cv_header_time = yes; then
5434
5435 cat >>confdefs.h <<\_ACEOF
5436 #define TIME_WITH_SYS_TIME 1
5437 _ACEOF
5438
5439 fi
5440
5441
5442 # Checks for typedefs, structures, and compiler characteristics.
5443
5444 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5445 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5446 if test "${ac_cv_c_const+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455
5456 int
5457 main ()
5458 {
5459 /* FIXME: Include the comments suggested by Paul. */
5460 #ifndef __cplusplus
5461 /* Ultrix mips cc rejects this. */
5462 typedef int charset[2];
5463 const charset cs;
5464 /* SunOS 4.1.1 cc rejects this. */
5465 char const *const *pcpcc;
5466 char **ppc;
5467 /* NEC SVR4.0.2 mips cc rejects this. */
5468 struct point {int x, y;};
5469 static struct point const zero = {0,0};
5470 /* AIX XL C 1.02.0.0 rejects this.
5471 It does not let you subtract one const X* pointer from another in
5472 an arm of an if-expression whose if-part is not a constant
5473 expression */
5474 const char *g = "string";
5475 pcpcc = &g + (g ? g-g : 0);
5476 /* HPUX 7.0 cc rejects these. */
5477 ++pcpcc;
5478 ppc = (char**) pcpcc;
5479 pcpcc = (char const *const *) ppc;
5480 { /* SCO 3.2v4 cc rejects this. */
5481 char *t;
5482 char const *s = 0 ? (char *) 0 : (char const *) 0;
5483
5484 *t++ = 0;
5485 if (s) return 0;
5486 }
5487 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5488 int x[] = {25, 17};
5489 const int *foo = &x[0];
5490 ++foo;
5491 }
5492 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5493 typedef const int *iptr;
5494 iptr p = 0;
5495 ++p;
5496 }
5497 { /* AIX XL C 1.02.0.0 rejects this saying
5498 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5499 struct s { int j; const int *ap[3]; };
5500 struct s *b; b->j = 5;
5501 }
5502 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5503 const int foo = 10;
5504 if (!foo) return 0;
5505 }
5506 return !cs[0] && !zero.x;
5507 #endif
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_cv_c_const=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_cv_c_const=no
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5541 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5542 if test $ac_cv_c_const = no; then
5543
5544 cat >>confdefs.h <<\_ACEOF
5545 #define const
5546 _ACEOF
5547
5548 fi
5549
5550 # Check whether --enable-largefile was given.
5551 if test "${enable_largefile+set}" = set; then
5552 enableval=$enable_largefile;
5553 fi
5554
5555 if test "$enable_largefile" != no; then
5556
5557 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5558 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5559 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 ac_cv_sys_largefile_CC=no
5563 if test "$GCC" != yes; then
5564 ac_save_CC=$CC
5565 while :; do
5566 # IRIX 6.2 and later do not support large files by default,
5567 # so use the C compiler's -n32 option if that helps.
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 /* Check that off_t can represent 2**63 - 1 correctly.
5576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5577 since some C++ compilers masquerading as C compilers
5578 incorrectly reject 9223372036854775807. */
5579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5581 && LARGE_OFF_T % 2147483647 == 1)
5582 ? 1 : -1];
5583 int
5584 main ()
5585 {
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 break
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613
5614 fi
5615
5616 rm -f core conftest.err conftest.$ac_objext
5617 CC="$CC -n32"
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_sys_largefile_CC=' -n32'; break
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext
5644 break
5645 done
5646 CC=$ac_save_CC
5647 rm -f conftest.$ac_ext
5648 fi
5649 fi
5650 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5651 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5652 if test "$ac_cv_sys_largefile_CC" != no; then
5653 CC=$CC$ac_cv_sys_largefile_CC
5654 fi
5655
5656 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5657 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5658 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 while :; do
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.$ac_objext; then
5702 ac_cv_sys_file_offset_bits=no; break
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707
5708 fi
5709
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #define _FILE_OFFSET_BITS 64
5718 #include <sys/types.h>
5719 /* Check that off_t can represent 2**63 - 1 correctly.
5720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5721 since some C++ compilers masquerading as C compilers
5722 incorrectly reject 9223372036854775807. */
5723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5725 && LARGE_OFF_T % 2147483647 == 1)
5726 ? 1 : -1];
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 ac_cv_sys_file_offset_bits=64; break
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_cv_sys_file_offset_bits=unknown
5762 break
5763 done
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5766 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5767 case $ac_cv_sys_file_offset_bits in #(
5768 no | unknown) ;;
5769 *)
5770 cat >>confdefs.h <<_ACEOF
5771 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5772 _ACEOF
5773 ;;
5774 esac
5775 rm -f conftest*
5776 if test $ac_cv_sys_file_offset_bits = unknown; then
5777 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5778 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5779 if test "${ac_cv_sys_large_files+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 while :; do
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5797 ? 1 : -1];
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_sys_large_files=no; break
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #define _LARGE_FILES 1
5839 #include <sys/types.h>
5840 /* Check that off_t can represent 2**63 - 1 correctly.
5841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5842 since some C++ compilers masquerading as C compilers
5843 incorrectly reject 9223372036854775807. */
5844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5846 && LARGE_OFF_T % 2147483647 == 1)
5847 ? 1 : -1];
5848 int
5849 main ()
5850 {
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_sys_large_files=1; break
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 ac_cv_sys_large_files=unknown
5883 break
5884 done
5885 fi
5886 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5887 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5888 case $ac_cv_sys_large_files in #(
5889 no | unknown) ;;
5890 *)
5891 cat >>confdefs.h <<_ACEOF
5892 #define _LARGE_FILES $ac_cv_sys_large_files
5893 _ACEOF
5894 ;;
5895 esac
5896 rm -f conftest*
5897 fi
5898 fi
5899
5900 if test "$cross_compiling" = "yes" ; then
5901 { echo "$as_me:$LINENO: WARNING: cross compiling so assuming defaults for most 32 bit machines" >&5
5902 echo "$as_me: WARNING: cross compiling so assuming defaults for most 32 bit machines" >&2;}
5903 fi
5904 { echo "$as_me:$LINENO: checking for char" >&5
5905 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5906 if test "${ac_cv_type_char+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5916 typedef char ac__type_new_;
5917 int
5918 main ()
5919 {
5920 if ((ac__type_new_ *) 0)
5921 return 0;
5922 if (sizeof (ac__type_new_))
5923 return 0;
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_cv_type_char=yes
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_type_char=no
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5956 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5957
5958 # The cast to long int works around a bug in the HP C Compiler
5959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5961 # This bug is HP SR number 8606223364.
5962 { echo "$as_me:$LINENO: checking size of char" >&5
5963 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5964 if test "${ac_cv_sizeof_char+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 if test "$cross_compiling" = yes; then
5968 # Depending upon the size, compute the lo and hi bounds.
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 $ac_includes_default
5976 typedef char ac__type_sizeof_;
5977 int
5978 main ()
5979 {
5980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5981 test_array [0] = 0
5982
5983 ;
5984 return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest.$ac_objext; then
6004 ac_lo=0 ac_mid=0
6005 while :; do
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 $ac_includes_default
6013 typedef char ac__type_sizeof_;
6014 int
6015 main ()
6016 {
6017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6018 test_array [0] = 0
6019
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compile") 2>conftest.er1
6032 ac_status=$?
6033 grep -v '^ *+' conftest.er1 >conftest.err
6034 rm -f conftest.er1
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && {
6038 test -z "$ac_c_werror_flag" ||
6039 test ! -s conftest.err
6040 } && test -s conftest.$ac_objext; then
6041 ac_hi=$ac_mid; break
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046 ac_lo=`expr $ac_mid + 1`
6047 if test $ac_lo -le $ac_mid; then
6048 ac_lo= ac_hi=
6049 break
6050 fi
6051 ac_mid=`expr 2 '*' $ac_mid + 1`
6052 fi
6053
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 done
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 typedef char ac__type_sizeof_;
6068 int
6069 main ()
6070 {
6071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6072 test_array [0] = 0
6073
6074 ;
6075 return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 ac_hi=-1 ac_mid=-1
6096 while :; do
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 typedef char ac__type_sizeof_;
6105 int
6106 main ()
6107 {
6108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6109 test_array [0] = 0
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 ac_lo=$ac_mid; break
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_hi=`expr '(' $ac_mid ')' - 1`
6138 if test $ac_mid -le $ac_hi; then
6139 ac_lo= ac_hi=
6140 break
6141 fi
6142 ac_mid=`expr 2 '*' $ac_mid`
6143 fi
6144
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 done
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_lo= ac_hi=
6152 fi
6153
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 # Binary search between lo and hi bounds.
6159 while test "x$ac_lo" != "x$ac_hi"; do
6160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6168 typedef char ac__type_sizeof_;
6169 int
6170 main ()
6171 {
6172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.$ac_objext; then
6196 ac_hi=$ac_mid
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_lo=`expr '(' $ac_mid ')' + 1`
6202 fi
6203
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 done
6206 case $ac_lo in
6207 ?*) ac_cv_sizeof_char=$ac_lo;;
6208 '') if test "$ac_cv_type_char" = yes; then
6209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6210 See \`config.log' for more details." >&5
6211 echo "$as_me: error: cannot compute sizeof (char)
6212 See \`config.log' for more details." >&2;}
6213 { (exit 77); exit 77; }; }
6214 else
6215 ac_cv_sizeof_char=0
6216 fi ;;
6217 esac
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 typedef char ac__type_sizeof_;
6227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6229 #include <stdio.h>
6230 #include <stdlib.h>
6231 int
6232 main ()
6233 {
6234
6235 FILE *f = fopen ("conftest.val", "w");
6236 if (! f)
6237 return 1;
6238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6239 {
6240 long int i = longval ();
6241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6242 return 1;
6243 fprintf (f, "%ld\n", i);
6244 }
6245 else
6246 {
6247 unsigned long int i = ulongval ();
6248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6249 return 1;
6250 fprintf (f, "%lu\n", i);
6251 }
6252 return ferror (f) || fclose (f) != 0;
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest$ac_exeext
6259 if { (ac_try="$ac_link"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_link") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6269 { (case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_try") 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_sizeof_char=`cat conftest.val`
6279 else
6280 echo "$as_me: program exited with status $ac_status" >&5
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 ( exit $ac_status )
6285 if test "$ac_cv_type_char" = yes; then
6286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6287 See \`config.log' for more details." >&5
6288 echo "$as_me: error: cannot compute sizeof (char)
6289 See \`config.log' for more details." >&2;}
6290 { (exit 77); exit 77; }; }
6291 else
6292 ac_cv_sizeof_char=0
6293 fi
6294 fi
6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6296 fi
6297 rm -f conftest.val
6298 fi
6299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6300 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
6301
6302
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define SIZEOF_CHAR $ac_cv_sizeof_char
6306 _ACEOF
6307
6308
6309 { echo "$as_me:$LINENO: checking for short" >&5
6310 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
6311 if test "${ac_cv_type_short+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 $ac_includes_default
6321 typedef short ac__type_new_;
6322 int
6323 main ()
6324 {
6325 if ((ac__type_new_ *) 0)
6326 return 0;
6327 if (sizeof (ac__type_new_))
6328 return 0;
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (ac_try="$ac_compile"
6335 case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compile") 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
6350 ac_cv_type_short=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 ac_cv_type_short=no
6356 fi
6357
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 fi
6360 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6361 echo "${ECHO_T}$ac_cv_type_short" >&6; }
6362
6363 # The cast to long int works around a bug in the HP C Compiler
6364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6366 # This bug is HP SR number 8606223364.
6367 { echo "$as_me:$LINENO: checking size of short" >&5
6368 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
6369 if test "${ac_cv_sizeof_short+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 if test "$cross_compiling" = yes; then
6373 # Depending upon the size, compute the lo and hi bounds.
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6381 typedef short ac__type_sizeof_;
6382 int
6383 main ()
6384 {
6385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6386 test_array [0] = 0
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 ac_lo=0 ac_mid=0
6410 while :; do
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6418 typedef short ac__type_sizeof_;
6419 int
6420 main ()
6421 {
6422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6423 test_array [0] = 0
6424
6425 ;
6426 return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (ac_try="$ac_compile"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest.$ac_objext; then
6446 ac_hi=$ac_mid; break
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 ac_lo=`expr $ac_mid + 1`
6452 if test $ac_lo -le $ac_mid; then
6453 ac_lo= ac_hi=
6454 break
6455 fi
6456 ac_mid=`expr 2 '*' $ac_mid + 1`
6457 fi
6458
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 done
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 $ac_includes_default
6472 typedef short ac__type_sizeof_;
6473 int
6474 main ()
6475 {
6476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6477 test_array [0] = 0
6478
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6485 case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490 (eval "$ac_compile") 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest.$ac_objext; then
6500 ac_hi=-1 ac_mid=-1
6501 while :; do
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 typedef short ac__type_sizeof_;
6510 int
6511 main ()
6512 {
6513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6514 test_array [0] = 0
6515
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (ac_try="$ac_compile"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_compile") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest.$ac_objext; then
6537 ac_lo=$ac_mid; break
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_hi=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6544 ac_lo= ac_hi=
6545 break
6546 fi
6547 ac_mid=`expr 2 '*' $ac_mid`
6548 fi
6549
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 done
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_lo= ac_hi=
6557 fi
6558
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 # Binary search between lo and hi bounds.
6564 while test "x$ac_lo" != "x$ac_hi"; do
6565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 typedef short ac__type_sizeof_;
6574 int
6575 main ()
6576 {
6577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6578 test_array [0] = 0
6579
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_hi=$ac_mid
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_lo=`expr '(' $ac_mid ')' + 1`
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 done
6611 case $ac_lo in
6612 ?*) ac_cv_sizeof_short=$ac_lo;;
6613 '') if test "$ac_cv_type_short" = yes; then
6614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6615 See \`config.log' for more details." >&5
6616 echo "$as_me: error: cannot compute sizeof (short)
6617 See \`config.log' for more details." >&2;}
6618 { (exit 77); exit 77; }; }
6619 else
6620 ac_cv_sizeof_short=0
6621 fi ;;
6622 esac
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 $ac_includes_default
6631 typedef short ac__type_sizeof_;
6632 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6633 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6634 #include <stdio.h>
6635 #include <stdlib.h>
6636 int
6637 main ()
6638 {
6639
6640 FILE *f = fopen ("conftest.val", "w");
6641 if (! f)
6642 return 1;
6643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6644 {
6645 long int i = longval ();
6646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6647 return 1;
6648 fprintf (f, "%ld\n", i);
6649 }
6650 else
6651 {
6652 unsigned long int i = ulongval ();
6653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6654 return 1;
6655 fprintf (f, "%lu\n", i);
6656 }
6657 return ferror (f) || fclose (f) != 0;
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest$ac_exeext
6664 if { (ac_try="$ac_link"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_link") 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6674 { (case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677 esac
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679 (eval "$ac_try") 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_sizeof_short=`cat conftest.val`
6684 else
6685 echo "$as_me: program exited with status $ac_status" >&5
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 ( exit $ac_status )
6690 if test "$ac_cv_type_short" = yes; then
6691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6692 See \`config.log' for more details." >&5
6693 echo "$as_me: error: cannot compute sizeof (short)
6694 See \`config.log' for more details." >&2;}
6695 { (exit 77); exit 77; }; }
6696 else
6697 ac_cv_sizeof_short=0
6698 fi
6699 fi
6700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 rm -f conftest.val
6703 fi
6704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6705 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6706
6707
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define SIZEOF_SHORT $ac_cv_sizeof_short
6711 _ACEOF
6712
6713
6714 { echo "$as_me:$LINENO: checking for int" >&5
6715 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6716 if test "${ac_cv_type_int+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 $ac_includes_default
6726 typedef int ac__type_new_;
6727 int
6728 main ()
6729 {
6730 if ((ac__type_new_ *) 0)
6731 return 0;
6732 if (sizeof (ac__type_new_))
6733 return 0;
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext
6739 if { (ac_try="$ac_compile"
6740 case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743 esac
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_compile") 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && {
6752 test -z "$ac_c_werror_flag" ||
6753 test ! -s conftest.err
6754 } && test -s conftest.$ac_objext; then
6755 ac_cv_type_int=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760 ac_cv_type_int=no
6761 fi
6762
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 fi
6765 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6766 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6767
6768 # The cast to long int works around a bug in the HP C Compiler
6769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6771 # This bug is HP SR number 8606223364.
6772 { echo "$as_me:$LINENO: checking size of int" >&5
6773 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6774 if test "${ac_cv_sizeof_int+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6786 typedef int ac__type_sizeof_;
6787 int
6788 main ()
6789 {
6790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6791 test_array [0] = 0
6792
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6799 case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.$ac_objext; then
6814 ac_lo=0 ac_mid=0
6815 while :; do
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6823 typedef int ac__type_sizeof_;
6824 int
6825 main ()
6826 {
6827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6828 test_array [0] = 0
6829
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext
6835 if { (ac_try="$ac_compile"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 ac_hi=$ac_mid; break
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ac_lo=`expr $ac_mid + 1`
6857 if test $ac_lo -le $ac_mid; then
6858 ac_lo= ac_hi=
6859 break
6860 fi
6861 ac_mid=`expr 2 '*' $ac_mid + 1`
6862 fi
6863
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 done
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6869
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6877 typedef int ac__type_sizeof_;
6878 int
6879 main ()
6880 {
6881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6882 test_array [0] = 0
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_hi=-1 ac_mid=-1
6906 while :; do
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6914 typedef int ac__type_sizeof_;
6915 int
6916 main ()
6917 {
6918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6919 test_array [0] = 0
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.$ac_objext; then
6942 ac_lo=$ac_mid; break
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_hi=`expr '(' $ac_mid ')' - 1`
6948 if test $ac_mid -le $ac_hi; then
6949 ac_lo= ac_hi=
6950 break
6951 fi
6952 ac_mid=`expr 2 '*' $ac_mid`
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 done
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_lo= ac_hi=
6962 fi
6963
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 # Binary search between lo and hi bounds.
6969 while test "x$ac_lo" != "x$ac_hi"; do
6970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 typedef int ac__type_sizeof_;
6979 int
6980 main ()
6981 {
6982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6983 test_array [0] = 0
6984
6985 ;
6986 return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (ac_try="$ac_compile"
6991 case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994 esac
6995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996 (eval "$ac_compile") 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && {
7003 test -z "$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 } && test -s conftest.$ac_objext; then
7006 ac_hi=$ac_mid
7007 else
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_lo=`expr '(' $ac_mid ')' + 1`
7012 fi
7013
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 done
7016 case $ac_lo in
7017 ?*) ac_cv_sizeof_int=$ac_lo;;
7018 '') if test "$ac_cv_type_int" = yes; then
7019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7020 See \`config.log' for more details." >&5
7021 echo "$as_me: error: cannot compute sizeof (int)
7022 See \`config.log' for more details." >&2;}
7023 { (exit 77); exit 77; }; }
7024 else
7025 ac_cv_sizeof_int=0
7026 fi ;;
7027 esac
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 typedef int ac__type_sizeof_;
7037 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7038 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7039 #include <stdio.h>
7040 #include <stdlib.h>
7041 int
7042 main ()
7043 {
7044
7045 FILE *f = fopen ("conftest.val", "w");
7046 if (! f)
7047 return 1;
7048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7049 {
7050 long int i = longval ();
7051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7052 return 1;
7053 fprintf (f, "%ld\n", i);
7054 }
7055 else
7056 {
7057 unsigned long int i = ulongval ();
7058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7059 return 1;
7060 fprintf (f, "%lu\n", i);
7061 }
7062 return ferror (f) || fclose (f) != 0;
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7070 case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_link") 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7079 { (case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_try") 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_sizeof_int=`cat conftest.val`
7089 else
7090 echo "$as_me: program exited with status $ac_status" >&5
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7093
7094 ( exit $ac_status )
7095 if test "$ac_cv_type_int" = yes; then
7096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7097 See \`config.log' for more details." >&5
7098 echo "$as_me: error: cannot compute sizeof (int)
7099 See \`config.log' for more details." >&2;}
7100 { (exit 77); exit 77; }; }
7101 else
7102 ac_cv_sizeof_int=0
7103 fi
7104 fi
7105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 rm -f conftest.val
7108 fi
7109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7110 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7111
7112
7113
7114 cat >>confdefs.h <<_ACEOF
7115 #define SIZEOF_INT $ac_cv_sizeof_int
7116 _ACEOF
7117
7118
7119 { echo "$as_me:$LINENO: checking for long" >&5
7120 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7121 if test "${ac_cv_type_long+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 $ac_includes_default
7131 typedef long ac__type_new_;
7132 int
7133 main ()
7134 {
7135 if ((ac__type_new_ *) 0)
7136 return 0;
7137 if (sizeof (ac__type_new_))
7138 return 0;
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_type_long=yes
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_type_long=no
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7171 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7172
7173 # The cast to long int works around a bug in the HP C Compiler
7174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7176 # This bug is HP SR number 8606223364.
7177 { echo "$as_me:$LINENO: checking size of long" >&5
7178 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7179 if test "${ac_cv_sizeof_long+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 if test "$cross_compiling" = yes; then
7183 # Depending upon the size, compute the lo and hi bounds.
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 typedef long ac__type_sizeof_;
7192 int
7193 main ()
7194 {
7195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7196 test_array [0] = 0
7197
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.$ac_objext; then
7219 ac_lo=0 ac_mid=0
7220 while :; do
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 $ac_includes_default
7228 typedef long ac__type_sizeof_;
7229 int
7230 main ()
7231 {
7232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7233 test_array [0] = 0
7234
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (ac_try="$ac_compile"
7241 case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244 esac
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compile") 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_c_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest.$ac_objext; then
7256 ac_hi=$ac_mid; break
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_lo=`expr $ac_mid + 1`
7262 if test $ac_lo -le $ac_mid; then
7263 ac_lo= ac_hi=
7264 break
7265 fi
7266 ac_mid=`expr 2 '*' $ac_mid + 1`
7267 fi
7268
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 done
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7282 typedef long ac__type_sizeof_;
7283 int
7284 main ()
7285 {
7286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7287 test_array [0] = 0
7288
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 ac_hi=-1 ac_mid=-1
7311 while :; do
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7319 typedef long ac__type_sizeof_;
7320 int
7321 main ()
7322 {
7323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7324 test_array [0] = 0
7325
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (ac_try="$ac_compile"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_lo=$ac_mid; break
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_hi=`expr '(' $ac_mid ')' - 1`
7353 if test $ac_mid -le $ac_hi; then
7354 ac_lo= ac_hi=
7355 break
7356 fi
7357 ac_mid=`expr 2 '*' $ac_mid`
7358 fi
7359
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 done
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 ac_lo= ac_hi=
7367 fi
7368
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 fi
7371
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 # Binary search between lo and hi bounds.
7374 while test "x$ac_lo" != "x$ac_hi"; do
7375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7383 typedef long ac__type_sizeof_;
7384 int
7385 main ()
7386 {
7387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7388 test_array [0] = 0
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 ac_hi=$ac_mid
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 ac_lo=`expr '(' $ac_mid ')' + 1`
7417 fi
7418
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 done
7421 case $ac_lo in
7422 ?*) ac_cv_sizeof_long=$ac_lo;;
7423 '') if test "$ac_cv_type_long" = yes; then
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (long)
7427 See \`config.log' for more details." >&2;}
7428 { (exit 77); exit 77; }; }
7429 else
7430 ac_cv_sizeof_long=0
7431 fi ;;
7432 esac
7433 else
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 typedef long ac__type_sizeof_;
7442 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7443 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7444 #include <stdio.h>
7445 #include <stdlib.h>
7446 int
7447 main ()
7448 {
7449
7450 FILE *f = fopen ("conftest.val", "w");
7451 if (! f)
7452 return 1;
7453 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7454 {
7455 long int i = longval ();
7456 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7457 return 1;
7458 fprintf (f, "%ld\n", i);
7459 }
7460 else
7461 {
7462 unsigned long int i = ulongval ();
7463 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7464 return 1;
7465 fprintf (f, "%lu\n", i);
7466 }
7467 return ferror (f) || fclose (f) != 0;
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7475 case "(($ac_try" in
7476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477 *) ac_try_echo=$ac_try;;
7478 esac
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_link") 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7484 { (case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487 esac
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_try") 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_sizeof_long=`cat conftest.val`
7494 else
7495 echo "$as_me: program exited with status $ac_status" >&5
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499 ( exit $ac_status )
7500 if test "$ac_cv_type_long" = yes; then
7501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7502 See \`config.log' for more details." >&5
7503 echo "$as_me: error: cannot compute sizeof (long)
7504 See \`config.log' for more details." >&2;}
7505 { (exit 77); exit 77; }; }
7506 else
7507 ac_cv_sizeof_long=0
7508 fi
7509 fi
7510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 rm -f conftest.val
7513 fi
7514 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7515 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7516
7517
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define SIZEOF_LONG $ac_cv_sizeof_long
7521 _ACEOF
7522
7523
7524 { echo "$as_me:$LINENO: checking for void *" >&5
7525 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7526 if test "${ac_cv_type_void_p+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7536 typedef void * ac__type_new_;
7537 int
7538 main ()
7539 {
7540 if ((ac__type_new_ *) 0)
7541 return 0;
7542 if (sizeof (ac__type_new_))
7543 return 0;
7544 ;
7545 return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (ac_try="$ac_compile"
7550 case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_compile") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest.$ac_objext; then
7565 ac_cv_type_void_p=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_cv_type_void_p=no
7571 fi
7572
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 fi
7575 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7576 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7577
7578 # The cast to long int works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 { echo "$as_me:$LINENO: checking size of void *" >&5
7583 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7584 if test "${ac_cv_sizeof_void_p+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 if test "$cross_compiling" = yes; then
7588 # Depending upon the size, compute the lo and hi bounds.
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 typedef void * ac__type_sizeof_;
7597 int
7598 main ()
7599 {
7600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7601 test_array [0] = 0
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 ac_lo=0 ac_mid=0
7625 while :; do
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 typedef void * ac__type_sizeof_;
7634 int
7635 main ()
7636 {
7637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7638 test_array [0] = 0
7639
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7646 case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.$ac_objext; then
7661 ac_hi=$ac_mid; break
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7665
7666 ac_lo=`expr $ac_mid + 1`
7667 if test $ac_lo -le $ac_mid; then
7668 ac_lo= ac_hi=
7669 break
7670 fi
7671 ac_mid=`expr 2 '*' $ac_mid + 1`
7672 fi
7673
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 done
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h. */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7687 typedef void * ac__type_sizeof_;
7688 int
7689 main ()
7690 {
7691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7692 test_array [0] = 0
7693
7694 ;
7695 return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 ac_hi=-1 ac_mid=-1
7716 while :; do
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 typedef void * ac__type_sizeof_;
7725 int
7726 main ()
7727 {
7728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7729 test_array [0] = 0
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7752 ac_lo=$ac_mid; break
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_hi=`expr '(' $ac_mid ')' - 1`
7758 if test $ac_mid -le $ac_hi; then
7759 ac_lo= ac_hi=
7760 break
7761 fi
7762 ac_mid=`expr 2 '*' $ac_mid`
7763 fi
7764
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 done
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_lo= ac_hi=
7772 fi
7773
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 # Binary search between lo and hi bounds.
7779 while test "x$ac_lo" != "x$ac_hi"; do
7780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 typedef void * ac__type_sizeof_;
7789 int
7790 main ()
7791 {
7792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7793 test_array [0] = 0
7794
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7816 ac_hi=$ac_mid
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 ac_lo=`expr '(' $ac_mid ')' + 1`
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 done
7826 case $ac_lo in
7827 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7828 '') if test "$ac_cv_type_void_p" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot compute sizeof (void *)
7832 See \`config.log' for more details." >&2;}
7833 { (exit 77); exit 77; }; }
7834 else
7835 ac_cv_sizeof_void_p=0
7836 fi ;;
7837 esac
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 typedef void * ac__type_sizeof_;
7847 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7848 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7849 #include <stdio.h>
7850 #include <stdlib.h>
7851 int
7852 main ()
7853 {
7854
7855 FILE *f = fopen ("conftest.val", "w");
7856 if (! f)
7857 return 1;
7858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7859 {
7860 long int i = longval ();
7861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7862 return 1;
7863 fprintf (f, "%ld\n", i);
7864 }
7865 else
7866 {
7867 unsigned long int i = ulongval ();
7868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7869 return 1;
7870 fprintf (f, "%lu\n", i);
7871 }
7872 return ferror (f) || fclose (f) != 0;
7873
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_try") 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_sizeof_void_p=`cat conftest.val`
7899 else
7900 echo "$as_me: program exited with status $ac_status" >&5
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 ( exit $ac_status )
7905 if test "$ac_cv_type_void_p" = yes; then
7906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7907 See \`config.log' for more details." >&5
7908 echo "$as_me: error: cannot compute sizeof (void *)
7909 See \`config.log' for more details." >&2;}
7910 { (exit 77); exit 77; }; }
7911 else
7912 ac_cv_sizeof_void_p=0
7913 fi
7914 fi
7915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 rm -f conftest.val
7918 fi
7919 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7920 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7921
7922
7923
7924 cat >>confdefs.h <<_ACEOF
7925 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7926 _ACEOF
7927
7928
7929 { echo "$as_me:$LINENO: checking for long long" >&5
7930 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7931 if test "${ac_cv_type_long_long+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 typedef long long ac__type_new_;
7942 int
7943 main ()
7944 {
7945 if ((ac__type_new_ *) 0)
7946 return 0;
7947 if (sizeof (ac__type_new_))
7948 return 0;
7949 ;
7950 return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7955 case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7970 ac_cv_type_long_long=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_type_long_long=no
7976 fi
7977
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7981 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7982
7983 # The cast to long int works around a bug in the HP C Compiler
7984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7986 # This bug is HP SR number 8606223364.
7987 { echo "$as_me:$LINENO: checking size of long long" >&5
7988 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7989 if test "${ac_cv_sizeof_long_long+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 else
7992 if test "$cross_compiling" = yes; then
7993 # Depending upon the size, compute the lo and hi bounds.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 typedef long long ac__type_sizeof_;
8002 int
8003 main ()
8004 {
8005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8006 test_array [0] = 0
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_lo=0 ac_mid=0
8030 while :; do
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 typedef long long ac__type_sizeof_;
8039 int
8040 main ()
8041 {
8042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8043 test_array [0] = 0
8044
8045 ;
8046 return 0;
8047 }
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 ac_hi=$ac_mid; break
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_lo=`expr $ac_mid + 1`
8072 if test $ac_lo -le $ac_mid; then
8073 ac_lo= ac_hi=
8074 break
8075 fi
8076 ac_mid=`expr 2 '*' $ac_mid + 1`
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 done
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 $ac_includes_default
8092 typedef long long ac__type_sizeof_;
8093 int
8094 main ()
8095 {
8096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8097 test_array [0] = 0
8098
8099 ;
8100 return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_hi=-1 ac_mid=-1
8121 while :; do
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 typedef long long ac__type_sizeof_;
8130 int
8131 main ()
8132 {
8133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8134 test_array [0] = 0
8135
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_lo=$ac_mid; break
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162 ac_hi=`expr '(' $ac_mid ')' - 1`
8163 if test $ac_mid -le $ac_hi; then
8164 ac_lo= ac_hi=
8165 break
8166 fi
8167 ac_mid=`expr 2 '*' $ac_mid`
8168 fi
8169
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 done
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_lo= ac_hi=
8177 fi
8178
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 fi
8181
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 # Binary search between lo and hi bounds.
8184 while test "x$ac_lo" != "x$ac_hi"; do
8185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8193 typedef long long ac__type_sizeof_;
8194 int
8195 main ()
8196 {
8197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8198 test_array [0] = 0
8199
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_hi=$ac_mid
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_lo=`expr '(' $ac_mid ')' + 1`
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 done
8231 case $ac_lo in
8232 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8233 '') if test "$ac_cv_type_long_long" = yes; then
8234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8235 See \`config.log' for more details." >&5
8236 echo "$as_me: error: cannot compute sizeof (long long)
8237 See \`config.log' for more details." >&2;}
8238 { (exit 77); exit 77; }; }
8239 else
8240 ac_cv_sizeof_long_long=0
8241 fi ;;
8242 esac
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef long long ac__type_sizeof_;
8252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8254 #include <stdio.h>
8255 #include <stdlib.h>
8256 int
8257 main ()
8258 {
8259
8260 FILE *f = fopen ("conftest.val", "w");
8261 if (! f)
8262 return 1;
8263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8264 {
8265 long int i = longval ();
8266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8267 return 1;
8268 fprintf (f, "%ld\n", i);
8269 }
8270 else
8271 {
8272 unsigned long int i = ulongval ();
8273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8274 return 1;
8275 fprintf (f, "%lu\n", i);
8276 }
8277 return ferror (f) || fclose (f) != 0;
8278
8279 ;
8280 return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_sizeof_long_long=`cat conftest.val`
8304 else
8305 echo "$as_me: program exited with status $ac_status" >&5
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ( exit $ac_status )
8310 if test "$ac_cv_type_long_long" = yes; then
8311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8312 See \`config.log' for more details." >&5
8313 echo "$as_me: error: cannot compute sizeof (long long)
8314 See \`config.log' for more details." >&2;}
8315 { (exit 77); exit 77; }; }
8316 else
8317 ac_cv_sizeof_long_long=0
8318 fi
8319 fi
8320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 rm -f conftest.val
8323 fi
8324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8325 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8326
8327
8328
8329 cat >>confdefs.h <<_ACEOF
8330 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8331 _ACEOF
8332
8333
8334 { echo "$as_me:$LINENO: checking for off_t" >&5
8335 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8336 if test "${ac_cv_type_off_t+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 typedef off_t ac__type_new_;
8347 int
8348 main ()
8349 {
8350 if ((ac__type_new_ *) 0)
8351 return 0;
8352 if (sizeof (ac__type_new_))
8353 return 0;
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_type_off_t=yes
8376 else
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 ac_cv_type_off_t=no
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8386 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8387
8388 # The cast to long int works around a bug in the HP C Compiler
8389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8391 # This bug is HP SR number 8606223364.
8392 { echo "$as_me:$LINENO: checking size of off_t" >&5
8393 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
8394 if test "${ac_cv_sizeof_off_t+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 if test "$cross_compiling" = yes; then
8398 # Depending upon the size, compute the lo and hi bounds.
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 typedef off_t ac__type_sizeof_;
8407 int
8408 main ()
8409 {
8410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8411 test_array [0] = 0
8412
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8434 ac_lo=0 ac_mid=0
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 typedef off_t ac__type_sizeof_;
8444 int
8445 main ()
8446 {
8447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8448 test_array [0] = 0
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8456 case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_hi=$ac_mid; break
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_lo=`expr $ac_mid + 1`
8477 if test $ac_lo -le $ac_mid; then
8478 ac_lo= ac_hi=
8479 break
8480 fi
8481 ac_mid=`expr 2 '*' $ac_mid + 1`
8482 fi
8483
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486 else
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 typedef off_t ac__type_sizeof_;
8498 int
8499 main ()
8500 {
8501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8502 test_array [0] = 0
8503
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_hi=-1 ac_mid=-1
8526 while :; do
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 typedef off_t ac__type_sizeof_;
8535 int
8536 main ()
8537 {
8538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8539 test_array [0] = 0
8540
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_lo=$ac_mid; break
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ac_hi=`expr '(' $ac_mid ')' - 1`
8568 if test $ac_mid -le $ac_hi; then
8569 ac_lo= ac_hi=
8570 break
8571 fi
8572 ac_mid=`expr 2 '*' $ac_mid`
8573 fi
8574
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 done
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_lo= ac_hi=
8582 fi
8583
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 fi
8586
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 # Binary search between lo and hi bounds.
8589 while test "x$ac_lo" != "x$ac_hi"; do
8590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h. */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 typedef off_t ac__type_sizeof_;
8599 int
8600 main ()
8601 {
8602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8603 test_array [0] = 0
8604
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_hi=$ac_mid
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ac_lo=`expr '(' $ac_mid ')' + 1`
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 done
8636 case $ac_lo in
8637 ?*) ac_cv_sizeof_off_t=$ac_lo;;
8638 '') if test "$ac_cv_type_off_t" = yes; then
8639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8640 See \`config.log' for more details." >&5
8641 echo "$as_me: error: cannot compute sizeof (off_t)
8642 See \`config.log' for more details." >&2;}
8643 { (exit 77); exit 77; }; }
8644 else
8645 ac_cv_sizeof_off_t=0
8646 fi ;;
8647 esac
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef off_t ac__type_sizeof_;
8657 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8658 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8659 #include <stdio.h>
8660 #include <stdlib.h>
8661 int
8662 main ()
8663 {
8664
8665 FILE *f = fopen ("conftest.val", "w");
8666 if (! f)
8667 return 1;
8668 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8669 {
8670 long int i = longval ();
8671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8672 return 1;
8673 fprintf (f, "%ld\n", i);
8674 }
8675 else
8676 {
8677 unsigned long int i = ulongval ();
8678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8679 return 1;
8680 fprintf (f, "%lu\n", i);
8681 }
8682 return ferror (f) || fclose (f) != 0;
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8690 case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_link") 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_sizeof_off_t=`cat conftest.val`
8709 else
8710 echo "$as_me: program exited with status $ac_status" >&5
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 ( exit $ac_status )
8715 if test "$ac_cv_type_off_t" = yes; then
8716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
8717 See \`config.log' for more details." >&5
8718 echo "$as_me: error: cannot compute sizeof (off_t)
8719 See \`config.log' for more details." >&2;}
8720 { (exit 77); exit 77; }; }
8721 else
8722 ac_cv_sizeof_off_t=0
8723 fi
8724 fi
8725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 rm -f conftest.val
8728 fi
8729 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8730 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
8731
8732
8733
8734 cat >>confdefs.h <<_ACEOF
8735 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8736 _ACEOF
8737
8738
8739 { echo "$as_me:$LINENO: checking for sighandler_t" >&5
8740 echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6; }
8741 if test "${ac_cv_type_sighandler_t+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 /* if you have signal.h header, include it */
8751 #ifdef HAVE_SIGNAL_H
8752 #include <signal.h>
8753 #endif
8754
8755 typedef sighandler_t ac__type_new_;
8756 int
8757 main ()
8758 {
8759 if ((ac__type_new_ *) 0)
8760 return 0;
8761 if (sizeof (ac__type_new_))
8762 return 0;
8763 ;
8764 return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_type_sighandler_t=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ac_cv_type_sighandler_t=no
8790 fi
8791
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 fi
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
8795 echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6; }
8796 if test $ac_cv_type_sighandler_t = yes; then
8797
8798 cat >>confdefs.h <<\_ACEOF
8799 #define HAVE_SIGHANDLER_T 1
8800 _ACEOF
8801
8802 fi
8803
8804
8805 # Checks for library functions.
8806
8807 if test $ac_cv_c_compiler_gnu = yes; then
8808 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8809 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
8810 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 ac_pattern="Autoconf.*'x'"
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 #include <sgtty.h>
8821 Autoconf TIOCGETP
8822 _ACEOF
8823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8824 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8825 ac_cv_prog_gcc_traditional=yes
8826 else
8827 ac_cv_prog_gcc_traditional=no
8828 fi
8829 rm -f conftest*
8830
8831
8832 if test $ac_cv_prog_gcc_traditional = no; then
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 #include <termio.h>
8840 Autoconf TCGETA
8841 _ACEOF
8842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8843 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8844 ac_cv_prog_gcc_traditional=yes
8845 fi
8846 rm -f conftest*
8847
8848 fi
8849 fi
8850 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8851 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
8852 if test $ac_cv_prog_gcc_traditional = yes; then
8853 CC="$CC -traditional"
8854 fi
8855 fi
8856
8857 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8858 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8859 if test "${ac_cv_sys_largefile_source+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 while :; do
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <stdio.h>
8870 int
8871 main ()
8872 {
8873 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (ac_try="$ac_link"
8880 case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_link") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest$ac_exeext &&
8895 $as_test_x conftest$ac_exeext; then
8896 ac_cv_sys_largefile_source=no; break
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901
8902 fi
8903
8904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8905 conftest$ac_exeext conftest.$ac_ext
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 #define _LARGEFILE_SOURCE 1
8913 #include <stdio.h>
8914 int
8915 main ()
8916 {
8917 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_link") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
8938 } && test -s conftest$ac_exeext &&
8939 $as_test_x conftest$ac_exeext; then
8940 ac_cv_sys_largefile_source=1; break
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945
8946 fi
8947
8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949 conftest$ac_exeext conftest.$ac_ext
8950 ac_cv_sys_largefile_source=unknown
8951 break
8952 done
8953 fi
8954 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8955 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8956 case $ac_cv_sys_largefile_source in #(
8957 no | unknown) ;;
8958 *)
8959 cat >>confdefs.h <<_ACEOF
8960 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8961 _ACEOF
8962 ;;
8963 esac
8964 rm -f conftest*
8965
8966 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8967 # in glibc 2.1.3, but that breaks too many other things.
8968 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8969 if test $ac_cv_sys_largefile_source != unknown; then
8970
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_FSEEKO 1
8973 _ACEOF
8974
8975 fi
8976
8977 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
8978 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
8979 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 rm -f conftest.sym conftest.file
8983 echo >conftest.file
8984 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8985 if test "$cross_compiling" = yes; then
8986 ac_cv_func_lstat_dereferences_slashed_symlink=no
8987 else
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 int
8996 main ()
8997 {
8998 struct stat sbuf;
8999 /* Linux will dereference the symlink and fail.
9000 That is better in the sense that it means we will not
9001 have to compile and use the lstat wrapper. */
9002 return lstat ("conftest.sym/", &sbuf) == 0;
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest$ac_exeext
9008 if { (ac_try="$ac_link"
9009 case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_link") 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9028 else
9029 echo "$as_me: program exited with status $ac_status" >&5
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9032
9033 ( exit $ac_status )
9034 ac_cv_func_lstat_dereferences_slashed_symlink=no
9035 fi
9036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037 fi
9038
9039
9040 else
9041 # If the `ln -s' command failed, then we probably don't even
9042 # have an lstat function.
9043 ac_cv_func_lstat_dereferences_slashed_symlink=no
9044 fi
9045 rm -f conftest.sym conftest.file
9046
9047 fi
9048 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9049 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9050
9051 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9052
9053 cat >>confdefs.h <<_ACEOF
9054 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9055 _ACEOF
9056
9057
9058 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9059 case " $LIBOBJS " in
9060 *" lstat.$ac_objext "* ) ;;
9061 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9062 ;;
9063 esac
9064
9065 fi
9066
9067 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9068 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
9069 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 if test "$cross_compiling" = yes; then
9073 ac_cv_func_lstat_empty_string_bug=yes
9074 else
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 $ac_includes_default
9082 int
9083 main ()
9084 {
9085 struct stat sbuf;
9086 return lstat ("", &sbuf) == 0;
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9093 case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096 esac
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_link") 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105 esac
9106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_try") 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_func_lstat_empty_string_bug=no
9112 else
9113 echo "$as_me: program exited with status $ac_status" >&5
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ( exit $ac_status )
9118 ac_cv_func_lstat_empty_string_bug=yes
9119 fi
9120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9121 fi
9122
9123
9124 fi
9125 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9126 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
9127 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9128 case " $LIBOBJS " in
9129 *" lstat.$ac_objext "* ) ;;
9130 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9131 ;;
9132 esac
9133
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9137 _ACEOF
9138
9139 fi
9140
9141 { echo "$as_me:$LINENO: checking whether setpgrp() takes no arguments" >&5
9142 echo $ECHO_N "checking whether setpgrp() takes no arguments... $ECHO_C" >&6; }
9143 if test "${joe_cv_setpgrp_void+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 if test "$cross_compiling" = yes; then
9147 joe_cv_setpgrp_void=yes
9148 else
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155
9156 #if HAVE_UNISTD_H
9157 #include <unistd.h>
9158 #endif
9159 int main() {
9160 /* exit succesfully if setpgrp() takes two args (*BSD systems) */
9161 exit(setpgrp(0, 0) != 0);
9162 }
9163 _ACEOF
9164 rm -f conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_link") 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9175 { (case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_try") 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 joe_cv_setpgrp_void=no
9185 else
9186 echo "$as_me: program exited with status $ac_status" >&5
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 ( exit $ac_status )
9191 joe_cv_setpgrp_void=yes
9192 fi
9193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9194 fi
9195
9196
9197
9198 fi
9199 { echo "$as_me:$LINENO: result: $joe_cv_setpgrp_void" >&5
9200 echo "${ECHO_T}$joe_cv_setpgrp_void" >&6; }
9201 if test "$joe_cv_setpgrp_void" = yes; then
9202
9203 cat >>confdefs.h <<\_ACEOF
9204 #define SETPGRP_VOID 1
9205 _ACEOF
9206
9207 fi
9208
9209 { echo "$as_me:$LINENO: checking for pid_t" >&5
9210 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9211 if test "${ac_cv_type_pid_t+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 $ac_includes_default
9221 typedef pid_t ac__type_new_;
9222 int
9223 main ()
9224 {
9225 if ((ac__type_new_ *) 0)
9226 return 0;
9227 if (sizeof (ac__type_new_))
9228 return 0;
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_compile") 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest.$ac_objext; then
9250 ac_cv_type_pid_t=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_cv_type_pid_t=no
9256 fi
9257
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 fi
9260 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9261 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9262 if test $ac_cv_type_pid_t = yes; then
9263 :
9264 else
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define pid_t int
9268 _ACEOF
9269
9270 fi
9271
9272 { echo "$as_me:$LINENO: checking for size_t" >&5
9273 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9274 if test "${ac_cv_type_size_t+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 typedef size_t ac__type_new_;
9285 int
9286 main ()
9287 {
9288 if ((ac__type_new_ *) 0)
9289 return 0;
9290 if (sizeof (ac__type_new_))
9291 return 0;
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (ac_try="$ac_compile"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.$ac_objext; then
9313 ac_cv_type_size_t=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_type_size_t=no
9319 fi
9320
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 fi
9323 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9324 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9325 if test $ac_cv_type_size_t = yes; then
9326 :
9327 else
9328
9329 cat >>confdefs.h <<_ACEOF
9330 #define size_t unsigned int
9331 _ACEOF
9332
9333 fi
9334
9335 { echo "$as_me:$LINENO: checking for ssize_t" >&5
9336 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
9337 if test "${ac_cv_type_ssize_t+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 typedef ssize_t ac__type_new_;
9348 int
9349 main ()
9350 {
9351 if ((ac__type_new_ *) 0)
9352 return 0;
9353 if (sizeof (ac__type_new_))
9354 return 0;
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_type_ssize_t=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_type_ssize_t=no
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9387 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
9388 if test $ac_cv_type_ssize_t = yes; then
9389 :
9390 else
9391
9392
9393 cat >>confdefs.h <<\_ACEOF
9394 #define ssize_t int
9395 _ACEOF
9396
9397
9398 fi
9399
9400 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9401 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9402 if test "${ac_cv_type_signal+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <signal.h>
9413
9414 int
9415 main ()
9416 {
9417 return *(signal (0, 0)) (0) == 1;
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (ac_try="$ac_compile"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 ac_cv_type_signal=int
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 ac_cv_type_signal=void
9445 fi
9446
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9450 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9451
9452 cat >>confdefs.h <<_ACEOF
9453 #define RETSIGTYPE $ac_cv_type_signal
9454 _ACEOF
9455
9456
9457 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9458 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
9459 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 if test "$cross_compiling" = yes; then
9463 ac_cv_func_stat_empty_string_bug=yes
9464 else
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h. */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9471 $ac_includes_default
9472 int
9473 main ()
9474 {
9475 struct stat sbuf;
9476 return stat ("", &sbuf) == 0;
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9483 case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_link") 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9492 { (case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_try") 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_func_stat_empty_string_bug=no
9502 else
9503 echo "$as_me: program exited with status $ac_status" >&5
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9506
9507 ( exit $ac_status )
9508 ac_cv_func_stat_empty_string_bug=yes
9509 fi
9510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9511 fi
9512
9513
9514 fi
9515 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9516 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
9517 if test $ac_cv_func_stat_empty_string_bug = yes; then
9518 case " $LIBOBJS " in
9519 *" stat.$ac_objext "* ) ;;
9520 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
9521 ;;
9522 esac
9523
9524
9525 cat >>confdefs.h <<_ACEOF
9526 #define HAVE_STAT_EMPTY_STRING_BUG 1
9527 _ACEOF
9528
9529 fi
9530
9531
9532
9533 for ac_func in getcwd getwd
9534 do
9535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
9542 mirsave_CPPFLAGS=$CPPFLAGS
9543 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9552 #define $ac_func innocuous_$ac_func
9553
9554 /* System header to define __stub macros and hopefully few prototypes,
9555 which can conflict with char $ac_func (); below.
9556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557 <limits.h> exists even on freestanding compilers. */
9558
9559 #ifdef __STDC__
9560 # include <limits.h>
9561 #else
9562 # include <assert.h>
9563 #endif
9564
9565 #undef $ac_func
9566
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char $ac_func ();
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined __stub_$ac_func || defined __stub___$ac_func
9578 choke me
9579 #endif
9580
9581 int
9582 main ()
9583 {
9584 return $ac_func ();
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext &&
9606 $as_test_x conftest$ac_exeext; then
9607 eval "$as_ac_var=yes"
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 eval "$as_ac_var=no"
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616 conftest$ac_exeext conftest.$ac_ext
9617 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
9618 CPPFLAGS=$mirsave_CPPFLAGS
9619 else
9620 unset CPPFLAGS
9621 fi
9622 unset mirsave_CPPFLAGS_set
9623 unset mirsave_CPPFLAGS
9624
9625 fi
9626 ac_res=`eval echo '${'$as_ac_var'}'`
9627 { echo "$as_me:$LINENO: result: $ac_res" >&5
9628 echo "${ECHO_T}$ac_res" >&6; }
9629 if test `eval echo '${'$as_ac_var'}'` = yes; then
9630 cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9632 _ACEOF
9633
9634 fi
9635 done
9636
9637 if test x"$ac_cv_func_getcwd" != xyes; then
9638 if test x"$ac_cv_func_getwd" != xyes; then
9639 { { echo "$as_me:$LINENO: error: don't know how to get current working directory" >&5
9640 echo "$as_me: error: don't know how to get current working directory" >&2;}
9641 { (exit 1); exit 1; }; }
9642 fi
9643 fi
9644
9645
9646
9647
9648
9649
9650
9651 for ac_func in alarm ctime fsync get_current_dir_name isatty mkdir mkstemp
9652 do
9653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
9660 mirsave_CPPFLAGS=$CPPFLAGS
9661 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9670 #define $ac_func innocuous_$ac_func
9671
9672 /* System header to define __stub macros and hopefully few prototypes,
9673 which can conflict with char $ac_func (); below.
9674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9675 <limits.h> exists even on freestanding compilers. */
9676
9677 #ifdef __STDC__
9678 # include <limits.h>
9679 #else
9680 # include <assert.h>
9681 #endif
9682
9683 #undef $ac_func
9684
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 char $ac_func ();
9692 /* The GNU C library defines this for functions which it implements
9693 to always fail with ENOSYS. Some functions are actually named
9694 something starting with __ and the normal name is an alias. */
9695 #if defined __stub_$ac_func || defined __stub___$ac_func
9696 choke me
9697 #endif
9698
9699 int
9700 main ()
9701 {
9702 return $ac_func ();
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && {
9721 test -z "$ac_c_werror_flag" ||
9722 test ! -s conftest.err
9723 } && test -s conftest$ac_exeext &&
9724 $as_test_x conftest$ac_exeext; then
9725 eval "$as_ac_var=yes"
9726 else
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730 eval "$as_ac_var=no"
9731 fi
9732
9733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9734 conftest$ac_exeext conftest.$ac_ext
9735 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
9736 CPPFLAGS=$mirsave_CPPFLAGS
9737 else
9738 unset CPPFLAGS
9739 fi
9740 unset mirsave_CPPFLAGS_set
9741 unset mirsave_CPPFLAGS
9742
9743 fi
9744 ac_res=`eval echo '${'$as_ac_var'}'`
9745 { echo "$as_me:$LINENO: result: $ac_res" >&5
9746 echo "${ECHO_T}$ac_res" >&6; }
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750 _ACEOF
9751
9752 fi
9753 done
9754
9755
9756
9757
9758
9759
9760
9761 for ac_func in nl_langinfo popen putenv setitimer setlocale setpgid
9762 do
9763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
9770 mirsave_CPPFLAGS=$CPPFLAGS
9771 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780 #define $ac_func innocuous_$ac_func
9781
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char $ac_func (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9786
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9792
9793 #undef $ac_func
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char $ac_func ();
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined __stub_$ac_func || defined __stub___$ac_func
9806 choke me
9807 #endif
9808
9809 int
9810 main ()
9811 {
9812 return $ac_func ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 eval "$as_ac_var=yes"
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 eval "$as_ac_var=no"
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
9846 CPPFLAGS=$mirsave_CPPFLAGS
9847 else
9848 unset CPPFLAGS
9849 fi
9850 unset mirsave_CPPFLAGS_set
9851 unset mirsave_CPPFLAGS
9852
9853 fi
9854 ac_res=`eval echo '${'$as_ac_var'}'`
9855 { echo "$as_me:$LINENO: result: $ac_res" >&5
9856 echo "${ECHO_T}$ac_res" >&6; }
9857 if test `eval echo '${'$as_ac_var'}'` = yes; then
9858 cat >>confdefs.h <<_ACEOF
9859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9860 _ACEOF
9861
9862 fi
9863 done
9864
9865
9866
9867
9868
9869
9870
9871 for ac_func in sigaction siginterrupt sigprocmask sigvec strchr strdup
9872 do
9873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
9880 mirsave_CPPFLAGS=$CPPFLAGS
9881 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890 #define $ac_func innocuous_$ac_func
9891
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char $ac_func (); below.
9894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895 <limits.h> exists even on freestanding compilers. */
9896
9897 #ifdef __STDC__
9898 # include <limits.h>
9899 #else
9900 # include <assert.h>
9901 #endif
9902
9903 #undef $ac_func
9904
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char $ac_func ();
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined __stub_$ac_func || defined __stub___$ac_func
9916 choke me
9917 #endif
9918
9919 int
9920 main ()
9921 {
9922 return $ac_func ();
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest$ac_exeext &&
9944 $as_test_x conftest$ac_exeext; then
9945 eval "$as_ac_var=yes"
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 eval "$as_ac_var=no"
9951 fi
9952
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9955 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
9956 CPPFLAGS=$mirsave_CPPFLAGS
9957 else
9958 unset CPPFLAGS
9959 fi
9960 unset mirsave_CPPFLAGS_set
9961 unset mirsave_CPPFLAGS
9962
9963 fi
9964 ac_res=`eval echo '${'$as_ac_var'}'`
9965 { echo "$as_me:$LINENO: result: $ac_res" >&5
9966 echo "${ECHO_T}$ac_res" >&6; }
9967 if test `eval echo '${'$as_ac_var'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 _ACEOF
9971
9972 fi
9973 done
9974
9975
9976
9977
9978
9979 for ac_func in strlcat strlcpy sync utime
9980 do
9981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
9988 mirsave_CPPFLAGS=$CPPFLAGS
9989 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h. */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9998 #define $ac_func innocuous_$ac_func
9999
10000 /* System header to define __stub macros and hopefully few prototypes,
10001 which can conflict with char $ac_func (); below.
10002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10003 <limits.h> exists even on freestanding compilers. */
10004
10005 #ifdef __STDC__
10006 # include <limits.h>
10007 #else
10008 # include <assert.h>
10009 #endif
10010
10011 #undef $ac_func
10012
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 char $ac_func ();
10020 /* The GNU C library defines this for functions which it implements
10021 to always fail with ENOSYS. Some functions are actually named
10022 something starting with __ and the normal name is an alias. */
10023 #if defined __stub_$ac_func || defined __stub___$ac_func
10024 choke me
10025 #endif
10026
10027 int
10028 main ()
10029 {
10030 return $ac_func ();
10031 ;
10032 return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_link") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext &&
10052 $as_test_x conftest$ac_exeext; then
10053 eval "$as_ac_var=yes"
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 eval "$as_ac_var=no"
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10062 conftest$ac_exeext conftest.$ac_ext
10063 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
10064 CPPFLAGS=$mirsave_CPPFLAGS
10065 else
10066 unset CPPFLAGS
10067 fi
10068 unset mirsave_CPPFLAGS_set
10069 unset mirsave_CPPFLAGS
10070
10071 fi
10072 ac_res=`eval echo '${'$as_ac_var'}'`
10073 { echo "$as_me:$LINENO: result: $ac_res" >&5
10074 echo "${ECHO_T}$ac_res" >&6; }
10075 if test `eval echo '${'$as_ac_var'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10078 _ACEOF
10079
10080 fi
10081 done
10082
10083
10084 # Check whether --enable-fork was given.
10085 if test "${enable_fork+set}" = set; then
10086 enableval=$enable_fork; use_fork=$enableval
10087 else
10088 use_fork=yes
10089 fi
10090
10091 test x"$use_fork" = x"no" && ac_cv_func_fork=no
10092
10093
10094 for ac_func in fork unsetenv
10095 do
10096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 mirsave_CPPFLAGS_set=${CPPFLAGS+ja}
10103 mirsave_CPPFLAGS=$CPPFLAGS
10104 CPPFLAGS="-D_MIRMAKE_H $CPPFLAGS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10113 #define $ac_func innocuous_$ac_func
10114
10115 /* System header to define __stub macros and hopefully few prototypes,
10116 which can conflict with char $ac_func (); below.
10117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118 <limits.h> exists even on freestanding compilers. */
10119
10120 #ifdef __STDC__
10121 # include <limits.h>
10122 #else
10123 # include <assert.h>
10124 #endif
10125
10126 #undef $ac_func
10127
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char $ac_func ();
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined __stub_$ac_func || defined __stub___$ac_func
10139 choke me
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145 return $ac_func ();
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest$ac_exeext &&
10167 $as_test_x conftest$ac_exeext; then
10168 eval "$as_ac_var=yes"
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 eval "$as_ac_var=no"
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10177 conftest$ac_exeext conftest.$ac_ext
10178 if test x"ja" = x"$mirsave_CPPFLAGS_set"; then
10179 CPPFLAGS=$mirsave_CPPFLAGS
10180 else
10181 unset CPPFLAGS
10182 fi
10183 unset mirsave_CPPFLAGS_set
10184 unset mirsave_CPPFLAGS
10185
10186 fi
10187 ac_res=`eval echo '${'$as_ac_var'}'`
10188 { echo "$as_me:$LINENO: result: $ac_res" >&5
10189 echo "${ECHO_T}$ac_res" >&6; }
10190 if test `eval echo '${'$as_ac_var'}'` = yes; then
10191 cat >>confdefs.h <<_ACEOF
10192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10193 _ACEOF
10194
10195 fi
10196 done
10197
10198 case $use_fork:$ac_cv_func_fork in
10199 no:*) use_fork=0 ;;
10200 *:yes) use_fork=1 ;;
10201 *) use_fork=0 ;;
10202 esac
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define WANT_FORK $use_fork
10206 _ACEOF
10207
10208 if test $use_fork = 1; then
10209 echo "Enabling use of fork(), concurrent subshells, etc."
10210 else
10211 echo "DISabling use of fork() and concurrent subshells (NOMMU)!"
10212 fi
10213
10214 # Check whether --enable-fpu was given.
10215 if test "${enable_fpu+set}" = set; then
10216 enableval=$enable_fpu; use_fpu=$enableval
10217 else
10218 use_fpu=yes
10219 fi
10220
10221 if test x"$use_fpu" = x"no"; then
10222 use_fpu=0
10223 else
10224 use_fpu=1
10225 fi
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define WANT_MATH $use_fpu
10229 _ACEOF
10230
10231 if test $use_fpu = 1; then
10232 echo "Enabling use of floating point arithmetics"
10233 else
10234 echo "DISabling Math support for lack of an FPU!"
10235 fi
10236
10237 # Check whether --enable-small was given.
10238 if test "${enable_small+set}" = set; then
10239 enableval=$enable_small; use_small=$enableval
10240 else
10241 use_small=no
10242 fi
10243
10244 if test x"$use_small" = x"yes"; then
10245 # for constrained systems (like 8 MiB RAM total) only
10246
10247 cat >>confdefs.h <<\_ACEOF
10248 #define SMALL 1
10249 _ACEOF
10250
10251 fi
10252
10253 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
10254 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
10255 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10265 int
10266 main ()
10267 {
10268 #ifndef strlcpy
10269 (void) strlcpy;
10270 #endif
10271
10272 ;
10273 return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext
10277 if { (ac_try="$ac_compile"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_compile") 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest.$ac_objext; then
10293 ac_cv_have_decl_strlcpy=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 ac_cv_have_decl_strlcpy=no
10299 fi
10300
10301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 fi
10303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
10304 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
10305 if test $ac_cv_have_decl_strlcpy = yes; then
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define HAVE_DECL_STRLCPY 1
10309 _ACEOF
10310
10311
10312 else
10313 cat >>confdefs.h <<_ACEOF
10314 #define HAVE_DECL_STRLCPY 0
10315 _ACEOF
10316
10317
10318 fi
10319 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
10320 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
10321 if test "${ac_cv_have_decl_strlcat+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10331 int
10332 main ()
10333 {
10334 #ifndef strlcat
10335 (void) strlcat;
10336 #endif
10337
10338 ;
10339 return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (ac_try="$ac_compile"
10344 case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10347 esac
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_compile") 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
10358 } && test -s conftest.$ac_objext; then
10359 ac_cv_have_decl_strlcat=yes
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 ac_cv_have_decl_strlcat=no
10365 fi
10366
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 fi
10369 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
10370 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
10371 if test $ac_cv_have_decl_strlcat = yes; then
10372
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_DECL_STRLCAT 1
10375 _ACEOF
10376
10377
10378 else
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_DECL_STRLCAT 0
10381 _ACEOF
10382
10383
10384 fi
10385 { echo "$as_me:$LINENO: checking whether popen is declared" >&5
10386 echo $ECHO_N "checking whether popen is declared... $ECHO_C" >&6; }
10387 if test "${ac_cv_have_decl_popen+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 $ac_includes_default
10397 int
10398 main ()
10399 {
10400 #ifndef popen
10401 (void) popen;
10402 #endif
10403
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_cv_have_decl_popen=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_have_decl_popen=no
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_popen" >&5
10436 echo "${ECHO_T}$ac_cv_have_decl_popen" >&6; }
10437 if test $ac_cv_have_decl_popen = yes; then
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_DECL_POPEN 1
10441 _ACEOF
10442
10443
10444 else
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_DECL_POPEN 0
10447 _ACEOF
10448
10449
10450 fi
10451
10452
10453 { echo "$as_me:$LINENO: checking whether ctime is declared" >&5
10454 echo $ECHO_N "checking whether ctime is declared... $ECHO_C" >&6; }
10455 if test "${ac_cv_have_decl_ctime+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 $ac_includes_default
10465 #ifdef TIME_WITH_SYS_TIME
10466 # include <sys/time.h>
10467 # include <time.h>
10468 #else
10469 # ifdef HAVE_SYS_TIME_H
10470 # include <sys/time.h>
10471 # else
10472 # include <time.h>
10473 # endif
10474 #endif
10475
10476
10477 int
10478 main ()
10479 {
10480 #ifndef ctime
10481 (void) ctime;
10482 #endif
10483
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 rm -f conftest.$ac_objext
10489 if { (ac_try="$ac_compile"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493 esac
10494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_compile") 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && {
10502 test -z "$ac_c_werror_flag" ||
10503 test ! -s conftest.err
10504 } && test -s conftest.$ac_objext; then
10505 ac_cv_have_decl_ctime=yes
10506 else
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 ac_cv_have_decl_ctime=no
10511 fi
10512
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 fi
10515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ctime" >&5
10516 echo "${ECHO_T}$ac_cv_have_decl_ctime" >&6; }
10517 if test $ac_cv_have_decl_ctime = yes; then
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_DECL_CTIME 1
10521 _ACEOF
10522
10523
10524 else
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_DECL_CTIME 0
10527 _ACEOF
10528
10529
10530 fi
10531
10532
10533
10534 { echo "$as_me:$LINENO: checking whether sighandlers must be reinstalled" >&5
10535 echo $ECHO_N "checking whether sighandlers must be reinstalled... $ECHO_C" >&6; }
10536 if test "${joe_cv_reinstall_sighandlers+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 if test "$cross_compiling" = yes; then
10540 joe_cv_reinstall_sighandlers=yes
10541 else
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548
10549 #if HAVE_UNISTD_H
10550 #include <unistd.h>
10551 #endif
10552 #if HAVE_SIGNAL_H
10553 #include <signal.h>
10554 #endif
10555
10556 #ifndef HAVE_SIGHANDLER_T
10557 typedef RETSIGTYPE (*sighandler_t)(int);
10558 #endif
10559
10560 int nsigint;
10561
10562 void set_signal(int signum, sighandler_t handler) {
10563 #if HAVE_SIGACTION
10564 struct sigaction sact;
10565
10566 sact.sa_handler = handler;
10567 sact.sa_flags = 0;
10568 sigemptyset(&sact.sa_mask);
10569 sigaction(signum, &sact, NULL);
10570 #elif HAVE_SIGVEC
10571 struct sigvec svec;
10572
10573 svec.sv_handler = handler;
10574 svec.sv_flags = 0;
10575 sigemptyset(&svec.sv_mask);
10576 sigvec(signum, &svec, NULL);
10577 #else
10578 signal(signum, handler);
10579 #endif
10580 }
10581
10582 RETSIGTYPE sigint(int s) {
10583 nsigint++;
10584 }
10585
10586 int main() {
10587 nsigint = 0;
10588 set_signal(SIGINT, sigint);
10589 kill((int)getpid(), SIGINT);
10590 kill((int)getpid(), SIGINT);
10591 /* exit succesfully if don't have to reinstall sighandler when invoked */
10592 exit(nsigint != 2);
10593 }
10594 _ACEOF
10595 rm -f conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_link") 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 joe_cv_reinstall_sighandlers=no
10616 else
10617 echo "$as_me: program exited with status $ac_status" >&5
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ( exit $ac_status )
10622 joe_cv_reinstall_sighandlers=yes
10623 fi
10624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10625 fi
10626
10627
10628
10629 fi
10630 { echo "$as_me:$LINENO: result: $joe_cv_reinstall_sighandlers" >&5
10631 echo "${ECHO_T}$joe_cv_reinstall_sighandlers" >&6; }
10632 if test "$joe_cv_reinstall_sighandlers" = yes; then
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define NEED_TO_REINSTALL_SIGNAL 1
10636 _ACEOF
10637
10638 fi
10639
10640
10641 # Check for programs..
10642 # Extract the first word of "aspell", so it can be a program name with args.
10643 set dummy aspell; ac_word=$2
10644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10646 if test "${ac_cv_prog_SPELL+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 if test -n "$SPELL"; then
10650 ac_cv_prog_SPELL="$SPELL" # Let the user override the test.
10651 else
10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10654 do
10655 IFS=$as_save_IFS
10656 test -z "$as_dir" && as_dir=.
10657 for ac_exec_ext in '' $ac_executable_extensions; do
10658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10659 ac_cv_prog_SPELL="aspell"
10660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 break 2
10662 fi
10663 done
10664 done
10665 IFS=$as_save_IFS
10666
10667 test -z "$ac_cv_prog_SPELL" && ac_cv_prog_SPELL="ispell"
10668 fi
10669 fi
10670 SPELL=$ac_cv_prog_SPELL
10671 if test -n "$SPELL"; then
10672 { echo "$as_me:$LINENO: result: $SPELL" >&5
10673 echo "${ECHO_T}$SPELL" >&6; }
10674 else
10675 { echo "$as_me:$LINENO: result: no" >&5
10676 echo "${ECHO_T}no" >&6; }
10677 fi
10678
10679
10680
10681 # strictly speaking, the .jsf files should have no substitutions,
10682 # as they don’t do what you think they expand, currently it’s more
10683 # expensive however to rename them in CVS, so we keep that until
10684 # jupp has converted to mirtoconf
10685 ac_config_files="$ac_config_files Makefile syntax/c.jsf syntax/perl.jsf syntax/verilog.jsf syntax/sh.jsf syntax/python.jsf syntax/conf.jsf syntax/php.jsf syntax/mail.jsf syntax/pascal.jsf syntax/html.jsf syntax/vhdl.jsf syntax/fortran.jsf syntax/java.jsf syntax/xml.jsf syntax/tcl.jsf charmaps/klingon syntax/lisp.jsf syntax/csh.jsf syntax/mason.jsf syntax/diff.jsf syntax/asm.jsf syntax/tex.jsf"
10686
10687 cat >confcache <<\_ACEOF
10688 # This file is a shell script that caches the results of configure
10689 # tests run on this system so they can be shared between configure
10690 # scripts and configure runs, see configure's option --config-cache.
10691 # It is not useful on other systems. If it contains results you don't
10692 # want to keep, you may remove or edit it.
10693 #
10694 # config.status only pays attention to the cache file if you give it
10695 # the --recheck option to rerun configure.
10696 #
10697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10699 # following values.
10700
10701 _ACEOF
10702
10703 # The following way of writing the cache mishandles newlines in values,
10704 # but we know of no workaround that is simple, portable, and efficient.
10705 # So, we kill variables containing newlines.
10706 # Ultrix sh set writes to stderr and can't be redirected directly,
10707 # and sets the high bit in the cache file unless we assign to the vars.
10708 (
10709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10710 eval ac_val=\$$ac_var
10711 case $ac_val in #(
10712 *${as_nl}*)
10713 case $ac_var in #(
10714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10716 esac
10717 case $ac_var in #(
10718 _ | IFS | as_nl) ;; #(
10719 *) $as_unset $ac_var ;;
10720 esac ;;
10721 esac
10722 done
10723
10724 (set) 2>&1 |
10725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10726 *${as_nl}ac_space=\ *)
10727 # `set' does not quote correctly, so add quotes (double-quote
10728 # substitution turns \\\\ into \\, and sed turns \\ into \).
10729 sed -n \
10730 "s/'/'\\\\''/g;
10731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10732 ;; #(
10733 *)
10734 # `set' quotes correctly as required by POSIX, so do not add quotes.
10735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10736 ;;
10737 esac |
10738 sort
10739 ) |
10740 sed '
10741 /^ac_cv_env_/b end
10742 t clear
10743 :clear
10744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10745 t end
10746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10747 :end' >>confcache
10748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10749 if test -w "$cache_file"; then
10750 test "x$cache_file" != "x/dev/null" &&
10751 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10752 echo "$as_me: updating cache $cache_file" >&6;}
10753 cat confcache >$cache_file
10754 else
10755 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10756 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10757 fi
10758 fi
10759 rm -f confcache
10760
10761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10762 # Let make expand exec_prefix.
10763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10764
10765 DEFS=-DHAVE_CONFIG_H
10766
10767 ac_libobjs=
10768 ac_ltlibobjs=
10769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10770 # 1. Remove the extension, and $U if already installed.
10771 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10772 ac_i=`echo "$ac_i" | sed "$ac_script"`
10773 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10774 # will be set to the directory where LIBOBJS objects are built.
10775 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10776 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10777 done
10778 LIBOBJS=$ac_libobjs
10779
10780 LTLIBOBJS=$ac_ltlibobjs
10781
10782
10783 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10784 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10785 Usually this means the macro was only invoked conditionally." >&5
10786 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10787 Usually this means the macro was only invoked conditionally." >&2;}
10788 { (exit 1); exit 1; }; }
10789 fi
10790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10791 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10792 Usually this means the macro was only invoked conditionally." >&5
10793 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10794 Usually this means the macro was only invoked conditionally." >&2;}
10795 { (exit 1); exit 1; }; }
10796 fi
10797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10799 Usually this means the macro was only invoked conditionally." >&5
10800 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10801 Usually this means the macro was only invoked conditionally." >&2;}
10802 { (exit 1); exit 1; }; }
10803 fi
10804 if test -z "${WANT_TERMIDX_TRUE}" && test -z "${WANT_TERMIDX_FALSE}"; then
10805 { { echo "$as_me:$LINENO: error: conditional \"WANT_TERMIDX\" was never defined.
10806 Usually this means the macro was only invoked conditionally." >&5
10807 echo "$as_me: error: conditional \"WANT_TERMIDX\" was never defined.
10808 Usually this means the macro was only invoked conditionally." >&2;}
10809 { (exit 1); exit 1; }; }
10810 fi
10811
10812 : ${CONFIG_STATUS=./config.status}
10813 ac_clean_files_save=$ac_clean_files
10814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10815 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10816 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10817 cat >$CONFIG_STATUS <<_ACEOF
10818 #! $SHELL
10819 # Generated by $as_me.
10820 # Run this file to recreate the current configuration.
10821 # Compiler output produced by configure, useful for debugging
10822 # configure, is in config.log if it exists.
10823
10824 debug=false
10825 ac_cs_recheck=false
10826 ac_cs_silent=false
10827 SHELL=\${CONFIG_SHELL-$SHELL}
10828 _ACEOF
10829
10830 cat >>$CONFIG_STATUS <<\_ACEOF
10831 ## --------------------- ##
10832 ## M4sh Initialization. ##
10833 ## --------------------- ##
10834
10835 # Be more Bourne compatible
10836 DUALCASE=1; export DUALCASE # for MKS sh
10837 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10838 emulate sh
10839 NULLCMD=:
10840 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10841 # is contrary to our usage. Disable this feature.
10842 alias -g '${1+"$@"}'='"$@"'
10843 setopt NO_GLOB_SUBST
10844 else
10845 case `(set -o) 2>/dev/null` in
10846 *posix*) set -o posix ;;
10847 esac
10848
10849 fi
10850
10851
10852
10853
10854 # PATH needs CR
10855 # Avoid depending upon Character Ranges.
10856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10859 as_cr_digits='0123456789'
10860 as_cr_alnum=$as_cr_Letters$as_cr_digits
10861
10862 # The user is always right.
10863 if test "${PATH_SEPARATOR+set}" != set; then
10864 echo "#! /bin/sh" >conf$$.sh
10865 echo "exit 0" >>conf$$.sh
10866 chmod +x conf$$.sh
10867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10868 PATH_SEPARATOR=';'
10869 else
10870 PATH_SEPARATOR=:
10871 fi
10872 rm -f conf$$.sh
10873 fi
10874
10875 # Support unset when possible.
10876 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10877 as_unset=unset
10878 else
10879 as_unset=false
10880 fi
10881
10882
10883 # IFS
10884 # We need space, tab and new line, in precisely that order. Quoting is
10885 # there to prevent editors from complaining about space-tab.
10886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10887 # splitting by setting IFS to empty value.)
10888 as_nl='
10889 '
10890 IFS=" "" $as_nl"
10891
10892 # Find who we are. Look in the path if we contain no directory separator.
10893 case $0 in
10894 *[\\/]* ) as_myself=$0 ;;
10895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10901 done
10902 IFS=$as_save_IFS
10903
10904 ;;
10905 esac
10906 # We did not find ourselves, most probably we were run as `sh COMMAND'
10907 # in which case we are not to be found in the path.
10908 if test "x$as_myself" = x; then
10909 as_myself=$0
10910 fi
10911 if test ! -f "$as_myself"; then
10912 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10913 { (exit 1); exit 1; }
10914 fi
10915
10916 # Work around bugs in pre-3.0 UWIN ksh.
10917 for as_var in ENV MAIL MAILPATH
10918 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10919 done
10920 PS1='$ '
10921 PS2='> '
10922 PS4='+ '
10923
10924 # NLS nuisances.
10925 for as_var in \
10926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10928 LC_TELEPHONE LC_TIME
10929 do
10930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10931 eval $as_var=C; export $as_var
10932 else
10933 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10934 fi
10935 done
10936
10937 # Required to use basename.
10938 if expr a : '\(a\)' >/dev/null 2>&1 &&
10939 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10940 as_expr=expr
10941 else
10942 as_expr=false
10943 fi
10944
10945 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10946 as_basename=basename
10947 else
10948 as_basename=false
10949 fi
10950
10951
10952 # Name of the executable.
10953 as_me=`$as_basename -- "$0" ||
10954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10955 X"$0" : 'X\(//\)$' \| \
10956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10957 echo X/"$0" |
10958 sed '/^.*\/\([^/][^/]*\)\/*$/{
10959 s//\1/
10960 q
10961 }
10962 /^X\/\(\/\/\)$/{
10963 s//\1/
10964 q
10965 }
10966 /^X\/\(\/\).*/{
10967 s//\1/
10968 q
10969 }
10970 s/.*/./; q'`
10971
10972 # CDPATH.
10973 $as_unset CDPATH
10974
10975
10976
10977 as_lineno_1=$LINENO
10978 as_lineno_2=$LINENO
10979 test "x$as_lineno_1" != "x$as_lineno_2" &&
10980 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10981
10982 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10983 # uniformly replaced by the line number. The first 'sed' inserts a
10984 # line-number line after each line using $LINENO; the second 'sed'
10985 # does the real work. The second script uses 'N' to pair each
10986 # line-number line with the line containing $LINENO, and appends
10987 # trailing '-' during substitution so that $LINENO is not a special
10988 # case at line end.
10989 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10990 # scripts with optimization help from Paolo Bonzini. Blame Lee
10991 # E. McMahon (1931-1989) for sed's syntax. :-)
10992 sed -n '
10993 p
10994 /[$]LINENO/=
10995 ' <$as_myself |
10996 sed '
10997 s/[$]LINENO.*/&-/
10998 t lineno
10999 b
11000 :lineno
11001 N
11002 :loop
11003 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11004 t loop
11005 s/-\n.*//
11006 ' >$as_me.lineno &&
11007 chmod +x "$as_me.lineno" ||
11008 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11009 { (exit 1); exit 1; }; }
11010
11011 # Don't try to exec as it changes $[0], causing all sort of problems
11012 # (the dirname of $[0] is not the place where we might find the
11013 # original and so on. Autoconf is especially sensitive to this).
11014 . "./$as_me.lineno"
11015 # Exit status is that of the last command.
11016 exit
11017 }
11018
11019
11020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11021 as_dirname=dirname
11022 else
11023 as_dirname=false
11024 fi
11025
11026 ECHO_C= ECHO_N= ECHO_T=
11027 case `echo -n x` in
11028 -n*)
11029 case `echo 'x\c'` in
11030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11031 *) ECHO_C='\c';;
11032 esac;;
11033 *)
11034 ECHO_N='-n';;
11035 esac
11036
11037 if expr a : '\(a\)' >/dev/null 2>&1 &&
11038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11039 as_expr=expr
11040 else
11041 as_expr=false
11042 fi
11043
11044 rm -f conf$$ conf$$.exe conf$$.file
11045 if test -d conf$$.dir; then
11046 rm -f conf$$.dir/conf$$.file
11047 else
11048 rm -f conf$$.dir
11049 mkdir conf$$.dir
11050 fi
11051 echo >conf$$.file
11052 if ln -s conf$$.file conf$$ 2>/dev/null; then
11053 as_ln_s='ln -s'
11054 # ... but there are two gotchas:
11055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11057 # In both cases, we have to default to `cp -p'.
11058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11059 as_ln_s='cp -p'
11060 elif ln conf$$.file conf$$ 2>/dev/null; then
11061 as_ln_s=ln
11062 else
11063 as_ln_s='cp -p'
11064 fi
11065 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11066 rmdir conf$$.dir 2>/dev/null
11067
11068 if mkdir -p . 2>/dev/null; then
11069 as_mkdir_p=:
11070 else
11071 test -d ./-p && rmdir ./-p
11072 as_mkdir_p=false
11073 fi
11074
11075 if test -x / >/dev/null 2>&1; then
11076 as_test_x='test -x'
11077 else
11078 if ls -dL / >/dev/null 2>&1; then
11079 as_ls_L_option=L
11080 else
11081 as_ls_L_option=
11082 fi
11083 as_test_x='
11084 eval sh -c '\''
11085 if test -d "$1"; then
11086 test -d "$1/.";
11087 else
11088 case $1 in
11089 -*)set "./$1";;
11090 esac;
11091 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11092 ???[sx]*):;;*)false;;esac;fi
11093 '\'' sh
11094 '
11095 fi
11096 as_executable_p=$as_test_x
11097
11098 # Sed expression to map a string onto a valid CPP name.
11099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11100
11101 # Sed expression to map a string onto a valid variable name.
11102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11103
11104
11105 exec 6>&1
11106
11107 # Save the log message, to keep $[0] and so on meaningful, and to
11108 # report actual input values of CONFIG_FILES etc. instead of their
11109 # values after options handling.
11110 ac_log="
11111 This file was extended by joe $as_me 3.1jupp41, which was
11112 generated by GNU Autoconf 2.61-MirPorts-3. Invocation command line was
11113
11114 CONFIG_FILES = $CONFIG_FILES
11115 CONFIG_HEADERS = $CONFIG_HEADERS
11116 CONFIG_LINKS = $CONFIG_LINKS
11117 CONFIG_COMMANDS = $CONFIG_COMMANDS
11118 $ $0 $@
11119
11120 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11121 "
11122
11123 _ACEOF
11124
11125 cat >>$CONFIG_STATUS <<_ACEOF
11126 # Files that config.status was made for.
11127 config_files="$ac_config_files"
11128 config_headers="$ac_config_headers"
11129 config_commands="$ac_config_commands"
11130
11131 _ACEOF
11132
11133 cat >>$CONFIG_STATUS <<\_ACEOF
11134 ac_cs_usage="\
11135 \`$as_me' instantiates files from templates according to the
11136 current configuration.
11137
11138 Usage: $0 [OPTIONS] [FILE]...
11139
11140 -h, --help print this help, then exit
11141 -V, --version print version number and configuration settings, then exit
11142 -q, --quiet do not print progress messages
11143 -d, --debug don't remove temporary files
11144 --recheck update $as_me by reconfiguring in the same conditions
11145 --file=FILE[:TEMPLATE]
11146 instantiate the configuration file FILE
11147 --header=FILE[:TEMPLATE]
11148 instantiate the configuration header FILE
11149
11150 Configuration files:
11151 $config_files
11152
11153 Configuration headers:
11154 $config_headers
11155
11156 Configuration commands:
11157 $config_commands
11158
11159 Report bugs to <[email protected]>."
11160
11161 _ACEOF
11162 cat >>$CONFIG_STATUS <<_ACEOF
11163 ac_cs_version="\\
11164 joe config.status 3.1jupp41
11165 configured by $0, generated by GNU Autoconf 2.61-MirPorts-3,
11166 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11167
11168 Copyright (C) 2006 Free Software Foundation, Inc.
11169 This config.status script is free software; the Free Software Foundation
11170 gives unlimited permission to copy, distribute and modify it."
11171
11172 ac_pwd='$ac_pwd'
11173 srcdir='$srcdir'
11174 INSTALL='$INSTALL'
11175 _ACEOF
11176
11177 cat >>$CONFIG_STATUS <<\_ACEOF
11178 # If no file are specified by the user, then we need to provide default
11179 # value. By we need to know if files were specified by the user.
11180 ac_need_defaults=:
11181 while test $# != 0
11182 do
11183 case $1 in
11184 --*=*)
11185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11187 ac_shift=:
11188 ;;
11189 *)
11190 ac_option=$1
11191 ac_optarg=$2
11192 ac_shift=shift
11193 ;;
11194 esac
11195
11196 case $ac_option in
11197 # Handling of the options.
11198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11199 ac_cs_recheck=: ;;
11200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11201 echo "$ac_cs_version"; exit ;;
11202 --debug | --debu | --deb | --de | --d | -d )
11203 debug=: ;;
11204 --file | --fil | --fi | --f )
11205 $ac_shift
11206 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11207 ac_need_defaults=false;;
11208 --header | --heade | --head | --hea )
11209 $ac_shift
11210 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11211 ac_need_defaults=false;;
11212 --he | --h)
11213 # Conflict between --help and --header
11214 { echo "$as_me: error: ambiguous option: $1
11215 Try \`$0 --help' for more information." >&2
11216 { (exit 1); exit 1; }; };;
11217 --help | --hel | -h )
11218 echo "$ac_cs_usage"; exit ;;
11219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11221 ac_cs_silent=: ;;
11222
11223 # This is an error.
11224 -*) { echo "$as_me: error: unrecognized option: $1
11225 Try \`$0 --help' for more information." >&2
11226 { (exit 1); exit 1; }; } ;;
11227
11228 *) ac_config_targets="$ac_config_targets $1"
11229 ac_need_defaults=false ;;
11230
11231 esac
11232 shift
11233 done
11234
11235 ac_configure_extra_args=
11236
11237 if $ac_cs_silent; then
11238 exec 6>/dev/null
11239 ac_configure_extra_args="$ac_configure_extra_args --silent"
11240 fi
11241
11242 _ACEOF
11243 cat >>$CONFIG_STATUS <<_ACEOF
11244 if \$ac_cs_recheck; then
11245 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11246 CONFIG_SHELL=$SHELL
11247 export CONFIG_SHELL
11248 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11249 fi
11250
11251 _ACEOF
11252 cat >>$CONFIG_STATUS <<\_ACEOF
11253 exec 5>>config.log
11254 {
11255 echo
11256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11257 ## Running $as_me. ##
11258 _ASBOX
11259 echo "$ac_log"
11260 } >&5
11261
11262 _ACEOF
11263 cat >>$CONFIG_STATUS <<_ACEOF
11264 #
11265 # INIT-COMMANDS
11266 #
11267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11268
11269 _ACEOF
11270
11271 cat >>$CONFIG_STATUS <<\_ACEOF
11272
11273 # Handling of arguments.
11274 for ac_config_target in $ac_config_targets
11275 do
11276 case $ac_config_target in
11277 "autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
11278 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11280 "syntax/c.jsf") CONFIG_FILES="$CONFIG_FILES syntax/c.jsf" ;;
11281 "syntax/perl.jsf") CONFIG_FILES="$CONFIG_FILES syntax/perl.jsf" ;;
11282 "syntax/verilog.jsf") CONFIG_FILES="$CONFIG_FILES syntax/verilog.jsf" ;;
11283 "syntax/sh.jsf") CONFIG_FILES="$CONFIG_FILES syntax/sh.jsf" ;;
11284 "syntax/python.jsf") CONFIG_FILES="$CONFIG_FILES syntax/python.jsf" ;;
11285 "syntax/conf.jsf") CONFIG_FILES="$CONFIG_FILES syntax/conf.jsf" ;;
11286 "syntax/php.jsf") CONFIG_FILES="$CONFIG_FILES syntax/php.jsf" ;;
11287 "syntax/mail.jsf") CONFIG_FILES="$CONFIG_FILES syntax/mail.jsf" ;;
11288 "syntax/pascal.jsf") CONFIG_FILES="$CONFIG_FILES syntax/pascal.jsf" ;;
11289 "syntax/html.jsf") CONFIG_FILES="$CONFIG_FILES syntax/html.jsf" ;;
11290 "syntax/vhdl.jsf") CONFIG_FILES="$CONFIG_FILES syntax/vhdl.jsf" ;;
11291 "syntax/fortran.jsf") CONFIG_FILES="$CONFIG_FILES syntax/fortran.jsf" ;;
11292 "syntax/java.jsf") CONFIG_FILES="$CONFIG_FILES syntax/java.jsf" ;;
11293 "syntax/xml.jsf") CONFIG_FILES="$CONFIG_FILES syntax/xml.jsf" ;;
11294 "syntax/tcl.jsf") CONFIG_FILES="$CONFIG_FILES syntax/tcl.jsf" ;;
11295 "charmaps/klingon") CONFIG_FILES="$CONFIG_FILES charmaps/klingon" ;;
11296 "syntax/lisp.jsf") CONFIG_FILES="$CONFIG_FILES syntax/lisp.jsf" ;;
11297 "syntax/csh.jsf") CONFIG_FILES="$CONFIG_FILES syntax/csh.jsf" ;;
11298 "syntax/mason.jsf") CONFIG_FILES="$CONFIG_FILES syntax/mason.jsf" ;;
11299 "syntax/diff.jsf") CONFIG_FILES="$CONFIG_FILES syntax/diff.jsf" ;;
11300 "syntax/asm.jsf") CONFIG_FILES="$CONFIG_FILES syntax/asm.jsf" ;;
11301 "syntax/tex.jsf") CONFIG_FILES="$CONFIG_FILES syntax/tex.jsf" ;;
11302
11303 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11304 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11305 { (exit 1); exit 1; }; };;
11306 esac
11307 done
11308
11309
11310 # If the user did not use the arguments to specify the items to instantiate,
11311 # then the envvar interface is used. Set only those that are not.
11312 # We use the long form for the default assignment because of an extremely
11313 # bizarre bug on SunOS 4.1.3.
11314 if $ac_need_defaults; then
11315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11318 fi
11319
11320 # Have a temporary directory for convenience. Make it in the build tree
11321 # simply because there is no reason against having it here, and in addition,
11322 # creating and moving files from /tmp can sometimes cause problems.
11323 # Hook for its removal unless debugging.
11324 # Note that there is a small window in which the directory will not be cleaned:
11325 # after its creation but before its name has been assigned to `$tmp'.
11326 $debug ||
11327 {
11328 tmp=
11329 trap 'exit_status=$?
11330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11331 ' 0
11332 trap '{ (exit 1); exit 1; }' 1 2 13 15
11333 }
11334 # Create a (secure) tmp directory for tmp files.
11335
11336 {
11337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11338 test -n "$tmp" && test -d "$tmp"
11339 } ||
11340 {
11341 tmp=./conf$$-$RANDOM
11342 (umask 077 && mkdir "$tmp")
11343 } ||
11344 {
11345 echo "$me: cannot create a temporary directory in ." >&2
11346 { (exit 1); exit 1; }
11347 }
11348
11349 #
11350 # Set up the sed scripts for CONFIG_FILES section.
11351 #
11352
11353 # No need to generate the scripts if there are no CONFIG_FILES.
11354 # This happens for instance when ./config.status config.h
11355 if test -n "$CONFIG_FILES"; then
11356
11357 _ACEOF
11358
11359
11360
11361 ac_delim='%!_!# '
11362 for ac_last_try in false false false false false :; do
11363 cat >conf$$subs.sed <<_ACEOF
11364 SHELL!$SHELL$ac_delim
11365 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11366 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11367 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11368 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11369 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11370 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11371 exec_prefix!$exec_prefix$ac_delim
11372 prefix!$prefix$ac_delim
11373 program_transform_name!$program_transform_name$ac_delim
11374 bindir!$bindir$ac_delim
11375 sbindir!$sbindir$ac_delim
11376 libexecdir!$libexecdir$ac_delim
11377 datarootdir!$datarootdir$ac_delim
11378 datadir!$datadir$ac_delim
11379 sysconfdir!$sysconfdir$ac_delim
11380 sharedstatedir!$sharedstatedir$ac_delim
11381 localstatedir!$localstatedir$ac_delim
11382 includedir!$includedir$ac_delim
11383 oldincludedir!$oldincludedir$ac_delim
11384 docdir!$docdir$ac_delim
11385 infodir!$infodir$ac_delim
11386 htmldir!$htmldir$ac_delim
11387 dvidir!$dvidir$ac_delim
11388 pdfdir!$pdfdir$ac_delim
11389 psdir!$psdir$ac_delim
11390 libdir!$libdir$ac_delim
11391 localedir!$localedir$ac_delim
11392 mandir!$mandir$ac_delim
11393 DEFS!$DEFS$ac_delim
11394 ECHO_C!$ECHO_C$ac_delim
11395 ECHO_N!$ECHO_N$ac_delim
11396 ECHO_T!$ECHO_T$ac_delim
11397 LIBS!$LIBS$ac_delim
11398 build_alias!$build_alias$ac_delim
11399 host_alias!$host_alias$ac_delim
11400 target_alias!$target_alias$ac_delim
11401 build!$build$ac_delim
11402 build_cpu!$build_cpu$ac_delim
11403 build_vendor!$build_vendor$ac_delim
11404 build_os!$build_os$ac_delim
11405 host!$host$ac_delim
11406 host_cpu!$host_cpu$ac_delim
11407 host_vendor!$host_vendor$ac_delim
11408 host_os!$host_os$ac_delim
11409 target!$target$ac_delim
11410 target_cpu!$target_cpu$ac_delim
11411 target_vendor!$target_vendor$ac_delim
11412 target_os!$target_os$ac_delim
11413 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11414 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11415 INSTALL_DATA!$INSTALL_DATA$ac_delim
11416 CYGPATH_W!$CYGPATH_W$ac_delim
11417 PACKAGE!$PACKAGE$ac_delim
11418 VERSION!$VERSION$ac_delim
11419 ACLOCAL!$ACLOCAL$ac_delim
11420 AUTOCONF!$AUTOCONF$ac_delim
11421 AUTOMAKE!$AUTOMAKE$ac_delim
11422 AUTOHEADER!$AUTOHEADER$ac_delim
11423 MAKEINFO!$MAKEINFO$ac_delim
11424 install_sh!$install_sh$ac_delim
11425 STRIP!$STRIP$ac_delim
11426 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11427 mkdir_p!$mkdir_p$ac_delim
11428 AWK!$AWK$ac_delim
11429 SET_MAKE!$SET_MAKE$ac_delim
11430 am__leading_dot!$am__leading_dot$ac_delim
11431 AMTAR!$AMTAR$ac_delim
11432 am__tar!$am__tar$ac_delim
11433 am__untar!$am__untar$ac_delim
11434 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
11435 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
11436 MAINT!$MAINT$ac_delim
11437 CC!$CC$ac_delim
11438 CFLAGS!$CFLAGS$ac_delim
11439 LDFLAGS!$LDFLAGS$ac_delim
11440 CPPFLAGS!$CPPFLAGS$ac_delim
11441 ac_ct_CC!$ac_ct_CC$ac_delim
11442 EXEEXT!$EXEEXT$ac_delim
11443 OBJEXT!$OBJEXT$ac_delim
11444 DEPDIR!$DEPDIR$ac_delim
11445 am__include!$am__include$ac_delim
11446 am__quote!$am__quote$ac_delim
11447 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11448 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11449 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11450 CCDEPMODE!$CCDEPMODE$ac_delim
11451 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11452 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11453 CPP!$CPP$ac_delim
11454 GREP!$GREP$ac_delim
11455 EGREP!$EGREP$ac_delim
11456 LN_S!$LN_S$ac_delim
11457 WANT_TERMIDX_TRUE!$WANT_TERMIDX_TRUE$ac_delim
11458 WANT_TERMIDX_FALSE!$WANT_TERMIDX_FALSE$ac_delim
11459 sysconfjoesubdir!$sysconfjoesubdir$ac_delim
11460 joeinitfile!$joeinitfile$ac_delim
11461 _ACEOF
11462
11463 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11464 break
11465 elif $ac_last_try; then
11466 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11467 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11468 { (exit 1); exit 1; }; }
11469 else
11470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11471 fi
11472 done
11473
11474 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11475 if test -n "$ac_eof"; then
11476 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11477 ac_eof=`expr $ac_eof + 1`
11478 fi
11479
11480 cat >>$CONFIG_STATUS <<_ACEOF
11481 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11483 _ACEOF
11484 sed '
11485 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11486 s/^/s,@/; s/!/@,|#_!!_#|/
11487 :n
11488 t n
11489 s/'"$ac_delim"'$/,g/; t
11490 s/$/\\/; p
11491 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11492 ' >>$CONFIG_STATUS <conf$$subs.sed
11493 rm -f conf$$subs.sed
11494 cat >>$CONFIG_STATUS <<_ACEOF
11495 CEOF$ac_eof
11496 _ACEOF
11497
11498
11499 ac_delim='%!_!# '
11500 for ac_last_try in false false false false false :; do
11501 cat >conf$$subs.sed <<_ACEOF
11502 joeinitcopy!$joeinitcopy$ac_delim
11503 joeresides!$joeresides$ac_delim
11504 jrcbefore!$jrcbefore$ac_delim
11505 jrcafter!$jrcafter$ac_delim
11506 LIBOBJS!$LIBOBJS$ac_delim
11507 SPELL!$SPELL$ac_delim
11508 LTLIBOBJS!$LTLIBOBJS$ac_delim
11509 _ACEOF
11510
11511 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
11512 break
11513 elif $ac_last_try; then
11514 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11515 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11516 { (exit 1); exit 1; }; }
11517 else
11518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11519 fi
11520 done
11521
11522 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11523 if test -n "$ac_eof"; then
11524 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11525 ac_eof=`expr $ac_eof + 1`
11526 fi
11527
11528 cat >>$CONFIG_STATUS <<_ACEOF
11529 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11531 _ACEOF
11532 sed '
11533 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11534 s/^/s,@/; s/!/@,|#_!!_#|/
11535 :n
11536 t n
11537 s/'"$ac_delim"'$/,g/; t
11538 s/$/\\/; p
11539 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11540 ' >>$CONFIG_STATUS <conf$$subs.sed
11541 rm -f conf$$subs.sed
11542 cat >>$CONFIG_STATUS <<_ACEOF
11543 :end
11544 s/|#_!!_#|//g
11545 CEOF$ac_eof
11546 _ACEOF
11547
11548
11549 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11550 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11551 # trailing colons and then remove the whole line if VPATH becomes empty
11552 # (actually we leave an empty line to preserve line numbers).
11553 if test "x$srcdir" = x.; then
11554 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11555 s/:*\$(srcdir):*/:/
11556 s/:*\${srcdir}:*/:/
11557 s/:*@srcdir@:*/:/
11558 s/^\([^=]*=[ ]*\):*/\1/
11559 s/:*$//
11560 s/^[^=]*=[ ]*$//
11561 }'
11562 fi
11563
11564 cat >>$CONFIG_STATUS <<\_ACEOF
11565 fi # test -n "$CONFIG_FILES"
11566
11567
11568 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11569 do
11570 case $ac_tag in
11571 :[FHLC]) ac_mode=$ac_tag; continue;;
11572 esac
11573 case $ac_mode$ac_tag in
11574 :[FHL]*:*);;
11575 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11576 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11577 { (exit 1); exit 1; }; };;
11578 :[FH]-) ac_tag=-:-;;
11579 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11580 esac
11581 ac_save_IFS=$IFS
11582 IFS=:
11583 set x $ac_tag
11584 IFS=$ac_save_IFS
11585 shift
11586 ac_file=$1
11587 shift
11588
11589 case $ac_mode in
11590 :L) ac_source=$1;;
11591 :[FH])
11592 ac_file_inputs=
11593 for ac_f
11594 do
11595 case $ac_f in
11596 -) ac_f="$tmp/stdin";;
11597 *) # Look for the file first in the build tree, then in the source tree
11598 # (if the path is not absolute). The absolute path cannot be DOS-style,
11599 # because $ac_f cannot contain `:'.
11600 test -f "$ac_f" ||
11601 case $ac_f in
11602 [\\/$]*) false;;
11603 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11604 esac ||
11605 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11606 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11607 { (exit 1); exit 1; }; };;
11608 esac
11609 ac_file_inputs="$ac_file_inputs $ac_f"
11610 done
11611
11612 # Let's still pretend it is `configure' which instantiates (i.e., don't
11613 # use $as_me), people would be surprised to read:
11614 # /* config.h. Generated by config.status. */
11615 configure_input="Generated from "`IFS=:
11616 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11617 if test x"$ac_file" != x-; then
11618 configure_input="$ac_file. $configure_input"
11619 { echo "$as_me:$LINENO: creating $ac_file" >&5
11620 echo "$as_me: creating $ac_file" >&6;}
11621 fi
11622
11623 case $ac_tag in
11624 *:-:* | *:-) cat >"$tmp/stdin";;
11625 esac
11626 ;;
11627 esac
11628
11629 ac_dir=`$as_dirname -- "$ac_file" ||
11630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11631 X"$ac_file" : 'X\(//\)[^/]' \| \
11632 X"$ac_file" : 'X\(//\)$' \| \
11633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11634 echo X"$ac_file" |
11635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11636 s//\1/
11637 q
11638 }
11639 /^X\(\/\/\)[^/].*/{
11640 s//\1/
11641 q
11642 }
11643 /^X\(\/\/\)$/{
11644 s//\1/
11645 q
11646 }
11647 /^X\(\/\).*/{
11648 s//\1/
11649 q
11650 }
11651 s/.*/./; q'`
11652 { as_dir="$ac_dir"
11653 case $as_dir in #(
11654 -*) as_dir=./$as_dir;;
11655 esac
11656 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11657 as_dirs=
11658 while :; do
11659 case $as_dir in #(
11660 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11661 *) as_qdir=$as_dir;;
11662 esac
11663 as_dirs="'$as_qdir' $as_dirs"
11664 as_dir=`$as_dirname -- "$as_dir" ||
11665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11666 X"$as_dir" : 'X\(//\)[^/]' \| \
11667 X"$as_dir" : 'X\(//\)$' \| \
11668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11669 echo X"$as_dir" |
11670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11671 s//\1/
11672 q
11673 }
11674 /^X\(\/\/\)[^/].*/{
11675 s//\1/
11676 q
11677 }
11678 /^X\(\/\/\)$/{
11679 s//\1/
11680 q
11681 }
11682 /^X\(\/\).*/{
11683 s//\1/
11684 q
11685 }
11686 s/.*/./; q'`
11687 test -d "$as_dir" && break
11688 done
11689 test -z "$as_dirs" || eval "mkdir $as_dirs"
11690 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11691 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11692 { (exit 1); exit 1; }; }; }
11693 ac_builddir=.
11694
11695 case "$ac_dir" in
11696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11697 *)
11698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11699 # A ".." for each directory in $ac_dir_suffix.
11700 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11701 case $ac_top_builddir_sub in
11702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11704 esac ;;
11705 esac
11706 ac_abs_top_builddir=$ac_pwd
11707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11708 # for backward compatibility:
11709 ac_top_builddir=$ac_top_build_prefix
11710
11711 case $srcdir in
11712 .) # We are building in place.
11713 ac_srcdir=.
11714 ac_top_srcdir=$ac_top_builddir_sub
11715 ac_abs_top_srcdir=$ac_pwd ;;
11716 [\\/]* | ?:[\\/]* ) # Absolute name.
11717 ac_srcdir=$srcdir$ac_dir_suffix;
11718 ac_top_srcdir=$srcdir
11719 ac_abs_top_srcdir=$srcdir ;;
11720 *) # Relative name.
11721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11722 ac_top_srcdir=$ac_top_build_prefix$srcdir
11723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11724 esac
11725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11726
11727
11728 case $ac_mode in
11729 :F)
11730 #
11731 # CONFIG_FILE
11732 #
11733
11734 case $INSTALL in
11735 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11736 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11737 esac
11738 _ACEOF
11739
11740 cat >>$CONFIG_STATUS <<\_ACEOF
11741 # If the template does not know about datarootdir, expand it.
11742 # FIXME: This hack should be removed a few years after 2.60.
11743 ac_datarootdir_hack=; ac_datarootdir_seen=
11744
11745 case `sed -n '/datarootdir/ {
11746 p
11747 q
11748 }
11749 /@datadir@/p
11750 /@docdir@/p
11751 /@infodir@/p
11752 /@localedir@/p
11753 /@mandir@/p
11754 ' $ac_file_inputs` in
11755 *datarootdir*) ac_datarootdir_seen=yes;;
11756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11757 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11758 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11759 _ACEOF
11760 cat >>$CONFIG_STATUS <<_ACEOF
11761 ac_datarootdir_hack='
11762 s&@datadir@&$datadir&g
11763 s&@docdir@&$docdir&g
11764 s&@infodir@&$infodir&g
11765 s&@localedir@&$localedir&g
11766 s&@mandir@&$mandir&g
11767 s&\\\${datarootdir}&$datarootdir&g' ;;
11768 esac
11769 _ACEOF
11770
11771 # Neutralize VPATH when `$srcdir' = `.'.
11772 # Shell code in configure.ac might set extrasub.
11773 # FIXME: do we really want to maintain this feature?
11774 cat >>$CONFIG_STATUS <<_ACEOF
11775 sed "$ac_vpsub
11776 $extrasub
11777 _ACEOF
11778 cat >>$CONFIG_STATUS <<\_ACEOF
11779 :t
11780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11781 s&@configure_input@&$configure_input&;t t
11782 s&@top_builddir@&$ac_top_builddir_sub&;t t
11783 s&@srcdir@&$ac_srcdir&;t t
11784 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11785 s&@top_srcdir@&$ac_top_srcdir&;t t
11786 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11787 s&@builddir@&$ac_builddir&;t t
11788 s&@abs_builddir@&$ac_abs_builddir&;t t
11789 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11790 s&@INSTALL@&$ac_INSTALL&;t t
11791 $ac_datarootdir_hack
11792 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11793
11794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11795 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11797 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11798 which seems to be undefined. Please make sure it is defined." >&5
11799 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11800 which seems to be undefined. Please make sure it is defined." >&2;}
11801
11802 rm -f "$tmp/stdin"
11803 case $ac_file in
11804 -) cat "$tmp/out"; rm -f "$tmp/out";;
11805 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11806 esac
11807 ;;
11808 :H)
11809 #
11810 # CONFIG_HEADER
11811 #
11812 _ACEOF
11813
11814 # Transform confdefs.h into a sed script `conftest.defines', that
11815 # substitutes the proper values into config.h.in to produce config.h.
11816 rm -f conftest.defines conftest.tail
11817 # First, append a space to every undef/define line, to ease matching.
11818 echo 's/$/ /' >conftest.defines
11819 # Then, protect against being on the right side of a sed subst, or in
11820 # an unquoted here document, in config.status. If some macros were
11821 # called several times there might be several #defines for the same
11822 # symbol, which is useless. But do not sort them, since the last
11823 # AC_DEFINE must be honored.
11824 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11825 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11826 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11827 # PARAMS is the parameter list in the macro definition--in most cases, it's
11828 # just an empty string.
11829 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11830 ac_dB='\\)[ (].*,\\1define\\2'
11831 ac_dC=' '
11832 ac_dD=' ,'
11833
11834 uniq confdefs.h |
11835 sed -n '
11836 t rset
11837 :rset
11838 s/^[ ]*#[ ]*define[ ][ ]*//
11839 t ok
11840 d
11841 :ok
11842 s/[\\&,]/\\&/g
11843 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11844 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11845 ' >>conftest.defines
11846
11847 # Remove the space that was appended to ease matching.
11848 # Then replace #undef with comments. This is necessary, for
11849 # example, in the case of _POSIX_SOURCE, which is predefined and required
11850 # on some systems where configure will not decide to define it.
11851 # (The regexp can be short, since the line contains either #define or #undef.)
11852 echo 's/ $//
11853 s,^[ #]*u.*,/* & */,' >>conftest.defines
11854
11855 # Break up conftest.defines:
11856 ac_max_sed_lines=50
11857
11858 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11859 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11860 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11861 # et cetera.
11862 ac_in='$ac_file_inputs'
11863 ac_out='"$tmp/out1"'
11864 ac_nxt='"$tmp/out2"'
11865
11866 while :
11867 do
11868 # Write a here document:
11869 cat >>$CONFIG_STATUS <<_ACEOF
11870 # First, check the format of the line:
11871 cat >"\$tmp/defines.sed" <<\\CEOF
11872 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11873 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11874 b
11875 :def
11876 _ACEOF
11877 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11878 echo 'CEOF
11879 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11880 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11881 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11882 grep . conftest.tail >/dev/null || break
11883 rm -f conftest.defines
11884 mv conftest.tail conftest.defines
11885 done
11886 rm -f conftest.defines conftest.tail
11887
11888 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11890 if test x"$ac_file" != x-; then
11891 echo "/* $configure_input */" >"$tmp/config.h"
11892 cat "$ac_result" >>"$tmp/config.h"
11893 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11894 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11895 echo "$as_me: $ac_file is unchanged" >&6;}
11896 else
11897 rm -f $ac_file
11898 mv "$tmp/config.h" $ac_file
11899 fi
11900 else
11901 echo "/* $configure_input */"
11902 cat "$ac_result"
11903 fi
11904 rm -f "$tmp/out12"
11905 # Compute $ac_file's index in $config_headers.
11906 _am_stamp_count=1
11907 for _am_header in $config_headers :; do
11908 case $_am_header in
11909 $ac_file | $ac_file:* )
11910 break ;;
11911 * )
11912 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11913 esac
11914 done
11915 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11916 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11917 X$ac_file : 'X\(//\)[^/]' \| \
11918 X$ac_file : 'X\(//\)$' \| \
11919 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11920 echo X$ac_file |
11921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11922 s//\1/
11923 q
11924 }
11925 /^X\(\/\/\)[^/].*/{
11926 s//\1/
11927 q
11928 }
11929 /^X\(\/\/\)$/{
11930 s//\1/
11931 q
11932 }
11933 /^X\(\/\).*/{
11934 s//\1/
11935 q
11936 }
11937 s/.*/./; q'`/stamp-h$_am_stamp_count
11938 ;;
11939
11940 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11941 echo "$as_me: executing $ac_file commands" >&6;}
11942 ;;
11943 esac
11944
11945
11946 case $ac_file$ac_mode in
11947 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11948 # Strip MF so we end up with the name of the file.
11949 mf=`echo "$mf" | sed -e 's/:.*$//'`
11950 # Check whether this is an Automake generated Makefile or not.
11951 # We used to match only the files named `Makefile.in', but
11952 # some people rename them; so instead we look at the file content.
11953 # Grep'ing the first line is not enough: some people post-process
11954 # each Makefile.in and add a new line on top of each file to say so.
11955 # So let's grep whole file.
11956 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11957 dirpart=`$as_dirname -- "$mf" ||
11958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11959 X"$mf" : 'X\(//\)[^/]' \| \
11960 X"$mf" : 'X\(//\)$' \| \
11961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11962 echo X"$mf" |
11963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11964 s//\1/
11965 q
11966 }
11967 /^X\(\/\/\)[^/].*/{
11968 s//\1/
11969 q
11970 }
11971 /^X\(\/\/\)$/{
11972 s//\1/
11973 q
11974 }
11975 /^X\(\/\).*/{
11976 s//\1/
11977 q
11978 }
11979 s/.*/./; q'`
11980 else
11981 continue
11982 fi
11983 # Extract the definition of DEPDIR, am__include, and am__quote
11984 # from the Makefile without running `make'.
11985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11986 test -z "$DEPDIR" && continue
11987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11988 test -z "am__include" && continue
11989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11990 # When using ansi2knr, U may be empty or an underscore; expand it
11991 U=`sed -n 's/^U = //p' < "$mf"`
11992 # Find all dependency output files, they are included files with
11993 # $(DEPDIR) in their names. We invoke sed twice because it is the
11994 # simplest approach to changing $(DEPDIR) to its actual value in the
11995 # expansion.
11996 for file in `sed -n "
11997 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11999 # Make sure the directory exists.
12000 test -f "$dirpart/$file" && continue
12001 fdir=`$as_dirname -- "$file" ||
12002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12003 X"$file" : 'X\(//\)[^/]' \| \
12004 X"$file" : 'X\(//\)$' \| \
12005 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12006 echo X"$file" |
12007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12008 s//\1/
12009 q
12010 }
12011 /^X\(\/\/\)[^/].*/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\/\)$/{
12016 s//\1/
12017 q
12018 }
12019 /^X\(\/\).*/{
12020 s//\1/
12021 q
12022 }
12023 s/.*/./; q'`
12024 { as_dir=$dirpart/$fdir
12025 case $as_dir in #(
12026 -*) as_dir=./$as_dir;;
12027 esac
12028 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12029 as_dirs=
12030 while :; do
12031 case $as_dir in #(
12032 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12033 *) as_qdir=$as_dir;;
12034 esac
12035 as_dirs="'$as_qdir' $as_dirs"
12036 as_dir=`$as_dirname -- "$as_dir" ||
12037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12038 X"$as_dir" : 'X\(//\)[^/]' \| \
12039 X"$as_dir" : 'X\(//\)$' \| \
12040 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12041 echo X"$as_dir" |
12042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12043 s//\1/
12044 q
12045 }
12046 /^X\(\/\/\)[^/].*/{
12047 s//\1/
12048 q
12049 }
12050 /^X\(\/\/\)$/{
12051 s//\1/
12052 q
12053 }
12054 /^X\(\/\).*/{
12055 s//\1/
12056 q
12057 }
12058 s/.*/./; q'`
12059 test -d "$as_dir" && break
12060 done
12061 test -z "$as_dirs" || eval "mkdir $as_dirs"
12062 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12064 { (exit 1); exit 1; }; }; }
12065 # echo "creating $dirpart/$file"
12066 echo '# dummy' > "$dirpart/$file"
12067 done
12068 done
12069 ;;
12070
12071 esac
12072 done # for ac_tag
12073
12074
12075 { (exit 0); exit 0; }
12076 _ACEOF
12077 chmod +x $CONFIG_STATUS
12078 ac_clean_files=$ac_clean_files_save
12079
12080
12081 # configure is writing to config.log, and then calls config.status.
12082 # config.status does its own redirection, appending to config.log.
12083 # Unfortunately, on DOS this fails, as config.log is still kept open
12084 # by configure, so config.status won't be able to write to it; its
12085 # output is simply discarded. So we exec the FD to /dev/null,
12086 # effectively closing config.log, so it can be properly (re)opened and
12087 # appended to by config.status. When coming back to configure, we
12088 # need to make the FD available again.
12089 if test "$no_create" != yes; then
12090 ac_cs_success=:
12091 ac_config_status_args=
12092 test "$silent" = yes &&
12093 ac_config_status_args="$ac_config_status_args --quiet"
12094 exec 5>/dev/null
12095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12096 exec 5>>config.log
12097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12098 # would make configure fail if this is the last instruction.
12099 $ac_cs_success || { (exit 1); exit 1; }
12100 fi
12101
12102 case $program_transform_name in
12103 s,x,x,) ;;
12104 *) { echo "$as_me:$LINENO: WARNING: Do not rely on --program-prefix, --program-suffix or --program-transform-name!" >&5
12105 echo "$as_me: WARNING: Do not rely on --program-prefix, --program-suffix or --program-transform-name!" >&2;} ;;
12106 esac