OSDN Git Service

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