comparison rogue5/configure @ 33:f502bf60e6e4

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